This commit is contained in:
Khaleel Al-Adhami 2025-02-19 14:26:08 -08:00
parent 192646af9f
commit 42fd69a93a
4 changed files with 111 additions and 127 deletions

View File

@ -14,10 +14,8 @@ from typing import (
Any, Any,
Callable, Callable,
ClassVar, ClassVar,
Dict,
Iterator, Iterator,
List, List,
Optional,
Sequence, Sequence,
Set, Set,
Type, Type,

View File

@ -227,7 +227,7 @@ class ContextMenuItem(RadixThemesComponent):
# Optional text used for typeahead purposes. By default the typeahead behavior will use the content of the item. Use this when the content is complex, or you have non-textual content inside. # Optional text used for typeahead purposes. By default the typeahead behavior will use the content of the item. Use this when the content is complex, or you have non-textual content inside.
text_value: Var[str] text_value: Var[str]
_valid_parents: List[str] = [ _valid_parents: list[str] = [
"ContextMenuContent", "ContextMenuContent",
"ContextMenuSubContent", "ContextMenuSubContent",
"ContextMenuGroup", "ContextMenuGroup",
@ -269,7 +269,7 @@ class ContextMenuGroup(RadixThemesComponent):
# Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False. # Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
as_child: Var[bool] as_child: Var[bool]
_valid_parents: List[str] = ["ContextMenuContent", "ContextMenuSubContent"] _valid_parents: list[str] = ["ContextMenuContent", "ContextMenuSubContent"]
class ContextMenuRadioGroup(RadixThemesComponent): class ContextMenuRadioGroup(RadixThemesComponent):
@ -289,7 +289,7 @@ class ContextMenuRadioGroup(RadixThemesComponent):
# Fired when the value of the radio group changes. # Fired when the value of the radio group changes.
on_change: EventHandler[passthrough_event_spec(str)] on_change: EventHandler[passthrough_event_spec(str)]
_valid_parents: List[str] = [ _valid_parents: list[str] = [
"ContextMenuRadioItem", "ContextMenuRadioItem",
"ContextMenuSubContent", "ContextMenuSubContent",
"ContextMenuContent", "ContextMenuContent",

View File

@ -3,7 +3,7 @@
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `reflex/utils/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, List, Literal, Optional, Union, overload from typing import Any, Literal, Optional, overload
from reflex.components.component import ComponentNamespace from reflex.components.component import ComponentNamespace
from reflex.components.core.breakpoints import Breakpoints from reflex.components.core.breakpoints import Breakpoints
@ -791,13 +791,13 @@ class ContextMenuLabel(RadixThemesComponent):
def create( # type: ignore def create( # type: ignore
cls, cls,
*children, *children,
as_child: Optional[Union[Var[bool], bool]] = None, as_child: Var[bool] | bool | None = None,
style: Optional[Style] = None, style: Style | None = None,
key: Optional[Any] = None, key: Any | None = None,
id: Optional[Any] = None, id: Any | None = None,
class_name: Optional[Any] = None, class_name: Any | None = None,
autofocus: Optional[bool] = None, autofocus: bool | None = None,
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None, custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None, on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None, on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None, on_context_menu: Optional[EventType[()]] = None,
@ -842,13 +842,13 @@ class ContextMenuGroup(RadixThemesComponent):
def create( # type: ignore def create( # type: ignore
cls, cls,
*children, *children,
as_child: Optional[Union[Var[bool], bool]] = None, as_child: Var[bool] | bool | None = None,
style: Optional[Style] = None, style: Style | None = None,
key: Optional[Any] = None, key: Any | None = None,
id: Optional[Any] = None, id: Any | None = None,
class_name: Optional[Any] = None, class_name: Any | None = None,
autofocus: Optional[bool] = None, autofocus: bool | None = None,
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None, custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = None, on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None, on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None, on_context_menu: Optional[EventType[()]] = None,
@ -893,16 +893,16 @@ class ContextMenuRadioGroup(RadixThemesComponent):
def create( # type: ignore def create( # type: ignore
cls, cls,
*children, *children,
as_child: Optional[Union[Var[bool], bool]] = None, as_child: Var[bool] | bool | None = None,
value: Optional[Union[Var[str], str]] = None, value: Var[str] | str | None = None,
style: Optional[Style] = None, style: Style | None = None,
key: Optional[Any] = None, key: Any | None = None,
id: Optional[Any] = None, id: Any | None = None,
class_name: Optional[Any] = None, class_name: Any | None = None,
autofocus: Optional[bool] = None, autofocus: bool | None = None,
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None, custom_attrs: dict[str, Var | Any] | None = None,
on_blur: Optional[EventType[()]] = 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_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None, on_context_menu: Optional[EventType[()]] = None,
on_double_click: Optional[EventType[()]] = None, on_double_click: Optional[EventType[()]] = None,
@ -948,104 +948,90 @@ class ContextMenuRadioItem(HighLevelRadioGroup):
def create( # type: ignore def create( # type: ignore
cls, cls,
*children, *children,
color_scheme: Optional[ color_scheme: Literal[
Union[ "amber",
Literal[ "blue",
"amber", "bronze",
"blue", "brown",
"bronze", "crimson",
"brown", "cyan",
"crimson", "gold",
"cyan", "grass",
"gold", "gray",
"grass", "green",
"gray", "indigo",
"green", "iris",
"indigo", "jade",
"iris", "lime",
"jade", "mint",
"lime", "orange",
"mint", "pink",
"orange", "plum",
"pink", "purple",
"plum", "red",
"purple", "ruby",
"red", "sky",
"ruby", "teal",
"sky", "tomato",
"teal", "violet",
"tomato", "yellow",
"violet", ]
"yellow", | Var[
], Literal[
Var[ "amber",
Literal[ "blue",
"amber", "bronze",
"blue", "brown",
"bronze", "crimson",
"brown", "cyan",
"crimson", "gold",
"cyan", "grass",
"gold", "gray",
"grass", "green",
"gray", "indigo",
"green", "iris",
"indigo", "jade",
"iris", "lime",
"jade", "mint",
"lime", "orange",
"mint", "pink",
"orange", "plum",
"pink", "purple",
"plum", "red",
"purple", "ruby",
"red", "sky",
"ruby", "teal",
"sky", "tomato",
"teal", "violet",
"tomato", "yellow",
"violet",
"yellow",
]
],
] ]
] = None, ]
as_child: Optional[Union[Var[bool], bool]] = None, | None = None,
value: Optional[Union[Var[str], str]] = None, as_child: Var[bool] | bool | None = None,
disabled: Optional[Union[Var[bool], bool]] = None, value: Var[str] | str | None = None,
text_value: Optional[Union[Var[str], str]] = None, disabled: Var[bool] | bool | None = None,
items: Optional[Union[List[str], Var[List[str]]]] = None, text_value: Var[str] | str | None = None,
direction: Optional[ items: Var[list[str]] | list[str] | None = None,
Union[ direction: Literal["column", "column-reverse", "row", "row-reverse"]
Literal["column", "column-reverse", "row", "row-reverse"], | Var[Literal["column", "column-reverse", "row", "row-reverse"]]
Var[Literal["column", "column-reverse", "row", "row-reverse"]], | None = None,
] spacing: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
] = None, | Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
spacing: Optional[ | None = None,
Union[ size: Literal["1", "2", "3"] | Var[Literal["1", "2", "3"]] | None = None,
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], variant: Literal["classic", "soft", "surface"]
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]], | Var[Literal["classic", "soft", "surface"]]
] | None = None,
] = None, high_contrast: Var[bool] | bool | None = None,
size: Optional[ default_value: Var[str] | str | None = None,
Union[Literal["1", "2", "3"], Var[Literal["1", "2", "3"]]] name: Var[str] | str | None = None,
] = None, required: Var[bool] | bool | None = None,
variant: Optional[ style: Style | None = None,
Union[ key: Any | None = None,
Literal["classic", "soft", "surface"], id: Any | None = None,
Var[Literal["classic", "soft", "surface"]], class_name: Any | None = None,
] autofocus: bool | None = None,
] = None, custom_attrs: dict[str, Var | Any] | None = None,
high_contrast: Optional[Union[Var[bool], bool]] = None,
default_value: Optional[Union[Var[str], str]] = None,
name: Optional[Union[Var[str], str]] = None,
required: 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_blur: Optional[EventType[()]] = None, on_blur: Optional[EventType[()]] = None,
on_click: Optional[EventType[()]] = None, on_click: Optional[EventType[()]] = None,
on_context_menu: Optional[EventType[()]] = None, on_context_menu: Optional[EventType[()]] = None,

View File

@ -846,7 +846,7 @@ class Config(Base):
env_file: str | None = None env_file: str | None = None
# Whether to display the sticky "Built with Reflex" badge on all pages. # Whether to display the sticky "Built with Reflex" badge on all pages.
show_built_with_reflex: Optional[bool] = None show_built_with_reflex: bool | None = None
# Whether the app is running in the reflex cloud environment. # Whether the app is running in the reflex cloud environment.
is_reflex_cloud: bool = False is_reflex_cloud: bool = False