remove a bunch of union and optional

This commit is contained in:
Khaleel Al-Adhami 2025-02-18 15:20:10 -08:00
parent 236af4e67c
commit 035e6a0bbf
195 changed files with 46697 additions and 53727 deletions

View File

@ -1,7 +1,6 @@
"""The Reflex Admin Dashboard."""
from dataclasses import dataclass, field
from typing import Optional
from starlette_admin.base import BaseAdmin as Admin
@ -12,4 +11,4 @@ class AdminDash:
models: list = field(default_factory=list)
view_overrides: dict = field(default_factory=dict)
admin: Optional[Admin] = None
admin: Admin | None = None

View File

@ -165,7 +165,7 @@ def default_backend_exception_handler(exception: Exception) -> EventSpec:
return window_alert("\n".join(error_message))
def extra_overlay_function() -> Optional[Component]:
def extra_overlay_function() -> Component | None:
"""Extra overlay function to add to the overlay component.
Returns:
@ -245,16 +245,16 @@ class UploadFile(StarletteUploadFile):
file: BinaryIO
path: Optional[Path] = dataclasses.field(default=None)
path: Path | None = dataclasses.field(default=None)
_deprecated_filename: Optional[str] = dataclasses.field(default=None)
_deprecated_filename: str | None = dataclasses.field(default=None)
size: Optional[int] = dataclasses.field(default=None)
size: int | None = dataclasses.field(default=None)
headers: Headers = dataclasses.field(default_factory=Headers)
@property
def name(self) -> Optional[str]:
def name(self) -> str | None:
"""Get the name of the uploaded file.
Returns:
@ -264,7 +264,7 @@ class UploadFile(StarletteUploadFile):
return self.path.name
@property
def filename(self) -> Optional[str]:
def filename(self) -> str | None:
"""Get the filename of the uploaded file.
Returns:
@ -285,10 +285,10 @@ class UploadFile(StarletteUploadFile):
class UnevaluatedPage:
"""An uncompiled page."""
component: Union[Component, ComponentCallable]
component: Component | ComponentCallable
route: str
title: Union[Var, str, None]
description: Union[Var, str, None]
title: Var | str | None
description: Var | str | None
image: str
on_load: Union[EventType[()], None]
meta: list[dict[str, str]]
@ -317,7 +317,7 @@ class App(MiddlewareMixin, LifespanMixin):
"""
# The global [theme](https://reflex.dev/docs/styling/theming/#theme) for the entire app.
theme: Optional[Component] = dataclasses.field(
theme: Component | None = dataclasses.field(
default_factory=lambda: themes.theme(accent_color="blue")
)
@ -328,15 +328,15 @@ class App(MiddlewareMixin, LifespanMixin):
stylesheets: list[str] = dataclasses.field(default_factory=list)
# A component that is present on every page (defaults to the Connection Error banner).
overlay_component: Optional[Union[Component, ComponentCallable]] = (
dataclasses.field(default=None)
overlay_component: Component | ComponentCallable | None = dataclasses.field(
default=None
)
# Error boundary component to wrap the app with.
error_boundary: Optional[ComponentCallable] = dataclasses.field(default=None)
error_boundary: ComponentCallable | None = dataclasses.field(default=None)
# App wraps to be applied to the whole app. Expected to be a dictionary of (order, name) to a function that takes whether the state is enabled and optionally returns a component.
app_wraps: dict[tuple[int, str], Callable[[bool], Optional[Component]]] = (
app_wraps: dict[tuple[int, str], Callable[[bool], Component | None]] = (
dataclasses.field(
default_factory=lambda: {
(55, "ErrorBoundary"): (
@ -354,10 +354,10 @@ class App(MiddlewareMixin, LifespanMixin):
head_components: list[Component] = dataclasses.field(default_factory=list)
# The Socket.IO AsyncServer instance.
sio: Optional[AsyncServer] = None
sio: AsyncServer | None = None
# The language to add to the html root tag of every page.
html_lang: Optional[str] = None
html_lang: str | None = None
# Attributes to add to the html root tag of every page.
html_custom_attrs: Optional[dict[str, str]] = None
@ -377,7 +377,7 @@ class App(MiddlewareMixin, LifespanMixin):
_state: Optional[Type[BaseState]] = None
# Class to manage many client states.
_state_manager: Optional[StateManager] = None
_state_manager: StateManager | None = None
# Mapping from a route to event handlers to trigger when the page loads.
_load_events: dict[str, list[IndividualEventType[()]]] = dataclasses.field(
@ -385,10 +385,10 @@ class App(MiddlewareMixin, LifespanMixin):
)
# Admin dashboard to view and manage the database.
admin_dash: Optional[AdminDash] = None
admin_dash: AdminDash | None = None
# The async server name space.
_event_namespace: Optional[EventNamespace] = None
_event_namespace: EventNamespace | None = None
# Background tasks that are currently running.
_background_tasks: set[asyncio.Task] = dataclasses.field(default_factory=set)
@ -1485,7 +1485,7 @@ class App(MiddlewareMixin, LifespanMixin):
valid = bool(
return_type == EventSpec
or return_type == Optional[EventSpec]
or return_type == EventSpec | None
or return_type == list[EventSpec]
or return_type == inspect.Signature.empty
or return_type is None

View File

@ -7,7 +7,7 @@ import contextlib
import dataclasses
import functools
import inspect
from typing import Callable, Coroutine, Union
from typing import Callable, Coroutine
from fastapi import FastAPI
@ -22,7 +22,7 @@ class LifespanMixin(AppMixin):
"""A Mixin that allow tasks to run during the whole app lifespan."""
# Lifespan tasks that are planned to run.
lifespan_tasks: set[Union[asyncio.Task, Callable]] = dataclasses.field(
lifespan_tasks: set[asyncio.Task | Callable] = dataclasses.field(
default_factory=set
)

View File

@ -2,7 +2,6 @@
import inspect
from pathlib import Path
from typing import Optional
from reflex import constants
from reflex.config import EnvironmentVariables
@ -11,7 +10,7 @@ from reflex.config import EnvironmentVariables
def asset(
path: str,
shared: bool = False,
subfolder: Optional[str] = None,
subfolder: str | None = None,
_stack_level: int = 1,
) -> str:
"""Add an asset to the app, either shared as a symlink or local.

View File

@ -4,7 +4,7 @@ from __future__ import annotations
from datetime import datetime
from pathlib import Path
from typing import TYPE_CHECKING, Iterable, Optional, Sequence, Type, Union
from typing import TYPE_CHECKING, Iterable, Optional, Sequence, Type
from reflex import constants
from reflex.compiler import templates, utils
@ -352,8 +352,8 @@ def _compile_tailwind(
def compile_document_root(
head_components: list[Component],
html_lang: Optional[str] = None,
html_custom_attrs: Optional[dict[str, Union[Var, str]]] = None,
html_lang: str | None = None,
html_custom_attrs: Optional[dict[str, Var | str]] = None,
) -> tuple[str, str]:
"""Compile the document root.

View File

@ -7,7 +7,7 @@ import concurrent.futures
import traceback
from datetime import datetime
from pathlib import Path
from typing import Any, Callable, Optional, Type, Union
from typing import Any, Callable, Optional, Type
from urllib.parse import urlparse
from pydantic.v1.fields import ModelField
@ -345,8 +345,8 @@ def compile_custom_component(
def create_document_root(
head_components: list[Component] | None = None,
html_lang: Optional[str] = None,
html_custom_attrs: Optional[dict[str, Union[Var, str]]] = None,
html_lang: str | None = None,
html_custom_attrs: Optional[dict[str, Var | str]] = None,
) -> Component:
"""Create the document root.

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Optional, Union, overload
from typing import Any, Optional, overload
from reflex.components.base.fragment import Fragment
from reflex.event import EventType
@ -16,12 +16,12 @@ class AppWrap(Fragment):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Optional, Union, overload
from typing import Any, Optional, overload
from reflex.components.component import Component
from reflex.event import EventType
@ -16,12 +16,12 @@ class Body(Component):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -1,7 +1,5 @@
"""Document components."""
from typing import Optional
from reflex.components.component import Component
@ -16,7 +14,7 @@ class Html(NextDocumentLib):
tag = "Html"
lang: Optional[str]
lang: str | None
class DocumentHead(NextDocumentLib):

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Optional, Union, overload
from typing import Any, Optional, overload
from reflex.components.component import Component
from reflex.event import EventType
@ -16,12 +16,12 @@ class NextDocumentLib(Component):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -63,12 +63,12 @@ class Html(NextDocumentLib):
cls,
*children,
lang: Optional[str] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -109,12 +109,12 @@ class DocumentHead(NextDocumentLib):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -155,12 +155,12 @@ class Main(NextDocumentLib):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -201,12 +201,12 @@ class NextScript(NextDocumentLib):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Optional, Union, overload
from typing import Any, Optional, overload
from reflex.components.component import Component
from reflex.event import EventType
@ -21,20 +21,18 @@ class ErrorBoundary(Component):
def create( # type: ignore
cls,
*children,
fallback_render: Optional[Union[Component, Var[Component]]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
fallback_render: Component | Var[Component] | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = 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[
Union[EventType[()], EventType[str], EventType[str, str]]
] = None,
on_error: Optional[EventType[()] | EventType[str] | EventType[str, str]] = None,
on_focus: Optional[EventType[()]] = None,
on_mount: Optional[EventType[()]] = None,
on_mouse_down: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Optional, Union, overload
from typing import Any, Optional, overload
from reflex.components.component import Component
from reflex.event import EventType
@ -16,12 +16,12 @@ class Fragment(Component):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Optional, Union, overload
from typing import Any, Optional, overload
from reflex.components.component import Component, MemoizationLeaf
from reflex.event import EventType
@ -16,12 +16,12 @@ class NextHeadLib(Component):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -62,12 +62,12 @@ class Head(NextHeadLib, MemoizationLeaf):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Optional, Union, overload
from typing import Any, Optional, overload
from reflex.components.component import Component
from reflex.event import EventType
@ -16,14 +16,14 @@ class RawLink(Component):
def create( # type: ignore
cls,
*children,
href: Optional[Union[Var[str], str]] = None,
rel: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
href: Var[str] | str | None = None,
rel: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -66,19 +66,19 @@ class ScriptTag(Component):
def create( # type: ignore
cls,
*children,
type_: Optional[Union[Var[str], str]] = None,
source: Optional[Union[Var[str], str]] = None,
integrity: Optional[Union[Var[str], str]] = None,
crossorigin: Optional[Union[Var[str], str]] = None,
referrer_policy: Optional[Union[Var[str], str]] = None,
is_async: Optional[Union[Var[bool], bool]] = None,
defer: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
type_: Var[str] | str | None = None,
source: Var[str] | str | None = None,
integrity: Var[str] | str | None = None,
crossorigin: Var[str] | str | None = None,
referrer_policy: Var[str] | str | None = None,
is_async: Var[bool] | bool | None = None,
defer: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -2,8 +2,6 @@
from __future__ import annotations
from typing import Optional
from reflex.components.base.bare import Bare
from reflex.components.component import Component
@ -34,19 +32,19 @@ class Meta(Component):
tag = "meta"
# The description of character encoding.
char_set: Optional[str] = None
char_set: str | None = None
# The value of meta.
content: Optional[str] = None
content: str | None = None
# The name of metadata.
name: Optional[str] = None
name: str | None = None
# The type of metadata value.
property: Optional[str] = None
property: str | None = None
# The type of metadata value.
http_equiv: Optional[str] = None
http_equiv: str | None = None
class Description(Meta):

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Optional, Union, overload
from typing import Any, Optional, overload
from reflex.components.component import Component
from reflex.event import EventType
@ -17,12 +17,12 @@ class Title(Component):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -68,12 +68,12 @@ class Meta(Component):
name: Optional[str] = None,
property: Optional[str] = None,
http_equiv: Optional[str] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -124,12 +124,12 @@ class Description(Meta):
content: Optional[str] = None,
property: Optional[str] = None,
http_equiv: Optional[str] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -180,12 +180,12 @@ class Image(Meta):
content: Optional[str] = None,
name: Optional[str] = None,
http_equiv: Optional[str] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.component import Component
from reflex.event import EventType
@ -16,19 +16,16 @@ class Script(Component):
def create( # type: ignore
cls,
*children,
src: Optional[Union[Var[str], str]] = None,
strategy: Optional[
Union[
Literal["afterInteractive", "beforeInteractive", "lazyOnload"],
Var[Literal["afterInteractive", "beforeInteractive", "lazyOnload"]],
]
] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
src: Var[str] | str | None = None,
strategy: Literal["afterInteractive", "beforeInteractive", "lazyOnload"]
| Var[Literal["afterInteractive", "beforeInteractive", "lazyOnload"]]
| None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Optional, Union, overload
from typing import Any, Optional, overload
from reflex.components.component import Component
from reflex.event import EventType
@ -16,12 +16,12 @@ class StrictMode(Component):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -73,7 +73,7 @@ class BaseComponent(Base, ABC):
children: list[BaseComponent] = []
# The library that the component is based on.
library: Optional[str] = None
library: str | None = None
# List here the non-react dependency needed by `library`
lib_dependencies: list[str] = []
@ -82,7 +82,7 @@ class BaseComponent(Base, ABC):
transpile_packages: list[str] = []
# The tag to use when rendering the component.
tag: Optional[str] = None
tag: str | None = None
@abstractmethod
def render(self) -> dict:
@ -172,7 +172,7 @@ def evaluate_style_namespaces(style: ComponentStyle) -> dict:
ComponentStyle = dict[
Union[str, Type[BaseComponent], Callable, ComponentNamespace], Any
]
ComponentChild = Union[types.PrimitiveType, Var, BaseComponent]
ComponentChild = types.PrimitiveType | Var | BaseComponent
ComponentChildTypes = (*types.PrimitiveTypes, Var, BaseComponent)
@ -196,13 +196,13 @@ class Component(BaseComponent, ABC):
style: Style = Style()
# A mapping from event triggers to event chains.
event_triggers: dict[str, Union[EventChain, Var]] = {}
event_triggers: dict[str, EventChain | Var] = {}
# The alias for the tag.
alias: Optional[str] = None
alias: str | None = None
# Whether the import is default or named.
is_default: Optional[bool] = False
is_default: bool | None = False
# A unique key for the component.
key: Any = None
@ -232,7 +232,7 @@ class Component(BaseComponent, ABC):
_rename_props: dict[str, str] = {}
# custom attribute
custom_attrs: dict[str, Union[Var, Any]] = {}
custom_attrs: dict[str, Var | Any] = {}
# When to memoize this component and its children.
_memoization_mode: MemoizationMode = MemoizationMode()
@ -775,7 +775,7 @@ class Component(BaseComponent, ABC):
return component_style
def _add_style_recursive(
self, style: ComponentStyle, theme: Optional[Component] = None
self, style: ComponentStyle, theme: Component | None = None
) -> Component:
"""Add additional style to the component and its children.

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.el.elements.typography import Div
from reflex.event import EventType
@ -17,217 +17,190 @@ class AutoScroll(Div):
def create( # type: ignore
cls,
*children,
access_key: Optional[Union[Var[str], str]] = None,
auto_capitalize: Optional[
Union[
Literal["characters", "none", "off", "on", "sentences", "words"],
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
access_key: Var[str] | str | None = None,
auto_capitalize: Literal[
"characters", "none", "off", "on", "sentences", "words"
]
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
| None = None,
content_editable: Literal["inherit", "plaintext-only", False, True]
| Var[Literal["inherit", "plaintext-only", False, True]]
| None = None,
context_menu: Var[str] | str | None = None,
dir: Var[str] | str | None = None,
draggable: Var[bool] | bool | None = None,
enter_key_hint: Literal[
"done", "enter", "go", "next", "previous", "search", "send"
]
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
| None = None,
hidden: Var[bool] | bool | None = None,
input_mode: Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
| Var[
Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
] = None,
content_editable: Optional[
Union[
Literal["inherit", "plaintext-only", False, True],
Var[Literal["inherit", "plaintext-only", False, True]],
]
| None = None,
item_prop: Var[str] | str | None = None,
lang: Var[str] | str | None = None,
role: Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
| Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
] = None,
context_menu: Optional[Union[Var[str], str]] = None,
dir: Optional[Union[Var[str], str]] = None,
draggable: Optional[Union[Var[bool], bool]] = None,
enter_key_hint: Optional[
Union[
Literal["done", "enter", "go", "next", "previous", "search", "send"],
Var[
Literal["done", "enter", "go", "next", "previous", "search", "send"]
],
]
] = None,
hidden: Optional[Union[Var[bool], bool]] = None,
input_mode: Optional[
Union[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
],
Var[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
]
],
]
] = None,
item_prop: Optional[Union[Var[str], str]] = None,
lang: Optional[Union[Var[str], str]] = None,
role: Optional[
Union[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
],
Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
],
]
] = None,
slot: Optional[Union[Var[str], str]] = None,
spell_check: Optional[Union[Var[bool], bool]] = None,
tab_index: Optional[Union[Var[int], int]] = None,
title: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
slot: Var[str] | str | None = None,
spell_check: Var[bool] | bool | None = None,
tab_index: Var[int] | int | None = None,
title: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -2,8 +2,6 @@
from __future__ import annotations
from typing import Optional
from reflex import constants
from reflex.components.component import Component
from reflex.components.core.cond import cond
@ -167,7 +165,7 @@ class ConnectionBanner(Component):
"""A connection banner component."""
@classmethod
def create(cls, comp: Optional[Component] = None) -> Component:
def create(cls, comp: Component | None = None) -> Component:
"""Create a connection banner component.
Args:
@ -197,7 +195,7 @@ class ConnectionModal(Component):
"""A connection status modal window."""
@classmethod
def create(cls, comp: Optional[Component] = None) -> Component:
def create(cls, comp: Component | None = None) -> Component:
"""Create a connection banner component.
Args:

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.component import Component
from reflex.components.el.elements.typography import Div
@ -48,47 +48,44 @@ class ConnectionToaster(Toaster):
def create( # type: ignore
cls,
*children,
theme: Optional[Union[Var[str], str]] = None,
rich_colors: Optional[Union[Var[bool], bool]] = None,
expand: Optional[Union[Var[bool], bool]] = None,
visible_toasts: Optional[Union[Var[int], int]] = None,
position: Optional[
Union[
Literal[
"bottom-center",
"bottom-left",
"bottom-right",
"top-center",
"top-left",
"top-right",
],
Var[
Literal[
"bottom-center",
"bottom-left",
"bottom-right",
"top-center",
"top-left",
"top-right",
]
],
theme: Var[str] | str | None = None,
rich_colors: Var[bool] | bool | None = None,
expand: Var[bool] | bool | None = None,
visible_toasts: Var[int] | int | None = None,
position: Literal[
"bottom-center",
"bottom-left",
"bottom-right",
"top-center",
"top-left",
"top-right",
]
| Var[
Literal[
"bottom-center",
"bottom-left",
"bottom-right",
"top-center",
"top-left",
"top-right",
]
] = None,
close_button: Optional[Union[Var[bool], bool]] = None,
offset: Optional[Union[Var[str], str]] = None,
dir: Optional[Union[Var[str], str]] = None,
hotkey: Optional[Union[Var[str], str]] = None,
invert: Optional[Union[Var[bool], bool]] = None,
toast_options: Optional[Union[ToastProps, Var[ToastProps]]] = None,
gap: Optional[Union[Var[int], int]] = None,
loading_icon: Optional[Union[Icon, Var[Icon]]] = None,
pause_when_page_is_hidden: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
close_button: Var[bool] | bool | None = None,
offset: Var[str] | str | None = None,
dir: Var[str] | str | None = None,
hotkey: Var[str] | str | None = None,
invert: Var[bool] | bool | None = None,
toast_options: ToastProps | Var[ToastProps] | None = None,
gap: Var[int] | int | None = None,
loading_icon: Icon | Var[Icon] | None = None,
pause_when_page_is_hidden: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -143,12 +140,12 @@ class ConnectionBanner(Component):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -182,12 +179,12 @@ class ConnectionModal(Component):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -221,13 +218,13 @@ class WifiOffPulse(Icon):
def create( # type: ignore
cls,
*children,
size: Optional[Union[Var[int], int]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
size: Var[int] | int | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -271,217 +268,190 @@ class ConnectionPulser(Div):
def create( # type: ignore
cls,
*children,
access_key: Optional[Union[Var[str], str]] = None,
auto_capitalize: Optional[
Union[
Literal["characters", "none", "off", "on", "sentences", "words"],
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
access_key: Var[str] | str | None = None,
auto_capitalize: Literal[
"characters", "none", "off", "on", "sentences", "words"
]
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
| None = None,
content_editable: Literal["inherit", "plaintext-only", False, True]
| Var[Literal["inherit", "plaintext-only", False, True]]
| None = None,
context_menu: Var[str] | str | None = None,
dir: Var[str] | str | None = None,
draggable: Var[bool] | bool | None = None,
enter_key_hint: Literal[
"done", "enter", "go", "next", "previous", "search", "send"
]
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
| None = None,
hidden: Var[bool] | bool | None = None,
input_mode: Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
| Var[
Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
] = None,
content_editable: Optional[
Union[
Literal["inherit", "plaintext-only", False, True],
Var[Literal["inherit", "plaintext-only", False, True]],
]
| None = None,
item_prop: Var[str] | str | None = None,
lang: Var[str] | str | None = None,
role: Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
| Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
] = None,
context_menu: Optional[Union[Var[str], str]] = None,
dir: Optional[Union[Var[str], str]] = None,
draggable: Optional[Union[Var[bool], bool]] = None,
enter_key_hint: Optional[
Union[
Literal["done", "enter", "go", "next", "previous", "search", "send"],
Var[
Literal["done", "enter", "go", "next", "previous", "search", "send"]
],
]
] = None,
hidden: Optional[Union[Var[bool], bool]] = None,
input_mode: Optional[
Union[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
],
Var[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
]
],
]
] = None,
item_prop: Optional[Union[Var[str], str]] = None,
lang: Optional[Union[Var[str], str]] = None,
role: Optional[
Union[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
],
Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
],
]
] = None,
slot: Optional[Union[Var[str], str]] = None,
spell_check: Optional[Union[Var[bool], bool]] = None,
tab_index: Optional[Union[Var[int], int]] = None,
title: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
slot: Var[str] | str | None = None,
spell_check: Var[bool] | bool | None = None,
tab_index: Var[int] | int | None = None,
title: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -537,217 +507,190 @@ class BackendDisabled(Div):
def create( # type: ignore
cls,
*children,
access_key: Optional[Union[Var[str], str]] = None,
auto_capitalize: Optional[
Union[
Literal["characters", "none", "off", "on", "sentences", "words"],
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
access_key: Var[str] | str | None = None,
auto_capitalize: Literal[
"characters", "none", "off", "on", "sentences", "words"
]
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
| None = None,
content_editable: Literal["inherit", "plaintext-only", False, True]
| Var[Literal["inherit", "plaintext-only", False, True]]
| None = None,
context_menu: Var[str] | str | None = None,
dir: Var[str] | str | None = None,
draggable: Var[bool] | bool | None = None,
enter_key_hint: Literal[
"done", "enter", "go", "next", "previous", "search", "send"
]
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
| None = None,
hidden: Var[bool] | bool | None = None,
input_mode: Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
| Var[
Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
] = None,
content_editable: Optional[
Union[
Literal["inherit", "plaintext-only", False, True],
Var[Literal["inherit", "plaintext-only", False, True]],
]
| None = None,
item_prop: Var[str] | str | None = None,
lang: Var[str] | str | None = None,
role: Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
| Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
] = None,
context_menu: Optional[Union[Var[str], str]] = None,
dir: Optional[Union[Var[str], str]] = None,
draggable: Optional[Union[Var[bool], bool]] = None,
enter_key_hint: Optional[
Union[
Literal["done", "enter", "go", "next", "previous", "search", "send"],
Var[
Literal["done", "enter", "go", "next", "previous", "search", "send"]
],
]
] = None,
hidden: Optional[Union[Var[bool], bool]] = None,
input_mode: Optional[
Union[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
],
Var[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
]
],
]
] = None,
item_prop: Optional[Union[Var[str], str]] = None,
lang: Optional[Union[Var[str], str]] = None,
role: Optional[
Union[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
],
Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
],
]
] = None,
slot: Optional[Union[Var[str], str]] = None,
spell_check: Optional[Union[Var[bool], bool]] = None,
tab_index: Optional[Union[Var[int], int]] = None,
title: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
slot: Var[str] | str | None = None,
spell_check: Var[bool] | bool | None = None,
tab_index: Var[int] | int | None = None,
title: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Optional, Union, overload
from typing import Any, Optional, overload
from reflex.components.component import Component
from reflex.event import EventType
@ -20,12 +20,12 @@ class ClientSideRouting(Component):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -68,13 +68,13 @@ class Default404Page(Component):
def create( # type: ignore
cls,
*children,
status_code: Optional[Union[Var[int], int]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
status_code: Var[int] | int | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -2,8 +2,6 @@
from __future__ import annotations
from typing import Union
from reflex.components.base.fragment import Fragment
from reflex.components.tags.tag import Tag
from reflex.constants.compiler import Hooks
@ -24,7 +22,7 @@ class Clipboard(Fragment):
on_paste: EventHandler[passthrough_event_spec(list[tuple[str, str]])]
# Save the original event actions for the on_paste event.
on_paste_event_actions: Var[dict[str, Union[bool, int]]]
on_paste_event_actions: Var[dict[str, bool | int]]
@classmethod
def create(cls, *children, **props):

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Optional, Union, overload
from typing import Any, Optional, overload
from reflex.components.base.fragment import Fragment
from reflex.event import EventType
@ -17,16 +17,16 @@ class Clipboard(Fragment):
def create( # type: ignore
cls,
*children,
targets: Optional[Union[Var[list[str]], list[str]]] = None,
on_paste_event_actions: Optional[
Union[Var[dict[str, Union[bool, int]]], dict[str, Union[bool, int]]]
] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
targets: Var[list[str]] | list[str] | None = None,
on_paste_event_actions: Var[dict[str, bool | int]]
| dict[str, bool | int]
| None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -40,9 +40,7 @@ class Clipboard(Fragment):
on_mouse_out: Optional[EventType[()]] = None,
on_mouse_over: Optional[EventType[()]] = None,
on_mouse_up: Optional[EventType[()]] = None,
on_paste: Optional[
Union[EventType[()], EventType[list[tuple[str, str]]]]
] = None,
on_paste: Optional[EventType[()] | EventType[list[tuple[str, str]]]] = None,
on_scroll: Optional[EventType[()]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,

View File

@ -2,7 +2,7 @@
from __future__ import annotations
from typing import Any, Dict, Optional, overload
from typing import Any, Dict, overload
from reflex.components.base.fragment import Fragment
from reflex.components.component import BaseComponent, Component, MemoizationLeaf
@ -35,7 +35,7 @@ class Cond(MemoizationLeaf):
cls,
cond: Var,
comp1: BaseComponent,
comp2: Optional[BaseComponent] = None,
comp2: BaseComponent | None = None,
) -> Component:
"""Create a conditional component.

View File

@ -2,7 +2,7 @@
from __future__ import annotations
from typing import Any, Type, Union
from typing import Any, Type
from reflex.components.component import Component
from reflex.constants import EventTriggers
@ -37,7 +37,7 @@ class DebounceInput(Component):
force_notify_on_blur: Var[bool]
# If provided, create a fully-controlled input
value: Var[Union[str, int, float]]
value: Var[str | int | float]
# The ref to attach to the created input
input_ref: Var[str]

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Optional, Type, Union, overload
from typing import Any, Optional, Type, overload
from reflex.components.component import Component
from reflex.event import EventType
@ -18,19 +18,19 @@ class DebounceInput(Component):
def create( # type: ignore
cls,
*children,
min_length: Optional[Union[Var[int], int]] = None,
debounce_timeout: Optional[Union[Var[int], int]] = None,
force_notify_by_enter: Optional[Union[Var[bool], bool]] = None,
force_notify_on_blur: Optional[Union[Var[bool], bool]] = None,
value: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
input_ref: Optional[Union[Var[str], str]] = None,
element: Optional[Union[Type[Component], Var[Type[Component]]]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
min_length: Var[int] | int | None = None,
debounce_timeout: Var[int] | int | None = None,
force_notify_by_enter: Var[bool] | bool | None = None,
force_notify_on_blur: Var[bool] | bool | None = None,
value: Var[float | int | str] | float | int | str | None = None,
input_ref: Var[str] | str | None = None,
element: Type[Component] | Var[Type[Component]] | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_change: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.el.elements.typography import Div
from reflex.event import EventType
@ -16,220 +16,191 @@ class Html(Div):
def create( # type: ignore
cls,
*children,
dangerouslySetInnerHTML: Optional[
Union[Var[dict[str, str]], dict[str, str]]
] = None,
access_key: Optional[Union[Var[str], str]] = None,
auto_capitalize: Optional[
Union[
Literal["characters", "none", "off", "on", "sentences", "words"],
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
dangerouslySetInnerHTML: Var[dict[str, str]] | dict[str, str] | None = None,
access_key: Var[str] | str | None = None,
auto_capitalize: Literal[
"characters", "none", "off", "on", "sentences", "words"
]
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
| None = None,
content_editable: Literal["inherit", "plaintext-only", False, True]
| Var[Literal["inherit", "plaintext-only", False, True]]
| None = None,
context_menu: Var[str] | str | None = None,
dir: Var[str] | str | None = None,
draggable: Var[bool] | bool | None = None,
enter_key_hint: Literal[
"done", "enter", "go", "next", "previous", "search", "send"
]
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
| None = None,
hidden: Var[bool] | bool | None = None,
input_mode: Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
| Var[
Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
] = None,
content_editable: Optional[
Union[
Literal["inherit", "plaintext-only", False, True],
Var[Literal["inherit", "plaintext-only", False, True]],
]
| None = None,
item_prop: Var[str] | str | None = None,
lang: Var[str] | str | None = None,
role: Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
| Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
] = None,
context_menu: Optional[Union[Var[str], str]] = None,
dir: Optional[Union[Var[str], str]] = None,
draggable: Optional[Union[Var[bool], bool]] = None,
enter_key_hint: Optional[
Union[
Literal["done", "enter", "go", "next", "previous", "search", "send"],
Var[
Literal["done", "enter", "go", "next", "previous", "search", "send"]
],
]
] = None,
hidden: Optional[Union[Var[bool], bool]] = None,
input_mode: Optional[
Union[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
],
Var[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
]
],
]
] = None,
item_prop: Optional[Union[Var[str], str]] = None,
lang: Optional[Union[Var[str], str]] = None,
role: Optional[
Union[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
],
Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
],
]
] = None,
slot: Optional[Union[Var[str], str]] = None,
spell_check: Optional[Union[Var[bool], bool]] = None,
tab_index: Optional[Union[Var[int], int]] = None,
title: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
slot: Var[str] | str | None = None,
spell_check: Var[bool] | bool | None = None,
tab_index: Var[int] | int | None = None,
title: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -1,7 +1,7 @@
"""rx.match."""
import textwrap
from typing import Any, Dict, List, Optional, Union
from typing import Any, Dict, List
from reflex.components.base import Fragment
from reflex.components.component import BaseComponent, Component, MemoizationLeaf
@ -27,7 +27,7 @@ class Match(MemoizationLeaf):
default: Any
@classmethod
def create(cls, cond: Any, *cases) -> Union[Component, Var]:
def create(cls, cond: Any, *cases) -> Component | Var:
"""Create a Match Component.
Args:
@ -75,9 +75,7 @@ class Match(MemoizationLeaf):
return match_cond_var
@classmethod
def _process_cases(
cls, cases: List
) -> tuple[List, Optional[Union[Var, BaseComponent]]]:
def _process_cases(cls, cases: List) -> tuple[List, Var | BaseComponent | None]:
"""Process the list of match cases and the catchall default case.
Args:
@ -196,8 +194,8 @@ class Match(MemoizationLeaf):
cls,
match_cond_var: Var,
match_cases: list[list[Var]],
default: Optional[Union[Var, BaseComponent]],
) -> Union[Component, Var]:
default: Var | BaseComponent | None,
) -> Component | Var:
"""Create and return the match condition var or component.
Args:

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from pathlib import Path
from typing import Any, ClassVar, List, Optional, Union, overload
from typing import Any, ClassVar, List, Optional, overload
from reflex.components.base.fragment import Fragment
from reflex.components.component import Component, ComponentNamespace, MemoizationLeaf
@ -43,12 +43,12 @@ class UploadFilesProvider(Component):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -89,17 +89,17 @@ class GhostUpload(Fragment):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = 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[Union[EventType[()], EventType[Any]]] = None,
on_drop: Optional[EventType[()] | EventType[Any]] = None,
on_focus: Optional[EventType[()]] = None,
on_mount: Optional[EventType[()]] = None,
on_mouse_down: Optional[EventType[()]] = None,
@ -139,26 +139,26 @@ class Upload(MemoizationLeaf):
def create( # type: ignore
cls,
*children,
accept: Optional[Union[Var[Optional[dict[str, List]]], dict[str, List]]] = None,
disabled: Optional[Union[Var[bool], bool]] = None,
max_files: Optional[Union[Var[int], int]] = None,
max_size: Optional[Union[Var[int], int]] = None,
min_size: Optional[Union[Var[int], int]] = None,
multiple: Optional[Union[Var[bool], bool]] = None,
no_click: Optional[Union[Var[bool], bool]] = None,
no_drag: Optional[Union[Var[bool], bool]] = None,
no_keyboard: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
accept: Var[Optional[dict[str, List]]] | dict[str, List] | None = None,
disabled: Var[bool] | bool | None = None,
max_files: Var[int] | int | None = None,
max_size: Var[int] | int | None = None,
min_size: Var[int] | int | None = None,
multiple: Var[bool] | bool | None = None,
no_click: Var[bool] | bool | None = None,
no_drag: Var[bool] | bool | None = None,
no_keyboard: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = 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[Union[EventType[()], EventType[Any]]] = None,
on_drop: Optional[EventType[()] | EventType[Any]] = None,
on_focus: Optional[EventType[()]] = None,
on_mount: Optional[EventType[()]] = None,
on_mouse_down: Optional[EventType[()]] = None,
@ -205,26 +205,26 @@ class StyledUpload(Upload):
def create( # type: ignore
cls,
*children,
accept: Optional[Union[Var[Optional[dict[str, List]]], dict[str, List]]] = None,
disabled: Optional[Union[Var[bool], bool]] = None,
max_files: Optional[Union[Var[int], int]] = None,
max_size: Optional[Union[Var[int], int]] = None,
min_size: Optional[Union[Var[int], int]] = None,
multiple: Optional[Union[Var[bool], bool]] = None,
no_click: Optional[Union[Var[bool], bool]] = None,
no_drag: Optional[Union[Var[bool], bool]] = None,
no_keyboard: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
accept: Var[Optional[dict[str, List]]] | dict[str, List] | None = None,
disabled: Var[bool] | bool | None = None,
max_files: Var[int] | int | None = None,
max_size: Var[int] | int | None = None,
min_size: Var[int] | int | None = None,
multiple: Var[bool] | bool | None = None,
no_click: Var[bool] | bool | None = None,
no_drag: Var[bool] | bool | None = None,
no_keyboard: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = 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[Union[EventType[()], EventType[Any]]] = None,
on_drop: Optional[EventType[()] | EventType[Any]] = None,
on_focus: Optional[EventType[()]] = None,
on_mount: Optional[EventType[()]] = None,
on_mouse_down: Optional[EventType[()]] = None,
@ -271,26 +271,26 @@ class UploadNamespace(ComponentNamespace):
@staticmethod
def __call__(
*children,
accept: Optional[Union[Var[Optional[dict[str, List]]], dict[str, List]]] = None,
disabled: Optional[Union[Var[bool], bool]] = None,
max_files: Optional[Union[Var[int], int]] = None,
max_size: Optional[Union[Var[int], int]] = None,
min_size: Optional[Union[Var[int], int]] = None,
multiple: Optional[Union[Var[bool], bool]] = None,
no_click: Optional[Union[Var[bool], bool]] = None,
no_drag: Optional[Union[Var[bool], bool]] = None,
no_keyboard: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
accept: Var[Optional[dict[str, List]]] | dict[str, List] | None = None,
disabled: Var[bool] | bool | None = None,
max_files: Var[int] | int | None = None,
max_size: Var[int] | int | None = None,
min_size: Var[int] | int | None = None,
multiple: Var[bool] | bool | None = None,
no_click: Var[bool] | bool | None = None,
no_drag: Var[bool] | bool | None = None,
no_keyboard: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = 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[Union[EventType[()], EventType[Any]]] = None,
on_drop: Optional[EventType[()] | EventType[Any]] = None,
on_focus: Optional[EventType[()]] = None,
on_mount: Optional[EventType[()]] = None,
on_mouse_down: Optional[EventType[()]] = None,

View File

@ -4,7 +4,7 @@ from __future__ import annotations
import dataclasses
import typing
from typing import ClassVar, Literal, Optional, Union
from typing import ClassVar, Literal
from reflex.components.component import Component, ComponentNamespace
from reflex.components.core.cond import color_mode_cond
@ -390,7 +390,7 @@ class CodeBlock(Component, MarkdownComponentMap):
alias = "SyntaxHighlighter"
# The theme to use ("light" or "dark").
theme: Var[Union[Theme, str]] = Theme.one_light
theme: Var[Theme | str] = Theme.one_light
# The language to use.
language: Var[LiteralCodeLanguage] = Var.create("python")
@ -408,16 +408,16 @@ class CodeBlock(Component, MarkdownComponentMap):
wrap_long_lines: Var[bool]
# A custom style for the code block.
custom_style: dict[str, Union[str, Var, Color]] = {}
custom_style: dict[str, str | Var | Color] = {}
# Props passed down to the code tag.
code_tag_props: Var[dict[str, str]]
# Whether a copy button should appear.
can_copy: Optional[bool] = False
can_copy: bool | None = False
# A custom copy button to override the default one.
copy_button: Optional[Union[bool, Component]] = None
copy_button: bool | Component | None = None
@classmethod
def create(

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@
from __future__ import annotations
from enum import Enum
from typing import Any, Dict, Literal, Optional, TypedDict, Union
from typing import Any, Dict, Literal, Optional, TypedDict
from reflex.base import Base
from reflex.components.component import Component, NoSSRComponent
@ -52,38 +52,38 @@ class GridColumnIcons(Enum):
class DataEditorTheme(Base):
"""The theme for the DataEditor component."""
accent_color: Optional[str] = None
accent_fg: Optional[str] = None
accent_light: Optional[str] = None
base_font_style: Optional[str] = None
bg_bubble: Optional[str] = None
bg_bubble_selected: Optional[str] = None
bg_cell: Optional[str] = None
bg_cell_medium: Optional[str] = None
bg_header: Optional[str] = None
bg_header_has_focus: Optional[str] = None
bg_header_hovered: Optional[str] = None
bg_icon_header: Optional[str] = None
bg_search_result: Optional[str] = None
border_color: Optional[str] = None
cell_horizontal_padding: Optional[int] = None
cell_vertical_padding: Optional[int] = None
drilldown_border: Optional[str] = None
editor_font_size: Optional[str] = None
fg_icon_header: Optional[str] = None
font_family: Optional[str] = None
header_bottom_border_color: Optional[str] = None
header_font_style: Optional[str] = None
horizontal_border_color: Optional[str] = None
line_height: Optional[int] = None
link_color: Optional[str] = None
text_bubble: Optional[str] = None
text_dark: Optional[str] = None
text_group_header: Optional[str] = None
text_header: Optional[str] = None
text_header_selected: Optional[str] = None
text_light: Optional[str] = None
text_medium: Optional[str] = None
accent_color: str | None = None
accent_fg: str | None = None
accent_light: str | None = None
base_font_style: str | None = None
bg_bubble: str | None = None
bg_bubble_selected: str | None = None
bg_cell: str | None = None
bg_cell_medium: str | None = None
bg_header: str | None = None
bg_header_has_focus: str | None = None
bg_header_hovered: str | None = None
bg_icon_header: str | None = None
bg_search_result: str | None = None
border_color: str | None = None
cell_horizontal_padding: int | None = None
cell_vertical_padding: int | None = None
drilldown_border: str | None = None
editor_font_size: str | None = None
fg_icon_header: str | None = None
font_family: str | None = None
header_bottom_border_color: str | None = None
header_font_style: str | None = None
horizontal_border_color: str | None = None
line_height: int | None = None
link_color: str | None = None
text_bubble: str | None = None
text_dark: str | None = None
text_group_header: str | None = None
text_header: str | None = None
text_header_selected: str | None = None
text_light: str | None = None
text_medium: str | None = None
class Bounds(TypedDict):
@ -121,7 +121,7 @@ class GridSelectionCurrent(TypedDict):
class GridSelection(TypedDict):
"""The grid selection."""
current: Optional[GridSelectionCurrent]
current: GridSelectionCurrent | None
columns: CompatSelection
rows: CompatSelection
@ -155,7 +155,7 @@ class GridColumn(TypedDict):
"""The grid column."""
title: str
group: Optional[str]
group: str | None
class DataEditor(NoSSRComponent):
@ -257,7 +257,7 @@ class DataEditor(NoSSRComponent):
scroll_offset_y: Var[int]
# global theme
theme: Var[Union[DataEditorTheme, Dict]]
theme: Var[DataEditorTheme | Dict]
# Fired when a cell is activated.
on_cell_activated: EventHandler[passthrough_event_spec(tuple[int, int])]
@ -301,7 +301,7 @@ class DataEditor(NoSSRComponent):
# Fired when editing is finished.
on_finished_editing: EventHandler[
passthrough_event_spec(Union[GridCell, None], tuple[int, int])
passthrough_event_spec(GridCell | None, tuple[int, int])
]
# Fired when a row is appended.

View File

@ -43,38 +43,38 @@ class GridColumnIcons(Enum):
VideoUri = "video_uri"
class DataEditorTheme(Base):
accent_color: Optional[str]
accent_fg: Optional[str]
accent_light: Optional[str]
base_font_style: Optional[str]
bg_bubble: Optional[str]
bg_bubble_selected: Optional[str]
bg_cell: Optional[str]
bg_cell_medium: Optional[str]
bg_header: Optional[str]
bg_header_has_focus: Optional[str]
bg_header_hovered: Optional[str]
bg_icon_header: Optional[str]
bg_search_result: Optional[str]
border_color: Optional[str]
cell_horizontal_padding: Optional[int]
cell_vertical_padding: Optional[int]
drilldown_border: Optional[str]
editor_font_size: Optional[str]
fg_icon_header: Optional[str]
font_family: Optional[str]
header_bottom_border_color: Optional[str]
header_font_style: Optional[str]
horizontal_border_color: Optional[str]
line_height: Optional[int]
link_color: Optional[str]
text_bubble: Optional[str]
text_dark: Optional[str]
text_group_header: Optional[str]
text_header: Optional[str]
text_header_selected: Optional[str]
text_light: Optional[str]
text_medium: Optional[str]
accent_color: str | None
accent_fg: str | None
accent_light: str | None
base_font_style: str | None
bg_bubble: str | None
bg_bubble_selected: str | None
bg_cell: str | None
bg_cell_medium: str | None
bg_header: str | None
bg_header_has_focus: str | None
bg_header_hovered: str | None
bg_icon_header: str | None
bg_search_result: str | None
border_color: str | None
cell_horizontal_padding: int | None
cell_vertical_padding: int | None
drilldown_border: str | None
editor_font_size: str | None
fg_icon_header: str | None
font_family: str | None
header_bottom_border_color: str | None
header_font_style: str | None
horizontal_border_color: str | None
line_height: int | None
link_color: str | None
text_bubble: str | None
text_dark: str | None
text_group_header: str | None
text_header: str | None
text_header_selected: str | None
text_light: str | None
text_medium: str | None
class Bounds(TypedDict):
x: int
@ -97,7 +97,7 @@ class GridSelectionCurrent(TypedDict):
rangeStack: list[Rectangle]
class GridSelection(TypedDict):
current: Optional[GridSelectionCurrent]
current: GridSelectionCurrent | None
columns: CompatSelection
rows: CompatSelection
@ -122,7 +122,7 @@ class GridCell(TypedDict):
class GridColumn(TypedDict):
title: str
group: Optional[str]
group: str | None
class DataEditor(NoSSRComponent):
def add_imports(self) -> ImportDict: ...
@ -132,116 +132,88 @@ class DataEditor(NoSSRComponent):
def create( # type: ignore
cls,
*children,
rows: Optional[Union[Var[int], int]] = None,
columns: Optional[
Union[Var[list[dict[str, Any]]], list[dict[str, Any]]]
] = None,
data: Optional[Union[Var[list[list[Any]]], list[list[Any]]]] = None,
get_cell_content: Optional[Union[Var[str], str]] = None,
get_cells_for_selection: Optional[Union[Var[bool], bool]] = None,
on_paste: Optional[Union[Var[bool], bool]] = None,
draw_focus_ring: Optional[Union[Var[bool], bool]] = None,
fixed_shadow_x: Optional[Union[Var[bool], bool]] = None,
fixed_shadow_y: Optional[Union[Var[bool], bool]] = None,
freeze_columns: Optional[Union[Var[int], int]] = None,
group_header_height: Optional[Union[Var[int], int]] = None,
header_height: Optional[Union[Var[int], int]] = None,
max_column_auto_width: Optional[Union[Var[int], int]] = None,
max_column_width: Optional[Union[Var[int], int]] = None,
min_column_width: Optional[Union[Var[int], int]] = None,
row_height: Optional[Union[Var[int], int]] = None,
row_markers: Optional[
Union[
Literal["both", "checkbox", "clickable-number", "none", "number"],
Var[Literal["both", "checkbox", "clickable-number", "none", "number"]],
]
] = None,
row_marker_start_index: Optional[Union[Var[int], int]] = None,
row_marker_width: Optional[Union[Var[int], int]] = None,
smooth_scroll_x: Optional[Union[Var[bool], bool]] = None,
smooth_scroll_y: Optional[Union[Var[bool], bool]] = None,
vertical_border: Optional[Union[Var[bool], bool]] = None,
column_select: Optional[
Union[
Literal["multi", "none", "single"],
Var[Literal["multi", "none", "single"]],
]
] = None,
prevent_diagonal_scrolling: Optional[Union[Var[bool], bool]] = None,
overscroll_x: Optional[Union[Var[int], int]] = None,
overscroll_y: Optional[Union[Var[int], int]] = None,
scroll_offset_x: Optional[Union[Var[int], int]] = None,
scroll_offset_y: Optional[Union[Var[int], int]] = None,
theme: Optional[
Union[DataEditorTheme, Dict, Var[Union[DataEditorTheme, Dict]]]
] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
rows: Var[int] | int | None = None,
columns: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
data: Var[list[list[Any]]] | list[list[Any]] | None = None,
get_cell_content: Var[str] | str | None = None,
get_cells_for_selection: Var[bool] | bool | None = None,
on_paste: Var[bool] | bool | None = None,
draw_focus_ring: Var[bool] | bool | None = None,
fixed_shadow_x: Var[bool] | bool | None = None,
fixed_shadow_y: Var[bool] | bool | None = None,
freeze_columns: Var[int] | int | None = None,
group_header_height: Var[int] | int | None = None,
header_height: Var[int] | int | None = None,
max_column_auto_width: Var[int] | int | None = None,
max_column_width: Var[int] | int | None = None,
min_column_width: Var[int] | int | None = None,
row_height: Var[int] | int | None = None,
row_markers: Literal["both", "checkbox", "clickable-number", "none", "number"]
| Var[Literal["both", "checkbox", "clickable-number", "none", "number"]]
| None = None,
row_marker_start_index: Var[int] | int | None = None,
row_marker_width: Var[int] | int | None = None,
smooth_scroll_x: Var[bool] | bool | None = None,
smooth_scroll_y: Var[bool] | bool | None = None,
vertical_border: Var[bool] | bool | None = None,
column_select: Literal["multi", "none", "single"]
| Var[Literal["multi", "none", "single"]]
| None = None,
prevent_diagonal_scrolling: Var[bool] | bool | None = None,
overscroll_x: Var[int] | int | None = None,
overscroll_y: Var[int] | int | None = None,
scroll_offset_x: Var[int] | int | None = None,
scroll_offset_y: Var[int] | int | None = None,
theme: DataEditorTheme | Dict | Var[DataEditorTheme | Dict] | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_cell_activated: Optional[
Union[EventType[()], EventType[tuple[int, int]]]
] = None,
on_cell_clicked: Optional[
Union[EventType[()], EventType[tuple[int, int]]]
] = None,
on_cell_activated: Optional[EventType[()] | EventType[tuple[int, int]]] = None,
on_cell_clicked: Optional[EventType[()] | EventType[tuple[int, int]]] = None,
on_cell_context_menu: Optional[
Union[EventType[()], EventType[tuple[int, int]]]
EventType[()] | EventType[tuple[int, int]]
] = None,
on_cell_edited: Optional[
Union[
EventType[()],
EventType[tuple[int, int]],
EventType[tuple[int, int], GridCell],
]
EventType[()]
| EventType[tuple[int, int]]
| EventType[tuple[int, int], GridCell]
] = None,
on_click: Optional[EventType[()]] = None,
on_column_resize: Optional[
Union[EventType[()], EventType[GridColumn], EventType[GridColumn, int]]
EventType[()] | EventType[GridColumn] | EventType[GridColumn, int]
] = None,
on_context_menu: Optional[EventType[()]] = None,
on_delete: Optional[Union[EventType[()], EventType[GridSelection]]] = None,
on_delete: Optional[EventType[()] | EventType[GridSelection]] = None,
on_double_click: Optional[EventType[()]] = None,
on_finished_editing: Optional[
Union[
EventType[()],
EventType[Union[GridCell, None]],
EventType[Union[GridCell, None], tuple[int, int]],
]
EventType[()]
| EventType[Union[GridCell, None]]
| EventType[Union[GridCell, None], tuple[int, int]]
] = None,
on_focus: Optional[EventType[()]] = None,
on_group_header_clicked: Optional[
Union[
EventType[()],
EventType[tuple[int, int]],
EventType[tuple[int, int], GridCell],
]
EventType[()]
| EventType[tuple[int, int]]
| EventType[tuple[int, int], GridCell]
] = None,
on_group_header_context_menu: Optional[
Union[
EventType[()],
EventType[int],
EventType[int, GroupHeaderClickedEventArgs],
]
EventType[()] | EventType[int] | EventType[int, GroupHeaderClickedEventArgs]
] = None,
on_group_header_renamed: Optional[
Union[EventType[()], EventType[str], EventType[str, str]]
] = None,
on_header_clicked: Optional[
Union[EventType[()], EventType[tuple[int, int]]]
EventType[()] | EventType[str] | EventType[str, str]
] = None,
on_header_clicked: Optional[EventType[()] | EventType[tuple[int, int]]] = None,
on_header_context_menu: Optional[
Union[EventType[()], EventType[tuple[int, int]]]
EventType[()] | EventType[tuple[int, int]]
] = None,
on_header_menu_click: Optional[
Union[EventType[()], EventType[int], EventType[int, Rectangle]]
] = None,
on_item_hovered: Optional[
Union[EventType[()], EventType[tuple[int, int]]]
EventType[()] | EventType[int] | EventType[int, Rectangle]
] = None,
on_item_hovered: Optional[EventType[()] | EventType[tuple[int, int]]] = None,
on_mount: Optional[EventType[()]] = None,
on_mouse_down: Optional[EventType[()]] = None,
on_mouse_enter: Optional[EventType[()]] = None,

View File

@ -4,7 +4,7 @@ from __future__ import annotations
import re
from collections import defaultdict
from typing import Any, Literal, Optional, Union
from typing import Any, Literal, Union
from reflex.base import Base
from reflex.components.component import Component, ComponentNamespace
@ -403,8 +403,8 @@ class Position(NoExtrasAllowedProps):
class ShikiDecorations(NoExtrasAllowedProps):
"""Decorations for the code block."""
start: Union[int, Position]
end: Union[int, Position]
start: int | Position
end: int | Position
tag_name: str = "span"
properties: dict[str, Any] = {}
always_wrap: bool = False
@ -415,7 +415,7 @@ class ShikiBaseTransformers(Base):
library: str
fns: list[FunctionStringVar]
style: Optional[Style]
style: Style | None
class ShikiJsTransformer(ShikiBaseTransformers):
@ -425,7 +425,7 @@ class ShikiJsTransformer(ShikiBaseTransformers):
fns: list[FunctionStringVar] = [
FunctionStringVar.create(fn) for fn in SHIKIJS_TRANSFORMER_FNS
]
style: Optional[Style] = Style(
style: Style | None = Style(
{
"code": {"line-height": "1.7", "font-size": "0.875em", "display": "grid"},
# Diffs
@ -717,7 +717,7 @@ class ShikiHighLevelCodeBlock(ShikiCodeBlock):
can_copy: bool = False
# copy_button: A custom copy button to override the default one.
copy_button: Optional[Union[Component, bool]] = None
copy_button: Component | bool | None = None
@classmethod
def create(

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Optional, Union, overload
from typing import Any, Optional, overload
from reflex.components.component import Component
from reflex.event import EventType
@ -16,12 +16,12 @@ class Element(Component):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.el.element import Element
from reflex.event import EventType
@ -94,217 +94,190 @@ class BaseHTML(Element):
def create( # type: ignore
cls,
*children,
access_key: Optional[Union[Var[str], str]] = None,
auto_capitalize: Optional[
Union[
Literal["characters", "none", "off", "on", "sentences", "words"],
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
access_key: Var[str] | str | None = None,
auto_capitalize: Literal[
"characters", "none", "off", "on", "sentences", "words"
]
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
| None = None,
content_editable: Literal["inherit", "plaintext-only", False, True]
| Var[Literal["inherit", "plaintext-only", False, True]]
| None = None,
context_menu: Var[str] | str | None = None,
dir: Var[str] | str | None = None,
draggable: Var[bool] | bool | None = None,
enter_key_hint: Literal[
"done", "enter", "go", "next", "previous", "search", "send"
]
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
| None = None,
hidden: Var[bool] | bool | None = None,
input_mode: Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
| Var[
Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
] = None,
content_editable: Optional[
Union[
Literal["inherit", "plaintext-only", False, True],
Var[Literal["inherit", "plaintext-only", False, True]],
]
| None = None,
item_prop: Var[str] | str | None = None,
lang: Var[str] | str | None = None,
role: Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
| Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
] = None,
context_menu: Optional[Union[Var[str], str]] = None,
dir: Optional[Union[Var[str], str]] = None,
draggable: Optional[Union[Var[bool], bool]] = None,
enter_key_hint: Optional[
Union[
Literal["done", "enter", "go", "next", "previous", "search", "send"],
Var[
Literal["done", "enter", "go", "next", "previous", "search", "send"]
],
]
] = None,
hidden: Optional[Union[Var[bool], bool]] = None,
input_mode: Optional[
Union[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
],
Var[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
]
],
]
] = None,
item_prop: Optional[Union[Var[str], str]] = None,
lang: Optional[Union[Var[str], str]] = None,
role: Optional[
Union[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
],
Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
],
]
] = None,
slot: Optional[Union[Var[str], str]] = None,
spell_check: Optional[Union[Var[bool], bool]] = None,
tab_index: Optional[Union[Var[int], int]] = None,
title: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
slot: Var[str] | str | None = None,
spell_check: Var[bool] | bool | None = None,
tab_index: Var[int] | int | None = None,
title: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
from __future__ import annotations
from hashlib import md5
from typing import Any, Iterator, Literal, Union
from typing import Any, Iterator, Literal
from jinja2 import Environment
@ -80,7 +80,7 @@ class Button(BaseHTML):
type: Var[ButtonType]
# Value of the button, used when sending form data
value: Var[Union[str, int, float]]
value: Var[str | int | float]
class Datalist(BaseHTML):
@ -321,7 +321,7 @@ class Input(BaseHTML):
default_checked: Var[bool]
# The initial value for a text field
default_value: Var[Union[str, int, float]]
default_value: Var[str | int | float]
# Disables the input
disabled: Var[bool]
@ -348,16 +348,16 @@ class Input(BaseHTML):
list: Var[str]
# Specifies the maximum value for the input
max: Var[Union[str, int, float]]
max: Var[str | int | float]
# Specifies the maximum number of characters allowed in the input
max_length: Var[Union[int, float]]
max_length: Var[int | float]
# Specifies the minimum number of characters required in the input
min_length: Var[Union[int, float]]
min_length: Var[int | float]
# Specifies the minimum value for the input
min: Var[Union[str, int, float]]
min: Var[str | int | float]
# Indicates whether multiple values can be entered in an input of the type email or file
multiple: Var[bool]
@ -378,19 +378,19 @@ class Input(BaseHTML):
required: Var[bool]
# Specifies the visible width of a text control
size: Var[Union[int, float]]
size: Var[int | float]
# URL for image inputs
src: Var[str]
# Specifies the legal number intervals for an input
step: Var[Union[str, int, float]]
step: Var[str | int | float]
# Specifies the type of input
type: Var[HTMLInputTypeAttribute]
# Value of the input
value: Var[Union[str, int, float]]
value: Var[str | int | float]
# Fired when the input value changes
on_change: EventHandler[input_event]
@ -462,22 +462,22 @@ class Meter(BaseHTML):
form: Var[str]
# High limit of range (above this is considered high value)
high: Var[Union[int, float]]
high: Var[int | float]
# Low limit of range (below this is considered low value)
low: Var[Union[int, float]]
low: Var[int | float]
# Maximum value of the range
max: Var[Union[int, float]]
max: Var[int | float]
# Minimum value of the range
min: Var[Union[int, float]]
min: Var[int | float]
# Optimum value in the range
optimum: Var[Union[int, float]]
optimum: Var[int | float]
# Current value of the meter
value: Var[Union[int, float]]
value: Var[int | float]
class Optgroup(BaseHTML):
@ -507,7 +507,7 @@ class Option(BaseHTML):
selected: Var[bool]
# Value to be sent as form data
value: Var[Union[str, int, float]]
value: Var[str | int | float]
class Output(BaseHTML):
@ -534,10 +534,10 @@ class Progress(BaseHTML):
form: Var[str]
# Maximum value of the progress indicator
max: Var[Union[str, int, float]]
max: Var[str | int | float]
# Current value of the progress indicator
value: Var[Union[str, int, float]]
value: Var[str | int | float]
class Select(BaseHTML):

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@ class A(BaseHTML): # Inherits common attributes from BaseMeta
tag = "a"
# Specifies that the target (the file specified in the href attribute) will be downloaded when a user clicks on the hyperlink.
download: Var[Union[str, bool]]
download: Var[str | bool]
# Specifies the URL of the page the link goes to
href: Var[str]
@ -97,7 +97,7 @@ class Data(BaseHTML):
tag = "data"
# Specifies the machine-readable translation of the data element.
value: Var[Union[str, int, float]]
value: Var[str | int | float]
class Dfn(BaseHTML):

File diff suppressed because it is too large Load Diff

View File

@ -22,7 +22,7 @@ class Area(BaseHTML):
coords: Var[str]
# Specifies that the target will be downloaded when clicked
download: Var[Union[str, bool]]
download: Var[str | bool]
# Hyperlink reference for the area
href: Var[str]
@ -291,9 +291,9 @@ class Svg(BaseHTML):
tag = "svg"
# The width of the svg.
width: Var[Union[str, int]]
width: Var[str | int]
# The height of the svg.
height: Var[Union[str, int]]
height: Var[str | int]
# The XML namespace declaration.
xmlns: Var[str]
@ -303,19 +303,19 @@ class Text(BaseHTML):
tag = "text"
# The x coordinate of the starting point of the text baseline.
x: Var[Union[str, int]]
x: Var[str | int]
# The y coordinate of the starting point of the text baseline.
y: Var[Union[str, int]]
y: Var[str | int]
# Shifts the text position horizontally from a previous text element.
dx: Var[Union[str, int]]
dx: Var[str | int]
# Shifts the text position vertically from a previous text element.
dy: Var[Union[str, int]]
dy: Var[str | int]
# Rotates orientation of each individual glyph.
rotate: Var[Union[str, int]]
rotate: Var[str | int]
# How the text is stretched or compressed to fit the width defined by the text_length attribute.
length_adjust: Var[str]
# A width that the text should be scaled to fit.
text_length: Var[Union[str, int]]
text_length: Var[str | int]
class Line(BaseHTML):
@ -323,13 +323,13 @@ class Line(BaseHTML):
tag = "line"
# The x-axis coordinate of the line starting point.
x1: Var[Union[str, int]]
x1: Var[str | int]
# The x-axis coordinate of the the line ending point.
x2: Var[Union[str, int]]
x2: Var[str | int]
# The y-axis coordinate of the line starting point.
y1: Var[Union[str, int]]
y1: Var[str | int]
# The y-axis coordinate of the the line ending point.
y2: Var[Union[str, int]]
y2: Var[str | int]
# The total path length, in user units.
path_length: Var[int]
@ -339,11 +339,11 @@ class Circle(BaseHTML):
tag = "circle"
# The x-axis coordinate of the center of the circle.
cx: Var[Union[str, int]]
cx: Var[str | int]
# The y-axis coordinate of the center of the circle.
cy: Var[Union[str, int]]
cy: Var[str | int]
# The radius of the circle.
r: Var[Union[str, int]]
r: Var[str | int]
# The total length for the circle's circumference, in user units.
path_length: Var[int]
@ -353,13 +353,13 @@ class Ellipse(BaseHTML):
tag = "ellipse"
# The x position of the center of the ellipse.
cx: Var[Union[str, int]]
cx: Var[str | int]
# The y position of the center of the ellipse.
cy: Var[Union[str, int]]
cy: Var[str | int]
# The radius of the ellipse on the x axis.
rx: Var[Union[str, int]]
rx: Var[str | int]
# The radius of the ellipse on the y axis.
ry: Var[Union[str, int]]
ry: Var[str | int]
# The total length for the ellipse's circumference, in user units.
path_length: Var[int]
@ -369,17 +369,17 @@ class Rect(BaseHTML):
tag = "rect"
# The x coordinate of the rect.
x: Var[Union[str, int]]
x: Var[str | int]
# The y coordinate of the rect.
y: Var[Union[str, int]]
y: Var[str | int]
# The width of the rect
width: Var[Union[str, int]]
width: Var[str | int]
# The height of the rect.
height: Var[Union[str, int]]
height: Var[str | int]
# The horizontal corner radius of the rect. Defaults to ry if it is specified.
rx: Var[Union[str, int]]
rx: Var[str | int]
# The vertical corner radius of the rect. Defaults to rx if it is specified.
ry: Var[Union[str, int]]
ry: Var[str | int]
# The total length of the rectangle's perimeter, in user units.
path_length: Var[int]
@ -406,25 +406,25 @@ class LinearGradient(BaseHTML):
tag = "linearGradient"
# Units for the gradient.
gradient_units: Var[Union[str, bool]]
gradient_units: Var[str | bool]
# Transform applied to the gradient.
gradient_transform: Var[Union[str, bool]]
gradient_transform: Var[str | bool]
# Method used to spread the gradient.
spread_method: Var[Union[str, bool]]
spread_method: Var[str | bool]
# X coordinate of the starting point of the gradient.
x1: Var[Union[str, int, float]]
x1: Var[str | int | float]
# X coordinate of the ending point of the gradient.
x2: Var[Union[str, int, float]]
x2: Var[str | int | float]
# Y coordinate of the starting point of the gradient.
y1: Var[Union[str, int, float]]
y1: Var[str | int | float]
# Y coordinate of the ending point of the gradient.
y2: Var[Union[str, int, float]]
y2: Var[str | int | float]
class RadialGradient(BaseHTML):
@ -433,31 +433,31 @@ class RadialGradient(BaseHTML):
tag = "radialGradient"
# The x coordinate of the end circle of the radial gradient.
cx: Var[Union[str, int, float]]
cx: Var[str | int | float]
# The y coordinate of the end circle of the radial gradient.
cy: Var[Union[str, int, float]]
cy: Var[str | int | float]
# The radius of the start circle of the radial gradient.
fr: Var[Union[str, int, float]]
fr: Var[str | int | float]
# The x coordinate of the start circle of the radial gradient.
fx: Var[Union[str, int, float]]
fx: Var[str | int | float]
# The y coordinate of the start circle of the radial gradient.
fy: Var[Union[str, int, float]]
fy: Var[str | int | float]
# Units for the gradient.
gradient_units: Var[Union[str, bool]]
gradient_units: Var[str | bool]
# Transform applied to the gradient.
gradient_transform: Var[Union[str, bool]]
gradient_transform: Var[str | bool]
# The radius of the end circle of the radial gradient.
r: Var[Union[str, int, float]]
r: Var[str | int | float]
# Method used to spread the gradient.
spread_method: Var[Union[str, bool]]
spread_method: Var[str | bool]
class Stop(BaseHTML):
@ -466,10 +466,10 @@ class Stop(BaseHTML):
tag = "stop"
# Offset of the gradient stop.
offset: Var[Union[str, float, int]]
offset: Var[str | float | int]
# Color of the gradient stop.
stop_color: Var[Union[str, Color, bool]]
stop_color: Var[str | Color | bool]
# Opacity of the gradient stop.
stop_opacity: Var[Union[str, float, int, bool]]
@ -481,7 +481,7 @@ class Path(BaseHTML):
tag = "path"
# Defines the shape of the path.
d: Var[Union[str, int, float]]
d: Var[str | int | float]
class SVG(ComponentNamespace):

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,7 @@
from __future__ import annotations
from typing import Any, Dict, List, Union
from typing import Any, Dict, List
from reflex.components.component import Component
from reflex.components.tags import Tag
@ -44,7 +44,7 @@ class DataTable(Gridjs):
resizable: Var[bool]
# Enable pagination.
pagination: Var[Union[bool, Dict]]
pagination: Var[bool | Dict]
@classmethod
def create(cls, *children, **props):

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Dict, List, Optional, Union, overload
from typing import Any, Dict, List, Optional, overload
from reflex.components.component import Component
from reflex.event import EventType
@ -17,12 +17,12 @@ class Gridjs(Component):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -63,18 +63,18 @@ class DataTable(Gridjs):
def create( # type: ignore
cls,
*children,
data: Optional[Any] = None,
columns: Optional[Union[List, Var[List]]] = None,
search: Optional[Union[Var[bool], bool]] = None,
sort: Optional[Union[Var[bool], bool]] = None,
resizable: Optional[Union[Var[bool], bool]] = None,
pagination: Optional[Union[Dict, Var[Union[Dict, bool]], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
data: Any | None = None,
columns: List | Var[List] | None = None,
search: Var[bool] | bool | None = None,
sort: Var[bool] | bool | None = None,
resizable: Var[bool] | bool | None = None,
pagination: Dict | Var[Dict | bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Optional, Union, overload
from typing import Any, Optional, overload
from reflex.components.component import Component
from reflex.event import EventType
@ -16,12 +16,12 @@ class LucideIconComponent(Component):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -62,13 +62,13 @@ class Icon(LucideIconComponent):
def create( # type: ignore
cls,
*children,
size: Optional[Union[Var[int], int]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
size: Var[int] | int | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -117,13 +117,13 @@ class DynamicIcon(LucideIconComponent):
def create( # type: ignore
cls,
*children,
name: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
name: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -5,7 +5,7 @@
# ------------------------------------------------------
import dataclasses
from functools import lru_cache
from typing import Any, Callable, Optional, Sequence, Union, overload
from typing import Any, Callable, Optional, Sequence, overload
from reflex.components.component import Component
from reflex.event import EventType
@ -52,14 +52,14 @@ class Markdown(Component):
def create( # type: ignore
cls,
*children,
component_map: Optional[dict[str, Any]] = None,
component_map_hash: Optional[str] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
component_map: dict[str, Any] | None = None,
component_map_hash: str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -2,7 +2,7 @@
import dataclasses
from datetime import date, datetime, time, timedelta
from typing import Optional, Union
from typing import Union
from reflex.components.component import NoSSRComponent
from reflex.event import EventHandler, passthrough_event_spec
@ -14,15 +14,15 @@ from reflex.vars.base import LiteralVar, Var
class MomentDelta:
"""A delta used for add/subtract prop in Moment."""
years: Optional[int] = dataclasses.field(default=None)
quarters: Optional[int] = dataclasses.field(default=None)
months: Optional[int] = dataclasses.field(default=None)
weeks: Optional[int] = dataclasses.field(default=None)
days: Optional[int] = dataclasses.field(default=None)
hours: Optional[int] = dataclasses.field(default=None)
minutes: Optional[int] = dataclasses.field(default=None)
seconds: Optional[int] = dataclasses.field(default=None)
milliseconds: Optional[int] = dataclasses.field(default=None)
years: int | None = dataclasses.field(default=None)
quarters: int | None = dataclasses.field(default=None)
months: int | None = dataclasses.field(default=None)
weeks: int | None = dataclasses.field(default=None)
days: int | None = dataclasses.field(default=None)
hours: int | None = dataclasses.field(default=None)
minutes: int | None = dataclasses.field(default=None)
seconds: int | None = dataclasses.field(default=None)
milliseconds: int | None = dataclasses.field(default=None)
class Moment(NoSSRComponent):

View File

@ -5,7 +5,7 @@
# ------------------------------------------------------
import dataclasses
from datetime import date, datetime, time, timedelta
from typing import Any, Optional, Union, overload
from typing import Any, Optional, overload
from reflex.components.component import NoSSRComponent
from reflex.event import EventType
@ -15,15 +15,15 @@ from reflex.vars.base import Var
@dataclasses.dataclass(frozen=True)
class MomentDelta:
years: Optional[int]
quarters: Optional[int]
months: Optional[int]
weeks: Optional[int]
days: Optional[int]
hours: Optional[int]
minutes: Optional[int]
seconds: Optional[int]
milliseconds: Optional[int]
years: int | None
quarters: int | None
months: int | None
weeks: int | None
days: int | None
hours: int | None
minutes: int | None
seconds: int | None
milliseconds: int | None
class Moment(NoSSRComponent):
def add_imports(self) -> ImportDict: ...
@ -32,44 +32,41 @@ class Moment(NoSSRComponent):
def create( # type: ignore
cls,
*children,
interval: Optional[Union[Var[int], int]] = None,
format: Optional[Union[Var[str], str]] = None,
trim: Optional[Union[Var[bool], bool]] = None,
parse: Optional[Union[Var[str], str]] = None,
add: Optional[Union[MomentDelta, Var[MomentDelta]]] = None,
subtract: Optional[Union[MomentDelta, Var[MomentDelta]]] = None,
from_now: Optional[Union[Var[bool], bool]] = None,
from_now_during: Optional[Union[Var[int], int]] = None,
to_now: Optional[Union[Var[bool], bool]] = None,
with_title: Optional[Union[Var[bool], bool]] = None,
title_format: Optional[Union[Var[str], str]] = None,
diff: Optional[Union[Var[str], str]] = None,
decimal: Optional[Union[Var[bool], bool]] = None,
unit: Optional[Union[Var[str], str]] = None,
duration: Optional[Union[Var[str], str]] = None,
date: Optional[
Union[
Var[Union[date, datetime, str, time, timedelta]],
date,
datetime,
str,
time,
timedelta,
]
] = None,
duration_from_now: Optional[Union[Var[bool], bool]] = None,
unix: Optional[Union[Var[bool], bool]] = None,
local: Optional[Union[Var[bool], bool]] = None,
tz: Optional[Union[Var[str], str]] = None,
locale: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
interval: Var[int] | int | None = None,
format: Var[str] | str | None = None,
trim: Var[bool] | bool | None = None,
parse: Var[str] | str | None = None,
add: MomentDelta | Var[MomentDelta] | None = None,
subtract: MomentDelta | Var[MomentDelta] | None = None,
from_now: Var[bool] | bool | None = None,
from_now_during: Var[int] | int | None = None,
to_now: Var[bool] | bool | None = None,
with_title: Var[bool] | bool | None = None,
title_format: Var[str] | str | None = None,
diff: Var[str] | str | None = None,
decimal: Var[bool] | bool | None = None,
unit: Var[str] | str | None = None,
duration: Var[str] | str | None = None,
date: Var[date | datetime | str | time | timedelta]
| date
| datetime
| str
| time
| timedelta
| None = None,
duration_from_now: Var[bool] | bool | None = None,
unix: Var[bool] | bool | None = None,
local: Var[bool] | bool | None = None,
tz: Var[str] | str | None = None,
locale: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_change: Optional[Union[EventType[()], EventType[str]]] = None,
on_change: Optional[EventType[()] | EventType[str]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
on_double_click: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Optional, Union, overload
from typing import Any, Optional, overload
from reflex.components.component import Component
from reflex.event import EventType
@ -18,12 +18,12 @@ class NextComponent(Component):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -2,7 +2,7 @@
from __future__ import annotations
from typing import Any, Literal, Optional, Union
from typing import Any, Literal
from reflex.event import EventHandler, no_args_event_spec
from reflex.utils import console, types
@ -69,8 +69,8 @@ class Image(NextComponent):
def create(
cls,
*children,
width: Optional[Union[int, str]] = None,
height: Optional[Union[int, str]] = None,
width: int | str | None = None,
height: int | str | None = None,
**props,
):
"""Create an Image component from next/image.

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.event import EventType
from reflex.style import Style
@ -19,26 +19,24 @@ class Image(NextComponent):
def create( # type: ignore
cls,
*children,
width: Optional[Union[int, str]] = None,
height: Optional[Union[int, str]] = None,
src: Optional[Union[Any, Var[Any]]] = None,
alt: Optional[Union[Var[str], str]] = None,
loader: Optional[Union[Any, Var[Any]]] = None,
fill: Optional[Union[Var[bool], bool]] = None,
sizes: Optional[Union[Var[str], str]] = None,
quality: Optional[Union[Var[int], int]] = None,
priority: Optional[Union[Var[bool], bool]] = None,
placeholder: Optional[Union[Var[str], str]] = None,
loading: Optional[
Union[Literal["eager", "lazy"], Var[Literal["eager", "lazy"]]]
] = None,
blur_data_url: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
width: int | str | None = None,
height: int | str | None = None,
src: Any | Var[Any] | None = None,
alt: Var[str] | str | None = None,
loader: Any | Var[Any] | None = None,
fill: Var[bool] | bool | None = None,
sizes: Var[str] | str | None = None,
quality: Var[int] | int | None = None,
priority: Var[bool] | bool | None = None,
placeholder: Var[str] | str | None = None,
loading: Literal["eager", "lazy"] | Var[Literal["eager", "lazy"]] | None = None,
blur_data_url: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Optional, Union, overload
from typing import Any, Optional, overload
from reflex.components.component import Component
from reflex.event import EventType
@ -16,14 +16,14 @@ class NextLink(Component):
def create( # type: ignore
cls,
*children,
href: Optional[Union[Var[str], str]] = None,
pass_href: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
href: Var[str] | str | None = None,
pass_href: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -1,7 +1,5 @@
"""Wrapping of the next-video component."""
from typing import Optional
from reflex.components.component import Component
from reflex.vars.base import Var
@ -17,7 +15,7 @@ class Video(NextComponent):
# the URL
src: Var[str]
as_: Optional[Component]
as_: Component | None
@classmethod
def create(cls, *children, **props) -> NextComponent:

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Optional, Union, overload
from typing import Any, Optional, overload
from reflex.components.component import Component
from reflex.event import EventType
@ -18,14 +18,14 @@ class Video(NextComponent):
def create( # type: ignore
cls,
*children,
src: Optional[Union[Var[str], str]] = None,
src: Var[str] | str | None = None,
as_: Optional[Component] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -41,26 +41,26 @@ ItemOrList = Union[T, list[T]]
class BBox(TypedDict):
"""Bounding box for a point in a plotly graph."""
x0: Union[float, int, None]
x1: Union[float, int, None]
y0: Union[float, int, None]
y1: Union[float, int, None]
z0: Union[float, int, None]
z1: Union[float, int, None]
x0: float | int | None
x1: float | int | None
y0: float | int | None
y1: float | int | None
z0: float | int | None
z1: float | int | None
class Point(TypedDict):
"""A point in a plotly graph."""
x: Union[float, int, None]
y: Union[float, int, None]
z: Union[float, int, None]
lat: Union[float, int, None]
lon: Union[float, int, None]
curveNumber: Union[int, None]
pointNumber: Union[int, None]
x: float | int | None
y: float | int | None
z: float | int | None
lat: float | int | None
lon: float | int | None
curveNumber: int | None
pointNumber: int | None
pointNumbers: Union[list[int], None]
pointIndex: Union[int, None]
pointIndex: int | None
markerColor: Union[
ItemOrList[
ItemOrList[
@ -86,7 +86,7 @@ class Point(TypedDict):
],
None,
]
bbox: Union[BBox, None]
bbox: BBox | None
class Plotly(NoSSRComponent):

View File

@ -24,26 +24,26 @@ T = TypeVar("T")
ItemOrList = Union[T, list[T]]
class BBox(TypedDict):
x0: Union[float, int, None]
x1: Union[float, int, None]
y0: Union[float, int, None]
y1: Union[float, int, None]
z0: Union[float, int, None]
z1: Union[float, int, None]
x0: float | int | None
x1: float | int | None
y0: float | int | None
y1: float | int | None
z0: float | int | None
z1: float | int | None
class Point(TypedDict):
x: Union[float, int, None]
y: Union[float, int, None]
z: Union[float, int, None]
lat: Union[float, int, None]
lon: Union[float, int, None]
curveNumber: Union[int, None]
pointNumber: Union[int, None]
x: float | int | None
y: float | int | None
z: float | int | None
lat: float | int | None
lon: float | int | None
curveNumber: int | None
pointNumber: int | None
pointNumbers: Union[list[int], None]
pointIndex: Union[int, None]
pointIndex: int | None
markerColor: Union[ItemOrList[ItemOrList[Union[float, int, str, None]]], None]
markerSize: Union[ItemOrList[ItemOrList[Union[float, int, None]]], None]
bbox: Union[BBox, None]
bbox: BBox | None
class Plotly(NoSSRComponent):
def add_imports(self) -> dict[str, str]: ...
@ -53,17 +53,17 @@ class Plotly(NoSSRComponent):
def create( # type: ignore
cls,
*children,
data: Optional[Union[Figure, Var[Figure]]] = None, # type: ignore
layout: Optional[Union[Dict, Var[Dict]]] = None,
template: Optional[Union[Template, Var[Template]]] = None, # type: ignore
config: Optional[Union[Dict, Var[Dict]]] = None,
use_resize_handler: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
data: Figure | Var[Figure] | None = None, # type: ignore
layout: Dict | Var[Dict] | None = None,
template: Template | Var[Template] | None = None, # type: ignore
config: Dict | Var[Dict] | None = None,
use_resize_handler: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_after_plot: Optional[EventType[()]] = None,
on_animated: Optional[EventType[()]] = None,
on_animating_frame: Optional[EventType[()]] = None,
@ -72,12 +72,12 @@ class Plotly(NoSSRComponent):
on_before_hover: Optional[EventType[()]] = None,
on_blur: Optional[EventType[()]] = None,
on_button_clicked: Optional[EventType[()]] = None,
on_click: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_click: Optional[EventType[()] | EventType[list[Point]]] = 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[Union[EventType[()], EventType[list[Point]]]] = None,
on_hover: Optional[EventType[()] | EventType[list[Point]]] = None,
on_mount: Optional[EventType[()]] = None,
on_mouse_down: Optional[EventType[()]] = None,
on_mouse_enter: Optional[EventType[()]] = None,
@ -91,11 +91,11 @@ class Plotly(NoSSRComponent):
on_relayouting: Optional[EventType[()]] = None,
on_restyle: Optional[EventType[()]] = None,
on_scroll: Optional[EventType[()]] = None,
on_selected: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_selecting: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_selected: Optional[EventType[()] | EventType[list[Point]]] = None,
on_selecting: Optional[EventType[()] | EventType[list[Point]]] = None,
on_transition_interrupted: Optional[EventType[()]] = None,
on_transitioning: Optional[EventType[()]] = None,
on_unhover: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_unhover: Optional[EventType[()] | EventType[list[Point]]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,
) -> "Plotly":
@ -152,17 +152,17 @@ class PlotlyBasic(Plotly):
def create( # type: ignore
cls,
*children,
data: Optional[Union[Figure, Var[Figure]]] = None, # type: ignore
layout: Optional[Union[Dict, Var[Dict]]] = None,
template: Optional[Union[Template, Var[Template]]] = None, # type: ignore
config: Optional[Union[Dict, Var[Dict]]] = None,
use_resize_handler: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
data: Figure | Var[Figure] | None = None, # type: ignore
layout: Dict | Var[Dict] | None = None,
template: Template | Var[Template] | None = None, # type: ignore
config: Dict | Var[Dict] | None = None,
use_resize_handler: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_after_plot: Optional[EventType[()]] = None,
on_animated: Optional[EventType[()]] = None,
on_animating_frame: Optional[EventType[()]] = None,
@ -171,12 +171,12 @@ class PlotlyBasic(Plotly):
on_before_hover: Optional[EventType[()]] = None,
on_blur: Optional[EventType[()]] = None,
on_button_clicked: Optional[EventType[()]] = None,
on_click: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_click: Optional[EventType[()] | EventType[list[Point]]] = 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[Union[EventType[()], EventType[list[Point]]]] = None,
on_hover: Optional[EventType[()] | EventType[list[Point]]] = None,
on_mount: Optional[EventType[()]] = None,
on_mouse_down: Optional[EventType[()]] = None,
on_mouse_enter: Optional[EventType[()]] = None,
@ -190,11 +190,11 @@ class PlotlyBasic(Plotly):
on_relayouting: Optional[EventType[()]] = None,
on_restyle: Optional[EventType[()]] = None,
on_scroll: Optional[EventType[()]] = None,
on_selected: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_selecting: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_selected: Optional[EventType[()] | EventType[list[Point]]] = None,
on_selecting: Optional[EventType[()] | EventType[list[Point]]] = None,
on_transition_interrupted: Optional[EventType[()]] = None,
on_transitioning: Optional[EventType[()]] = None,
on_unhover: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_unhover: Optional[EventType[()] | EventType[list[Point]]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,
) -> "PlotlyBasic":
@ -247,17 +247,17 @@ class PlotlyCartesian(Plotly):
def create( # type: ignore
cls,
*children,
data: Optional[Union[Figure, Var[Figure]]] = None, # type: ignore
layout: Optional[Union[Dict, Var[Dict]]] = None,
template: Optional[Union[Template, Var[Template]]] = None, # type: ignore
config: Optional[Union[Dict, Var[Dict]]] = None,
use_resize_handler: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
data: Figure | Var[Figure] | None = None, # type: ignore
layout: Dict | Var[Dict] | None = None,
template: Template | Var[Template] | None = None, # type: ignore
config: Dict | Var[Dict] | None = None,
use_resize_handler: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_after_plot: Optional[EventType[()]] = None,
on_animated: Optional[EventType[()]] = None,
on_animating_frame: Optional[EventType[()]] = None,
@ -266,12 +266,12 @@ class PlotlyCartesian(Plotly):
on_before_hover: Optional[EventType[()]] = None,
on_blur: Optional[EventType[()]] = None,
on_button_clicked: Optional[EventType[()]] = None,
on_click: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_click: Optional[EventType[()] | EventType[list[Point]]] = 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[Union[EventType[()], EventType[list[Point]]]] = None,
on_hover: Optional[EventType[()] | EventType[list[Point]]] = None,
on_mount: Optional[EventType[()]] = None,
on_mouse_down: Optional[EventType[()]] = None,
on_mouse_enter: Optional[EventType[()]] = None,
@ -285,11 +285,11 @@ class PlotlyCartesian(Plotly):
on_relayouting: Optional[EventType[()]] = None,
on_restyle: Optional[EventType[()]] = None,
on_scroll: Optional[EventType[()]] = None,
on_selected: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_selecting: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_selected: Optional[EventType[()] | EventType[list[Point]]] = None,
on_selecting: Optional[EventType[()] | EventType[list[Point]]] = None,
on_transition_interrupted: Optional[EventType[()]] = None,
on_transitioning: Optional[EventType[()]] = None,
on_unhover: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_unhover: Optional[EventType[()] | EventType[list[Point]]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,
) -> "PlotlyCartesian":
@ -342,17 +342,17 @@ class PlotlyGeo(Plotly):
def create( # type: ignore
cls,
*children,
data: Optional[Union[Figure, Var[Figure]]] = None, # type: ignore
layout: Optional[Union[Dict, Var[Dict]]] = None,
template: Optional[Union[Template, Var[Template]]] = None, # type: ignore
config: Optional[Union[Dict, Var[Dict]]] = None,
use_resize_handler: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
data: Figure | Var[Figure] | None = None, # type: ignore
layout: Dict | Var[Dict] | None = None,
template: Template | Var[Template] | None = None, # type: ignore
config: Dict | Var[Dict] | None = None,
use_resize_handler: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_after_plot: Optional[EventType[()]] = None,
on_animated: Optional[EventType[()]] = None,
on_animating_frame: Optional[EventType[()]] = None,
@ -361,12 +361,12 @@ class PlotlyGeo(Plotly):
on_before_hover: Optional[EventType[()]] = None,
on_blur: Optional[EventType[()]] = None,
on_button_clicked: Optional[EventType[()]] = None,
on_click: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_click: Optional[EventType[()] | EventType[list[Point]]] = 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[Union[EventType[()], EventType[list[Point]]]] = None,
on_hover: Optional[EventType[()] | EventType[list[Point]]] = None,
on_mount: Optional[EventType[()]] = None,
on_mouse_down: Optional[EventType[()]] = None,
on_mouse_enter: Optional[EventType[()]] = None,
@ -380,11 +380,11 @@ class PlotlyGeo(Plotly):
on_relayouting: Optional[EventType[()]] = None,
on_restyle: Optional[EventType[()]] = None,
on_scroll: Optional[EventType[()]] = None,
on_selected: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_selecting: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_selected: Optional[EventType[()] | EventType[list[Point]]] = None,
on_selecting: Optional[EventType[()] | EventType[list[Point]]] = None,
on_transition_interrupted: Optional[EventType[()]] = None,
on_transitioning: Optional[EventType[()]] = None,
on_unhover: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_unhover: Optional[EventType[()] | EventType[list[Point]]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,
) -> "PlotlyGeo":
@ -437,17 +437,17 @@ class PlotlyGl3d(Plotly):
def create( # type: ignore
cls,
*children,
data: Optional[Union[Figure, Var[Figure]]] = None, # type: ignore
layout: Optional[Union[Dict, Var[Dict]]] = None,
template: Optional[Union[Template, Var[Template]]] = None, # type: ignore
config: Optional[Union[Dict, Var[Dict]]] = None,
use_resize_handler: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
data: Figure | Var[Figure] | None = None, # type: ignore
layout: Dict | Var[Dict] | None = None,
template: Template | Var[Template] | None = None, # type: ignore
config: Dict | Var[Dict] | None = None,
use_resize_handler: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_after_plot: Optional[EventType[()]] = None,
on_animated: Optional[EventType[()]] = None,
on_animating_frame: Optional[EventType[()]] = None,
@ -456,12 +456,12 @@ class PlotlyGl3d(Plotly):
on_before_hover: Optional[EventType[()]] = None,
on_blur: Optional[EventType[()]] = None,
on_button_clicked: Optional[EventType[()]] = None,
on_click: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_click: Optional[EventType[()] | EventType[list[Point]]] = 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[Union[EventType[()], EventType[list[Point]]]] = None,
on_hover: Optional[EventType[()] | EventType[list[Point]]] = None,
on_mount: Optional[EventType[()]] = None,
on_mouse_down: Optional[EventType[()]] = None,
on_mouse_enter: Optional[EventType[()]] = None,
@ -475,11 +475,11 @@ class PlotlyGl3d(Plotly):
on_relayouting: Optional[EventType[()]] = None,
on_restyle: Optional[EventType[()]] = None,
on_scroll: Optional[EventType[()]] = None,
on_selected: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_selecting: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_selected: Optional[EventType[()] | EventType[list[Point]]] = None,
on_selecting: Optional[EventType[()] | EventType[list[Point]]] = None,
on_transition_interrupted: Optional[EventType[()]] = None,
on_transitioning: Optional[EventType[()]] = None,
on_unhover: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_unhover: Optional[EventType[()] | EventType[list[Point]]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,
) -> "PlotlyGl3d":
@ -532,17 +532,17 @@ class PlotlyGl2d(Plotly):
def create( # type: ignore
cls,
*children,
data: Optional[Union[Figure, Var[Figure]]] = None, # type: ignore
layout: Optional[Union[Dict, Var[Dict]]] = None,
template: Optional[Union[Template, Var[Template]]] = None, # type: ignore
config: Optional[Union[Dict, Var[Dict]]] = None,
use_resize_handler: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
data: Figure | Var[Figure] | None = None, # type: ignore
layout: Dict | Var[Dict] | None = None,
template: Template | Var[Template] | None = None, # type: ignore
config: Dict | Var[Dict] | None = None,
use_resize_handler: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_after_plot: Optional[EventType[()]] = None,
on_animated: Optional[EventType[()]] = None,
on_animating_frame: Optional[EventType[()]] = None,
@ -551,12 +551,12 @@ class PlotlyGl2d(Plotly):
on_before_hover: Optional[EventType[()]] = None,
on_blur: Optional[EventType[()]] = None,
on_button_clicked: Optional[EventType[()]] = None,
on_click: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_click: Optional[EventType[()] | EventType[list[Point]]] = 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[Union[EventType[()], EventType[list[Point]]]] = None,
on_hover: Optional[EventType[()] | EventType[list[Point]]] = None,
on_mount: Optional[EventType[()]] = None,
on_mouse_down: Optional[EventType[()]] = None,
on_mouse_enter: Optional[EventType[()]] = None,
@ -570,11 +570,11 @@ class PlotlyGl2d(Plotly):
on_relayouting: Optional[EventType[()]] = None,
on_restyle: Optional[EventType[()]] = None,
on_scroll: Optional[EventType[()]] = None,
on_selected: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_selecting: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_selected: Optional[EventType[()] | EventType[list[Point]]] = None,
on_selecting: Optional[EventType[()] | EventType[list[Point]]] = None,
on_transition_interrupted: Optional[EventType[()]] = None,
on_transitioning: Optional[EventType[()]] = None,
on_unhover: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_unhover: Optional[EventType[()] | EventType[list[Point]]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,
) -> "PlotlyGl2d":
@ -627,17 +627,17 @@ class PlotlyMapbox(Plotly):
def create( # type: ignore
cls,
*children,
data: Optional[Union[Figure, Var[Figure]]] = None, # type: ignore
layout: Optional[Union[Dict, Var[Dict]]] = None,
template: Optional[Union[Template, Var[Template]]] = None, # type: ignore
config: Optional[Union[Dict, Var[Dict]]] = None,
use_resize_handler: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
data: Figure | Var[Figure] | None = None, # type: ignore
layout: Dict | Var[Dict] | None = None,
template: Template | Var[Template] | None = None, # type: ignore
config: Dict | Var[Dict] | None = None,
use_resize_handler: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_after_plot: Optional[EventType[()]] = None,
on_animated: Optional[EventType[()]] = None,
on_animating_frame: Optional[EventType[()]] = None,
@ -646,12 +646,12 @@ class PlotlyMapbox(Plotly):
on_before_hover: Optional[EventType[()]] = None,
on_blur: Optional[EventType[()]] = None,
on_button_clicked: Optional[EventType[()]] = None,
on_click: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_click: Optional[EventType[()] | EventType[list[Point]]] = 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[Union[EventType[()], EventType[list[Point]]]] = None,
on_hover: Optional[EventType[()] | EventType[list[Point]]] = None,
on_mount: Optional[EventType[()]] = None,
on_mouse_down: Optional[EventType[()]] = None,
on_mouse_enter: Optional[EventType[()]] = None,
@ -665,11 +665,11 @@ class PlotlyMapbox(Plotly):
on_relayouting: Optional[EventType[()]] = None,
on_restyle: Optional[EventType[()]] = None,
on_scroll: Optional[EventType[()]] = None,
on_selected: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_selecting: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_selected: Optional[EventType[()] | EventType[list[Point]]] = None,
on_selecting: Optional[EventType[()] | EventType[list[Point]]] = None,
on_transition_interrupted: Optional[EventType[()]] = None,
on_transitioning: Optional[EventType[()]] = None,
on_unhover: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_unhover: Optional[EventType[()] | EventType[list[Point]]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,
) -> "PlotlyMapbox":
@ -722,17 +722,17 @@ class PlotlyFinance(Plotly):
def create( # type: ignore
cls,
*children,
data: Optional[Union[Figure, Var[Figure]]] = None, # type: ignore
layout: Optional[Union[Dict, Var[Dict]]] = None,
template: Optional[Union[Template, Var[Template]]] = None, # type: ignore
config: Optional[Union[Dict, Var[Dict]]] = None,
use_resize_handler: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
data: Figure | Var[Figure] | None = None, # type: ignore
layout: Dict | Var[Dict] | None = None,
template: Template | Var[Template] | None = None, # type: ignore
config: Dict | Var[Dict] | None = None,
use_resize_handler: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_after_plot: Optional[EventType[()]] = None,
on_animated: Optional[EventType[()]] = None,
on_animating_frame: Optional[EventType[()]] = None,
@ -741,12 +741,12 @@ class PlotlyFinance(Plotly):
on_before_hover: Optional[EventType[()]] = None,
on_blur: Optional[EventType[()]] = None,
on_button_clicked: Optional[EventType[()]] = None,
on_click: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_click: Optional[EventType[()] | EventType[list[Point]]] = 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[Union[EventType[()], EventType[list[Point]]]] = None,
on_hover: Optional[EventType[()] | EventType[list[Point]]] = None,
on_mount: Optional[EventType[()]] = None,
on_mouse_down: Optional[EventType[()]] = None,
on_mouse_enter: Optional[EventType[()]] = None,
@ -760,11 +760,11 @@ class PlotlyFinance(Plotly):
on_relayouting: Optional[EventType[()]] = None,
on_restyle: Optional[EventType[()]] = None,
on_scroll: Optional[EventType[()]] = None,
on_selected: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_selecting: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_selected: Optional[EventType[()] | EventType[list[Point]]] = None,
on_selecting: Optional[EventType[()] | EventType[list[Point]]] = None,
on_transition_interrupted: Optional[EventType[()]] = None,
on_transitioning: Optional[EventType[()]] = None,
on_unhover: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_unhover: Optional[EventType[()] | EventType[list[Point]]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,
) -> "PlotlyFinance":
@ -817,17 +817,17 @@ class PlotlyStrict(Plotly):
def create( # type: ignore
cls,
*children,
data: Optional[Union[Figure, Var[Figure]]] = None, # type: ignore
layout: Optional[Union[Dict, Var[Dict]]] = None,
template: Optional[Union[Template, Var[Template]]] = None, # type: ignore
config: Optional[Union[Dict, Var[Dict]]] = None,
use_resize_handler: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
data: Figure | Var[Figure] | None = None, # type: ignore
layout: Dict | Var[Dict] | None = None,
template: Template | Var[Template] | None = None, # type: ignore
config: Dict | Var[Dict] | None = None,
use_resize_handler: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_after_plot: Optional[EventType[()]] = None,
on_animated: Optional[EventType[()]] = None,
on_animating_frame: Optional[EventType[()]] = None,
@ -836,12 +836,12 @@ class PlotlyStrict(Plotly):
on_before_hover: Optional[EventType[()]] = None,
on_blur: Optional[EventType[()]] = None,
on_button_clicked: Optional[EventType[()]] = None,
on_click: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_click: Optional[EventType[()] | EventType[list[Point]]] = 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[Union[EventType[()], EventType[list[Point]]]] = None,
on_hover: Optional[EventType[()] | EventType[list[Point]]] = None,
on_mount: Optional[EventType[()]] = None,
on_mouse_down: Optional[EventType[()]] = None,
on_mouse_enter: Optional[EventType[()]] = None,
@ -855,11 +855,11 @@ class PlotlyStrict(Plotly):
on_relayouting: Optional[EventType[()]] = None,
on_restyle: Optional[EventType[()]] = None,
on_scroll: Optional[EventType[()]] = None,
on_selected: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_selecting: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_selected: Optional[EventType[()] | EventType[list[Point]]] = None,
on_selecting: Optional[EventType[()] | EventType[list[Point]]] = None,
on_transition_interrupted: Optional[EventType[()]] = None,
on_transitioning: Optional[EventType[()]] = None,
on_unhover: Optional[Union[EventType[()], EventType[list[Point]]]] = None,
on_unhover: Optional[EventType[()] | EventType[list[Point]]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,
) -> "PlotlyStrict":

View File

@ -196,10 +196,10 @@ class AccordionItem(AccordionComponent):
disabled: Var[bool]
# The header of the accordion item.
header: Var[Union[Component, str]]
header: Var[Component | str]
# The content of the accordion item.
content: Var[Union[Component, str, None]] = Var.create(None)
content: Var[Component | str | None] = Var.create(None)
_valid_children: list[str] = [
"AccordionHeader",

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.component import Component, ComponentNamespace
from reflex.components.lucide.icon import Icon
@ -26,81 +26,75 @@ class AccordionComponent(RadixPrimitiveComponent):
def create( # type: ignore
cls,
*children,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
variant: Optional[
Union[
Literal["classic", "ghost", "outline", "soft", "surface"],
Var[Literal["classic", "ghost", "outline", "soft", "surface"]],
]
] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
variant: Literal["classic", "ghost", "outline", "soft", "surface"]
| Var[Literal["classic", "ghost", "outline", "soft", "surface"]]
| None = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -147,106 +141,92 @@ class AccordionRoot(AccordionComponent):
def create( # type: ignore
cls,
*children,
type: Optional[
Union[Literal["multiple", "single"], Var[Literal["multiple", "single"]]]
] = None,
value: Optional[Union[Var[Union[list[str], str]], list[str], str]] = None,
default_value: Optional[
Union[Var[Union[list[str], str]], list[str], str]
] = None,
collapsible: Optional[Union[Var[bool], bool]] = None,
disabled: Optional[Union[Var[bool], bool]] = None,
dir: Optional[Union[Literal["ltr", "rtl"], Var[Literal["ltr", "rtl"]]]] = None,
orientation: Optional[
Union[
Literal["horizontal", "vertical"],
Var[Literal["horizontal", "vertical"]],
type: Literal["multiple", "single"]
| Var[Literal["multiple", "single"]]
| None = None,
value: Var[list[str] | str] | list[str] | str | None = None,
default_value: Var[list[str] | str] | list[str] | str | None = None,
collapsible: Var[bool] | bool | None = None,
disabled: Var[bool] | bool | None = None,
dir: Literal["ltr", "rtl"] | Var[Literal["ltr", "rtl"]] | None = None,
orientation: Literal["horizontal", "vertical"]
| Var[Literal["horizontal", "vertical"]]
| None = None,
radius: Literal["full", "large", "medium", "none", "small"]
| Var[Literal["full", "large", "medium", "none", "small"]]
| None = None,
duration: Var[int] | int | None = None,
easing: Var[str] | str | None = None,
show_dividers: Var[bool] | bool | None = None,
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
radius: Optional[
Union[
Literal["full", "large", "medium", "none", "small"],
Var[Literal["full", "large", "medium", "none", "small"]],
]
] = None,
duration: Optional[Union[Var[int], int]] = None,
easing: Optional[Union[Var[str], str]] = None,
show_dividers: Optional[Union[Var[bool], bool]] = None,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
]
] = None,
variant: Optional[
Union[
Literal["classic", "ghost", "outline", "soft", "surface"],
Var[Literal["classic", "ghost", "outline", "soft", "surface"]],
]
] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
variant: Literal["classic", "ghost", "outline", "soft", "surface"]
| Var[Literal["classic", "ghost", "outline", "soft", "surface"]]
| None = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -262,9 +242,7 @@ class AccordionRoot(AccordionComponent):
on_mouse_up: Optional[EventType[()]] = None,
on_scroll: Optional[EventType[()]] = None,
on_unmount: Optional[EventType[()]] = None,
on_value_change: Optional[
Union[EventType[()], EventType[str | list[str]]]
] = None,
on_value_change: Optional[EventType[()] | EventType[str | list[str]]] = None,
**props,
) -> "AccordionRoot":
"""Create the component.
@ -305,87 +283,79 @@ class AccordionItem(AccordionComponent):
def create( # type: ignore
cls,
*children,
value: Optional[Union[Var[str], str]] = None,
disabled: Optional[Union[Var[bool], bool]] = None,
header: Optional[Union[Component, Var[Union[Component, str]], str]] = None,
content: Optional[
Union[Component, Var[Optional[Union[Component, str]]], str]
] = None,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
value: Var[str] | str | None = None,
disabled: Var[bool] | bool | None = None,
header: Component | Var[Component | str] | str | None = None,
content: Component | Var[Component | str | None] | str | None = None,
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
variant: Optional[
Union[
Literal["classic", "ghost", "outline", "soft", "surface"],
Var[Literal["classic", "ghost", "outline", "soft", "surface"]],
]
] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
variant: Literal["classic", "ghost", "outline", "soft", "surface"]
| Var[Literal["classic", "ghost", "outline", "soft", "surface"]]
| None = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -435,81 +405,75 @@ class AccordionHeader(AccordionComponent):
def create( # type: ignore
cls,
*children,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
variant: Optional[
Union[
Literal["classic", "ghost", "outline", "soft", "surface"],
Var[Literal["classic", "ghost", "outline", "soft", "surface"]],
]
] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
variant: Literal["classic", "ghost", "outline", "soft", "surface"]
| Var[Literal["classic", "ghost", "outline", "soft", "surface"]]
| None = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -555,81 +519,75 @@ class AccordionTrigger(AccordionComponent):
def create( # type: ignore
cls,
*children,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
variant: Optional[
Union[
Literal["classic", "ghost", "outline", "soft", "surface"],
Var[Literal["classic", "ghost", "outline", "soft", "surface"]],
]
] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
variant: Literal["classic", "ghost", "outline", "soft", "surface"]
| Var[Literal["classic", "ghost", "outline", "soft", "surface"]]
| None = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -675,13 +633,13 @@ class AccordionIcon(Icon):
def create( # type: ignore
cls,
*children,
size: Optional[Union[Var[int], int]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
size: Var[int] | int | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -724,81 +682,75 @@ class AccordionContent(AccordionComponent):
def create( # type: ignore
cls,
*children,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
variant: Optional[
Union[
Literal["classic", "ghost", "outline", "soft", "surface"],
Var[Literal["classic", "ghost", "outline", "soft", "surface"]],
]
] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
variant: Literal["classic", "ghost", "outline", "soft", "surface"]
| Var[Literal["classic", "ghost", "outline", "soft", "surface"]]
| None = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Optional, Union, overload
from typing import Any, Optional, overload
from reflex.components.component import Component
from reflex.event import EventType
@ -16,13 +16,13 @@ class RadixPrimitiveComponent(Component):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -64,13 +64,13 @@ class RadixPrimitiveComponentWithClassName(RadixPrimitiveComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -4,7 +4,7 @@
# Style based on https://ui.shadcn.com/docs/components/drawer
from __future__ import annotations
from typing import Any, Literal, Optional, Union
from typing import Any, Literal, Optional
from reflex.components.component import Component, ComponentNamespace
from reflex.components.radix.primitives.base import RadixPrimitiveComponent
@ -58,7 +58,7 @@ class DrawerRoot(DrawerComponent):
handle_only: Var[bool]
# Array of numbers from 0 to 100 that corresponds to % of the screen a given snap point should take up. Should go from least visible. Also Accept px values, which doesn't take screen height into account.
snap_points: Optional[list[Union[str, float]]]
snap_points: Optional[list[str | float]]
# Index of a snapPoint from which the overlay fade should be applied. Defaults to the last snap point.
fade_from_index: Var[int]

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.component import ComponentNamespace
from reflex.components.radix.primitives.base import RadixPrimitiveComponent
@ -17,13 +17,13 @@ class DrawerComponent(RadixPrimitiveComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -67,31 +67,28 @@ class DrawerRoot(DrawerComponent):
def create( # type: ignore
cls,
*children,
default_open: Optional[Union[Var[bool], bool]] = None,
open: Optional[Union[Var[bool], bool]] = None,
modal: Optional[Union[Var[bool], bool]] = None,
direction: Optional[
Union[
Literal["bottom", "left", "right", "top"],
Var[Literal["bottom", "left", "right", "top"]],
]
] = None,
dismissible: Optional[Union[Var[bool], bool]] = None,
handle_only: Optional[Union[Var[bool], bool]] = None,
snap_points: Optional[list[Union[float, str]]] = None,
fade_from_index: Optional[Union[Var[int], int]] = None,
scroll_lock_timeout: Optional[Union[Var[int], int]] = None,
prevent_scroll_restoration: Optional[Union[Var[bool], bool]] = None,
should_scale_background: Optional[Union[Var[bool], bool]] = None,
close_threshold: Optional[Union[Var[float], float]] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
on_animation_end: Optional[Union[EventType[()], EventType[bool]]] = None,
default_open: Var[bool] | bool | None = None,
open: Var[bool] | bool | None = None,
modal: Var[bool] | bool | None = None,
direction: Literal["bottom", "left", "right", "top"]
| Var[Literal["bottom", "left", "right", "top"]]
| None = None,
dismissible: Var[bool] | bool | None = None,
handle_only: Var[bool] | bool | None = None,
snap_points: Optional[list[float | str]] = None,
fade_from_index: Var[int] | int | None = None,
scroll_lock_timeout: Var[int] | int | None = None,
prevent_scroll_restoration: Var[bool] | bool | None = None,
should_scale_background: Var[bool] | bool | None = None,
close_threshold: Var[float] | float | None = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_animation_end: Optional[EventType[()] | EventType[bool]] = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -105,7 +102,7 @@ class DrawerRoot(DrawerComponent):
on_mouse_out: Optional[EventType[()]] = None,
on_mouse_over: Optional[EventType[()]] = None,
on_mouse_up: Optional[EventType[()]] = None,
on_open_change: Optional[Union[EventType[()], EventType[bool]]] = None,
on_open_change: Optional[EventType[()] | EventType[bool]] = None,
on_scroll: Optional[EventType[()]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,
@ -148,13 +145,13 @@ class DrawerTrigger(DrawerComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -196,13 +193,13 @@ class DrawerPortal(DrawerComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -244,13 +241,13 @@ class DrawerContent(DrawerComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_close_auto_focus: Optional[EventType[()]] = None,
@ -301,13 +298,13 @@ class DrawerOverlay(DrawerComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -349,13 +346,13 @@ class DrawerClose(DrawerTrigger):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -397,13 +394,13 @@ class DrawerTitle(DrawerComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -445,13 +442,13 @@ class DrawerDescription(DrawerComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -493,13 +490,13 @@ class DrawerHandle(DrawerComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -549,31 +546,28 @@ class Drawer(ComponentNamespace):
@staticmethod
def __call__(
*children,
default_open: Optional[Union[Var[bool], bool]] = None,
open: Optional[Union[Var[bool], bool]] = None,
modal: Optional[Union[Var[bool], bool]] = None,
direction: Optional[
Union[
Literal["bottom", "left", "right", "top"],
Var[Literal["bottom", "left", "right", "top"]],
]
] = None,
dismissible: Optional[Union[Var[bool], bool]] = None,
handle_only: Optional[Union[Var[bool], bool]] = None,
snap_points: Optional[list[Union[float, str]]] = None,
fade_from_index: Optional[Union[Var[int], int]] = None,
scroll_lock_timeout: Optional[Union[Var[int], int]] = None,
prevent_scroll_restoration: Optional[Union[Var[bool], bool]] = None,
should_scale_background: Optional[Union[Var[bool], bool]] = None,
close_threshold: Optional[Union[Var[float], float]] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
on_animation_end: Optional[Union[EventType[()], EventType[bool]]] = None,
default_open: Var[bool] | bool | None = None,
open: Var[bool] | bool | None = None,
modal: Var[bool] | bool | None = None,
direction: Literal["bottom", "left", "right", "top"]
| Var[Literal["bottom", "left", "right", "top"]]
| None = None,
dismissible: Var[bool] | bool | None = None,
handle_only: Var[bool] | bool | None = None,
snap_points: Optional[list[float | str]] = None,
fade_from_index: Var[int] | int | None = None,
scroll_lock_timeout: Var[int] | int | None = None,
prevent_scroll_restoration: Var[bool] | bool | None = None,
should_scale_background: Var[bool] | bool | None = None,
close_threshold: Var[float] | float | None = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_animation_end: Optional[EventType[()] | EventType[bool]] = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -587,7 +581,7 @@ class Drawer(ComponentNamespace):
on_mouse_out: Optional[EventType[()]] = None,
on_mouse_over: Optional[EventType[()]] = None,
on_mouse_up: Optional[EventType[()]] = None,
on_open_change: Optional[Union[EventType[()], EventType[bool]]] = None,
on_open_change: Optional[EventType[()] | EventType[bool]] = None,
on_scroll: Optional[EventType[()]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,7 @@
from __future__ import annotations
from typing import Any, Optional
from typing import Any
from reflex.components.component import Component, ComponentNamespace
from reflex.components.core.colors import color
@ -58,10 +58,10 @@ class ProgressIndicator(ProgressComponent):
alias = "RadixProgressIndicator"
# The current progress value.
value: Var[Optional[int]]
value: Var[int | None]
# The maximum progress value.
max: Var[Optional[int]]
max: Var[int | None]
# The color scheme of the progress indicator.
color_scheme: Var[LiteralAccentColor]
@ -98,10 +98,10 @@ class Progress(ProgressRoot):
color_scheme: Var[LiteralAccentColor]
# The current progress value.
value: Var[Optional[int]]
value: Var[int | None]
# The maximum progress value.
max: Var[Optional[int]]
max: Var[int | None]
@classmethod
def create(cls, **props) -> Component:

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.component import ComponentNamespace
from reflex.components.radix.primitives.base import RadixPrimitiveComponentWithClassName
@ -17,13 +17,13 @@ class ProgressComponent(RadixPrimitiveComponentWithClassName):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -66,19 +66,16 @@ class ProgressRoot(ProgressComponent):
def create( # type: ignore
cls,
*children,
radius: Optional[
Union[
Literal["full", "large", "medium", "none", "small"],
Var[Literal["full", "large", "medium", "none", "small"]],
]
] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
radius: Literal["full", "large", "medium", "none", "small"]
| Var[Literal["full", "large", "medium", "none", "small"]]
| None = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -122,77 +119,74 @@ class ProgressIndicator(ProgressComponent):
def create( # type: ignore
cls,
*children,
value: Optional[Union[Var[Optional[int]], int]] = None,
max: Optional[Union[Var[Optional[int]], int]] = None,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
value: Var[Optional[int]] | int | None = None,
max: Var[Optional[int]] | int | None = None,
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -237,83 +231,77 @@ class Progress(ProgressRoot):
def create( # type: ignore
cls,
*children,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
value: Optional[Union[Var[Optional[int]], int]] = None,
max: Optional[Union[Var[Optional[int]], int]] = None,
radius: Optional[
Union[
Literal["full", "large", "medium", "none", "small"],
Var[Literal["full", "large", "medium", "none", "small"]],
]
] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
value: Var[Optional[int]] | int | None = None,
max: Var[Optional[int]] | int | None = None,
radius: Literal["full", "large", "medium", "none", "small"]
| Var[Literal["full", "large", "medium", "none", "small"]]
| None = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -359,83 +347,77 @@ class ProgressNamespace(ComponentNamespace):
@staticmethod
def __call__(
*children,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
value: Optional[Union[Var[Optional[int]], int]] = None,
max: Optional[Union[Var[Optional[int]], int]] = None,
radius: Optional[
Union[
Literal["full", "large", "medium", "none", "small"],
Var[Literal["full", "large", "medium", "none", "small"]],
]
] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
value: Var[Optional[int]] | int | None = None,
max: Var[Optional[int]] | int | None = None,
radius: Literal["full", "large", "medium", "none", "small"]
| Var[Literal["full", "large", "medium", "none", "small"]]
| None = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.component import Component, ComponentNamespace
from reflex.components.radix.primitives.base import RadixPrimitiveComponentWithClassName
@ -20,13 +20,13 @@ class SliderComponent(RadixPrimitiveComponentWithClassName):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -71,29 +71,26 @@ class SliderRoot(SliderComponent):
def create( # type: ignore
cls,
*children,
default_value: Optional[Union[Var[list[int]], list[int]]] = None,
value: Optional[Union[Var[list[int]], list[int]]] = None,
name: Optional[Union[Var[str], str]] = None,
disabled: Optional[Union[Var[bool], bool]] = None,
orientation: Optional[
Union[
Literal["horizontal", "vertical"],
Var[Literal["horizontal", "vertical"]],
]
] = None,
dir: Optional[Union[Literal["ltr", "rtl"], Var[Literal["ltr", "rtl"]]]] = None,
inverted: Optional[Union[Var[bool], bool]] = None,
min: Optional[Union[Var[int], int]] = None,
max: Optional[Union[Var[int], int]] = None,
step: Optional[Union[Var[int], int]] = None,
min_steps_between_thumbs: Optional[Union[Var[int], int]] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
default_value: Var[list[int]] | list[int] | None = None,
value: Var[list[int]] | list[int] | None = None,
name: Var[str] | str | None = None,
disabled: Var[bool] | bool | None = None,
orientation: Literal["horizontal", "vertical"]
| Var[Literal["horizontal", "vertical"]]
| None = None,
dir: Literal["ltr", "rtl"] | Var[Literal["ltr", "rtl"]] | None = None,
inverted: Var[bool] | bool | None = None,
min: Var[int] | int | None = None,
max: Var[int] | int | None = None,
step: Var[int] | int | None = None,
min_steps_between_thumbs: Var[int] | int | None = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -109,8 +106,8 @@ class SliderRoot(SliderComponent):
on_mouse_up: Optional[EventType[()]] = None,
on_scroll: Optional[EventType[()]] = None,
on_unmount: Optional[EventType[()]] = None,
on_value_change: Optional[Union[EventType[()], EventType[list[int]]]] = None,
on_value_commit: Optional[Union[EventType[()], EventType[list[int]]]] = None,
on_value_change: Optional[EventType[()] | EventType[list[int]]] = None,
on_value_commit: Optional[EventType[()] | EventType[list[int]]] = None,
**props,
) -> "SliderRoot":
"""Create the component.
@ -140,13 +137,13 @@ class SliderTrack(SliderComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -189,13 +186,13 @@ class SliderRange(SliderComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -238,13 +235,13 @@ class SliderThumb(SliderComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components import Component
from reflex.components.core.breakpoints import Breakpoints
@ -56,54 +56,33 @@ class CommonMarginProps(Component):
def create( # type: ignore
cls,
*children,
m: Optional[
Union[
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
]
] = None,
mx: Optional[
Union[
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
]
] = None,
my: Optional[
Union[
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
]
] = None,
mt: Optional[
Union[
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
]
] = None,
mr: Optional[
Union[
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
]
] = None,
mb: Optional[
Union[
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
]
] = None,
ml: Optional[
Union[
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
]
] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
m: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
| Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| None = None,
mx: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
| Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| None = None,
my: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
| Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| None = None,
mt: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
| Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| None = None,
mr: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
| Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| None = None,
mb: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
| Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| None = None,
ml: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
| Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -151,131 +130,61 @@ class CommonPaddingProps(Component):
def create( # type: ignore
cls,
*children,
p: Optional[
Union[
Breakpoints[
str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
],
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
Var[
Union[
Breakpoints[
str,
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
],
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
]
],
]
] = None,
px: Optional[
Union[
Breakpoints[
str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
],
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
Var[
Union[
Breakpoints[
str,
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
],
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
]
],
]
] = None,
py: Optional[
Union[
Breakpoints[
str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
],
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
Var[
Union[
Breakpoints[
str,
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
],
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
]
],
]
] = None,
pt: Optional[
Union[
Breakpoints[
str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
],
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
Var[
Union[
Breakpoints[
str,
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
],
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
]
],
]
] = None,
pr: Optional[
Union[
Breakpoints[
str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
],
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
Var[
Union[
Breakpoints[
str,
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
],
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
]
],
]
] = None,
pb: Optional[
Union[
Breakpoints[
str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
],
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
Var[
Union[
Breakpoints[
str,
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
],
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
]
],
]
] = None,
pl: Optional[
Union[
Breakpoints[
str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
],
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
Var[
Union[
Breakpoints[
str,
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
],
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
]
],
]
] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
p: Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
| Var[
Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
]
| None = None,
px: Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
| Var[
Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
]
| None = None,
py: Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
| Var[
Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
]
| None = None,
pt: Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
| Var[
Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
]
| None = None,
pr: Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
| Var[
Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
]
| None = None,
pb: Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
| Var[
Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
]
| None = None,
pl: Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
| Var[
Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
]
| None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -323,13 +232,13 @@ class RadixLoadingProp(Component):
def create( # type: ignore
cls,
*children,
loading: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
loading: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -371,12 +280,12 @@ class RadixThemesComponent(Component):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -420,12 +329,12 @@ class RadixThemesTriggerComponent(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -461,103 +370,88 @@ class Theme(RadixThemesComponent):
cls,
*children,
color_mode: Optional[Literal["dark", "inherit", "light"]] = None,
theme_panel: Optional[bool] = False,
has_background: Optional[Union[Var[bool], bool]] = None,
appearance: Optional[
Union[
Literal["dark", "inherit", "light"],
Var[Literal["dark", "inherit", "light"]],
theme_panel: bool | None = False,
has_background: Var[bool] | bool | None = None,
appearance: Literal["dark", "inherit", "light"]
| Var[Literal["dark", "inherit", "light"]]
| None = None,
accent_color: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
accent_color: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
]
] = None,
gray_color: Optional[
Union[
Literal["auto", "gray", "mauve", "olive", "sage", "sand", "slate"],
Var[Literal["auto", "gray", "mauve", "olive", "sage", "sand", "slate"]],
]
] = None,
panel_background: Optional[
Union[Literal["solid", "translucent"], Var[Literal["solid", "translucent"]]]
] = None,
radius: Optional[
Union[
Literal["full", "large", "medium", "none", "small"],
Var[Literal["full", "large", "medium", "none", "small"]],
]
] = None,
scaling: Optional[
Union[
Literal["100%", "105%", "110%", "90%", "95%"],
Var[Literal["100%", "105%", "110%", "90%", "95%"]],
]
] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
gray_color: Literal["auto", "gray", "mauve", "olive", "sage", "sand", "slate"]
| Var[Literal["auto", "gray", "mauve", "olive", "sage", "sand", "slate"]]
| None = None,
panel_background: Literal["solid", "translucent"]
| Var[Literal["solid", "translucent"]]
| None = None,
radius: Literal["full", "large", "medium", "none", "small"]
| Var[Literal["full", "large", "medium", "none", "small"]]
| None = None,
scaling: Literal["100%", "105%", "110%", "90%", "95%"]
| Var[Literal["100%", "105%", "110%", "90%", "95%"]]
| None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -610,13 +504,13 @@ class ThemePanel(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
default_open: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
default_open: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -661,12 +555,12 @@ class RadixThemesColorModeProvider(Component):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.component import BaseComponent
from reflex.components.core.breakpoints import Breakpoints
@ -25,15 +25,15 @@ class ColorModeIcon(Cond):
def create( # type: ignore
cls,
*children,
cond: Optional[Union[Any, Var[Any]]] = None,
cond: Any | Var[Any] | None = None,
comp1: Optional[BaseComponent] = None,
comp2: Optional[BaseComponent] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -72,334 +72,282 @@ class ColorModeIconButton(IconButton):
def create( # type: ignore
cls,
*children,
position: Optional[
Union[
Literal["bottom-left", "bottom-right", "top-left", "top-right"],
Union[
Literal["bottom-left", "bottom-right", "top-left", "top-right"],
Var[
Literal["bottom-left", "bottom-right", "top-left", "top-right"]
],
],
position: Literal["bottom-left", "bottom-right", "top-left", "top-right"]
| Literal["bottom-left", "bottom-right", "top-left", "top-right"]
| Var[Literal["bottom-left", "bottom-right", "top-left", "top-right"]]
| None = None,
allow_system: bool | None = None,
as_child: Var[bool] | bool | None = None,
size: Breakpoints[str, Literal["1", "2", "3", "4"]]
| Literal["1", "2", "3", "4"]
| Var[
Breakpoints[str, Literal["1", "2", "3", "4"]] | Literal["1", "2", "3", "4"]
]
| None = None,
variant: Literal["classic", "ghost", "outline", "soft", "solid", "surface"]
| Var[Literal["classic", "ghost", "outline", "soft", "solid", "surface"]]
| None = None,
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
allow_system: Optional[bool] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
size: Optional[
Union[
Breakpoints[str, Literal["1", "2", "3", "4"]],
Literal["1", "2", "3", "4"],
Var[
Union[
Breakpoints[str, Literal["1", "2", "3", "4"]],
Literal["1", "2", "3", "4"],
]
],
]
| None = None,
high_contrast: Var[bool] | bool | None = None,
radius: Literal["full", "large", "medium", "none", "small"]
| Var[Literal["full", "large", "medium", "none", "small"]]
| None = None,
auto_focus: Var[bool] | bool | None = None,
disabled: Var[bool] | bool | None = None,
form: Var[str] | str | None = None,
form_action: Var[str] | str | None = None,
form_enc_type: Var[str] | str | None = None,
form_method: Var[str] | str | None = None,
form_no_validate: Var[bool] | bool | None = None,
form_target: Var[str] | str | None = None,
name: Var[str] | str | None = None,
type: Literal["button", "reset", "submit"]
| Var[Literal["button", "reset", "submit"]]
| None = None,
value: Var[float | int | str] | float | int | str | None = None,
access_key: Var[str] | str | None = None,
auto_capitalize: Literal[
"characters", "none", "off", "on", "sentences", "words"
]
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
| None = None,
content_editable: Literal["inherit", "plaintext-only", False, True]
| Var[Literal["inherit", "plaintext-only", False, True]]
| None = None,
context_menu: Var[str] | str | None = None,
dir: Var[str] | str | None = None,
draggable: Var[bool] | bool | None = None,
enter_key_hint: Literal[
"done", "enter", "go", "next", "previous", "search", "send"
]
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
| None = None,
hidden: Var[bool] | bool | None = None,
input_mode: Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
| Var[
Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
] = None,
variant: Optional[
Union[
Literal["classic", "ghost", "outline", "soft", "solid", "surface"],
Var[Literal["classic", "ghost", "outline", "soft", "solid", "surface"]],
]
| None = None,
item_prop: Var[str] | str | None = None,
lang: Var[str] | str | None = None,
role: Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
| Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
] = None,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
]
] = None,
high_contrast: Optional[Union[Var[bool], bool]] = None,
radius: Optional[
Union[
Literal["full", "large", "medium", "none", "small"],
Var[Literal["full", "large", "medium", "none", "small"]],
]
] = None,
auto_focus: Optional[Union[Var[bool], bool]] = None,
disabled: Optional[Union[Var[bool], bool]] = None,
form: Optional[Union[Var[str], str]] = None,
form_action: Optional[Union[Var[str], str]] = None,
form_enc_type: Optional[Union[Var[str], str]] = None,
form_method: Optional[Union[Var[str], str]] = None,
form_no_validate: Optional[Union[Var[bool], bool]] = None,
form_target: Optional[Union[Var[str], str]] = None,
name: Optional[Union[Var[str], str]] = None,
type: Optional[
Union[
Literal["button", "reset", "submit"],
Var[Literal["button", "reset", "submit"]],
]
] = None,
value: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
access_key: Optional[Union[Var[str], str]] = None,
auto_capitalize: Optional[
Union[
Literal["characters", "none", "off", "on", "sentences", "words"],
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
]
] = None,
content_editable: Optional[
Union[
Literal["inherit", "plaintext-only", False, True],
Var[Literal["inherit", "plaintext-only", False, True]],
]
] = None,
context_menu: Optional[Union[Var[str], str]] = None,
dir: Optional[Union[Var[str], str]] = None,
draggable: Optional[Union[Var[bool], bool]] = None,
enter_key_hint: Optional[
Union[
Literal["done", "enter", "go", "next", "previous", "search", "send"],
Var[
Literal["done", "enter", "go", "next", "previous", "search", "send"]
],
]
] = None,
hidden: Optional[Union[Var[bool], bool]] = None,
input_mode: Optional[
Union[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
],
Var[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
]
],
]
] = None,
item_prop: Optional[Union[Var[str], str]] = None,
lang: Optional[Union[Var[str], str]] = None,
role: Optional[
Union[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
],
Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
],
]
] = None,
slot: Optional[Union[Var[str], str]] = None,
spell_check: Optional[Union[Var[bool], bool]] = None,
tab_index: Optional[Union[Var[int], int]] = None,
title: Optional[Union[Var[str], str]] = None,
loading: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
slot: Var[str] | str | None = None,
spell_check: Var[bool] | bool | None = None,
tab_index: Var[int] | int | None = None,
title: Var[str] | str | None = None,
loading: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -475,106 +423,91 @@ class ColorModeSwitch(Switch):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
default_checked: Optional[Union[Var[bool], bool]] = None,
checked: Optional[Union[Var[bool], bool]] = None,
disabled: Optional[Union[Var[bool], bool]] = None,
required: Optional[Union[Var[bool], bool]] = None,
name: Optional[Union[Var[str], str]] = None,
value: Optional[Union[Var[str], str]] = None,
size: Optional[
Union[
Breakpoints[str, Literal["1", "2", "3"]],
Literal["1", "2", "3"],
Var[
Union[
Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
]
],
as_child: Var[bool] | bool | None = None,
default_checked: Var[bool] | bool | None = None,
checked: Var[bool] | bool | None = None,
disabled: Var[bool] | bool | None = None,
required: Var[bool] | bool | None = None,
name: Var[str] | str | None = None,
value: Var[str] | str | None = None,
size: Breakpoints[str, Literal["1", "2", "3"]]
| Literal["1", "2", "3"]
| Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
| None = None,
variant: Literal["classic", "soft", "surface"]
| Var[Literal["classic", "soft", "surface"]]
| None = None,
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
variant: Optional[
Union[
Literal["classic", "soft", "surface"],
Var[Literal["classic", "soft", "surface"]],
]
] = None,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
]
] = None,
high_contrast: Optional[Union[Var[bool], bool]] = None,
radius: Optional[
Union[
Literal["full", "none", "small"], Var[Literal["full", "none", "small"]]
]
] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
high_contrast: Var[bool] | bool | None = None,
radius: Literal["full", "none", "small"]
| Var[Literal["full", "none", "small"]]
| None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_change: Optional[Union[EventType[()], EventType[bool]]] = None,
on_change: Optional[EventType[()] | EventType[bool]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
on_double_click: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.component import ComponentNamespace
from reflex.components.core.breakpoints import Breakpoints
@ -22,14 +22,14 @@ class AlertDialogRoot(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
open: Optional[Union[Var[bool], bool]] = None,
default_open: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
open: Var[bool] | bool | None = None,
default_open: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -43,7 +43,7 @@ class AlertDialogRoot(RadixThemesComponent):
on_mouse_out: Optional[EventType[()]] = None,
on_mouse_over: Optional[EventType[()]] = None,
on_mouse_up: Optional[EventType[()]] = None,
on_open_change: Optional[Union[EventType[()], EventType[bool]]] = None,
on_open_change: Optional[EventType[()] | EventType[bool]] = None,
on_scroll: Optional[EventType[()]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,
@ -77,12 +77,12 @@ class AlertDialogTrigger(RadixThemesTriggerComponent):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -117,230 +117,197 @@ class AlertDialogContent(elements.Div, RadixThemesComponent):
def create( # type: ignore
cls,
*children,
size: Optional[
Union[
Breakpoints[str, Literal["1", "2", "3", "4"]],
Literal["1", "2", "3", "4"],
Var[
Union[
Breakpoints[str, Literal["1", "2", "3", "4"]],
Literal["1", "2", "3", "4"],
]
],
size: Breakpoints[str, Literal["1", "2", "3", "4"]]
| Literal["1", "2", "3", "4"]
| Var[
Breakpoints[str, Literal["1", "2", "3", "4"]] | Literal["1", "2", "3", "4"]
]
| None = None,
force_mount: Var[bool] | bool | None = None,
access_key: Var[str] | str | None = None,
auto_capitalize: Literal[
"characters", "none", "off", "on", "sentences", "words"
]
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
| None = None,
content_editable: Literal["inherit", "plaintext-only", False, True]
| Var[Literal["inherit", "plaintext-only", False, True]]
| None = None,
context_menu: Var[str] | str | None = None,
dir: Var[str] | str | None = None,
draggable: Var[bool] | bool | None = None,
enter_key_hint: Literal[
"done", "enter", "go", "next", "previous", "search", "send"
]
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
| None = None,
hidden: Var[bool] | bool | None = None,
input_mode: Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
| Var[
Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
] = None,
force_mount: Optional[Union[Var[bool], bool]] = None,
access_key: Optional[Union[Var[str], str]] = None,
auto_capitalize: Optional[
Union[
Literal["characters", "none", "off", "on", "sentences", "words"],
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
]
| None = None,
item_prop: Var[str] | str | None = None,
lang: Var[str] | str | None = None,
role: Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
| Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
] = None,
content_editable: Optional[
Union[
Literal["inherit", "plaintext-only", False, True],
Var[Literal["inherit", "plaintext-only", False, True]],
]
] = None,
context_menu: Optional[Union[Var[str], str]] = None,
dir: Optional[Union[Var[str], str]] = None,
draggable: Optional[Union[Var[bool], bool]] = None,
enter_key_hint: Optional[
Union[
Literal["done", "enter", "go", "next", "previous", "search", "send"],
Var[
Literal["done", "enter", "go", "next", "previous", "search", "send"]
],
]
] = None,
hidden: Optional[Union[Var[bool], bool]] = None,
input_mode: Optional[
Union[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
],
Var[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
]
],
]
] = None,
item_prop: Optional[Union[Var[str], str]] = None,
lang: Optional[Union[Var[str], str]] = None,
role: Optional[
Union[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
],
Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
],
]
] = None,
slot: Optional[Union[Var[str], str]] = None,
spell_check: Optional[Union[Var[bool], bool]] = None,
tab_index: Optional[Union[Var[int], int]] = None,
title: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
slot: Var[str] | str | None = None,
spell_check: Var[bool] | bool | None = None,
tab_index: Var[int] | int | None = None,
title: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_close_auto_focus: Optional[EventType[()]] = None,
@ -408,12 +375,12 @@ class AlertDialogTitle(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -457,12 +424,12 @@ class AlertDialogDescription(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -506,12 +473,12 @@ class AlertDialogAction(RadixThemesTriggerComponent):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -546,12 +513,12 @@ class AlertDialogCancel(RadixThemesTriggerComponent):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -1,7 +1,5 @@
"""Interactive components provided by @radix-ui/themes."""
from typing import Union
from reflex.vars.base import Var
from ..base import RadixThemesComponent
@ -13,7 +11,7 @@ class AspectRatio(RadixThemesComponent):
tag = "AspectRatio"
# The ratio of the width to the height of the element
ratio: Var[Union[float, int]]
ratio: Var[float | int]
aspect_ratio = AspectRatio.create

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Optional, Union, overload
from typing import Any, Optional, overload
from reflex.event import EventType
from reflex.style import Style
@ -17,13 +17,13 @@ class AspectRatio(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
ratio: Optional[Union[Var[Union[float, int]], float, int]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
ratio: Var[float | int] | float | int | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.core.breakpoints import Breakpoints
from reflex.event import EventType
@ -20,100 +20,85 @@ class Avatar(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
variant: Optional[
Union[Literal["soft", "solid"], Var[Literal["soft", "solid"]]]
] = None,
size: Optional[
Union[
Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
Var[
Union[
Breakpoints[
str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
],
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
]
],
variant: Literal["soft", "solid"] | Var[Literal["soft", "solid"]] | None = None,
size: Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
| Var[
Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
]
| None = None,
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
]
] = None,
high_contrast: Optional[Union[Var[bool], bool]] = None,
radius: Optional[
Union[
Literal["full", "large", "medium", "none", "small"],
Var[Literal["full", "large", "medium", "none", "small"]],
]
] = None,
src: Optional[Union[Var[str], str]] = None,
fallback: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
high_contrast: Var[bool] | bool | None = None,
radius: Literal["full", "large", "medium", "none", "small"]
| Var[Literal["full", "large", "medium", "none", "small"]]
| None = None,
src: Var[str] | str | None = None,
fallback: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.core.breakpoints import Breakpoints
from reflex.components.el import elements
@ -19,303 +19,260 @@ class Badge(elements.Span, RadixThemesComponent):
def create( # type: ignore
cls,
*children,
variant: Optional[
Union[
Literal["outline", "soft", "solid", "surface"],
Var[Literal["outline", "soft", "solid", "surface"]],
variant: Literal["outline", "soft", "solid", "surface"]
| Var[Literal["outline", "soft", "solid", "surface"]]
| None = None,
size: Breakpoints[str, Literal["1", "2", "3"]]
| Literal["1", "2", "3"]
| Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
| None = None,
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
size: Optional[
Union[
Breakpoints[str, Literal["1", "2", "3"]],
Literal["1", "2", "3"],
Var[
Union[
Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
]
],
]
| None = None,
high_contrast: Var[bool] | bool | None = None,
radius: Literal["full", "large", "medium", "none", "small"]
| Var[Literal["full", "large", "medium", "none", "small"]]
| None = None,
access_key: Var[str] | str | None = None,
auto_capitalize: Literal[
"characters", "none", "off", "on", "sentences", "words"
]
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
| None = None,
content_editable: Literal["inherit", "plaintext-only", False, True]
| Var[Literal["inherit", "plaintext-only", False, True]]
| None = None,
context_menu: Var[str] | str | None = None,
dir: Var[str] | str | None = None,
draggable: Var[bool] | bool | None = None,
enter_key_hint: Literal[
"done", "enter", "go", "next", "previous", "search", "send"
]
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
| None = None,
hidden: Var[bool] | bool | None = None,
input_mode: Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
| Var[
Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
] = None,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
]
| None = None,
item_prop: Var[str] | str | None = None,
lang: Var[str] | str | None = None,
role: Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
| Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
] = None,
high_contrast: Optional[Union[Var[bool], bool]] = None,
radius: Optional[
Union[
Literal["full", "large", "medium", "none", "small"],
Var[Literal["full", "large", "medium", "none", "small"]],
]
] = None,
access_key: Optional[Union[Var[str], str]] = None,
auto_capitalize: Optional[
Union[
Literal["characters", "none", "off", "on", "sentences", "words"],
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
]
] = None,
content_editable: Optional[
Union[
Literal["inherit", "plaintext-only", False, True],
Var[Literal["inherit", "plaintext-only", False, True]],
]
] = None,
context_menu: Optional[Union[Var[str], str]] = None,
dir: Optional[Union[Var[str], str]] = None,
draggable: Optional[Union[Var[bool], bool]] = None,
enter_key_hint: Optional[
Union[
Literal["done", "enter", "go", "next", "previous", "search", "send"],
Var[
Literal["done", "enter", "go", "next", "previous", "search", "send"]
],
]
] = None,
hidden: Optional[Union[Var[bool], bool]] = None,
input_mode: Optional[
Union[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
],
Var[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
]
],
]
] = None,
item_prop: Optional[Union[Var[str], str]] = None,
lang: Optional[Union[Var[str], str]] = None,
role: Optional[
Union[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
],
Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
],
]
] = None,
slot: Optional[Union[Var[str], str]] = None,
spell_check: Optional[Union[Var[bool], bool]] = None,
tab_index: Optional[Union[Var[int], int]] = None,
title: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
slot: Var[str] | str | None = None,
spell_check: Var[bool] | bool | None = None,
tab_index: Var[int] | int | None = None,
title: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.core.breakpoints import Breakpoints
from reflex.components.el import elements
@ -21,322 +21,277 @@ class Button(elements.Button, RadixLoadingProp, RadixThemesComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
size: Optional[
Union[
Breakpoints[str, Literal["1", "2", "3", "4"]],
Literal["1", "2", "3", "4"],
Var[
Union[
Breakpoints[str, Literal["1", "2", "3", "4"]],
Literal["1", "2", "3", "4"],
]
],
as_child: Var[bool] | bool | None = None,
size: Breakpoints[str, Literal["1", "2", "3", "4"]]
| Literal["1", "2", "3", "4"]
| Var[
Breakpoints[str, Literal["1", "2", "3", "4"]] | Literal["1", "2", "3", "4"]
]
| None = None,
variant: Literal["classic", "ghost", "outline", "soft", "solid", "surface"]
| Var[Literal["classic", "ghost", "outline", "soft", "solid", "surface"]]
| None = None,
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
variant: Optional[
Union[
Literal["classic", "ghost", "outline", "soft", "solid", "surface"],
Var[Literal["classic", "ghost", "outline", "soft", "solid", "surface"]],
]
| None = None,
high_contrast: Var[bool] | bool | None = None,
radius: Literal["full", "large", "medium", "none", "small"]
| Var[Literal["full", "large", "medium", "none", "small"]]
| None = None,
auto_focus: Var[bool] | bool | None = None,
disabled: Var[bool] | bool | None = None,
form: Var[str] | str | None = None,
form_action: Var[str] | str | None = None,
form_enc_type: Var[str] | str | None = None,
form_method: Var[str] | str | None = None,
form_no_validate: Var[bool] | bool | None = None,
form_target: Var[str] | str | None = None,
name: Var[str] | str | None = None,
type: Literal["button", "reset", "submit"]
| Var[Literal["button", "reset", "submit"]]
| None = None,
value: Var[float | int | str] | float | int | str | None = None,
access_key: Var[str] | str | None = None,
auto_capitalize: Literal[
"characters", "none", "off", "on", "sentences", "words"
]
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
| None = None,
content_editable: Literal["inherit", "plaintext-only", False, True]
| Var[Literal["inherit", "plaintext-only", False, True]]
| None = None,
context_menu: Var[str] | str | None = None,
dir: Var[str] | str | None = None,
draggable: Var[bool] | bool | None = None,
enter_key_hint: Literal[
"done", "enter", "go", "next", "previous", "search", "send"
]
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
| None = None,
hidden: Var[bool] | bool | None = None,
input_mode: Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
| Var[
Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
] = None,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
]
| None = None,
item_prop: Var[str] | str | None = None,
lang: Var[str] | str | None = None,
role: Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
| Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
] = None,
high_contrast: Optional[Union[Var[bool], bool]] = None,
radius: Optional[
Union[
Literal["full", "large", "medium", "none", "small"],
Var[Literal["full", "large", "medium", "none", "small"]],
]
] = None,
auto_focus: Optional[Union[Var[bool], bool]] = None,
disabled: Optional[Union[Var[bool], bool]] = None,
form: Optional[Union[Var[str], str]] = None,
form_action: Optional[Union[Var[str], str]] = None,
form_enc_type: Optional[Union[Var[str], str]] = None,
form_method: Optional[Union[Var[str], str]] = None,
form_no_validate: Optional[Union[Var[bool], bool]] = None,
form_target: Optional[Union[Var[str], str]] = None,
name: Optional[Union[Var[str], str]] = None,
type: Optional[
Union[
Literal["button", "reset", "submit"],
Var[Literal["button", "reset", "submit"]],
]
] = None,
value: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
access_key: Optional[Union[Var[str], str]] = None,
auto_capitalize: Optional[
Union[
Literal["characters", "none", "off", "on", "sentences", "words"],
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
]
] = None,
content_editable: Optional[
Union[
Literal["inherit", "plaintext-only", False, True],
Var[Literal["inherit", "plaintext-only", False, True]],
]
] = None,
context_menu: Optional[Union[Var[str], str]] = None,
dir: Optional[Union[Var[str], str]] = None,
draggable: Optional[Union[Var[bool], bool]] = None,
enter_key_hint: Optional[
Union[
Literal["done", "enter", "go", "next", "previous", "search", "send"],
Var[
Literal["done", "enter", "go", "next", "previous", "search", "send"]
],
]
] = None,
hidden: Optional[Union[Var[bool], bool]] = None,
input_mode: Optional[
Union[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
],
Var[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
]
],
]
] = None,
item_prop: Optional[Union[Var[str], str]] = None,
lang: Optional[Union[Var[str], str]] = None,
role: Optional[
Union[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
],
Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
],
]
] = None,
slot: Optional[Union[Var[str], str]] = None,
spell_check: Optional[Union[Var[bool], bool]] = None,
tab_index: Optional[Union[Var[int], int]] = None,
title: Optional[Union[Var[str], str]] = None,
loading: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
slot: Var[str] | str | None = None,
spell_check: Var[bool] | bool | None = None,
tab_index: Var[int] | int | None = None,
title: Var[str] | str | None = None,
loading: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.core.breakpoints import Breakpoints
from reflex.components.el import elements
@ -19,236 +19,201 @@ class Card(elements.Div, RadixThemesComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
size: Optional[
Union[
Breakpoints[str, Literal["1", "2", "3", "4", "5"]],
Literal["1", "2", "3", "4", "5"],
Var[
Union[
Breakpoints[str, Literal["1", "2", "3", "4", "5"]],
Literal["1", "2", "3", "4", "5"],
]
],
as_child: Var[bool] | bool | None = None,
size: Breakpoints[str, Literal["1", "2", "3", "4", "5"]]
| Literal["1", "2", "3", "4", "5"]
| Var[
Breakpoints[str, Literal["1", "2", "3", "4", "5"]]
| Literal["1", "2", "3", "4", "5"]
]
| None = None,
variant: Literal["classic", "ghost", "surface"]
| Var[Literal["classic", "ghost", "surface"]]
| None = None,
access_key: Var[str] | str | None = None,
auto_capitalize: Literal[
"characters", "none", "off", "on", "sentences", "words"
]
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
| None = None,
content_editable: Literal["inherit", "plaintext-only", False, True]
| Var[Literal["inherit", "plaintext-only", False, True]]
| None = None,
context_menu: Var[str] | str | None = None,
dir: Var[str] | str | None = None,
draggable: Var[bool] | bool | None = None,
enter_key_hint: Literal[
"done", "enter", "go", "next", "previous", "search", "send"
]
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
| None = None,
hidden: Var[bool] | bool | None = None,
input_mode: Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
| Var[
Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
] = None,
variant: Optional[
Union[
Literal["classic", "ghost", "surface"],
Var[Literal["classic", "ghost", "surface"]],
]
| None = None,
item_prop: Var[str] | str | None = None,
lang: Var[str] | str | None = None,
role: Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
| Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
] = None,
access_key: Optional[Union[Var[str], str]] = None,
auto_capitalize: Optional[
Union[
Literal["characters", "none", "off", "on", "sentences", "words"],
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
]
] = None,
content_editable: Optional[
Union[
Literal["inherit", "plaintext-only", False, True],
Var[Literal["inherit", "plaintext-only", False, True]],
]
] = None,
context_menu: Optional[Union[Var[str], str]] = None,
dir: Optional[Union[Var[str], str]] = None,
draggable: Optional[Union[Var[bool], bool]] = None,
enter_key_hint: Optional[
Union[
Literal["done", "enter", "go", "next", "previous", "search", "send"],
Var[
Literal["done", "enter", "go", "next", "previous", "search", "send"]
],
]
] = None,
hidden: Optional[Union[Var[bool], bool]] = None,
input_mode: Optional[
Union[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
],
Var[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
]
],
]
] = None,
item_prop: Optional[Union[Var[str], str]] = None,
lang: Optional[Union[Var[str], str]] = None,
role: Optional[
Union[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
],
Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
],
]
] = None,
slot: Optional[Union[Var[str], str]] = None,
spell_check: Optional[Union[Var[bool], bool]] = None,
tab_index: Optional[Union[Var[int], int]] = None,
title: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
slot: Var[str] | str | None = None,
spell_check: Var[bool] | bool | None = None,
tab_index: Var[int] | int | None = None,
title: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.component import ComponentNamespace
from reflex.components.core.breakpoints import Breakpoints
@ -22,101 +22,88 @@ class Checkbox(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
size: Optional[
Union[
Breakpoints[str, Literal["1", "2", "3"]],
Literal["1", "2", "3"],
Var[
Union[
Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
]
],
as_child: Var[bool] | bool | None = None,
size: Breakpoints[str, Literal["1", "2", "3"]]
| Literal["1", "2", "3"]
| Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
| None = None,
variant: Literal["classic", "soft", "surface"]
| Var[Literal["classic", "soft", "surface"]]
| None = None,
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
variant: Optional[
Union[
Literal["classic", "soft", "surface"],
Var[Literal["classic", "soft", "surface"]],
]
] = None,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
]
] = None,
high_contrast: Optional[Union[Var[bool], bool]] = None,
default_checked: Optional[Union[Var[bool], bool]] = None,
checked: Optional[Union[Var[bool], bool]] = None,
disabled: Optional[Union[Var[bool], bool]] = None,
required: Optional[Union[Var[bool], bool]] = None,
name: Optional[Union[Var[str], str]] = None,
value: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
high_contrast: Var[bool] | bool | None = None,
default_checked: Var[bool] | bool | None = None,
checked: Var[bool] | bool | None = None,
disabled: Var[bool] | bool | None = None,
required: Var[bool] | bool | None = None,
name: Var[str] | str | None = None,
value: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_change: Optional[Union[EventType[()], EventType[bool]]] = None,
on_change: Optional[EventType[()] | EventType[bool]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
on_double_click: Optional[EventType[()]] = None,
@ -171,100 +158,89 @@ class HighLevelCheckbox(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
text: Optional[Union[Var[str], str]] = None,
spacing: Optional[
Union[
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
text: Var[str] | str | None = None,
spacing: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
| Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| None = None,
size: Literal["1", "2", "3"] | Var[Literal["1", "2", "3"]] | None = None,
as_child: Var[bool] | bool | None = None,
variant: Literal["classic", "soft", "surface"]
| Var[Literal["classic", "soft", "surface"]]
| None = None,
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
size: Optional[
Union[Literal["1", "2", "3"], Var[Literal["1", "2", "3"]]]
] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
variant: Optional[
Union[
Literal["classic", "soft", "surface"],
Var[Literal["classic", "soft", "surface"]],
]
] = None,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
]
] = None,
high_contrast: Optional[Union[Var[bool], bool]] = None,
default_checked: Optional[Union[Var[bool], bool]] = None,
checked: Optional[Union[Var[bool], bool]] = None,
disabled: Optional[Union[Var[bool], bool]] = None,
required: Optional[Union[Var[bool], bool]] = None,
name: Optional[Union[Var[str], str]] = None,
value: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
high_contrast: Var[bool] | bool | None = None,
default_checked: Var[bool] | bool | None = None,
checked: Var[bool] | bool | None = None,
disabled: Var[bool] | bool | None = None,
required: Var[bool] | bool | None = None,
name: Var[str] | str | None = None,
value: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_change: Optional[Union[EventType[()], EventType[bool]]] = None,
on_change: Optional[EventType[()] | EventType[bool]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
on_double_click: Optional[EventType[()]] = None,
@ -316,100 +292,89 @@ class CheckboxNamespace(ComponentNamespace):
@staticmethod
def __call__(
*children,
text: Optional[Union[Var[str], str]] = None,
spacing: Optional[
Union[
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
text: Var[str] | str | None = None,
spacing: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
| Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
| None = None,
size: Literal["1", "2", "3"] | Var[Literal["1", "2", "3"]] | None = None,
as_child: Var[bool] | bool | None = None,
variant: Literal["classic", "soft", "surface"]
| Var[Literal["classic", "soft", "surface"]]
| None = None,
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
size: Optional[
Union[Literal["1", "2", "3"], Var[Literal["1", "2", "3"]]]
] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
variant: Optional[
Union[
Literal["classic", "soft", "surface"],
Var[Literal["classic", "soft", "surface"]],
]
] = None,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
]
] = None,
high_contrast: Optional[Union[Var[bool], bool]] = None,
default_checked: Optional[Union[Var[bool], bool]] = None,
checked: Optional[Union[Var[bool], bool]] = None,
disabled: Optional[Union[Var[bool], bool]] = None,
required: Optional[Union[Var[bool], bool]] = None,
name: Optional[Union[Var[str], str]] = None,
value: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
high_contrast: Var[bool] | bool | None = None,
default_checked: Var[bool] | bool | None = None,
checked: Var[bool] | bool | None = None,
disabled: Var[bool] | bool | None = None,
required: Var[bool] | bool | None = None,
name: Var[str] | str | None = None,
value: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_change: Optional[Union[EventType[()], EventType[bool]]] = None,
on_change: Optional[EventType[()] | EventType[bool]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
on_double_click: Optional[EventType[()]] = None,

View File

@ -4,7 +4,7 @@
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from types import SimpleNamespace
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.core.breakpoints import Breakpoints
from reflex.event import EventType
@ -19,135 +19,101 @@ class CheckboxCardsRoot(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
size: Optional[
Union[
Breakpoints[str, Literal["1", "2", "3"]],
Literal["1", "2", "3"],
Var[
Union[
Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
]
],
size: Breakpoints[str, Literal["1", "2", "3"]]
| Literal["1", "2", "3"]
| Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
| None = None,
variant: Literal["classic", "surface"]
| Var[Literal["classic", "surface"]]
| None = None,
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
variant: Optional[
Union[Literal["classic", "surface"], Var[Literal["classic", "surface"]]]
] = None,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
]
] = None,
high_contrast: Optional[Union[Var[bool], bool]] = None,
columns: Optional[
Union[
Breakpoints[
str,
Union[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], str],
],
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
Var[
Union[
Breakpoints[
str,
Union[
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
str,
],
],
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
str,
]
],
str,
]
] = None,
gap: Optional[
Union[
Breakpoints[
str,
Union[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], str],
],
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
Var[
Union[
Breakpoints[
str,
Union[
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
str,
],
],
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
str,
]
],
str,
]
] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
high_contrast: Var[bool] | bool | None = None,
columns: Breakpoints[
str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"] | str
]
| Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
| Var[
Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"] | str]
| Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
| str
]
| str
| None = None,
gap: Breakpoints[
str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"] | str
]
| Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
| Var[
Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"] | str]
| Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
| str
]
| str
| None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -197,12 +163,12 @@ class CheckboxCardsItem(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -4,7 +4,7 @@
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from types import SimpleNamespace
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.core.breakpoints import Breakpoints
from reflex.event import EventType
@ -19,94 +19,81 @@ class CheckboxGroupRoot(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
size: Optional[
Union[
Breakpoints[str, Literal["1", "2", "3"]],
Literal["1", "2", "3"],
Var[
Union[
Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
]
],
size: Breakpoints[str, Literal["1", "2", "3"]]
| Literal["1", "2", "3"]
| Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
| None = None,
variant: Literal["classic", "soft", "surface"]
| Var[Literal["classic", "soft", "surface"]]
| None = None,
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
variant: Optional[
Union[
Literal["classic", "soft", "surface"],
Var[Literal["classic", "soft", "surface"]],
]
] = None,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
]
] = None,
high_contrast: Optional[Union[Var[bool], bool]] = None,
default_value: Optional[Union[Var[list[str]], list[str]]] = None,
name: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
high_contrast: Var[bool] | bool | None = None,
default_value: Var[list[str]] | list[str] | None = None,
name: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -156,14 +143,14 @@ class CheckboxGroupItem(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
value: Optional[Union[Var[str], str]] = None,
disabled: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
value: Var[str] | str | None = None,
disabled: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -89,19 +89,19 @@ class ContextMenuContent(RadixThemesComponent):
side: Var[LiteralSideType]
# The distance in pixels from the trigger. Defaults to 0.
side_offset: Var[Union[float, int]]
side_offset: Var[float | int]
# The preferred alignment against the trigger. May change when collisions occur. Defaults to "center".
align: Var[LiteralAlignType]
# An offset in pixels from the "start" or "end" alignment options.
align_offset: Var[Union[float, int]]
align_offset: Var[float | int]
# When true, overrides the side and align preferences to prevent collisions with boundary edges. Defaults to True.
avoid_collisions: Var[bool]
# The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for all sides), or a partial padding object, for example: { "top": 20, "left": 20 }. Defaults to 0.
collision_padding: Var[Union[float, int, dict[str, Union[float, int]]]]
collision_padding: Var[Union[float, int, dict[str, float | int]]]
# The sticky behavior on the align axis. "partial" will keep the content in the boundary as long as the trigger is at least partially in the boundary whilst "always" will keep the content in the boundary regardless. Defaults to "partial".
sticky: Var[LiteralStickyType]
@ -174,16 +174,16 @@ class ContextMenuSubContent(RadixThemesComponent):
force_mount: Var[bool]
# The distance in pixels from the trigger. Defaults to 0.
side_offset: Var[Union[float, int]]
side_offset: Var[float | int]
# An offset in pixels from the "start" or "end" alignment options.
align_offset: Var[Union[float, int]]
align_offset: Var[float | int]
# When true, overrides the side and align preferences to prevent collisions with boundary edges. Defaults to True.
avoid_collisions: Var[bool]
# The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for all sides), or a partial padding object, for example: { "top": 20, "left": 20 }. Defaults to 0.
collision_padding: Var[Union[float, int, dict[str, Union[float, int]]]]
collision_padding: Var[Union[float, int, dict[str, float | int]]]
# The sticky behavior on the align axis. "partial" will keep the content in the boundary as long as the trigger is at least partially in the boundary whilst "always" will keep the content in the boundary regardless. Defaults to "partial".
sticky: Var[LiteralStickyType]

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.component import ComponentNamespace
from reflex.components.core.breakpoints import Breakpoints
@ -27,14 +27,14 @@ class ContextMenuRoot(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
modal: Optional[Union[Var[bool], bool]] = None,
dir: Optional[Union[Literal["ltr", "rtl"], Var[Literal["ltr", "rtl"]]]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
modal: Var[bool] | bool | None = None,
dir: Literal["ltr", "rtl"] | Var[Literal["ltr", "rtl"]] | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -48,7 +48,7 @@ class ContextMenuRoot(RadixThemesComponent):
on_mouse_out: Optional[EventType[()]] = None,
on_mouse_over: Optional[EventType[()]] = None,
on_mouse_up: Optional[EventType[()]] = None,
on_open_change: Optional[Union[EventType[()], EventType[bool]]] = None,
on_open_change: Optional[EventType[()] | EventType[bool]] = None,
on_scroll: Optional[EventType[()]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,
@ -82,13 +82,13 @@ class ContextMenuTrigger(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
disabled: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
disabled: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -133,115 +133,98 @@ class ContextMenuContent(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
size: Optional[
Union[
Breakpoints[str, Literal["1", "2"]],
Literal["1", "2"],
Var[Union[Breakpoints[str, Literal["1", "2"]], Literal["1", "2"]]],
size: Breakpoints[str, Literal["1", "2"]]
| Literal["1", "2"]
| Var[Breakpoints[str, Literal["1", "2"]] | Literal["1", "2"]]
| None = None,
variant: Literal["soft", "solid"] | Var[Literal["soft", "solid"]] | None = None,
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
variant: Optional[
Union[Literal["soft", "solid"], Var[Literal["soft", "solid"]]]
] = None,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
]
] = None,
high_contrast: Optional[Union[Var[bool], bool]] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
loop: Optional[Union[Var[bool], bool]] = None,
force_mount: Optional[Union[Var[bool], bool]] = None,
side: Optional[
Union[
Literal["bottom", "left", "right", "top"],
Var[Literal["bottom", "left", "right", "top"]],
]
] = None,
side_offset: Optional[Union[Var[Union[float, int]], float, int]] = None,
align: Optional[
Union[
Literal["center", "end", "start"],
Var[Literal["center", "end", "start"]],
]
] = None,
align_offset: Optional[Union[Var[Union[float, int]], float, int]] = None,
avoid_collisions: Optional[Union[Var[bool], bool]] = None,
collision_padding: Optional[
Union[
Var[Union[dict[str, Union[float, int]], float, int]],
dict[str, Union[float, int]],
float,
int,
]
] = None,
sticky: Optional[
Union[Literal["always", "partial"], Var[Literal["always", "partial"]]]
] = None,
hide_when_detached: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
high_contrast: Var[bool] | bool | None = None,
as_child: Var[bool] | bool | None = None,
loop: Var[bool] | bool | None = None,
force_mount: Var[bool] | bool | None = None,
side: Literal["bottom", "left", "right", "top"]
| Var[Literal["bottom", "left", "right", "top"]]
| None = None,
side_offset: Var[float | int] | float | int | None = None,
align: Literal["center", "end", "start"]
| Var[Literal["center", "end", "start"]]
| None = None,
align_offset: Var[float | int] | float | int | None = None,
avoid_collisions: Var[bool] | bool | None = None,
collision_padding: Var[dict[str, float | int] | float | int]
| dict[str, float | int]
| float
| int
| None = None,
sticky: Literal["always", "partial"]
| Var[Literal["always", "partial"]]
| None = None,
hide_when_detached: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_close_auto_focus: Optional[EventType[()]] = None,
@ -310,14 +293,14 @@ class ContextMenuSub(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
open: Optional[Union[Var[bool], bool]] = None,
default_open: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
open: Var[bool] | bool | None = None,
default_open: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -331,7 +314,7 @@ class ContextMenuSub(RadixThemesComponent):
on_mouse_out: Optional[EventType[()]] = None,
on_mouse_over: Optional[EventType[()]] = None,
on_mouse_up: Optional[EventType[()]] = None,
on_open_change: Optional[Union[EventType[()], EventType[bool]]] = None,
on_open_change: Optional[EventType[()] | EventType[bool]] = None,
on_scroll: Optional[EventType[()]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,
@ -365,15 +348,15 @@ class ContextMenuSubTrigger(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
disabled: Optional[Union[Var[bool], bool]] = None,
text_value: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
disabled: Var[bool] | bool | None = None,
text_value: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -420,30 +403,27 @@ class ContextMenuSubContent(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
loop: Optional[Union[Var[bool], bool]] = None,
force_mount: Optional[Union[Var[bool], bool]] = None,
side_offset: Optional[Union[Var[Union[float, int]], float, int]] = None,
align_offset: Optional[Union[Var[Union[float, int]], float, int]] = None,
avoid_collisions: Optional[Union[Var[bool], bool]] = None,
collision_padding: Optional[
Union[
Var[Union[dict[str, Union[float, int]], float, int]],
dict[str, Union[float, int]],
float,
int,
]
] = None,
sticky: Optional[
Union[Literal["always", "partial"], Var[Literal["always", "partial"]]]
] = None,
hide_when_detached: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
loop: Var[bool] | bool | None = None,
force_mount: Var[bool] | bool | None = None,
side_offset: Var[float | int] | float | int | None = None,
align_offset: Var[float | int] | float | int | None = None,
avoid_collisions: Var[bool] | bool | None = None,
collision_padding: Var[dict[str, float | int] | float | int]
| dict[str, float | int]
| float
| int
| None = None,
sticky: Literal["always", "partial"]
| Var[Literal["always", "partial"]]
| None = None,
hide_when_detached: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -504,78 +484,75 @@ class ContextMenuItem(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
shortcut: Optional[Union[Var[str], str]] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
disabled: Optional[Union[Var[bool], bool]] = None,
text_value: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
shortcut: Var[str] | str | None = None,
as_child: Var[bool] | bool | None = None,
disabled: Var[bool] | bool | None = None,
text_value: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -626,12 +603,12 @@ class ContextMenuSeparator(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -675,102 +652,89 @@ class ContextMenuCheckbox(Checkbox):
def create( # type: ignore
cls,
*children,
shortcut: Optional[Union[Var[str], str]] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
size: Optional[
Union[
Breakpoints[str, Literal["1", "2", "3"]],
Literal["1", "2", "3"],
Var[
Union[
Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
]
],
shortcut: Var[str] | str | None = None,
as_child: Var[bool] | bool | None = None,
size: Breakpoints[str, Literal["1", "2", "3"]]
| Literal["1", "2", "3"]
| Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
| None = None,
variant: Literal["classic", "soft", "surface"]
| Var[Literal["classic", "soft", "surface"]]
| None = None,
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
variant: Optional[
Union[
Literal["classic", "soft", "surface"],
Var[Literal["classic", "soft", "surface"]],
]
] = None,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
]
] = None,
high_contrast: Optional[Union[Var[bool], bool]] = None,
default_checked: Optional[Union[Var[bool], bool]] = None,
checked: Optional[Union[Var[bool], bool]] = None,
disabled: Optional[Union[Var[bool], bool]] = None,
required: Optional[Union[Var[bool], bool]] = None,
name: Optional[Union[Var[str], str]] = None,
value: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
high_contrast: Var[bool] | bool | None = None,
default_checked: Var[bool] | bool | None = None,
checked: Var[bool] | bool | None = None,
disabled: Var[bool] | bool | None = None,
required: Var[bool] | bool | None = None,
name: Var[str] | str | None = None,
value: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_change: Optional[Union[EventType[()], EventType[bool]]] = None,
on_change: Optional[EventType[()] | EventType[bool]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
on_double_click: Optional[EventType[()]] = None,

View File

@ -4,7 +4,7 @@
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from types import SimpleNamespace
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.core.breakpoints import Breakpoints
from reflex.event import EventType
@ -19,47 +19,30 @@ class DataListRoot(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
orientation: Optional[
Union[
Breakpoints[str, Literal["horizontal", "vertical"]],
Literal["horizontal", "vertical"],
Var[
Union[
Breakpoints[str, Literal["horizontal", "vertical"]],
Literal["horizontal", "vertical"],
]
],
]
] = None,
size: Optional[
Union[
Breakpoints[str, Literal["1", "2", "3"]],
Literal["1", "2", "3"],
Var[
Union[
Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
]
],
]
] = None,
trim: Optional[
Union[
Breakpoints[str, Literal["both", "end", "normal", "start"]],
Literal["both", "end", "normal", "start"],
Var[
Union[
Breakpoints[str, Literal["both", "end", "normal", "start"]],
Literal["both", "end", "normal", "start"],
]
],
]
] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
orientation: Breakpoints[str, Literal["horizontal", "vertical"]]
| Literal["horizontal", "vertical"]
| Var[
Breakpoints[str, Literal["horizontal", "vertical"]]
| Literal["horizontal", "vertical"]
]
| None = None,
size: Breakpoints[str, Literal["1", "2", "3"]]
| Literal["1", "2", "3"]
| Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
| None = None,
trim: Breakpoints[str, Literal["both", "end", "normal", "start"]]
| Literal["both", "end", "normal", "start"]
| Var[
Breakpoints[str, Literal["both", "end", "normal", "start"]]
| Literal["both", "end", "normal", "start"]
]
| None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -106,29 +89,21 @@ class DataListItem(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
align: Optional[
Union[
Breakpoints[
str, Literal["baseline", "center", "end", "start", "stretch"]
],
Literal["baseline", "center", "end", "start", "stretch"],
Var[
Union[
Breakpoints[
str,
Literal["baseline", "center", "end", "start", "stretch"],
],
Literal["baseline", "center", "end", "start", "stretch"],
]
],
]
] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
align: Breakpoints[
str, Literal["baseline", "center", "end", "start", "stretch"]
]
| Literal["baseline", "center", "end", "start", "stretch"]
| Var[
Breakpoints[str, Literal["baseline", "center", "end", "start", "stretch"]]
| Literal["baseline", "center", "end", "start", "stretch"]
]
| None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -173,83 +148,83 @@ class DataListLabel(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
width: Optional[
Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
] = None,
min_width: Optional[
Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
] = None,
max_width: Optional[
Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
] = None,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
width: Breakpoints[str, str]
| Var[Breakpoints[str, str] | str]
| str
| None = None,
min_width: Breakpoints[str, str]
| Var[Breakpoints[str, str] | str]
| str
| None = None,
max_width: Breakpoints[str, str]
| Var[Breakpoints[str, str] | str]
| str
| None = None,
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -297,12 +272,12 @@ class DataListValue(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.component import ComponentNamespace
from reflex.components.core.breakpoints import Breakpoints
@ -20,14 +20,14 @@ class DialogRoot(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
open: Optional[Union[Var[bool], bool]] = None,
default_open: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
open: Var[bool] | bool | None = None,
default_open: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -41,7 +41,7 @@ class DialogRoot(RadixThemesComponent):
on_mouse_out: Optional[EventType[()]] = None,
on_mouse_over: Optional[EventType[()]] = None,
on_mouse_up: Optional[EventType[()]] = None,
on_open_change: Optional[Union[EventType[()], EventType[bool]]] = None,
on_open_change: Optional[EventType[()] | EventType[bool]] = None,
on_scroll: Optional[EventType[()]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,
@ -75,12 +75,12 @@ class DialogTrigger(RadixThemesTriggerComponent):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -115,12 +115,12 @@ class DialogTitle(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -164,229 +164,196 @@ class DialogContent(elements.Div, RadixThemesComponent):
def create( # type: ignore
cls,
*children,
size: Optional[
Union[
Breakpoints[str, Literal["1", "2", "3", "4"]],
Literal["1", "2", "3", "4"],
Var[
Union[
Breakpoints[str, Literal["1", "2", "3", "4"]],
Literal["1", "2", "3", "4"],
]
],
size: Breakpoints[str, Literal["1", "2", "3", "4"]]
| Literal["1", "2", "3", "4"]
| Var[
Breakpoints[str, Literal["1", "2", "3", "4"]] | Literal["1", "2", "3", "4"]
]
| None = None,
access_key: Var[str] | str | None = None,
auto_capitalize: Literal[
"characters", "none", "off", "on", "sentences", "words"
]
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
| None = None,
content_editable: Literal["inherit", "plaintext-only", False, True]
| Var[Literal["inherit", "plaintext-only", False, True]]
| None = None,
context_menu: Var[str] | str | None = None,
dir: Var[str] | str | None = None,
draggable: Var[bool] | bool | None = None,
enter_key_hint: Literal[
"done", "enter", "go", "next", "previous", "search", "send"
]
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
| None = None,
hidden: Var[bool] | bool | None = None,
input_mode: Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
| Var[
Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
] = None,
access_key: Optional[Union[Var[str], str]] = None,
auto_capitalize: Optional[
Union[
Literal["characters", "none", "off", "on", "sentences", "words"],
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
]
| None = None,
item_prop: Var[str] | str | None = None,
lang: Var[str] | str | None = None,
role: Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
| Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
] = None,
content_editable: Optional[
Union[
Literal["inherit", "plaintext-only", False, True],
Var[Literal["inherit", "plaintext-only", False, True]],
]
] = None,
context_menu: Optional[Union[Var[str], str]] = None,
dir: Optional[Union[Var[str], str]] = None,
draggable: Optional[Union[Var[bool], bool]] = None,
enter_key_hint: Optional[
Union[
Literal["done", "enter", "go", "next", "previous", "search", "send"],
Var[
Literal["done", "enter", "go", "next", "previous", "search", "send"]
],
]
] = None,
hidden: Optional[Union[Var[bool], bool]] = None,
input_mode: Optional[
Union[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
],
Var[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
]
],
]
] = None,
item_prop: Optional[Union[Var[str], str]] = None,
lang: Optional[Union[Var[str], str]] = None,
role: Optional[
Union[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
],
Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
],
]
] = None,
slot: Optional[Union[Var[str], str]] = None,
spell_check: Optional[Union[Var[bool], bool]] = None,
tab_index: Optional[Union[Var[int], int]] = None,
title: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
slot: Var[str] | str | None = None,
spell_check: Var[bool] | bool | None = None,
tab_index: Var[int] | int | None = None,
title: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_close_auto_focus: Optional[EventType[()]] = None,
@ -457,12 +424,12 @@ class DialogDescription(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -506,12 +473,12 @@ class DialogClose(RadixThemesTriggerComponent):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -551,14 +518,14 @@ class Dialog(ComponentNamespace):
@staticmethod
def __call__(
*children,
open: Optional[Union[Var[bool], bool]] = None,
default_open: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
open: Var[bool] | bool | None = None,
default_open: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -572,7 +539,7 @@ class Dialog(ComponentNamespace):
on_mouse_out: Optional[EventType[()]] = None,
on_mouse_over: Optional[EventType[()]] = None,
on_mouse_up: Optional[EventType[()]] = None,
on_open_change: Optional[Union[EventType[()], EventType[bool]]] = None,
on_open_change: Optional[EventType[()] | EventType[bool]] = None,
on_scroll: Optional[EventType[()]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,

View File

@ -94,19 +94,19 @@ class DropdownMenuContent(RadixThemesComponent):
side: Var[LiteralSideType]
# The distance in pixels from the trigger. Defaults to 0.
side_offset: Var[Union[float, int]]
side_offset: Var[float | int]
# The preferred alignment against the trigger. May change when collisions occur. Defaults to "center".
align: Var[LiteralAlignType]
# An offset in pixels from the "start" or "end" alignment options.
align_offset: Var[Union[float, int]]
align_offset: Var[float | int]
# When true, overrides the side and align preferences to prevent collisions with boundary edges. Defaults to True.
avoid_collisions: Var[bool]
# The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for all sides), or a partial padding object, for example: { "top": 20, "left": 20 }. Defaults to 0.
collision_padding: Var[Union[float, int, dict[str, Union[float, int]]]]
collision_padding: Var[Union[float, int, dict[str, float | int]]]
# The sticky behavior on the align axis. "partial" will keep the content in the boundary as long as the trigger is at least partially in the boundary whilst "always" will keep the content in the boundary regardless. Defaults to "partial".
sticky: Var[LiteralStickyType]
@ -179,16 +179,16 @@ class DropdownMenuSubContent(RadixThemesComponent):
force_mount: Var[bool]
# The distance in pixels from the trigger. Defaults to 0.
side_offset: Var[Union[float, int]]
side_offset: Var[float | int]
# An offset in pixels from the "start" or "end" alignment options.
align_offset: Var[Union[float, int]]
align_offset: Var[float | int]
# When true, overrides the side and align preferences to prevent collisions with boundary edges. Defaults to True.
avoid_collisions: Var[bool]
# The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for all sides), or a partial padding object, for example: { "top": 20, "left": 20 }. Defaults to 0.
collision_padding: Var[Union[float, int, dict[str, Union[float, int]]]]
collision_padding: Var[Union[float, int, dict[str, float | int]]]
# The sticky behavior on the align axis. "partial" will keep the content in the boundary as long as the trigger is at least partially in the boundary whilst "always" will keep the content in the boundary regardless. Defaults to "partial".
sticky: Var[LiteralStickyType]

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.component import ComponentNamespace
from reflex.components.core.breakpoints import Breakpoints
@ -26,16 +26,16 @@ class DropdownMenuRoot(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
default_open: Optional[Union[Var[bool], bool]] = None,
open: Optional[Union[Var[bool], bool]] = None,
modal: Optional[Union[Var[bool], bool]] = None,
dir: Optional[Union[Literal["ltr", "rtl"], Var[Literal["ltr", "rtl"]]]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
default_open: Var[bool] | bool | None = None,
open: Var[bool] | bool | None = None,
modal: Var[bool] | bool | None = None,
dir: Literal["ltr", "rtl"] | Var[Literal["ltr", "rtl"]] | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -49,7 +49,7 @@ class DropdownMenuRoot(RadixThemesComponent):
on_mouse_out: Optional[EventType[()]] = None,
on_mouse_over: Optional[EventType[()]] = None,
on_mouse_up: Optional[EventType[()]] = None,
on_open_change: Optional[Union[EventType[()], EventType[bool]]] = None,
on_open_change: Optional[EventType[()] | EventType[bool]] = None,
on_scroll: Optional[EventType[()]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,
@ -85,13 +85,13 @@ class DropdownMenuTrigger(RadixThemesTriggerComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -126,115 +126,98 @@ class DropdownMenuContent(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
size: Optional[
Union[
Breakpoints[str, Literal["1", "2"]],
Literal["1", "2"],
Var[Union[Breakpoints[str, Literal["1", "2"]], Literal["1", "2"]]],
size: Breakpoints[str, Literal["1", "2"]]
| Literal["1", "2"]
| Var[Breakpoints[str, Literal["1", "2"]] | Literal["1", "2"]]
| None = None,
variant: Literal["soft", "solid"] | Var[Literal["soft", "solid"]] | None = None,
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
variant: Optional[
Union[Literal["soft", "solid"], Var[Literal["soft", "solid"]]]
] = None,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
]
] = None,
high_contrast: Optional[Union[Var[bool], bool]] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
loop: Optional[Union[Var[bool], bool]] = None,
force_mount: Optional[Union[Var[bool], bool]] = None,
side: Optional[
Union[
Literal["bottom", "left", "right", "top"],
Var[Literal["bottom", "left", "right", "top"]],
]
] = None,
side_offset: Optional[Union[Var[Union[float, int]], float, int]] = None,
align: Optional[
Union[
Literal["center", "end", "start"],
Var[Literal["center", "end", "start"]],
]
] = None,
align_offset: Optional[Union[Var[Union[float, int]], float, int]] = None,
avoid_collisions: Optional[Union[Var[bool], bool]] = None,
collision_padding: Optional[
Union[
Var[Union[dict[str, Union[float, int]], float, int]],
dict[str, Union[float, int]],
float,
int,
]
] = None,
sticky: Optional[
Union[Literal["always", "partial"], Var[Literal["always", "partial"]]]
] = None,
hide_when_detached: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
high_contrast: Var[bool] | bool | None = None,
as_child: Var[bool] | bool | None = None,
loop: Var[bool] | bool | None = None,
force_mount: Var[bool] | bool | None = None,
side: Literal["bottom", "left", "right", "top"]
| Var[Literal["bottom", "left", "right", "top"]]
| None = None,
side_offset: Var[float | int] | float | int | None = None,
align: Literal["center", "end", "start"]
| Var[Literal["center", "end", "start"]]
| None = None,
align_offset: Var[float | int] | float | int | None = None,
avoid_collisions: Var[bool] | bool | None = None,
collision_padding: Var[dict[str, float | int] | float | int]
| dict[str, float | int]
| float
| int
| None = None,
sticky: Literal["always", "partial"]
| Var[Literal["always", "partial"]]
| None = None,
hide_when_detached: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_close_auto_focus: Optional[EventType[()]] = None,
@ -303,15 +286,15 @@ class DropdownMenuSubTrigger(RadixThemesTriggerComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
disabled: Optional[Union[Var[bool], bool]] = None,
text_value: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
disabled: Var[bool] | bool | None = None,
text_value: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -346,14 +329,14 @@ class DropdownMenuSub(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
open: Optional[Union[Var[bool], bool]] = None,
default_open: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
open: Var[bool] | bool | None = None,
default_open: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -367,7 +350,7 @@ class DropdownMenuSub(RadixThemesComponent):
on_mouse_out: Optional[EventType[()]] = None,
on_mouse_over: Optional[EventType[()]] = None,
on_mouse_up: Optional[EventType[()]] = None,
on_open_change: Optional[Union[EventType[()], EventType[bool]]] = None,
on_open_change: Optional[EventType[()] | EventType[bool]] = None,
on_scroll: Optional[EventType[()]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,
@ -401,30 +384,27 @@ class DropdownMenuSubContent(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
loop: Optional[Union[Var[bool], bool]] = None,
force_mount: Optional[Union[Var[bool], bool]] = None,
side_offset: Optional[Union[Var[Union[float, int]], float, int]] = None,
align_offset: Optional[Union[Var[Union[float, int]], float, int]] = None,
avoid_collisions: Optional[Union[Var[bool], bool]] = None,
collision_padding: Optional[
Union[
Var[Union[dict[str, Union[float, int]], float, int]],
dict[str, Union[float, int]],
float,
int,
]
] = None,
sticky: Optional[
Union[Literal["always", "partial"], Var[Literal["always", "partial"]]]
] = None,
hide_when_detached: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
as_child: Var[bool] | bool | None = None,
loop: Var[bool] | bool | None = None,
force_mount: Var[bool] | bool | None = None,
side_offset: Var[float | int] | float | int | None = None,
align_offset: Var[float | int] | float | int | None = None,
avoid_collisions: Var[bool] | bool | None = None,
collision_padding: Var[dict[str, float | int] | float | int]
| dict[str, float | int]
| float
| int
| None = None,
sticky: Literal["always", "partial"]
| Var[Literal["always", "partial"]]
| None = None,
hide_when_detached: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -485,78 +465,75 @@ class DropdownMenuItem(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
shortcut: Optional[Union[Var[str], str]] = None,
as_child: Optional[Union[Var[bool], bool]] = None,
disabled: Optional[Union[Var[bool], bool]] = None,
text_value: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
shortcut: Var[str] | str | None = None,
as_child: Var[bool] | bool | None = None,
disabled: Var[bool] | bool | None = None,
text_value: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -607,12 +584,12 @@ class DropdownMenuSeparator(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -62,7 +62,7 @@ class HoverCardContent(elements.Div, RadixThemesComponent):
avoid_collisions: Var[bool]
# The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for all sides), or a partial padding object, for example: { top: 20, left: 20 }.
collision_padding: Var[Union[float, int, dict[str, Union[float, int]]]]
collision_padding: Var[Union[float, int, dict[str, float | int]]]
# The sticky behavior on the align axis. "partial" will keep the content in the boundary as long as the trigger is at least partially in the boundary whilst "always" will keep the content in the boundary regardless
sticky: Var[Literal["partial", "always"]]

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.component import ComponentNamespace
from reflex.components.core.breakpoints import Breakpoints
@ -20,16 +20,16 @@ class HoverCardRoot(RadixThemesComponent):
def create( # type: ignore
cls,
*children,
default_open: Optional[Union[Var[bool], bool]] = None,
open: Optional[Union[Var[bool], bool]] = None,
open_delay: Optional[Union[Var[int], int]] = None,
close_delay: Optional[Union[Var[int], int]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
default_open: Var[bool] | bool | None = None,
open: Var[bool] | bool | None = None,
open_delay: Var[int] | int | None = None,
close_delay: Var[int] | int | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -43,7 +43,7 @@ class HoverCardRoot(RadixThemesComponent):
on_mouse_out: Optional[EventType[()]] = None,
on_mouse_over: Optional[EventType[()]] = None,
on_mouse_up: Optional[EventType[()]] = None,
on_open_change: Optional[Union[EventType[()], EventType[bool]]] = None,
on_open_change: Optional[EventType[()] | EventType[bool]] = None,
on_scroll: Optional[EventType[()]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,
@ -79,12 +79,12 @@ class HoverCardTrigger(RadixThemesTriggerComponent):
def create( # type: ignore
cls,
*children,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -119,261 +119,216 @@ class HoverCardContent(elements.Div, RadixThemesComponent):
def create( # type: ignore
cls,
*children,
side: Optional[
Union[
Breakpoints[str, Literal["bottom", "left", "right", "top"]],
Literal["bottom", "left", "right", "top"],
Var[
Union[
Breakpoints[str, Literal["bottom", "left", "right", "top"]],
Literal["bottom", "left", "right", "top"],
]
],
side: Breakpoints[str, Literal["bottom", "left", "right", "top"]]
| Literal["bottom", "left", "right", "top"]
| Var[
Breakpoints[str, Literal["bottom", "left", "right", "top"]]
| Literal["bottom", "left", "right", "top"]
]
| None = None,
side_offset: Var[int] | int | None = None,
align: Literal["center", "end", "start"]
| Var[Literal["center", "end", "start"]]
| None = None,
align_offset: Var[int] | int | None = None,
avoid_collisions: Var[bool] | bool | None = None,
collision_padding: Var[dict[str, float | int] | float | int]
| dict[str, float | int]
| float
| int
| None = None,
sticky: Literal["always", "partial"]
| Var[Literal["always", "partial"]]
| None = None,
hide_when_detached: Var[bool] | bool | None = None,
size: Breakpoints[str, Literal["1", "2", "3"]]
| Literal["1", "2", "3"]
| Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
| None = None,
access_key: Var[str] | str | None = None,
auto_capitalize: Literal[
"characters", "none", "off", "on", "sentences", "words"
]
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
| None = None,
content_editable: Literal["inherit", "plaintext-only", False, True]
| Var[Literal["inherit", "plaintext-only", False, True]]
| None = None,
context_menu: Var[str] | str | None = None,
dir: Var[str] | str | None = None,
draggable: Var[bool] | bool | None = None,
enter_key_hint: Literal[
"done", "enter", "go", "next", "previous", "search", "send"
]
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
| None = None,
hidden: Var[bool] | bool | None = None,
input_mode: Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
| Var[
Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
] = None,
side_offset: Optional[Union[Var[int], int]] = None,
align: Optional[
Union[
Literal["center", "end", "start"],
Var[Literal["center", "end", "start"]],
]
| None = None,
item_prop: Var[str] | str | None = None,
lang: Var[str] | str | None = None,
role: Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
| Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
] = None,
align_offset: Optional[Union[Var[int], int]] = None,
avoid_collisions: Optional[Union[Var[bool], bool]] = None,
collision_padding: Optional[
Union[
Var[Union[dict[str, Union[float, int]], float, int]],
dict[str, Union[float, int]],
float,
int,
]
] = None,
sticky: Optional[
Union[Literal["always", "partial"], Var[Literal["always", "partial"]]]
] = None,
hide_when_detached: Optional[Union[Var[bool], bool]] = None,
size: Optional[
Union[
Breakpoints[str, Literal["1", "2", "3"]],
Literal["1", "2", "3"],
Var[
Union[
Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
]
],
]
] = None,
access_key: Optional[Union[Var[str], str]] = None,
auto_capitalize: Optional[
Union[
Literal["characters", "none", "off", "on", "sentences", "words"],
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
]
] = None,
content_editable: Optional[
Union[
Literal["inherit", "plaintext-only", False, True],
Var[Literal["inherit", "plaintext-only", False, True]],
]
] = None,
context_menu: Optional[Union[Var[str], str]] = None,
dir: Optional[Union[Var[str], str]] = None,
draggable: Optional[Union[Var[bool], bool]] = None,
enter_key_hint: Optional[
Union[
Literal["done", "enter", "go", "next", "previous", "search", "send"],
Var[
Literal["done", "enter", "go", "next", "previous", "search", "send"]
],
]
] = None,
hidden: Optional[Union[Var[bool], bool]] = None,
input_mode: Optional[
Union[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
],
Var[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
]
],
]
] = None,
item_prop: Optional[Union[Var[str], str]] = None,
lang: Optional[Union[Var[str], str]] = None,
role: Optional[
Union[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
],
Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
],
]
] = None,
slot: Optional[Union[Var[str], str]] = None,
spell_check: Optional[Union[Var[bool], bool]] = None,
tab_index: Optional[Union[Var[int], int]] = None,
title: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
slot: Var[str] | str | None = None,
spell_check: Var[bool] | bool | None = None,
tab_index: Var[int] | int | None = None,
title: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -444,16 +399,16 @@ class HoverCard(ComponentNamespace):
@staticmethod
def __call__(
*children,
default_open: Optional[Union[Var[bool], bool]] = None,
open: Optional[Union[Var[bool], bool]] = None,
open_delay: Optional[Union[Var[int], int]] = None,
close_delay: Optional[Union[Var[int], int]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
default_open: Var[bool] | bool | None = None,
open: Var[bool] | bool | None = None,
open_delay: Var[int] | int | None = None,
close_delay: Var[int] | int | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,
@ -467,7 +422,7 @@ class HoverCard(ComponentNamespace):
on_mouse_out: Optional[EventType[()]] = None,
on_mouse_over: Optional[EventType[()]] = None,
on_mouse_up: Optional[EventType[()]] = None,
on_open_change: Optional[Union[EventType[()], EventType[bool]]] = None,
on_open_change: Optional[EventType[()] | EventType[bool]] = None,
on_scroll: Optional[EventType[()]] = None,
on_unmount: Optional[EventType[()]] = None,
**props,

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.core.breakpoints import Breakpoints
from reflex.components.el import elements
@ -22,322 +22,277 @@ class IconButton(elements.Button, RadixLoadingProp, RadixThemesComponent):
def create( # type: ignore
cls,
*children,
as_child: Optional[Union[Var[bool], bool]] = None,
size: Optional[
Union[
Breakpoints[str, Literal["1", "2", "3", "4"]],
Literal["1", "2", "3", "4"],
Var[
Union[
Breakpoints[str, Literal["1", "2", "3", "4"]],
Literal["1", "2", "3", "4"],
]
],
as_child: Var[bool] | bool | None = None,
size: Breakpoints[str, Literal["1", "2", "3", "4"]]
| Literal["1", "2", "3", "4"]
| Var[
Breakpoints[str, Literal["1", "2", "3", "4"]] | Literal["1", "2", "3", "4"]
]
| None = None,
variant: Literal["classic", "ghost", "outline", "soft", "solid", "surface"]
| Var[Literal["classic", "ghost", "outline", "soft", "solid", "surface"]]
| None = None,
color_scheme: Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
| Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
] = None,
variant: Optional[
Union[
Literal["classic", "ghost", "outline", "soft", "solid", "surface"],
Var[Literal["classic", "ghost", "outline", "soft", "solid", "surface"]],
]
| None = None,
high_contrast: Var[bool] | bool | None = None,
radius: Literal["full", "large", "medium", "none", "small"]
| Var[Literal["full", "large", "medium", "none", "small"]]
| None = None,
auto_focus: Var[bool] | bool | None = None,
disabled: Var[bool] | bool | None = None,
form: Var[str] | str | None = None,
form_action: Var[str] | str | None = None,
form_enc_type: Var[str] | str | None = None,
form_method: Var[str] | str | None = None,
form_no_validate: Var[bool] | bool | None = None,
form_target: Var[str] | str | None = None,
name: Var[str] | str | None = None,
type: Literal["button", "reset", "submit"]
| Var[Literal["button", "reset", "submit"]]
| None = None,
value: Var[float | int | str] | float | int | str | None = None,
access_key: Var[str] | str | None = None,
auto_capitalize: Literal[
"characters", "none", "off", "on", "sentences", "words"
]
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
| None = None,
content_editable: Literal["inherit", "plaintext-only", False, True]
| Var[Literal["inherit", "plaintext-only", False, True]]
| None = None,
context_menu: Var[str] | str | None = None,
dir: Var[str] | str | None = None,
draggable: Var[bool] | bool | None = None,
enter_key_hint: Literal[
"done", "enter", "go", "next", "previous", "search", "send"
]
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
| None = None,
hidden: Var[bool] | bool | None = None,
input_mode: Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
| Var[
Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
] = None,
color_scheme: Optional[
Union[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
],
Var[
Literal[
"amber",
"blue",
"bronze",
"brown",
"crimson",
"cyan",
"gold",
"grass",
"gray",
"green",
"indigo",
"iris",
"jade",
"lime",
"mint",
"orange",
"pink",
"plum",
"purple",
"red",
"ruby",
"sky",
"teal",
"tomato",
"violet",
"yellow",
]
],
]
| None = None,
item_prop: Var[str] | str | None = None,
lang: Var[str] | str | None = None,
role: Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
| Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
] = None,
high_contrast: Optional[Union[Var[bool], bool]] = None,
radius: Optional[
Union[
Literal["full", "large", "medium", "none", "small"],
Var[Literal["full", "large", "medium", "none", "small"]],
]
] = None,
auto_focus: Optional[Union[Var[bool], bool]] = None,
disabled: Optional[Union[Var[bool], bool]] = None,
form: Optional[Union[Var[str], str]] = None,
form_action: Optional[Union[Var[str], str]] = None,
form_enc_type: Optional[Union[Var[str], str]] = None,
form_method: Optional[Union[Var[str], str]] = None,
form_no_validate: Optional[Union[Var[bool], bool]] = None,
form_target: Optional[Union[Var[str], str]] = None,
name: Optional[Union[Var[str], str]] = None,
type: Optional[
Union[
Literal["button", "reset", "submit"],
Var[Literal["button", "reset", "submit"]],
]
] = None,
value: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
access_key: Optional[Union[Var[str], str]] = None,
auto_capitalize: Optional[
Union[
Literal["characters", "none", "off", "on", "sentences", "words"],
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
]
] = None,
content_editable: Optional[
Union[
Literal["inherit", "plaintext-only", False, True],
Var[Literal["inherit", "plaintext-only", False, True]],
]
] = None,
context_menu: Optional[Union[Var[str], str]] = None,
dir: Optional[Union[Var[str], str]] = None,
draggable: Optional[Union[Var[bool], bool]] = None,
enter_key_hint: Optional[
Union[
Literal["done", "enter", "go", "next", "previous", "search", "send"],
Var[
Literal["done", "enter", "go", "next", "previous", "search", "send"]
],
]
] = None,
hidden: Optional[Union[Var[bool], bool]] = None,
input_mode: Optional[
Union[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
],
Var[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
]
],
]
] = None,
item_prop: Optional[Union[Var[str], str]] = None,
lang: Optional[Union[Var[str], str]] = None,
role: Optional[
Union[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
],
Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
],
]
] = None,
slot: Optional[Union[Var[str], str]] = None,
spell_check: Optional[Union[Var[bool], bool]] = None,
tab_index: Optional[Union[Var[int], int]] = None,
title: Optional[Union[Var[str], str]] = None,
loading: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
slot: Var[str] | str | None = None,
spell_check: Var[bool] | bool | None = None,
tab_index: Var[int] | int | None = None,
title: Var[str] | str | None = None,
loading: Var[bool] | bool | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -1,6 +1,6 @@
"""Interactive components provided by @radix-ui/themes."""
from typing import Literal, Union
from typing import Literal
from reflex.components.core.breakpoints import Responsive
from reflex.components.el import elements
@ -23,25 +23,25 @@ class Inset(elements.Div, RadixThemesComponent):
clip: Var[Responsive[Literal["border-box", "padding-box"]]]
# Padding
p: Var[Responsive[Union[int, str]]]
p: Var[Responsive[int | str]]
# Padding on the x axis
px: Var[Responsive[Union[int, str]]]
px: Var[Responsive[int | str]]
# Padding on the y axis
py: Var[Responsive[Union[int, str]]]
py: Var[Responsive[int | str]]
# Padding on the top
pt: Var[Responsive[Union[int, str]]]
pt: Var[Responsive[int | str]]
# Padding on the right
pr: Var[Responsive[Union[int, str]]]
pr: Var[Responsive[int | str]]
# Padding on the bottom
pb: Var[Responsive[Union[int, str]]]
pb: Var[Responsive[int | str]]
# Padding on the left
pl: Var[Responsive[Union[int, str]]]
pl: Var[Responsive[int | str]]
inset = Inset.create

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------
from typing import Any, Literal, Optional, Union, overload
from typing import Any, Literal, Optional, overload
from reflex.components.core.breakpoints import Breakpoints
from reflex.components.el import elements
@ -21,299 +21,239 @@ class Inset(elements.Div, RadixThemesComponent):
def create( # type: ignore
cls,
*children,
side: Optional[
Union[
Breakpoints[str, Literal["bottom", "left", "right", "top", "x", "y"]],
Literal["bottom", "left", "right", "top", "x", "y"],
Var[
Union[
Breakpoints[
str, Literal["bottom", "left", "right", "top", "x", "y"]
],
Literal["bottom", "left", "right", "top", "x", "y"],
]
],
side: Breakpoints[str, Literal["bottom", "left", "right", "top", "x", "y"]]
| Literal["bottom", "left", "right", "top", "x", "y"]
| Var[
Breakpoints[str, Literal["bottom", "left", "right", "top", "x", "y"]]
| Literal["bottom", "left", "right", "top", "x", "y"]
]
| None = None,
clip: Breakpoints[str, Literal["border-box", "padding-box"]]
| Literal["border-box", "padding-box"]
| Var[
Breakpoints[str, Literal["border-box", "padding-box"]]
| Literal["border-box", "padding-box"]
]
| None = None,
p: Breakpoints[str, int | str]
| Var[Breakpoints[str, int | str] | int | str]
| int
| str
| None = None,
px: Breakpoints[str, int | str]
| Var[Breakpoints[str, int | str] | int | str]
| int
| str
| None = None,
py: Breakpoints[str, int | str]
| Var[Breakpoints[str, int | str] | int | str]
| int
| str
| None = None,
pt: Breakpoints[str, int | str]
| Var[Breakpoints[str, int | str] | int | str]
| int
| str
| None = None,
pr: Breakpoints[str, int | str]
| Var[Breakpoints[str, int | str] | int | str]
| int
| str
| None = None,
pb: Breakpoints[str, int | str]
| Var[Breakpoints[str, int | str] | int | str]
| int
| str
| None = None,
pl: Breakpoints[str, int | str]
| Var[Breakpoints[str, int | str] | int | str]
| int
| str
| None = None,
access_key: Var[str] | str | None = None,
auto_capitalize: Literal[
"characters", "none", "off", "on", "sentences", "words"
]
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
| None = None,
content_editable: Literal["inherit", "plaintext-only", False, True]
| Var[Literal["inherit", "plaintext-only", False, True]]
| None = None,
context_menu: Var[str] | str | None = None,
dir: Var[str] | str | None = None,
draggable: Var[bool] | bool | None = None,
enter_key_hint: Literal[
"done", "enter", "go", "next", "previous", "search", "send"
]
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
| None = None,
hidden: Var[bool] | bool | None = None,
input_mode: Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
| Var[
Literal[
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
]
] = None,
clip: Optional[
Union[
Breakpoints[str, Literal["border-box", "padding-box"]],
Literal["border-box", "padding-box"],
Var[
Union[
Breakpoints[str, Literal["border-box", "padding-box"]],
Literal["border-box", "padding-box"],
]
],
]
| None = None,
item_prop: Var[str] | str | None = None,
lang: Var[str] | str | None = None,
role: Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
| Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
] = None,
p: Optional[
Union[
Breakpoints[str, Union[int, str]],
Var[Union[Breakpoints[str, Union[int, str]], int, str]],
int,
str,
]
] = None,
px: Optional[
Union[
Breakpoints[str, Union[int, str]],
Var[Union[Breakpoints[str, Union[int, str]], int, str]],
int,
str,
]
] = None,
py: Optional[
Union[
Breakpoints[str, Union[int, str]],
Var[Union[Breakpoints[str, Union[int, str]], int, str]],
int,
str,
]
] = None,
pt: Optional[
Union[
Breakpoints[str, Union[int, str]],
Var[Union[Breakpoints[str, Union[int, str]], int, str]],
int,
str,
]
] = None,
pr: Optional[
Union[
Breakpoints[str, Union[int, str]],
Var[Union[Breakpoints[str, Union[int, str]], int, str]],
int,
str,
]
] = None,
pb: Optional[
Union[
Breakpoints[str, Union[int, str]],
Var[Union[Breakpoints[str, Union[int, str]], int, str]],
int,
str,
]
] = None,
pl: Optional[
Union[
Breakpoints[str, Union[int, str]],
Var[Union[Breakpoints[str, Union[int, str]], int, str]],
int,
str,
]
] = None,
access_key: Optional[Union[Var[str], str]] = None,
auto_capitalize: Optional[
Union[
Literal["characters", "none", "off", "on", "sentences", "words"],
Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
]
] = None,
content_editable: Optional[
Union[
Literal["inherit", "plaintext-only", False, True],
Var[Literal["inherit", "plaintext-only", False, True]],
]
] = None,
context_menu: Optional[Union[Var[str], str]] = None,
dir: Optional[Union[Var[str], str]] = None,
draggable: Optional[Union[Var[bool], bool]] = None,
enter_key_hint: Optional[
Union[
Literal["done", "enter", "go", "next", "previous", "search", "send"],
Var[
Literal["done", "enter", "go", "next", "previous", "search", "send"]
],
]
] = None,
hidden: Optional[Union[Var[bool], bool]] = None,
input_mode: Optional[
Union[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
],
Var[
Literal[
"decimal",
"email",
"none",
"numeric",
"search",
"tel",
"text",
"url",
]
],
]
] = None,
item_prop: Optional[Union[Var[str], str]] = None,
lang: Optional[Union[Var[str], str]] = None,
role: Optional[
Union[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
],
Var[
Literal[
"alert",
"alertdialog",
"application",
"article",
"banner",
"button",
"cell",
"checkbox",
"columnheader",
"combobox",
"complementary",
"contentinfo",
"definition",
"dialog",
"directory",
"document",
"feed",
"figure",
"form",
"grid",
"gridcell",
"group",
"heading",
"img",
"link",
"list",
"listbox",
"listitem",
"log",
"main",
"marquee",
"math",
"menu",
"menubar",
"menuitem",
"menuitemcheckbox",
"menuitemradio",
"navigation",
"none",
"note",
"option",
"presentation",
"progressbar",
"radio",
"radiogroup",
"region",
"row",
"rowgroup",
"rowheader",
"scrollbar",
"search",
"searchbox",
"separator",
"slider",
"spinbutton",
"status",
"switch",
"tab",
"table",
"tablist",
"tabpanel",
"term",
"textbox",
"timer",
"toolbar",
"tooltip",
"tree",
"treegrid",
"treeitem",
]
],
]
] = None,
slot: Optional[Union[Var[str], str]] = None,
spell_check: Optional[Union[Var[bool], bool]] = None,
tab_index: Optional[Union[Var[int], int]] = None,
title: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
id: Optional[Any] = None,
class_name: Optional[Any] = None,
autofocus: Optional[bool] = None,
custom_attrs: Optional[dict[str, Union[Var, Any]]] = None,
]
| None = None,
slot: Var[str] | str | None = None,
spell_check: Var[bool] | bool | None = None,
tab_index: Var[int] | int | None = None,
title: Var[str] | str | None = None,
style: Style | None = None,
key: Any | None = None,
id: Any | None = None,
class_name: Any | None = None,
autofocus: bool | None = None,
custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None,

View File

@ -62,7 +62,7 @@ class PopoverContent(elements.Div, RadixThemesComponent):
avoid_collisions: Var[bool]
# The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for all sides), or a partial padding object, for example: { "top": 20, "left": 20 }. Defaults to 0.
collision_padding: Var[Union[float, int, dict[str, Union[float, int]]]]
collision_padding: Var[Union[float, int, dict[str, float | int]]]
# The sticky behavior on the align axis. "partial" will keep the content in the boundary as long as the trigger is at least partially in the boundary whilst "always" will keep the content in the boundary regardless. Defaults to "partial".
sticky: Var[Literal["partial", "always"]]

Some files were not shown because too many files have changed in this diff Show More