From 5176a7cb14c96807626e6ed4e7cdc87189910406 Mon Sep 17 00:00:00 2001 From: Nikhil Rao Date: Thu, 1 Feb 2024 03:25:18 +0700 Subject: [PATCH 1/6] Support component create methods as keys in global styles (#2498) --- reflex/compiler/utils.py | 4 ++-- reflex/components/component.py | 7 +++++-- scripts/pyi_generator.py | 1 - tests/components/test_component.py | 17 +++++++++++++++++ 4 files changed, 24 insertions(+), 5 deletions(-) diff --git a/reflex/compiler/utils.py b/reflex/compiler/utils.py index c39e427cf..052746ad8 100644 --- a/reflex/compiler/utils.py +++ b/reflex/compiler/utils.py @@ -2,7 +2,7 @@ from __future__ import annotations import os -from typing import Any, Type +from typing import Any, Callable, Type from urllib.parse import urlparse from pydantic.fields import ModelField @@ -290,7 +290,7 @@ def create_theme(style: ComponentStyle) -> dict: The base style for the app. """ # Get the global style from the style dict. - style_rules = Style({k: v for k, v in style.items() if not isinstance(k, type)}) + style_rules = Style({k: v for k, v in style.items() if not isinstance(k, Callable)}) root_style = { # Root styles. diff --git a/reflex/components/component.py b/reflex/components/component.py index 428b4b64f..971188f35 100644 --- a/reflex/components/component.py +++ b/reflex/components/component.py @@ -115,7 +115,7 @@ class BaseComponent(Base, ABC): # Map from component to styling. -ComponentStyle = Dict[Union[str, Type[BaseComponent]], Any] +ComponentStyle = Dict[Union[str, Type[BaseComponent], Callable], Any] ComponentChild = Union[types.PrimitiveType, Var, BaseComponent] @@ -600,10 +600,13 @@ class Component(BaseComponent, ABC): Returns: The component with the additional style. """ + component_style = None if type(self) in style: # Extract the style for this component. component_style = Style(style[type(self)]) - + if self.create in style: + component_style = Style(style[self.create]) + if component_style is not None: # Only add style props that are not overridden. component_style = { k: v for k, v in component_style.items() if k not in self.style diff --git a/scripts/pyi_generator.py b/scripts/pyi_generator.py index 4cd2972c4..8caf91060 100644 --- a/scripts/pyi_generator.py +++ b/scripts/pyi_generator.py @@ -704,7 +704,6 @@ class PyiGenerator: def _write_pyi_file(self, module_path: Path, source: str): relpath = str(_relative_to_pwd(module_path)).replace("\\", "/") - print(f"Writing {relpath}") pyi_content = [ f'"""Stub file for {relpath}"""', "# ------------------- DO NOT EDIT ----------------------", diff --git a/tests/components/test_component.py b/tests/components/test_component.py index e4bad40db..fb9479979 100644 --- a/tests/components/test_component.py +++ b/tests/components/test_component.py @@ -268,6 +268,23 @@ def test_add_style(component1, component2): assert c2.style["color"] == "black" +def test_add_style_create(component1, component2): + """Test that adding style works with the create method. + + Args: + component1: A test component. + component2: A test component. + """ + style = { + component1.create: Style({"color": "white"}), + component2.create: Style({"color": "black"}), + } + c1 = component1().add_style(style) # type: ignore + c2 = component2().add_style(style) # type: ignore + assert c1.style["color"] == "white" + assert c2.style["color"] == "black" + + def test_get_imports(component1, component2): """Test getting the imports of a component. From 38845db60ce016f9355562b4102862df0d69902e Mon Sep 17 00:00:00 2001 From: Martin Xu <15661672+martinxu9@users.noreply.github.com> Date: Wed, 31 Jan 2024 14:21:34 -0800 Subject: [PATCH 2/6] Add props from Radix tooltip primitives to tooltip component (#2499) * add tooltip primitives props to tooltip * ruff --- .../radix/themes/components/tooltip.py | 101 +++++++++++++ .../radix/themes/components/tooltip.pyi | 141 +++++++++--------- 2 files changed, 173 insertions(+), 69 deletions(-) diff --git a/reflex/components/radix/themes/components/tooltip.py b/reflex/components/radix/themes/components/tooltip.py index 3cf60df56..74b9bef94 100644 --- a/reflex/components/radix/themes/components/tooltip.py +++ b/reflex/components/radix/themes/components/tooltip.py @@ -1,11 +1,35 @@ """Interactive components provided by @radix-ui/themes.""" +from typing import Any, Dict, Literal, Union + +from reflex.components.component import Component +from reflex.constants import EventTriggers +from reflex.utils import format from reflex.vars import Var from ..base import ( RadixThemesComponent, ) +LiteralSideType = Literal[ + "top", + "right", + "bottom", + "left", +] +LiteralAlignType = Literal[ + "start", + "center", + "end", +] + +LiteralStickyType = Literal[ + "partial", + "always", +] + + +# The Tooltip inherits props from the Tooltip.Root, Tooltip.Portal, Tooltip.Content class Tooltip(RadixThemesComponent): """Floating element that provides a control with contextual information via pointer or focus.""" @@ -13,3 +37,80 @@ class Tooltip(RadixThemesComponent): # The content of the tooltip. content: Var[str] + + # The open state of the tooltip when it is initially rendered. Use when you do not need to control its open state. + default_open: Var[bool] + + # The controlled open state of the tooltip. Must be used in conjunction with `on_open_change`. + open: Var[bool] + + # The preferred side of the trigger to render against when open. Will be reversed when collisions occur and `avoid_collisions` is enabled.The position of the tooltip. Defaults to "top". + side: Var[LiteralSideType] + + # The distance in pixels from the trigger. Defaults to 0. + side_offset: Var[Union[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]] + + # 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]]]] + + # The padding between the arrow and the edges of the content. If your content has border-radius, this will prevent it from overflowing the corners. Defaults to 0. + arrow_padding: Var[Union[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] + + # Whether to hide the content when the trigger becomes fully occluded. Defaults to False. + hide_when_detached: Var[bool] + + # Override the duration in milliseconds to customize the open delay for a specific tooltip. Default is 700. + delay_duration: Var[Union[float, int]] + + # Prevents Tooltip content from remaining open when hovering. + disable_hoverable_content: Var[bool] + + # Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries. + force_mount: Var[bool] + + # By default, screenreaders will announce the content inside the component. If this is not descriptive enough, or you have content that cannot be announced, use aria-label as a more descriptive label. + aria_label: Var[str] + + def get_event_triggers(self) -> Dict[str, Any]: + """Get the events triggers signatures for the component. + + Returns: + The signatures of the event triggers. + """ + return { + **super().get_event_triggers(), + EventTriggers.ON_OPEN_CHANGE: lambda e0: [e0.target.value], + EventTriggers.ON_ESCAPE_KEY_DOWN: lambda e0: [e0.target.value], + EventTriggers.ON_POINTER_DOWN_OUTSIDE: lambda e0: [e0.target.value], + } + + @classmethod + def create(cls, *children, **props) -> Component: + """Initialize the Tooltip component. + + Run some additional handling on the props. + + Args: + *children: The positional arguments + **props: The keyword arguments + + Returns: + The created component. + """ + ARIA_LABEL_KEY = "aria_label" + if props.get(ARIA_LABEL_KEY) is not None: + props[format.to_kebab_case(ARIA_LABEL_KEY)] = props.pop(ARIA_LABEL_KEY) + + return super().create(*children, **props) diff --git a/reflex/components/radix/themes/components/tooltip.pyi b/reflex/components/radix/themes/components/tooltip.pyi index f609b1605..5c03d4205 100644 --- a/reflex/components/radix/themes/components/tooltip.pyi +++ b/reflex/components/radix/themes/components/tooltip.pyi @@ -7,79 +7,61 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventChain, EventHandler, EventSpec from reflex.style import Style +from typing import Any, Dict, Literal, Union +from reflex.components.component import Component +from reflex.constants import EventTriggers +from reflex.utils import format from reflex.vars import Var from ..base import RadixThemesComponent +LiteralSideType = Literal["top", "right", "bottom", "left"] +LiteralAlignType = Literal["start", "center", "end"] +LiteralStickyType = Literal["partial", "always"] + class Tooltip(RadixThemesComponent): + def get_event_triggers(self) -> Dict[str, Any]: ... @overload @classmethod def create( # type: ignore cls, *children, - color: Optional[Union[Var[str], str]] = None, - color_scheme: Optional[ + content: Optional[Union[Var[str], str]] = None, + default_open: Optional[Union[Var[bool], bool]] = None, + open: Optional[Union[Var[bool], bool]] = None, + side: Optional[ Union[ - Var[ - Literal[ - "tomato", - "red", - "ruby", - "crimson", - "pink", - "plum", - "purple", - "violet", - "iris", - "indigo", - "blue", - "cyan", - "teal", - "jade", - "green", - "grass", - "brown", - "orange", - "sky", - "mint", - "lime", - "yellow", - "amber", - "gold", - "bronze", - "gray", - ] - ], - Literal[ - "tomato", - "red", - "ruby", - "crimson", - "pink", - "plum", - "purple", - "violet", - "iris", - "indigo", - "blue", - "cyan", - "teal", - "jade", - "green", - "grass", - "brown", - "orange", - "sky", - "mint", - "lime", - "yellow", - "amber", - "gold", - "bronze", - "gray", - ], + Var[Literal["top", "right", "bottom", "left"]], + Literal["top", "right", "bottom", "left"], ] ] = None, - content: Optional[Union[Var[str], str]] = None, + side_offset: Optional[Union[Var[Union[float, int]], Union[float, int]]] = None, + align: Optional[ + Union[ + Var[Literal["start", "center", "end"]], + Literal["start", "center", "end"], + ] + ] = None, + align_offset: Optional[Union[Var[Union[float, int]], Union[float, int]]] = None, + avoid_collisions: Optional[Union[Var[bool], bool]] = None, + collision_padding: Optional[ + Union[ + Var[Union[float, int, Dict[str, Union[float, int]]]], + Union[float, int, Dict[str, Union[float, int]]], + ] + ] = None, + arrow_padding: Optional[ + Union[Var[Union[float, int]], Union[float, int]] + ] = None, + sticky: Optional[ + Union[Var[Literal["partial", "always"]], Literal["partial", "always"]] + ] = None, + hide_when_detached: Optional[Union[Var[bool], bool]] = None, + delay_duration: Optional[ + Union[Var[Union[float, int]], Union[float, int]] + ] = None, + disable_hoverable_content: Optional[Union[Var[bool], bool]] = None, + force_mount: Optional[Union[Var[bool], bool]] = None, + aria_label: Optional[Union[Var[str], str]] = None, style: Optional[Style] = None, key: Optional[Any] = None, id: Optional[Any] = None, @@ -98,6 +80,9 @@ class Tooltip(RadixThemesComponent): on_double_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, + on_escape_key_down: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, on_focus: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, @@ -125,6 +110,12 @@ class Tooltip(RadixThemesComponent): on_mouse_up: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, + on_open_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, + on_pointer_down_outside: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, on_scroll: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, @@ -133,25 +124,37 @@ class Tooltip(RadixThemesComponent): ] = None, **props ) -> "Tooltip": - """Create a new component instance. + """Initialize the Tooltip component. - Will prepend "RadixThemes" to the component tag to avoid conflicts with - other UI libraries for common names, like Text and Button. + Run some additional handling on the props. Args: - *children: Child components. - color: map to CSS default color property. - color_scheme: map to radix color property. + *children: The positional arguments content: The content of the tooltip. + default_open: The open state of the tooltip when it is initially rendered. Use when you do not need to control its open state. + open: The controlled open state of the tooltip. Must be used in conjunction with `on_open_change`. + side: The preferred side of the trigger to render against when open. Will be reversed when collisions occur and `avoid_collisions` is enabled.The position of the tooltip. Defaults to "top". + side_offset: The distance in pixels from the trigger. Defaults to 0. + align: The preferred alignment against the trigger. May change when collisions occur. Defaults to "center". + align_offset: An offset in pixels from the "start" or "end" alignment options. + avoid_collisions: When true, overrides the side and align preferences to prevent collisions with boundary edges. Defaults to True. + collision_padding: 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. + arrow_padding: The padding between the arrow and the edges of the content. If your content has border-radius, this will prevent it from overflowing the corners. Defaults to 0. + sticky: 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". + hide_when_detached: Whether to hide the content when the trigger becomes fully occluded. Defaults to False. + delay_duration: Override the duration in milliseconds to customize the open delay for a specific tooltip. Default is 700. + disable_hoverable_content: Prevents Tooltip content from remaining open when hovering. + force_mount: Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries. + aria_label: By default, screenreaders will announce the content inside the component. If this is not descriptive enough, or you have content that cannot be announced, use aria-label as a more descriptive label. style: The style of the component. key: A unique key for the component. id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded custom_attrs: custom attribute - **props: Component properties. + **props: The keyword arguments Returns: - A new component instance. + The created component. """ ... From c067033ed0336df31308eda0bf03a54f034db5ce Mon Sep 17 00:00:00 2001 From: Martin Xu <15661672+martinxu9@users.noreply.github.com> Date: Wed, 31 Jan 2024 16:06:23 -0800 Subject: [PATCH 3/6] radix Theme panel_background prop: transparent -> translucent (#2504) --- reflex/components/radix/themes/base.py | 14 +++++++------- reflex/components/radix/themes/base.pyi | 16 ++++++++-------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/reflex/components/radix/themes/base.py b/reflex/components/radix/themes/base.py index cc572d662..3ef919c1a 100644 --- a/reflex/components/radix/themes/base.py +++ b/reflex/components/radix/themes/base.py @@ -15,7 +15,7 @@ LiteralSize = Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"] LiteralVariant = Literal["classic", "solid", "soft", "surface", "outline", "ghost"] LiteralAppearance = Literal["inherit", "light", "dark"] LiteralGrayColor = Literal["gray", "mauve", "slate", "sage", "olive", "sand", "auto"] -LiteralPanelBackground = Literal["solid", "transparent"] +LiteralPanelBackground = Literal["solid", "translucent"] LiteralRadius = Literal["none", "small", "medium", "large", "full"] LiteralScaling = Literal["90%", "95%", "100%", "105%", "110%"] LiteralAccentColor = Literal[ @@ -148,25 +148,25 @@ class Theme(RadixThemesComponent): tag = "Theme" - # Whether to apply the themes background color to the theme node. + # Whether to apply the themes background color to the theme node. Defaults to True. has_background: Var[bool] - # Override light or dark mode theme: "inherit" | "light" | "dark" + # Override light or dark mode theme: "inherit" | "light" | "dark". Defaults to "inherit". appearance: Var[LiteralAppearance] # The color used for default buttons, typography, backgrounds, etc accent_color: Var[LiteralAccentColor] - # The shade of gray + # The shade of gray, defaults to "auto". gray_color: Var[LiteralGrayColor] - # Whether panel backgrounds are transparent: "solid" | "transparent" (default) + # Whether panel backgrounds are translucent: "solid" | "translucent" (default) panel_background: Var[LiteralPanelBackground] - # Element border radius: "none" | "small" | "medium" | "large" | "full" + # Element border radius: "none" | "small" | "medium" | "large" | "full". Defaults to "medium". radius: Var[LiteralRadius] - # Scale of all theme items: "90%" | "95%" | "100%" | "105%" | "110%" + # Scale of all theme items: "90%" | "95%" | "100%" | "105%" | "110%". Defaults to "100%" scaling: Var[LiteralScaling] def _get_imports(self) -> imports.ImportDict: diff --git a/reflex/components/radix/themes/base.pyi b/reflex/components/radix/themes/base.pyi index fcfb4732a..1b40395f5 100644 --- a/reflex/components/radix/themes/base.pyi +++ b/reflex/components/radix/themes/base.pyi @@ -19,7 +19,7 @@ LiteralSize = Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"] LiteralVariant = Literal["classic", "solid", "soft", "surface", "outline", "ghost"] LiteralAppearance = Literal["inherit", "light", "dark"] LiteralGrayColor = Literal["gray", "mauve", "slate", "sage", "olive", "sand", "auto"] -LiteralPanelBackground = Literal["solid", "transparent"] +LiteralPanelBackground = Literal["solid", "translucent"] LiteralRadius = Literal["none", "small", "medium", "large", "full"] LiteralScaling = Literal["90%", "95%", "100%", "105%", "110%"] LiteralAccentColor = Literal[ @@ -470,7 +470,7 @@ class Theme(RadixThemesComponent): ] ] = None, panel_background: Optional[ - Union[Var[Literal["solid", "transparent"]], Literal["solid", "transparent"]] + Union[Var[Literal["solid", "translucent"]], Literal["solid", "translucent"]] ] = None, radius: Optional[ Union[ @@ -546,13 +546,13 @@ class Theme(RadixThemesComponent): *children: Child components. color: map to CSS default color property. color_scheme: map to radix color property. - has_background: Whether to apply the themes background color to the theme node. - appearance: Override light or dark mode theme: "inherit" | "light" | "dark" + has_background: Whether to apply the themes background color to the theme node. Defaults to True. + appearance: Override light or dark mode theme: "inherit" | "light" | "dark". Defaults to "inherit". accent_color: The color used for default buttons, typography, backgrounds, etc - gray_color: The shade of gray - panel_background: Whether panel backgrounds are transparent: "solid" | "transparent" (default) - radius: Element border radius: "none" | "small" | "medium" | "large" | "full" - scaling: Scale of all theme items: "90%" | "95%" | "100%" | "105%" | "110%" + gray_color: The shade of gray, defaults to "auto". + panel_background: Whether panel backgrounds are translucent: "solid" | "translucent" (default) + radius: Element border radius: "none" | "small" | "medium" | "large" | "full". Defaults to "medium". + scaling: Scale of all theme items: "90%" | "95%" | "100%" | "105%" | "110%". Defaults to "100%" style: The style of the component. key: A unique key for the component. id: The id for the component. From 768e3fc8ac02fc37bb96c7c038298cf33eecea11 Mon Sep 17 00:00:00 2001 From: Martin Xu <15661672+martinxu9@users.noreply.github.com> Date: Wed, 31 Jan 2024 16:06:44 -0800 Subject: [PATCH 4/6] Update hosting CLI version in the poetry lock: 0.1.3 -> 0.1.6 (#2503) --- poetry.lock | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/poetry.lock b/poetry.lock index b94d138ed..df9615c10 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1667,22 +1667,24 @@ ocsp = ["cryptography (>=36.0.1)", "pyopenssl (==20.0.1)", "requests (>=2.26.0)" [[package]] name = "reflex-hosting-cli" -version = "0.1.3" +version = "0.1.7" description = "Reflex Hosting CLI" optional = false python-versions = ">=3.8,<4.0" files = [ - {file = "reflex_hosting_cli-0.1.3-py3-none-any.whl", hash = "sha256:4e7755f24f7fd5b669dd06414e3a41d50acd008650ba6e5d8387a7f29a4a6f3b"}, - {file = "reflex_hosting_cli-0.1.3.tar.gz", hash = "sha256:e7e9de2e0abe1df448ad59b9dee17c73da449449ec74fc10ab913f46057ecd8b"}, + {file = "reflex_hosting_cli-0.1.7-py3-none-any.whl", hash = "sha256:1cd6e9923b0afe7078c2a4095bba658bdb24c3fd155be354f48b49f90b69b283"}, + {file = "reflex_hosting_cli-0.1.7.tar.gz", hash = "sha256:07971042a610f06a80f2048b2089eb4c2b7ea507043e648fe325585f0e31bfdc"}, ] [package.dependencies] +charset-normalizer = ">=3.3.2,<4.0.0" coverage = ">=7.3.2,<8.0.0" httpx = ">=0.24.0,<0.25.0" pipdeptree = ">=2.13.1,<3.0.0" pipreqs = ">=0.4.13,<0.5.0" platformdirs = ">=3.10.0,<4.0.0" pydantic = ">=1.10.2,<2.0.0" +python-dateutil = ">=2.8.2,<3.0.0" rich = ">=13.0.0,<14.0.0" tabulate = ">=0.9.0,<0.10.0" typer = ">=0.4.2,<1" From 1b4229691ae086e35d6c4e6c1be4c8b337054902 Mon Sep 17 00:00:00 2001 From: Tom Gotsman <64492814+tgberkeley@users.noreply.github.com> Date: Thu, 1 Feb 2024 16:11:15 -0800 Subject: [PATCH 5/6] All event handlers inherit from event triggers (#2507) * update to ensure every radix component only inherits events from EventTriggers class * update the naming of event handlers to swap name on_value_change and on_checked_change to on_change * update to call _replace_prop_names in component.py * small darglint error fix * update to ensure every radix component only inherits events from EventTriggers class * update the naming of event handlers to swap name on_value_change and on_checked_change to on_change * update to call _replace_prop_names in component.py * small darglint error fix * updates to pass pytest tests * small fix * duplicate removal --------- Co-authored-by: Tom Gotsman --- reflex/components/base/app_wrap.pyi | 1 + reflex/components/base/body.pyi | 2 + reflex/components/base/document.pyi | 10 ++++ reflex/components/base/fragment.pyi | 2 + reflex/components/base/head.pyi | 4 ++ reflex/components/base/link.pyi | 4 ++ reflex/components/base/meta.pyi | 8 +++ reflex/components/base/script.pyi | 2 + reflex/components/chakra/base.pyi | 7 +++ .../components/chakra/datadisplay/badge.pyi | 2 + reflex/components/chakra/datadisplay/code.pyi | 4 ++ .../components/chakra/datadisplay/divider.pyi | 2 + .../chakra/datadisplay/keyboard_key.pyi | 2 + reflex/components/chakra/datadisplay/list.pyi | 8 +++ reflex/components/chakra/datadisplay/stat.pyi | 12 ++++ .../components/chakra/datadisplay/table.pyi | 18 ++++++ reflex/components/chakra/datadisplay/tag.pyi | 9 +++ .../chakra/disclosure/accordion.pyi | 10 ++++ reflex/components/chakra/disclosure/tabs.pyi | 10 ++++ .../chakra/disclosure/transition.pyi | 12 ++++ .../chakra/disclosure/visuallyhidden.pyi | 2 + reflex/components/chakra/feedback/alert.pyi | 8 +++ .../chakra/feedback/circularprogress.pyi | 4 ++ .../components/chakra/feedback/progress.pyi | 2 + .../components/chakra/feedback/skeleton.pyi | 6 ++ reflex/components/chakra/feedback/spinner.pyi | 2 + reflex/components/chakra/forms/button.pyi | 4 ++ reflex/components/chakra/forms/checkbox.pyi | 4 ++ .../chakra/forms/colormodeswitch.pyi | 7 +++ .../components/chakra/forms/date_picker.pyi | 2 + .../chakra/forms/date_time_picker.pyi | 2 + reflex/components/chakra/forms/editable.pyi | 8 +++ reflex/components/chakra/forms/email.pyi | 2 + reflex/components/chakra/forms/form.pyi | 10 ++++ reflex/components/chakra/forms/iconbutton.pyi | 2 + reflex/components/chakra/forms/input.pyi | 12 ++++ .../components/chakra/forms/numberinput.pyi | 10 ++++ reflex/components/chakra/forms/password.pyi | 2 + reflex/components/chakra/forms/pininput.pyi | 4 ++ reflex/components/chakra/forms/radio.pyi | 4 ++ .../components/chakra/forms/rangeslider.pyi | 8 +++ reflex/components/chakra/forms/select.pyi | 4 ++ reflex/components/chakra/forms/slider.pyi | 10 ++++ reflex/components/chakra/forms/switch.pyi | 2 + reflex/components/chakra/forms/textarea.pyi | 2 + .../components/chakra/forms/time_picker.pyi | 2 + .../components/chakra/layout/aspect_ratio.pyi | 2 + reflex/components/chakra/layout/box.pyi | 2 + reflex/components/chakra/layout/card.pyi | 7 +++ reflex/components/chakra/layout/center.pyi | 6 ++ reflex/components/chakra/layout/container.pyi | 2 + reflex/components/chakra/layout/flex.pyi | 2 + reflex/components/chakra/layout/grid.pyi | 6 ++ reflex/components/chakra/layout/html.pyi | 2 + reflex/components/chakra/layout/spacer.pyi | 2 + reflex/components/chakra/layout/stack.pyi | 6 ++ reflex/components/chakra/layout/wrap.pyi | 4 ++ reflex/components/chakra/media/avatar.pyi | 6 ++ reflex/components/chakra/media/icon.pyi | 4 ++ reflex/components/chakra/media/image.pyi | 2 + .../chakra/navigation/breadcrumb.pyi | 8 +++ reflex/components/chakra/navigation/link.pyi | 2 + .../chakra/navigation/linkoverlay.pyi | 4 ++ .../components/chakra/navigation/stepper.pyi | 18 ++++++ .../components/chakra/overlay/alertdialog.pyi | 14 +++++ reflex/components/chakra/overlay/drawer.pyi | 14 +++++ reflex/components/chakra/overlay/menu.pyi | 16 ++++++ reflex/components/chakra/overlay/modal.pyi | 14 +++++ reflex/components/chakra/overlay/popover.pyi | 18 ++++++ reflex/components/chakra/overlay/tooltip.pyi | 2 + .../components/chakra/typography/heading.pyi | 2 + .../chakra/typography/highlight.pyi | 2 + reflex/components/chakra/typography/span.pyi | 2 + reflex/components/chakra/typography/text.pyi | 2 + reflex/components/component.py | 21 ++++++- reflex/components/core/banner.pyi | 3 + .../components/core/client_side_routing.pyi | 4 ++ reflex/components/core/debounce.pyi | 1 + reflex/components/core/upload.pyi | 4 ++ reflex/components/datadisplay/dataeditor.pyi | 2 + reflex/components/el/element.pyi | 2 + reflex/components/el/elements/base.pyi | 2 + reflex/components/el/elements/forms.pyi | 28 ++++++++++ reflex/components/el/elements/inline.pyi | 56 +++++++++++++++++++ reflex/components/el/elements/media.pyi | 28 ++++++++++ reflex/components/el/elements/metadata.pyi | 10 ++++ reflex/components/el/elements/other.pyi | 14 +++++ reflex/components/el/elements/scripts.pyi | 6 ++ reflex/components/el/elements/sectioning.pyi | 30 ++++++++++ reflex/components/el/elements/tables.pyi | 20 +++++++ reflex/components/el/elements/typography.pyi | 30 ++++++++++ reflex/components/gridjs/datatable.pyi | 4 ++ reflex/components/lucide/icon.pyi | 4 ++ reflex/components/markdown/markdown.pyi | 2 + reflex/components/moment/moment.pyi | 2 + reflex/components/next/base.pyi | 2 + reflex/components/next/image.pyi | 2 + reflex/components/next/link.pyi | 2 + reflex/components/next/video.pyi | 2 + reflex/components/plotly/plotly.pyi | 4 ++ .../components/radix/primitives/accordion.pyi | 12 ++++ reflex/components/radix/primitives/base.pyi | 4 ++ reflex/components/radix/primitives/drawer.pyi | 18 ++++++ reflex/components/radix/primitives/form.pyi | 16 ++++++ .../components/radix/primitives/progress.pyi | 6 ++ reflex/components/radix/primitives/slider.pyi | 10 ++++ reflex/components/radix/themes/base.pyi | 10 ++++ .../radix/themes/components/alertdialog.py | 9 +-- .../radix/themes/components/alertdialog.pyi | 15 +++++ .../radix/themes/components/aspectratio.pyi | 2 + .../radix/themes/components/avatar.pyi | 2 + .../radix/themes/components/badge.pyi | 2 + .../radix/themes/components/button.pyi | 2 + .../radix/themes/components/callout.pyi | 8 +++ .../radix/themes/components/card.pyi | 2 + .../radix/themes/components/checkbox.py | 11 +++- .../radix/themes/components/checkbox.pyi | 13 +++-- .../radix/themes/components/contextmenu.py | 21 +++---- .../radix/themes/components/contextmenu.pyi | 17 ++++++ .../radix/themes/components/dialog.py | 13 +++-- .../radix/themes/components/dialog.pyi | 13 +++++ .../radix/themes/components/dropdownmenu.py | 11 ++-- .../radix/themes/components/dropdownmenu.pyi | 17 ++++++ .../radix/themes/components/hovercard.py | 3 +- .../radix/themes/components/hovercard.pyi | 7 +++ .../radix/themes/components/iconbutton.pyi | 2 + .../radix/themes/components/icons.pyi | 4 ++ .../radix/themes/components/inset.pyi | 2 + .../radix/themes/components/popover.py | 15 ++--- .../radix/themes/components/popover.pyi | 9 +++ .../radix/themes/components/radiogroup.py | 12 ++-- .../radix/themes/components/radiogroup.pyi | 33 ++++++----- .../radix/themes/components/scrollarea.pyi | 2 + .../radix/themes/components/select.py | 16 ++++-- .../radix/themes/components/select.pyi | 37 ++++++++---- .../radix/themes/components/separator.pyi | 2 + .../radix/themes/components/slider.py | 8 ++- .../radix/themes/components/slider.pyi | 11 ++-- .../radix/themes/components/switch.py | 5 +- .../radix/themes/components/switch.pyi | 6 +- .../radix/themes/components/table.pyi | 14 +++++ .../radix/themes/components/tabs.py | 6 +- .../radix/themes/components/tabs.pyi | 17 ++++-- .../radix/themes/components/textarea.pyi | 2 + .../radix/themes/components/textfield.pyi | 8 +++ .../radix/themes/components/tooltip.pyi | 2 + .../components/radix/themes/layout/base.pyi | 2 + reflex/components/radix/themes/layout/box.pyi | 2 + .../components/radix/themes/layout/center.pyi | 2 + .../radix/themes/layout/container.pyi | 2 + .../components/radix/themes/layout/flex.pyi | 2 + .../components/radix/themes/layout/grid.pyi | 2 + .../radix/themes/layout/section.pyi | 2 + .../components/radix/themes/layout/spacer.pyi | 2 + .../components/radix/themes/layout/stack.pyi | 6 ++ .../radix/themes/typography/blockquote.pyi | 2 + .../radix/themes/typography/code.pyi | 2 + .../components/radix/themes/typography/em.pyi | 2 + .../radix/themes/typography/heading.pyi | 2 + .../radix/themes/typography/kbd.pyi | 2 + .../radix/themes/typography/link.pyi | 2 + .../radix/themes/typography/quote.pyi | 2 + .../radix/themes/typography/strong.pyi | 2 + .../radix/themes/typography/text.pyi | 2 + reflex/components/react_player/audio.pyi | 2 + .../components/react_player/react_player.pyi | 2 + reflex/components/react_player/video.pyi | 2 + reflex/components/recharts/cartesian.pyi | 38 +++++++++++++ reflex/components/recharts/charts.pyi | 22 ++++++++ reflex/components/recharts/general.pyi | 10 ++++ reflex/components/recharts/polar.pyi | 12 ++++ reflex/components/recharts/recharts.pyi | 4 ++ reflex/components/suneditor/editor.pyi | 2 + reflex/constants/event.py | 3 +- 174 files changed, 1216 insertions(+), 88 deletions(-) diff --git a/reflex/components/base/app_wrap.pyi b/reflex/components/base/app_wrap.pyi index 63302bcc9..1bd4c764e 100644 --- a/reflex/components/base/app_wrap.pyi +++ b/reflex/components/base/app_wrap.pyi @@ -22,6 +22,7 @@ class AppWrap(Fragment): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] diff --git a/reflex/components/base/body.pyi b/reflex/components/base/body.pyi index 7ba105a0d..218351a99 100644 --- a/reflex/components/base/body.pyi +++ b/reflex/components/base/body.pyi @@ -20,6 +20,7 @@ class Body(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -77,6 +78,7 @@ class Body(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/base/document.pyi b/reflex/components/base/document.pyi index 746a2f18b..0a2c4eda8 100644 --- a/reflex/components/base/document.pyi +++ b/reflex/components/base/document.pyi @@ -20,6 +20,7 @@ class NextDocumentLib(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -77,6 +78,7 @@ class NextDocumentLib(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -99,6 +101,7 @@ class Html(NextDocumentLib): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -156,6 +159,7 @@ class Html(NextDocumentLib): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -178,6 +182,7 @@ class DocumentHead(NextDocumentLib): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -235,6 +240,7 @@ class DocumentHead(NextDocumentLib): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -257,6 +263,7 @@ class Main(NextDocumentLib): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -314,6 +321,7 @@ class Main(NextDocumentLib): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -336,6 +344,7 @@ class NextScript(NextDocumentLib): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -393,6 +402,7 @@ class NextScript(NextDocumentLib): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/base/fragment.pyi b/reflex/components/base/fragment.pyi index 83014e20a..963675c0d 100644 --- a/reflex/components/base/fragment.pyi +++ b/reflex/components/base/fragment.pyi @@ -20,6 +20,7 @@ class Fragment(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -77,6 +78,7 @@ class Fragment(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/base/head.pyi b/reflex/components/base/head.pyi index dd975844e..be8c61e13 100644 --- a/reflex/components/base/head.pyi +++ b/reflex/components/base/head.pyi @@ -20,6 +20,7 @@ class NextHeadLib(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -77,6 +78,7 @@ class NextHeadLib(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -99,6 +101,7 @@ class Head(NextHeadLib, MemoizationLeaf): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -156,6 +159,7 @@ class Head(NextHeadLib, MemoizationLeaf): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/base/link.pyi b/reflex/components/base/link.pyi index a7754ae9a..166f42c33 100644 --- a/reflex/components/base/link.pyi +++ b/reflex/components/base/link.pyi @@ -23,6 +23,7 @@ class RawLink(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -82,6 +83,7 @@ class RawLink(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -111,6 +113,7 @@ class ScriptTag(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -175,6 +178,7 @@ class ScriptTag(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/base/meta.pyi b/reflex/components/base/meta.pyi index 61f3e344a..9a44dff50 100644 --- a/reflex/components/base/meta.pyi +++ b/reflex/components/base/meta.pyi @@ -23,6 +23,7 @@ class Title(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -80,6 +81,7 @@ class Title(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -107,6 +109,7 @@ class Meta(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -169,6 +172,7 @@ class Meta(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -196,6 +200,7 @@ class Description(Meta): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -258,6 +263,7 @@ class Description(Meta): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -285,6 +291,7 @@ class Image(Meta): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -347,6 +354,7 @@ class Image(Meta): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/base/script.pyi b/reflex/components/base/script.pyi index 3a1e6f582..e27fcff86 100644 --- a/reflex/components/base/script.pyi +++ b/reflex/components/base/script.pyi @@ -24,6 +24,7 @@ class Script(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -102,6 +103,7 @@ class Script(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/base.pyi b/reflex/components/chakra/base.pyi index 0cd6485d8..bdfe142b2 100644 --- a/reflex/components/chakra/base.pyi +++ b/reflex/components/chakra/base.pyi @@ -25,6 +25,7 @@ class ChakraComponent(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -82,6 +83,7 @@ class ChakraComponent(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -105,6 +107,7 @@ class Global(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -162,6 +165,7 @@ class Global(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -185,6 +189,7 @@ class ChakraProvider(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -253,6 +258,7 @@ class ChakraColorModeProvider(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -310,6 +316,7 @@ class ChakraColorModeProvider(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/datadisplay/badge.pyi b/reflex/components/chakra/datadisplay/badge.pyi index 8480b89de..0913d741a 100644 --- a/reflex/components/chakra/datadisplay/badge.pyi +++ b/reflex/components/chakra/datadisplay/badge.pyi @@ -28,6 +28,7 @@ class Badge(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -87,6 +88,7 @@ class Badge(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/datadisplay/code.pyi b/reflex/components/chakra/datadisplay/code.pyi index 2b0a855d0..0c13fe0e9 100644 --- a/reflex/components/chakra/datadisplay/code.pyi +++ b/reflex/components/chakra/datadisplay/code.pyi @@ -1036,6 +1036,7 @@ class CodeBlock(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1103,6 +1104,7 @@ class CodeBlock(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props to pass to the component. @@ -1122,6 +1124,7 @@ class Code(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1179,6 +1182,7 @@ class Code(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/datadisplay/divider.pyi b/reflex/components/chakra/datadisplay/divider.pyi index 174234e5a..dc61c0d02 100644 --- a/reflex/components/chakra/datadisplay/divider.pyi +++ b/reflex/components/chakra/datadisplay/divider.pyi @@ -33,6 +33,7 @@ class Divider(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -92,6 +93,7 @@ class Divider(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/datadisplay/keyboard_key.pyi b/reflex/components/chakra/datadisplay/keyboard_key.pyi index a3e7dcff0..4a2831af7 100644 --- a/reflex/components/chakra/datadisplay/keyboard_key.pyi +++ b/reflex/components/chakra/datadisplay/keyboard_key.pyi @@ -20,6 +20,7 @@ class KeyboardKey(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -77,6 +78,7 @@ class KeyboardKey(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/datadisplay/list.pyi b/reflex/components/chakra/datadisplay/list.pyi index a246c3f02..2c034413d 100644 --- a/reflex/components/chakra/datadisplay/list.pyi +++ b/reflex/components/chakra/datadisplay/list.pyi @@ -27,6 +27,7 @@ class List(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -88,6 +89,7 @@ class List(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -107,6 +109,7 @@ class ListItem(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -164,6 +167,7 @@ class ListItem(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -190,6 +194,7 @@ class OrderedList(List): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -251,6 +256,7 @@ class OrderedList(List): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -274,6 +280,7 @@ class UnorderedList(List): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -335,6 +342,7 @@ class UnorderedList(List): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. diff --git a/reflex/components/chakra/datadisplay/stat.pyi b/reflex/components/chakra/datadisplay/stat.pyi index 09b123fac..978c5d124 100644 --- a/reflex/components/chakra/datadisplay/stat.pyi +++ b/reflex/components/chakra/datadisplay/stat.pyi @@ -26,6 +26,7 @@ class Stat(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -87,6 +88,7 @@ class Stat(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -106,6 +108,7 @@ class StatLabel(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -163,6 +166,7 @@ class StatLabel(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -185,6 +189,7 @@ class StatNumber(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -242,6 +247,7 @@ class StatNumber(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -264,6 +270,7 @@ class StatHelpText(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -321,6 +328,7 @@ class StatHelpText(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -344,6 +352,7 @@ class StatArrow(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -402,6 +411,7 @@ class StatArrow(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -424,6 +434,7 @@ class StatGroup(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -481,6 +492,7 @@ class StatGroup(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/datadisplay/table.pyi b/reflex/components/chakra/datadisplay/table.pyi index bd9774b7e..bd0d840d8 100644 --- a/reflex/components/chakra/datadisplay/table.pyi +++ b/reflex/components/chakra/datadisplay/table.pyi @@ -33,6 +33,7 @@ class Table(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -98,6 +99,7 @@ class Table(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -118,6 +120,7 @@ class Thead(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -176,6 +179,7 @@ class Thead(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -199,6 +203,7 @@ class Tbody(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -257,6 +262,7 @@ class Tbody(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -279,6 +285,7 @@ class Tfoot(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -337,6 +344,7 @@ class Tfoot(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -360,6 +368,7 @@ class Tr(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -419,6 +428,7 @@ class Tr(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -439,6 +449,7 @@ class Th(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -497,6 +508,7 @@ class Th(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -520,6 +532,7 @@ class Td(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -578,6 +591,7 @@ class Td(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -601,6 +615,7 @@ class TableCaption(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -659,6 +674,7 @@ class TableCaption(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -681,6 +697,7 @@ class TableContainer(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -738,6 +755,7 @@ class TableContainer(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/datadisplay/tag.pyi b/reflex/components/chakra/datadisplay/tag.pyi index 3f4171958..e0026982f 100644 --- a/reflex/components/chakra/datadisplay/tag.pyi +++ b/reflex/components/chakra/datadisplay/tag.pyi @@ -28,6 +28,7 @@ class TagLabel(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -85,6 +86,7 @@ class TagLabel(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -107,6 +109,7 @@ class TagLeftIcon(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -164,6 +167,7 @@ class TagLeftIcon(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -186,6 +190,7 @@ class TagRightIcon(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -243,6 +248,7 @@ class TagRightIcon(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -265,6 +271,7 @@ class TagCloseButton(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -322,6 +329,7 @@ class TagCloseButton(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -386,6 +394,7 @@ class Tag(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] diff --git a/reflex/components/chakra/disclosure/accordion.pyi b/reflex/components/chakra/disclosure/accordion.pyi index c18f02a15..b62942800 100644 --- a/reflex/components/chakra/disclosure/accordion.pyi +++ b/reflex/components/chakra/disclosure/accordion.pyi @@ -34,6 +34,7 @@ class Accordion(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -98,6 +99,7 @@ class Accordion(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -120,6 +122,7 @@ class AccordionItem(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -180,6 +183,7 @@ class AccordionItem(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -202,6 +206,7 @@ class AccordionButton(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -259,6 +264,7 @@ class AccordionButton(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -281,6 +287,7 @@ class AccordionPanel(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -338,6 +345,7 @@ class AccordionPanel(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -360,6 +368,7 @@ class AccordionIcon(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -417,6 +426,7 @@ class AccordionIcon(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/disclosure/tabs.pyi b/reflex/components/chakra/disclosure/tabs.pyi index 097185aa3..4f526098d 100644 --- a/reflex/components/chakra/disclosure/tabs.pyi +++ b/reflex/components/chakra/disclosure/tabs.pyi @@ -112,6 +112,7 @@ class Tabs(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -180,6 +181,7 @@ class Tabs(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -203,6 +205,7 @@ class Tab(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -264,6 +267,7 @@ class Tab(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -286,6 +290,7 @@ class TabList(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -343,6 +348,7 @@ class TabList(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -365,6 +371,7 @@ class TabPanels(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -422,6 +429,7 @@ class TabPanels(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -444,6 +452,7 @@ class TabPanel(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -501,6 +510,7 @@ class TabPanel(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/disclosure/transition.pyi b/reflex/components/chakra/disclosure/transition.pyi index 52092e502..8f46a6a3d 100644 --- a/reflex/components/chakra/disclosure/transition.pyi +++ b/reflex/components/chakra/disclosure/transition.pyi @@ -24,6 +24,7 @@ class Transition(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -83,6 +84,7 @@ class Transition(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -107,6 +109,7 @@ class Fade(Transition): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -166,6 +169,7 @@ class Fade(Transition): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -192,6 +196,7 @@ class ScaleFade(Transition): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -253,6 +258,7 @@ class ScaleFade(Transition): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -278,6 +284,7 @@ class Slide(Transition): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -338,6 +345,7 @@ class Slide(Transition): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -365,6 +373,7 @@ class SlideFade(Transition): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -427,6 +436,7 @@ class SlideFade(Transition): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -454,6 +464,7 @@ class Collapse(Transition): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -516,6 +527,7 @@ class Collapse(Transition): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/disclosure/visuallyhidden.pyi b/reflex/components/chakra/disclosure/visuallyhidden.pyi index b8717da83..181cc0262 100644 --- a/reflex/components/chakra/disclosure/visuallyhidden.pyi +++ b/reflex/components/chakra/disclosure/visuallyhidden.pyi @@ -20,6 +20,7 @@ class VisuallyHidden(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -77,6 +78,7 @@ class VisuallyHidden(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/feedback/alert.pyi b/reflex/components/chakra/feedback/alert.pyi index aae57c1f7..769241125 100644 --- a/reflex/components/chakra/feedback/alert.pyi +++ b/reflex/components/chakra/feedback/alert.pyi @@ -37,6 +37,7 @@ class Alert(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -99,6 +100,7 @@ class Alert(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -118,6 +120,7 @@ class AlertIcon(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -175,6 +178,7 @@ class AlertIcon(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -197,6 +201,7 @@ class AlertTitle(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -254,6 +259,7 @@ class AlertTitle(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -276,6 +282,7 @@ class AlertDescription(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -333,6 +340,7 @@ class AlertDescription(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/feedback/circularprogress.pyi b/reflex/components/chakra/feedback/circularprogress.pyi index 4f1582041..d033946fa 100644 --- a/reflex/components/chakra/feedback/circularprogress.pyi +++ b/reflex/components/chakra/feedback/circularprogress.pyi @@ -34,6 +34,7 @@ class CircularProgress(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -102,6 +103,7 @@ class CircularProgress(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: the props of the component. @@ -121,6 +123,7 @@ class CircularProgressLabel(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -178,6 +181,7 @@ class CircularProgressLabel(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/feedback/progress.pyi b/reflex/components/chakra/feedback/progress.pyi index c6c7b1aa4..4d9a1e714 100644 --- a/reflex/components/chakra/feedback/progress.pyi +++ b/reflex/components/chakra/feedback/progress.pyi @@ -29,6 +29,7 @@ class Progress(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -93,6 +94,7 @@ class Progress(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/feedback/skeleton.pyi b/reflex/components/chakra/feedback/skeleton.pyi index a393e5899..4cc33fff9 100644 --- a/reflex/components/chakra/feedback/skeleton.pyi +++ b/reflex/components/chakra/feedback/skeleton.pyi @@ -26,6 +26,7 @@ class Skeleton(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -88,6 +89,7 @@ class Skeleton(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -115,6 +117,7 @@ class SkeletonCircle(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -177,6 +180,7 @@ class SkeletonCircle(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -205,6 +209,7 @@ class SkeletonText(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -268,6 +273,7 @@ class SkeletonText(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/feedback/spinner.pyi b/reflex/components/chakra/feedback/spinner.pyi index 6bd414911..5e2a195ba 100644 --- a/reflex/components/chakra/feedback/spinner.pyi +++ b/reflex/components/chakra/feedback/spinner.pyi @@ -31,6 +31,7 @@ class Spinner(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -93,6 +94,7 @@ class Spinner(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/forms/button.pyi b/reflex/components/chakra/forms/button.pyi index 47f2f9222..62023db77 100644 --- a/reflex/components/chakra/forms/button.pyi +++ b/reflex/components/chakra/forms/button.pyi @@ -96,6 +96,7 @@ class Button(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -165,6 +166,7 @@ class Button(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -199,6 +201,7 @@ class ButtonGroup(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -261,6 +264,7 @@ class ButtonGroup(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/forms/checkbox.pyi b/reflex/components/chakra/forms/checkbox.pyi index 024066d01..867bf8aab 100644 --- a/reflex/components/chakra/forms/checkbox.pyi +++ b/reflex/components/chakra/forms/checkbox.pyi @@ -85,6 +85,7 @@ class Checkbox(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -157,6 +158,7 @@ class Checkbox(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -183,6 +185,7 @@ class CheckboxGroup(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -244,6 +247,7 @@ class CheckboxGroup(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/forms/colormodeswitch.pyi b/reflex/components/chakra/forms/colormodeswitch.pyi index e70ea42dd..77fcff291 100644 --- a/reflex/components/chakra/forms/colormodeswitch.pyi +++ b/reflex/components/chakra/forms/colormodeswitch.pyi @@ -37,6 +37,7 @@ class ColorModeIcon(Cond): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -165,6 +166,7 @@ class ColorModeSwitch(Switch): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -236,6 +238,7 @@ class ColorModeSwitch(Switch): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props to pass to the component. @@ -323,6 +326,7 @@ class ColorModeButton(Button): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -392,6 +396,7 @@ class ColorModeButton(Button): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props to pass to the component. @@ -411,6 +416,7 @@ class ColorModeScript(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -468,6 +474,7 @@ class ColorModeScript(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/forms/date_picker.pyi b/reflex/components/chakra/forms/date_picker.pyi index e59fa43d4..c5d0f153e 100644 --- a/reflex/components/chakra/forms/date_picker.pyi +++ b/reflex/components/chakra/forms/date_picker.pyi @@ -41,6 +41,7 @@ class DatePicker(Input): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -120,6 +121,7 @@ class DatePicker(Input): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. diff --git a/reflex/components/chakra/forms/date_time_picker.pyi b/reflex/components/chakra/forms/date_time_picker.pyi index f205749c0..330739121 100644 --- a/reflex/components/chakra/forms/date_time_picker.pyi +++ b/reflex/components/chakra/forms/date_time_picker.pyi @@ -41,6 +41,7 @@ class DateTimePicker(Input): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -120,6 +121,7 @@ class DateTimePicker(Input): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. diff --git a/reflex/components/chakra/forms/editable.pyi b/reflex/components/chakra/forms/editable.pyi index 26bb23e5b..de7dfe4cb 100644 --- a/reflex/components/chakra/forms/editable.pyi +++ b/reflex/components/chakra/forms/editable.pyi @@ -32,6 +32,7 @@ class Editable(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -109,6 +110,7 @@ class Editable(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -131,6 +133,7 @@ class EditableInput(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -188,6 +191,7 @@ class EditableInput(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -210,6 +214,7 @@ class EditableTextarea(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -267,6 +272,7 @@ class EditableTextarea(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -289,6 +295,7 @@ class EditablePreview(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -346,6 +353,7 @@ class EditablePreview(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/forms/email.pyi b/reflex/components/chakra/forms/email.pyi index 51f90957d..5763c1c7b 100644 --- a/reflex/components/chakra/forms/email.pyi +++ b/reflex/components/chakra/forms/email.pyi @@ -41,6 +41,7 @@ class Email(Input): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -120,6 +121,7 @@ class Email(Input): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. diff --git a/reflex/components/chakra/forms/form.pyi b/reflex/components/chakra/forms/form.pyi index fd915a736..0a291ebf1 100644 --- a/reflex/components/chakra/forms/form.pyi +++ b/reflex/components/chakra/forms/form.pyi @@ -38,6 +38,7 @@ class Form(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -101,6 +102,7 @@ class Form(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the form. @@ -129,6 +131,7 @@ class FormControl(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -194,6 +197,7 @@ class FormControl(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the form control. @@ -216,6 +220,7 @@ class FormHelperText(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -273,6 +278,7 @@ class FormHelperText(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -296,6 +302,7 @@ class FormLabel(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -354,6 +361,7 @@ class FormLabel(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -376,6 +384,7 @@ class FormErrorMessage(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -433,6 +442,7 @@ class FormErrorMessage(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/forms/iconbutton.pyi b/reflex/components/chakra/forms/iconbutton.pyi index 245f7b2f0..6da52491d 100644 --- a/reflex/components/chakra/forms/iconbutton.pyi +++ b/reflex/components/chakra/forms/iconbutton.pyi @@ -33,6 +33,7 @@ class IconButton(Text): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -100,6 +101,7 @@ class IconButton(Text): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/forms/input.pyi b/reflex/components/chakra/forms/input.pyi index 3c7ee8826..afd36c736 100644 --- a/reflex/components/chakra/forms/input.pyi +++ b/reflex/components/chakra/forms/input.pyi @@ -105,6 +105,7 @@ class Input(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -184,6 +185,7 @@ class Input(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -203,6 +205,7 @@ class InputGroup(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -260,6 +263,7 @@ class InputGroup(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -282,6 +286,7 @@ class InputLeftAddon(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -339,6 +344,7 @@ class InputLeftAddon(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -361,6 +367,7 @@ class InputRightAddon(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -418,6 +425,7 @@ class InputRightAddon(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -440,6 +448,7 @@ class InputLeftElement(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -497,6 +506,7 @@ class InputLeftElement(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -519,6 +529,7 @@ class InputRightElement(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -576,6 +587,7 @@ class InputRightElement(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/forms/numberinput.pyi b/reflex/components/chakra/forms/numberinput.pyi index 017040989..6f094a0f0 100644 --- a/reflex/components/chakra/forms/numberinput.pyi +++ b/reflex/components/chakra/forms/numberinput.pyi @@ -55,6 +55,7 @@ class NumberInput(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -135,6 +136,7 @@ class NumberInput(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -154,6 +156,7 @@ class NumberInputField(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -211,6 +214,7 @@ class NumberInputField(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -233,6 +237,7 @@ class NumberInputStepper(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -290,6 +295,7 @@ class NumberInputStepper(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -312,6 +318,7 @@ class NumberIncrementStepper(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -369,6 +376,7 @@ class NumberIncrementStepper(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -391,6 +399,7 @@ class NumberDecrementStepper(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -448,6 +457,7 @@ class NumberDecrementStepper(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/forms/password.pyi b/reflex/components/chakra/forms/password.pyi index c9a4ec026..ec30a0d38 100644 --- a/reflex/components/chakra/forms/password.pyi +++ b/reflex/components/chakra/forms/password.pyi @@ -41,6 +41,7 @@ class Password(Input): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -120,6 +121,7 @@ class Password(Input): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. diff --git a/reflex/components/chakra/forms/pininput.pyi b/reflex/components/chakra/forms/pininput.pyi index f255b7db1..841370871 100644 --- a/reflex/components/chakra/forms/pininput.pyi +++ b/reflex/components/chakra/forms/pininput.pyi @@ -49,6 +49,7 @@ class PinInput(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -130,6 +131,7 @@ class PinInput(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -154,6 +156,7 @@ class PinInputField(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -213,6 +216,7 @@ class PinInputField(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/forms/radio.pyi b/reflex/components/chakra/forms/radio.pyi index d48cb6c33..81485ee13 100644 --- a/reflex/components/chakra/forms/radio.pyi +++ b/reflex/components/chakra/forms/radio.pyi @@ -31,6 +31,7 @@ class RadioGroup(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -94,6 +95,7 @@ class RadioGroup(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -124,6 +126,7 @@ class Radio(Text): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -194,6 +197,7 @@ class Radio(Text): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/forms/rangeslider.pyi b/reflex/components/chakra/forms/rangeslider.pyi index cb76cfbe8..63d4a9bf0 100644 --- a/reflex/components/chakra/forms/rangeslider.pyi +++ b/reflex/components/chakra/forms/rangeslider.pyi @@ -40,6 +40,7 @@ class RangeSlider(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -119,6 +120,7 @@ class RangeSlider(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -138,6 +140,7 @@ class RangeSliderTrack(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -195,6 +198,7 @@ class RangeSliderTrack(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -217,6 +221,7 @@ class RangeSliderFilledTrack(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -274,6 +279,7 @@ class RangeSliderFilledTrack(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -298,6 +304,7 @@ class RangeSliderThumb(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -356,6 +363,7 @@ class RangeSliderThumb(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/forms/select.pyi b/reflex/components/chakra/forms/select.pyi index a443896e4..eae35ab04 100644 --- a/reflex/components/chakra/forms/select.pyi +++ b/reflex/components/chakra/forms/select.pyi @@ -44,6 +44,7 @@ class Select(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -118,6 +119,7 @@ class Select(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -140,6 +142,7 @@ class Option(Text): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -201,6 +204,7 @@ class Option(Text): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/forms/slider.pyi b/reflex/components/chakra/forms/slider.pyi index 5bc500930..9db6c6cf0 100644 --- a/reflex/components/chakra/forms/slider.pyi +++ b/reflex/components/chakra/forms/slider.pyi @@ -52,6 +52,7 @@ class Slider(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -138,6 +139,7 @@ class Slider(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -157,6 +159,7 @@ class SliderTrack(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -214,6 +217,7 @@ class SliderTrack(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -236,6 +240,7 @@ class SliderFilledTrack(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -293,6 +298,7 @@ class SliderFilledTrack(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -316,6 +322,7 @@ class SliderThumb(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -374,6 +381,7 @@ class SliderThumb(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -396,6 +404,7 @@ class SliderMark(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -453,6 +462,7 @@ class SliderMark(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/forms/switch.pyi b/reflex/components/chakra/forms/switch.pyi index 1af43b2f1..e5376bec4 100644 --- a/reflex/components/chakra/forms/switch.pyi +++ b/reflex/components/chakra/forms/switch.pyi @@ -82,6 +82,7 @@ class Switch(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -153,6 +154,7 @@ class Switch(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/forms/textarea.pyi b/reflex/components/chakra/forms/textarea.pyi index 48358e2ad..87b867be9 100644 --- a/reflex/components/chakra/forms/textarea.pyi +++ b/reflex/components/chakra/forms/textarea.pyi @@ -42,6 +42,7 @@ class TextArea(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -119,6 +120,7 @@ class TextArea(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. diff --git a/reflex/components/chakra/forms/time_picker.pyi b/reflex/components/chakra/forms/time_picker.pyi index ac833e37b..172f8406d 100644 --- a/reflex/components/chakra/forms/time_picker.pyi +++ b/reflex/components/chakra/forms/time_picker.pyi @@ -41,6 +41,7 @@ class TimePicker(Input): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -120,6 +121,7 @@ class TimePicker(Input): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. diff --git a/reflex/components/chakra/layout/aspect_ratio.pyi b/reflex/components/chakra/layout/aspect_ratio.pyi index 1cd574abc..59ec83f9b 100644 --- a/reflex/components/chakra/layout/aspect_ratio.pyi +++ b/reflex/components/chakra/layout/aspect_ratio.pyi @@ -22,6 +22,7 @@ class AspectRatio(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -80,6 +81,7 @@ class AspectRatio(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/layout/box.pyi b/reflex/components/chakra/layout/box.pyi index ba1f769b8..832b2d803 100644 --- a/reflex/components/chakra/layout/box.pyi +++ b/reflex/components/chakra/layout/box.pyi @@ -25,6 +25,7 @@ class Box(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -85,6 +86,7 @@ class Box(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/layout/card.pyi b/reflex/components/chakra/layout/card.pyi index 6ec404acd..8c09b0095 100644 --- a/reflex/components/chakra/layout/card.pyi +++ b/reflex/components/chakra/layout/card.pyi @@ -28,6 +28,7 @@ class CardHeader(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -85,6 +86,7 @@ class CardHeader(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -107,6 +109,7 @@ class CardBody(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -164,6 +167,7 @@ class CardBody(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -186,6 +190,7 @@ class CardFooter(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -243,6 +248,7 @@ class CardFooter(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -327,6 +333,7 @@ class Card(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] diff --git a/reflex/components/chakra/layout/center.pyi b/reflex/components/chakra/layout/center.pyi index 98fbbb84b..690be5b73 100644 --- a/reflex/components/chakra/layout/center.pyi +++ b/reflex/components/chakra/layout/center.pyi @@ -20,6 +20,7 @@ class Center(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -77,6 +78,7 @@ class Center(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -99,6 +101,7 @@ class Square(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -156,6 +159,7 @@ class Square(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -178,6 +182,7 @@ class Circle(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -235,6 +240,7 @@ class Circle(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/layout/container.pyi b/reflex/components/chakra/layout/container.pyi index 22594f4af..ed0b08966 100644 --- a/reflex/components/chakra/layout/container.pyi +++ b/reflex/components/chakra/layout/container.pyi @@ -22,6 +22,7 @@ class Container(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -80,6 +81,7 @@ class Container(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/layout/flex.pyi b/reflex/components/chakra/layout/flex.pyi index dbb3b36dc..19614eae2 100644 --- a/reflex/components/chakra/layout/flex.pyi +++ b/reflex/components/chakra/layout/flex.pyi @@ -31,6 +31,7 @@ class Flex(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -95,6 +96,7 @@ class Flex(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/layout/grid.pyi b/reflex/components/chakra/layout/grid.pyi index 7195a1579..1be11985c 100644 --- a/reflex/components/chakra/layout/grid.pyi +++ b/reflex/components/chakra/layout/grid.pyi @@ -29,6 +29,7 @@ class Grid(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -93,6 +94,7 @@ class Grid(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -122,6 +124,7 @@ class GridItem(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -186,6 +189,7 @@ class GridItem(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -221,6 +225,7 @@ class ResponsiveGrid(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -291,6 +296,7 @@ class ResponsiveGrid(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/layout/html.pyi b/reflex/components/chakra/layout/html.pyi index 3214bbb8e..ba5016307 100644 --- a/reflex/components/chakra/layout/html.pyi +++ b/reflex/components/chakra/layout/html.pyi @@ -28,6 +28,7 @@ class Html(Box): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -89,6 +90,7 @@ class Html(Box): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props to pass to the component. diff --git a/reflex/components/chakra/layout/spacer.pyi b/reflex/components/chakra/layout/spacer.pyi index 6a793ce19..2797311e2 100644 --- a/reflex/components/chakra/layout/spacer.pyi +++ b/reflex/components/chakra/layout/spacer.pyi @@ -20,6 +20,7 @@ class Spacer(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -77,6 +78,7 @@ class Spacer(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/layout/stack.pyi b/reflex/components/chakra/layout/stack.pyi index 28d110979..af39a2773 100644 --- a/reflex/components/chakra/layout/stack.pyi +++ b/reflex/components/chakra/layout/stack.pyi @@ -35,6 +35,7 @@ class Stack(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -100,6 +101,7 @@ class Stack(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -135,6 +137,7 @@ class Hstack(Stack): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -200,6 +203,7 @@ class Hstack(Stack): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -235,6 +239,7 @@ class Vstack(Stack): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -300,6 +305,7 @@ class Vstack(Stack): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/layout/wrap.pyi b/reflex/components/chakra/layout/wrap.pyi index ba54d9431..895a35f1a 100644 --- a/reflex/components/chakra/layout/wrap.pyi +++ b/reflex/components/chakra/layout/wrap.pyi @@ -30,6 +30,7 @@ class Wrap(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -95,6 +96,7 @@ class Wrap(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -114,6 +116,7 @@ class WrapItem(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -171,6 +174,7 @@ class WrapItem(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/media/avatar.pyi b/reflex/components/chakra/media/avatar.pyi index 69b017801..1b313ecd6 100644 --- a/reflex/components/chakra/media/avatar.pyi +++ b/reflex/components/chakra/media/avatar.pyi @@ -36,6 +36,7 @@ class Avatar(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -104,6 +105,7 @@ class Avatar(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -126,6 +128,7 @@ class AvatarBadge(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -183,6 +186,7 @@ class AvatarBadge(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -207,6 +211,7 @@ class AvatarGroup(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -266,6 +271,7 @@ class AvatarGroup(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/media/icon.pyi b/reflex/components/chakra/media/icon.pyi index 987722c01..f856a2f40 100644 --- a/reflex/components/chakra/media/icon.pyi +++ b/reflex/components/chakra/media/icon.pyi @@ -22,6 +22,7 @@ class ChakraIconComponent(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -79,6 +80,7 @@ class ChakraIconComponent(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -101,6 +103,7 @@ class Icon(ChakraIconComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -160,6 +163,7 @@ class Icon(ChakraIconComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The keyword arguments diff --git a/reflex/components/chakra/media/image.pyi b/reflex/components/chakra/media/image.pyi index e20e3a871..6804f974b 100644 --- a/reflex/components/chakra/media/image.pyi +++ b/reflex/components/chakra/media/image.pyi @@ -37,6 +37,7 @@ class Image(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -111,6 +112,7 @@ class Image(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the image. diff --git a/reflex/components/chakra/navigation/breadcrumb.pyi b/reflex/components/chakra/navigation/breadcrumb.pyi index e7993cd52..6d10aae15 100644 --- a/reflex/components/chakra/navigation/breadcrumb.pyi +++ b/reflex/components/chakra/navigation/breadcrumb.pyi @@ -27,6 +27,7 @@ class Breadcrumb(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -89,6 +90,7 @@ class Breadcrumb(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -114,6 +116,7 @@ class BreadcrumbItem(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -177,6 +180,7 @@ class BreadcrumbItem(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -196,6 +200,7 @@ class BreadcrumbSeparator(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -253,6 +258,7 @@ class BreadcrumbSeparator(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -281,6 +287,7 @@ class BreadcrumbLink(Link): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -344,6 +351,7 @@ class BreadcrumbLink(Link): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/navigation/link.pyi b/reflex/components/chakra/navigation/link.pyi index a5b3db0e0..190fb7b09 100644 --- a/reflex/components/chakra/navigation/link.pyi +++ b/reflex/components/chakra/navigation/link.pyi @@ -31,6 +31,7 @@ class Link(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -93,6 +94,7 @@ class Link(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/navigation/linkoverlay.pyi b/reflex/components/chakra/navigation/linkoverlay.pyi index 7daaf1924..9fcc7cc83 100644 --- a/reflex/components/chakra/navigation/linkoverlay.pyi +++ b/reflex/components/chakra/navigation/linkoverlay.pyi @@ -23,6 +23,7 @@ class LinkOverlay(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -82,6 +83,7 @@ class LinkOverlay(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -104,6 +106,7 @@ class LinkBox(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -161,6 +164,7 @@ class LinkBox(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/navigation/stepper.pyi b/reflex/components/chakra/navigation/stepper.pyi index a4020d1cf..6bdb20843 100644 --- a/reflex/components/chakra/navigation/stepper.pyi +++ b/reflex/components/chakra/navigation/stepper.pyi @@ -80,6 +80,7 @@ class Stepper(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -143,6 +144,7 @@ class Stepper(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -162,6 +164,7 @@ class Step(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -219,6 +222,7 @@ class Step(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -241,6 +245,7 @@ class StepDescription(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -298,6 +303,7 @@ class StepDescription(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -320,6 +326,7 @@ class StepIcon(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -377,6 +384,7 @@ class StepIcon(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -399,6 +407,7 @@ class StepIndicator(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -456,6 +465,7 @@ class StepIndicator(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -478,6 +488,7 @@ class StepNumber(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -535,6 +546,7 @@ class StepNumber(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -557,6 +569,7 @@ class StepSeparator(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -614,6 +627,7 @@ class StepSeparator(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -639,6 +653,7 @@ class StepStatus(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -697,6 +712,7 @@ class StepStatus(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -719,6 +735,7 @@ class StepTitle(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -776,6 +793,7 @@ class StepTitle(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/overlay/alertdialog.pyi b/reflex/components/chakra/overlay/alertdialog.pyi index 01fd6240e..ce508361f 100644 --- a/reflex/components/chakra/overlay/alertdialog.pyi +++ b/reflex/components/chakra/overlay/alertdialog.pyi @@ -62,6 +62,7 @@ class AlertDialog(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -148,6 +149,7 @@ class AlertDialog(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the alert dialog component. @@ -170,6 +172,7 @@ class AlertDialogBody(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -227,6 +230,7 @@ class AlertDialogBody(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -249,6 +253,7 @@ class AlertDialogHeader(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -306,6 +311,7 @@ class AlertDialogHeader(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -328,6 +334,7 @@ class AlertDialogFooter(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -385,6 +392,7 @@ class AlertDialogFooter(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -407,6 +415,7 @@ class AlertDialogContent(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -464,6 +473,7 @@ class AlertDialogContent(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -486,6 +496,7 @@ class AlertDialogOverlay(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -543,6 +554,7 @@ class AlertDialogOverlay(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -565,6 +577,7 @@ class AlertDialogCloseButton(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -622,6 +635,7 @@ class AlertDialogCloseButton(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/overlay/drawer.pyi b/reflex/components/chakra/overlay/drawer.pyi index be6c3830b..189378795 100644 --- a/reflex/components/chakra/overlay/drawer.pyi +++ b/reflex/components/chakra/overlay/drawer.pyi @@ -101,6 +101,7 @@ class Drawer(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -190,6 +191,7 @@ class Drawer(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the drawer component. @@ -212,6 +214,7 @@ class DrawerBody(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -269,6 +272,7 @@ class DrawerBody(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -291,6 +295,7 @@ class DrawerHeader(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -348,6 +353,7 @@ class DrawerHeader(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -370,6 +376,7 @@ class DrawerFooter(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -427,6 +434,7 @@ class DrawerFooter(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -449,6 +457,7 @@ class DrawerOverlay(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -506,6 +515,7 @@ class DrawerOverlay(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -528,6 +538,7 @@ class DrawerContent(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -585,6 +596,7 @@ class DrawerContent(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -607,6 +619,7 @@ class DrawerCloseButton(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -664,6 +677,7 @@ class DrawerCloseButton(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/overlay/menu.pyi b/reflex/components/chakra/overlay/menu.pyi index 3450cfde9..660838313 100644 --- a/reflex/components/chakra/overlay/menu.pyi +++ b/reflex/components/chakra/overlay/menu.pyi @@ -52,6 +52,7 @@ class Menu(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -133,6 +134,7 @@ class Menu(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -154,6 +156,7 @@ class MenuButton(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -213,6 +216,7 @@ class MenuButton(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -236,6 +240,7 @@ class MenuList(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -294,6 +299,7 @@ class MenuList(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -318,6 +324,7 @@ class MenuItem(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -380,6 +387,7 @@ class MenuItem(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -412,6 +420,7 @@ class MenuItemOption(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -477,6 +486,7 @@ class MenuItemOption(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -499,6 +509,7 @@ class MenuGroup(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -556,6 +567,7 @@ class MenuGroup(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -582,6 +594,7 @@ class MenuOptionGroup(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -641,6 +654,7 @@ class MenuOptionGroup(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -663,6 +677,7 @@ class MenuDivider(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -720,6 +735,7 @@ class MenuDivider(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/overlay/modal.pyi b/reflex/components/chakra/overlay/modal.pyi index 5550f6d42..9b3d2826e 100644 --- a/reflex/components/chakra/overlay/modal.pyi +++ b/reflex/components/chakra/overlay/modal.pyi @@ -49,6 +49,7 @@ class Modal(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -135,6 +136,7 @@ class Modal(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -157,6 +159,7 @@ class ModalOverlay(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -214,6 +217,7 @@ class ModalOverlay(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -236,6 +240,7 @@ class ModalHeader(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -293,6 +298,7 @@ class ModalHeader(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -315,6 +321,7 @@ class ModalFooter(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -372,6 +379,7 @@ class ModalFooter(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -394,6 +402,7 @@ class ModalContent(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -451,6 +460,7 @@ class ModalContent(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -473,6 +483,7 @@ class ModalBody(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -530,6 +541,7 @@ class ModalBody(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -552,6 +564,7 @@ class ModalCloseButton(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -609,6 +622,7 @@ class ModalCloseButton(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/overlay/popover.pyi b/reflex/components/chakra/overlay/popover.pyi index 2f39860d3..d502f29bb 100644 --- a/reflex/components/chakra/overlay/popover.pyi +++ b/reflex/components/chakra/overlay/popover.pyi @@ -58,6 +58,7 @@ class Popover(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -146,6 +147,7 @@ class Popover(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -165,6 +167,7 @@ class PopoverContent(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -222,6 +225,7 @@ class PopoverContent(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -244,6 +248,7 @@ class PopoverHeader(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -301,6 +306,7 @@ class PopoverHeader(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -323,6 +329,7 @@ class PopoverFooter(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -380,6 +387,7 @@ class PopoverFooter(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -402,6 +410,7 @@ class PopoverBody(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -459,6 +468,7 @@ class PopoverBody(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -481,6 +491,7 @@ class PopoverArrow(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -538,6 +549,7 @@ class PopoverArrow(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -560,6 +572,7 @@ class PopoverCloseButton(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -617,6 +630,7 @@ class PopoverCloseButton(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -639,6 +653,7 @@ class PopoverAnchor(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -696,6 +711,7 @@ class PopoverAnchor(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -718,6 +734,7 @@ class PopoverTrigger(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -775,6 +792,7 @@ class PopoverTrigger(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/overlay/tooltip.pyi b/reflex/components/chakra/overlay/tooltip.pyi index e7aad7f50..492e1c41c 100644 --- a/reflex/components/chakra/overlay/tooltip.pyi +++ b/reflex/components/chakra/overlay/tooltip.pyi @@ -42,6 +42,7 @@ class Tooltip(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -122,6 +123,7 @@ class Tooltip(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/typography/heading.pyi b/reflex/components/chakra/typography/heading.pyi index e6cfa6b11..2aef0a631 100644 --- a/reflex/components/chakra/typography/heading.pyi +++ b/reflex/components/chakra/typography/heading.pyi @@ -28,6 +28,7 @@ class Heading(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -87,6 +88,7 @@ class Heading(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/typography/highlight.pyi b/reflex/components/chakra/typography/highlight.pyi index 0d935a7e8..91b194554 100644 --- a/reflex/components/chakra/typography/highlight.pyi +++ b/reflex/components/chakra/typography/highlight.pyi @@ -25,6 +25,7 @@ class Highlight(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -84,6 +85,7 @@ class Highlight(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/typography/span.pyi b/reflex/components/chakra/typography/span.pyi index 5cb16e319..84c39bcbd 100644 --- a/reflex/components/chakra/typography/span.pyi +++ b/reflex/components/chakra/typography/span.pyi @@ -22,6 +22,7 @@ class Span(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -80,6 +81,7 @@ class Span(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/chakra/typography/text.pyi b/reflex/components/chakra/typography/text.pyi index ca81acc24..6fb06ada7 100644 --- a/reflex/components/chakra/typography/text.pyi +++ b/reflex/components/chakra/typography/text.pyi @@ -23,6 +23,7 @@ class Text(ChakraComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -82,6 +83,7 @@ class Text(ChakraComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/component.py b/reflex/components/component.py index 971188f35..2c01559ca 100644 --- a/reflex/components/component.py +++ b/reflex/components/component.py @@ -158,6 +158,9 @@ class Component(BaseComponent, ABC): # only components that are allowed as parent _valid_parents: List[str] = [] + # props to change the name of + _rename_props: Dict[str, str] = {} + # custom attribute custom_attrs: Dict[str, Union[Var, str]] = {} @@ -648,8 +651,24 @@ class Component(BaseComponent, ABC): ), autofocus=self.autofocus, ) + self._replace_prop_names(rendered_dict) return rendered_dict + def _replace_prop_names(self, rendered_dict) -> None: + """Replace the prop names in the render dictionary. + + Args: + rendered_dict: The render dictionary with all the component props and event handlers. + """ + # fast path + if not self._rename_props: + return + + for ix, prop in enumerate(rendered_dict["props"]): + for old_prop, new_prop in self._rename_props.items(): + if prop.startswith(old_prop): + rendered_dict["props"][ix] = prop.replace(old_prop, new_prop) + def _validate_component_children(self, children: List[Component]): """Validate the children components. @@ -742,7 +761,7 @@ class Component(BaseComponent, ABC): vars.append(prop_var) # Style keeps track of its own VarData instance, so embed in a temp Var that is yielded. - if self.style: + if isinstance(self.style, dict) and self.style or isinstance(self.style, Var): vars.append( BaseVar( _var_name="style", diff --git a/reflex/components/core/banner.pyi b/reflex/components/core/banner.pyi index 5d06be5d2..69fe11b58 100644 --- a/reflex/components/core/banner.pyi +++ b/reflex/components/core/banner.pyi @@ -34,6 +34,7 @@ class WebsocketTargetURL(Bare): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -102,6 +103,7 @@ class ConnectionBanner(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -171,6 +173,7 @@ class ConnectionModal(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] diff --git a/reflex/components/core/client_side_routing.pyi b/reflex/components/core/client_side_routing.pyi index 53bf90043..4b90e79c4 100644 --- a/reflex/components/core/client_side_routing.pyi +++ b/reflex/components/core/client_side_routing.pyi @@ -26,6 +26,7 @@ class ClientSideRouting(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -83,6 +84,7 @@ class ClientSideRouting(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -108,6 +110,7 @@ class Default404Page(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -165,6 +168,7 @@ class Default404Page(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/core/debounce.pyi b/reflex/components/core/debounce.pyi index 63daadb60..9cd13e9ad 100644 --- a/reflex/components/core/debounce.pyi +++ b/reflex/components/core/debounce.pyi @@ -30,6 +30,7 @@ class DebounceInput(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] diff --git a/reflex/components/core/upload.pyi b/reflex/components/core/upload.pyi index 95fa5c8bf..f2d1dc52d 100644 --- a/reflex/components/core/upload.pyi +++ b/reflex/components/core/upload.pyi @@ -41,6 +41,7 @@ class UploadFilesProvider(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -98,6 +99,7 @@ class UploadFilesProvider(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -128,6 +130,7 @@ class Upload(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -197,6 +200,7 @@ class Upload(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. diff --git a/reflex/components/datadisplay/dataeditor.pyi b/reflex/components/datadisplay/dataeditor.pyi index fcc299926..8e7d00827 100644 --- a/reflex/components/datadisplay/dataeditor.pyi +++ b/reflex/components/datadisplay/dataeditor.pyi @@ -134,6 +134,7 @@ class DataEditor(NoSSRComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_cell_activated: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -223,6 +224,7 @@ class DataEditor(NoSSRComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the data editor. diff --git a/reflex/components/el/element.pyi b/reflex/components/el/element.pyi index 5b488d919..818fc5061 100644 --- a/reflex/components/el/element.pyi +++ b/reflex/components/el/element.pyi @@ -20,6 +20,7 @@ class Element(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -77,6 +78,7 @@ class Element(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/el/elements/base.pyi b/reflex/components/el/elements/base.pyi index 8f2616f23..6920c274d 100644 --- a/reflex/components/el/elements/base.pyi +++ b/reflex/components/el/elements/base.pyi @@ -65,6 +65,7 @@ class BaseHTML(Element): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -139,6 +140,7 @@ class BaseHTML(Element): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/el/elements/forms.pyi b/reflex/components/el/elements/forms.pyi index e13974f1c..009e77c8d 100644 --- a/reflex/components/el/elements/forms.pyi +++ b/reflex/components/el/elements/forms.pyi @@ -94,6 +94,7 @@ class Button(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -179,6 +180,7 @@ class Button(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -244,6 +246,7 @@ class Datalist(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -318,6 +321,7 @@ class Datalist(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -345,6 +349,7 @@ class Fieldset(Element): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -405,6 +410,7 @@ class Fieldset(Element): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -495,6 +501,7 @@ class Form(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -578,6 +585,7 @@ class Form(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -723,6 +731,7 @@ class Input(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -839,6 +848,7 @@ class Input(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -908,6 +918,7 @@ class Label(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -984,6 +995,7 @@ class Label(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1049,6 +1061,7 @@ class Legend(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1123,6 +1136,7 @@ class Legend(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1199,6 +1213,7 @@ class Meter(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1280,6 +1295,7 @@ class Meter(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1351,6 +1367,7 @@ class Optgroup(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1427,6 +1444,7 @@ class Optgroup(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1504,6 +1522,7 @@ class Option(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1582,6 +1601,7 @@ class Option(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1652,6 +1672,7 @@ class Output(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1729,6 +1750,7 @@ class Output(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1799,6 +1821,7 @@ class Progress(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1876,6 +1899,7 @@ class Progress(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1960,6 +1984,7 @@ class Select(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -2045,6 +2070,7 @@ class Select(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -2146,6 +2172,7 @@ class Textarea(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -2244,6 +2271,7 @@ class Textarea(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/el/elements/inline.pyi b/reflex/components/el/elements/inline.pyi index a9554152b..598d3cd93 100644 --- a/reflex/components/el/elements/inline.pyi +++ b/reflex/components/el/elements/inline.pyi @@ -86,6 +86,7 @@ class A(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -169,6 +170,7 @@ class A(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -234,6 +236,7 @@ class Abbr(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -308,6 +311,7 @@ class Abbr(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -373,6 +377,7 @@ class B(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -447,6 +452,7 @@ class B(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -512,6 +518,7 @@ class Bdi(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -586,6 +593,7 @@ class Bdi(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -651,6 +659,7 @@ class Bdo(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -725,6 +734,7 @@ class Bdo(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -790,6 +800,7 @@ class Br(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -864,6 +875,7 @@ class Br(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -929,6 +941,7 @@ class Cite(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1003,6 +1016,7 @@ class Cite(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1068,6 +1082,7 @@ class Code(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1142,6 +1157,7 @@ class Code(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1210,6 +1226,7 @@ class Data(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1285,6 +1302,7 @@ class Data(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1350,6 +1368,7 @@ class Dfn(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1424,6 +1443,7 @@ class Dfn(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1489,6 +1509,7 @@ class Em(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1563,6 +1584,7 @@ class Em(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1628,6 +1650,7 @@ class I(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1702,6 +1725,7 @@ class I(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1767,6 +1791,7 @@ class Kbd(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1841,6 +1866,7 @@ class Kbd(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1906,6 +1932,7 @@ class Mark(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1980,6 +2007,7 @@ class Mark(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -2046,6 +2074,7 @@ class Q(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -2121,6 +2150,7 @@ class Q(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -2186,6 +2216,7 @@ class Rp(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -2260,6 +2291,7 @@ class Rp(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -2325,6 +2357,7 @@ class Rt(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -2399,6 +2432,7 @@ class Rt(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -2464,6 +2498,7 @@ class Ruby(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -2538,6 +2573,7 @@ class Ruby(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -2603,6 +2639,7 @@ class S(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -2677,6 +2714,7 @@ class S(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -2742,6 +2780,7 @@ class Samp(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -2816,6 +2855,7 @@ class Samp(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -2881,6 +2921,7 @@ class Small(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -2955,6 +2996,7 @@ class Small(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -3020,6 +3062,7 @@ class Span(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -3094,6 +3137,7 @@ class Span(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -3159,6 +3203,7 @@ class Strong(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -3233,6 +3278,7 @@ class Strong(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -3298,6 +3344,7 @@ class Sub(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -3372,6 +3419,7 @@ class Sub(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -3437,6 +3485,7 @@ class Sup(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -3511,6 +3560,7 @@ class Sup(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -3579,6 +3629,7 @@ class Time(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -3654,6 +3705,7 @@ class Time(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -3719,6 +3771,7 @@ class U(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -3793,6 +3846,7 @@ class U(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -3858,6 +3912,7 @@ class Wbr(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -3932,6 +3987,7 @@ class Wbr(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/el/elements/media.pyi b/reflex/components/el/elements/media.pyi index 6a5fa25b2..13be5187d 100644 --- a/reflex/components/el/elements/media.pyi +++ b/reflex/components/el/elements/media.pyi @@ -90,6 +90,7 @@ class Area(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -175,6 +176,7 @@ class Area(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -260,6 +262,7 @@ class Audio(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -342,6 +345,7 @@ class Audio(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -448,6 +452,7 @@ class Img(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -537,6 +542,7 @@ class Img(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -603,6 +609,7 @@ class Map(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -678,6 +685,7 @@ class Map(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -754,6 +762,7 @@ class Track(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -833,6 +842,7 @@ class Track(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -930,6 +940,7 @@ class Video(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1016,6 +1027,7 @@ class Video(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1089,6 +1101,7 @@ class Embed(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1167,6 +1180,7 @@ class Embed(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1259,6 +1273,7 @@ class Iframe(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1344,6 +1359,7 @@ class Iframe(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1425,6 +1441,7 @@ class Object(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1507,6 +1524,7 @@ class Object(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1572,6 +1590,7 @@ class Picture(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1646,6 +1665,7 @@ class Picture(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1711,6 +1731,7 @@ class Portal(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1785,6 +1806,7 @@ class Portal(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1861,6 +1883,7 @@ class Source(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1940,6 +1963,7 @@ class Source(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -2011,6 +2035,7 @@ class Svg(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -2087,6 +2112,7 @@ class Svg(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -2153,6 +2179,7 @@ class Path(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -2228,6 +2255,7 @@ class Path(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/el/elements/metadata.pyi b/reflex/components/el/elements/metadata.pyi index e50f1b153..0b8c11898 100644 --- a/reflex/components/el/elements/metadata.pyi +++ b/reflex/components/el/elements/metadata.pyi @@ -70,6 +70,7 @@ class Base(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -144,6 +145,7 @@ class Base(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -209,6 +211,7 @@ class Head(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -283,6 +286,7 @@ class Head(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -369,6 +373,7 @@ class Link(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -443,6 +448,7 @@ class Link(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -518,6 +524,7 @@ class Meta(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -592,6 +599,7 @@ class Meta(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -614,6 +622,7 @@ class Title(Element): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -671,6 +680,7 @@ class Title(Element): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/el/elements/other.pyi b/reflex/components/el/elements/other.pyi index 2fd7fd05b..4f3dc0337 100644 --- a/reflex/components/el/elements/other.pyi +++ b/reflex/components/el/elements/other.pyi @@ -66,6 +66,7 @@ class Details(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -141,6 +142,7 @@ class Details(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -207,6 +209,7 @@ class Dialog(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -282,6 +285,7 @@ class Dialog(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -347,6 +351,7 @@ class Summary(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -421,6 +426,7 @@ class Summary(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -486,6 +492,7 @@ class Slot(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -560,6 +567,7 @@ class Slot(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -625,6 +633,7 @@ class Template(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -699,6 +708,7 @@ class Template(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -764,6 +774,7 @@ class Math(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -838,6 +849,7 @@ class Math(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -906,6 +918,7 @@ class Html(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -981,6 +994,7 @@ class Html(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/el/elements/scripts.pyi b/reflex/components/el/elements/scripts.pyi index f04699215..9c5a0233b 100644 --- a/reflex/components/el/elements/scripts.pyi +++ b/reflex/components/el/elements/scripts.pyi @@ -71,6 +71,7 @@ class Canvas(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -147,6 +148,7 @@ class Canvas(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -212,6 +214,7 @@ class Noscript(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -286,6 +289,7 @@ class Noscript(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -374,6 +378,7 @@ class Script(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -457,6 +462,7 @@ class Script(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/el/elements/sectioning.pyi b/reflex/components/el/elements/sectioning.pyi index ff9ad49ae..ad9b4afee 100644 --- a/reflex/components/el/elements/sectioning.pyi +++ b/reflex/components/el/elements/sectioning.pyi @@ -71,6 +71,7 @@ class Body(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -145,6 +146,7 @@ class Body(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -210,6 +212,7 @@ class Address(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -284,6 +287,7 @@ class Address(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -349,6 +353,7 @@ class Article(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -423,6 +428,7 @@ class Article(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -488,6 +494,7 @@ class Aside(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -562,6 +569,7 @@ class Aside(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -627,6 +635,7 @@ class Footer(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -701,6 +710,7 @@ class Footer(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -766,6 +776,7 @@ class Header(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -840,6 +851,7 @@ class Header(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -905,6 +917,7 @@ class H1(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -979,6 +992,7 @@ class H1(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1044,6 +1058,7 @@ class H2(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1118,6 +1133,7 @@ class H2(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1183,6 +1199,7 @@ class H3(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1257,6 +1274,7 @@ class H3(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1322,6 +1340,7 @@ class H4(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1396,6 +1415,7 @@ class H4(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1461,6 +1481,7 @@ class H5(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1535,6 +1556,7 @@ class H5(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1600,6 +1622,7 @@ class H6(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1674,6 +1697,7 @@ class H6(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1739,6 +1763,7 @@ class Main(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1813,6 +1838,7 @@ class Main(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1878,6 +1904,7 @@ class Nav(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1952,6 +1979,7 @@ class Nav(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -2017,6 +2045,7 @@ class Section(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -2091,6 +2120,7 @@ class Section(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/el/elements/tables.pyi b/reflex/components/el/elements/tables.pyi index 7823fd851..d07b77978 100644 --- a/reflex/components/el/elements/tables.pyi +++ b/reflex/components/el/elements/tables.pyi @@ -68,6 +68,7 @@ class Caption(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -143,6 +144,7 @@ class Caption(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -215,6 +217,7 @@ class Col(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -292,6 +295,7 @@ class Col(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -364,6 +368,7 @@ class Colgroup(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -441,6 +446,7 @@ class Colgroup(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -521,6 +527,7 @@ class Table(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -600,6 +607,7 @@ class Table(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -671,6 +679,7 @@ class Tbody(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -747,6 +756,7 @@ class Tbody(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -830,6 +840,7 @@ class Td(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -910,6 +921,7 @@ class Td(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -981,6 +993,7 @@ class Tfoot(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1057,6 +1070,7 @@ class Tfoot(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1143,6 +1157,7 @@ class Th(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1224,6 +1239,7 @@ class Th(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1292,6 +1308,7 @@ class Thead(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1367,6 +1384,7 @@ class Thead(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1438,6 +1456,7 @@ class Tr(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1514,6 +1533,7 @@ class Tr(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/el/elements/typography.pyi b/reflex/components/el/elements/typography.pyi index 55c665ad5..08f5c9b32 100644 --- a/reflex/components/el/elements/typography.pyi +++ b/reflex/components/el/elements/typography.pyi @@ -66,6 +66,7 @@ class Blockquote(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -141,6 +142,7 @@ class Blockquote(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -206,6 +208,7 @@ class Dd(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -280,6 +283,7 @@ class Dd(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -345,6 +349,7 @@ class Div(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -419,6 +424,7 @@ class Div(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -484,6 +490,7 @@ class Dl(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -558,6 +565,7 @@ class Dl(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -623,6 +631,7 @@ class Dt(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -697,6 +706,7 @@ class Dt(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -762,6 +772,7 @@ class Figcaption(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -836,6 +847,7 @@ class Figcaption(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -907,6 +919,7 @@ class Hr(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -983,6 +996,7 @@ class Hr(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1048,6 +1062,7 @@ class Li(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1122,6 +1137,7 @@ class Li(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1188,6 +1204,7 @@ class Menu(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1263,6 +1280,7 @@ class Menu(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1335,6 +1353,7 @@ class Ol(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1412,6 +1431,7 @@ class Ol(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1477,6 +1497,7 @@ class P(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1551,6 +1572,7 @@ class P(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1616,6 +1638,7 @@ class Pre(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1690,6 +1713,7 @@ class Pre(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1755,6 +1779,7 @@ class Ul(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1829,6 +1854,7 @@ class Ul(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1898,6 +1924,7 @@ class Ins(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1974,6 +2001,7 @@ class Ins(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -2043,6 +2071,7 @@ class Del(BaseHTML): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -2119,6 +2148,7 @@ class Del(BaseHTML): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/gridjs/datatable.pyi b/reflex/components/gridjs/datatable.pyi index 691c3d4bd..9ad0d03d2 100644 --- a/reflex/components/gridjs/datatable.pyi +++ b/reflex/components/gridjs/datatable.pyi @@ -25,6 +25,7 @@ class Gridjs(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -82,6 +83,7 @@ class Gridjs(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -110,6 +112,7 @@ class DataTable(Gridjs): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -173,6 +176,7 @@ class DataTable(Gridjs): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props to pass to the component. diff --git a/reflex/components/lucide/icon.pyi b/reflex/components/lucide/icon.pyi index 26eabb48b..cdca826cd 100644 --- a/reflex/components/lucide/icon.pyi +++ b/reflex/components/lucide/icon.pyi @@ -23,6 +23,7 @@ class LucideIconComponent(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -80,6 +81,7 @@ class LucideIconComponent(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -103,6 +105,7 @@ class Icon(LucideIconComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -163,6 +166,7 @@ class Icon(LucideIconComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The keyword arguments diff --git a/reflex/components/markdown/markdown.pyi b/reflex/components/markdown/markdown.pyi index 1322e7622..27c9789ac 100644 --- a/reflex/components/markdown/markdown.pyi +++ b/reflex/components/markdown/markdown.pyi @@ -55,6 +55,7 @@ class Markdown(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -115,6 +116,7 @@ class Markdown(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. diff --git a/reflex/components/moment/moment.pyi b/reflex/components/moment/moment.pyi index 6eb780cda..bd5392f7e 100644 --- a/reflex/components/moment/moment.pyi +++ b/reflex/components/moment/moment.pyi @@ -56,6 +56,7 @@ class Moment(NoSSRComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -136,6 +137,7 @@ class Moment(NoSSRComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. diff --git a/reflex/components/next/base.pyi b/reflex/components/next/base.pyi index 57fab6a9a..f940aaca1 100644 --- a/reflex/components/next/base.pyi +++ b/reflex/components/next/base.pyi @@ -22,6 +22,7 @@ class NextComponent(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -79,6 +80,7 @@ class NextComponent(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/next/image.pyi b/reflex/components/next/image.pyi index a8f7d8379..3eba50fba 100644 --- a/reflex/components/next/image.pyi +++ b/reflex/components/next/image.pyi @@ -38,6 +38,7 @@ class Image(NextComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -113,6 +114,7 @@ class Image(NextComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props:The props of the component. diff --git a/reflex/components/next/link.pyi b/reflex/components/next/link.pyi index 3d8809968..57e42d550 100644 --- a/reflex/components/next/link.pyi +++ b/reflex/components/next/link.pyi @@ -23,6 +23,7 @@ class NextLink(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -82,6 +83,7 @@ class NextLink(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/next/video.pyi b/reflex/components/next/video.pyi index cee5c4c9d..25cd027d6 100644 --- a/reflex/components/next/video.pyi +++ b/reflex/components/next/video.pyi @@ -25,6 +25,7 @@ class Video(NextComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -83,6 +84,7 @@ class Video(NextComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/plotly/plotly.pyi b/reflex/components/plotly/plotly.pyi index 2a0653aeb..d237f1c12 100644 --- a/reflex/components/plotly/plotly.pyi +++ b/reflex/components/plotly/plotly.pyi @@ -27,6 +27,7 @@ class PlotlyLib(NoSSRComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -84,6 +85,7 @@ class PlotlyLib(NoSSRComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -111,6 +113,7 @@ class Plotly(PlotlyLib): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -173,6 +176,7 @@ class Plotly(PlotlyLib): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/radix/primitives/accordion.pyi b/reflex/components/radix/primitives/accordion.pyi index 19f5b1002..ec2635c39 100644 --- a/reflex/components/radix/primitives/accordion.pyi +++ b/reflex/components/radix/primitives/accordion.pyi @@ -49,6 +49,7 @@ class AccordionComponent(RadixPrimitiveComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -107,6 +108,7 @@ class AccordionComponent(RadixPrimitiveComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -155,6 +157,7 @@ class AccordionRoot(AccordionComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -227,6 +230,7 @@ class AccordionRoot(AccordionComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -250,6 +254,7 @@ class AccordionItem(AccordionComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -310,6 +315,7 @@ class AccordionItem(AccordionComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -333,6 +339,7 @@ class AccordionHeader(AccordionComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -391,6 +398,7 @@ class AccordionHeader(AccordionComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -414,6 +422,7 @@ class AccordionTrigger(AccordionComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -472,6 +481,7 @@ class AccordionTrigger(AccordionComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -495,6 +505,7 @@ class AccordionContent(AccordionComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -553,6 +564,7 @@ class AccordionContent(AccordionComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/radix/primitives/base.pyi b/reflex/components/radix/primitives/base.pyi index f31a66252..e1e2e5711 100644 --- a/reflex/components/radix/primitives/base.pyi +++ b/reflex/components/radix/primitives/base.pyi @@ -25,6 +25,7 @@ class RadixPrimitiveComponent(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -83,6 +84,7 @@ class RadixPrimitiveComponent(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -106,6 +108,7 @@ class RadixPrimitiveComponentWithClassName(RadixPrimitiveComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -164,6 +167,7 @@ class RadixPrimitiveComponentWithClassName(RadixPrimitiveComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/radix/primitives/drawer.pyi b/reflex/components/radix/primitives/drawer.pyi index 73b1df355..20b3b36ed 100644 --- a/reflex/components/radix/primitives/drawer.pyi +++ b/reflex/components/radix/primitives/drawer.pyi @@ -24,6 +24,7 @@ class DrawerComponent(RadixPrimitiveComponentWithClassName): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -82,6 +83,7 @@ class DrawerComponent(RadixPrimitiveComponentWithClassName): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -122,6 +124,7 @@ class DrawerRoot(DrawerComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -192,6 +195,7 @@ class DrawerRoot(DrawerComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -215,6 +219,7 @@ class DrawerTrigger(DrawerComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -273,6 +278,7 @@ class DrawerTrigger(DrawerComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -296,6 +302,7 @@ class DrawerPortal(DrawerComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -354,6 +361,7 @@ class DrawerPortal(DrawerComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -378,6 +386,7 @@ class DrawerContent(DrawerComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -451,6 +460,7 @@ class DrawerContent(DrawerComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -474,6 +484,7 @@ class DrawerOverlay(DrawerComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -532,6 +543,7 @@ class DrawerOverlay(DrawerComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -555,6 +567,7 @@ class DrawerClose(DrawerComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -613,6 +626,7 @@ class DrawerClose(DrawerComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -636,6 +650,7 @@ class DrawerTitle(DrawerComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -694,6 +709,7 @@ class DrawerTitle(DrawerComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -717,6 +733,7 @@ class DrawerDescription(DrawerComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -775,6 +792,7 @@ class DrawerDescription(DrawerComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/radix/primitives/form.pyi b/reflex/components/radix/primitives/form.pyi index 777154300..11f7bf058 100644 --- a/reflex/components/radix/primitives/form.pyi +++ b/reflex/components/radix/primitives/form.pyi @@ -38,6 +38,7 @@ class FormComponent(RadixPrimitiveComponentWithClassName): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -96,6 +97,7 @@ class FormComponent(RadixPrimitiveComponentWithClassName): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -122,6 +124,7 @@ class FormRoot(FormComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -188,6 +191,7 @@ class FormRoot(FormComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the form. @@ -210,6 +214,7 @@ class FormField(FormComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -270,6 +275,7 @@ class FormField(FormComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -293,6 +299,7 @@ class FormLabel(FormComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -351,6 +358,7 @@ class FormLabel(FormComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -374,6 +382,7 @@ class FormControl(FormComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -432,6 +441,7 @@ class FormControl(FormComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the form. @@ -501,6 +511,7 @@ class FormMessage(FormComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -562,6 +573,7 @@ class FormMessage(FormComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -585,6 +597,7 @@ class FormValidityState(FormComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -643,6 +656,7 @@ class FormValidityState(FormComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -666,6 +680,7 @@ class FormSubmit(FormComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -724,6 +739,7 @@ class FormSubmit(FormComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/radix/primitives/progress.pyi b/reflex/components/radix/primitives/progress.pyi index 4d4544ecc..27b3a7df4 100644 --- a/reflex/components/radix/primitives/progress.pyi +++ b/reflex/components/radix/primitives/progress.pyi @@ -25,6 +25,7 @@ class ProgressComponent(RadixPrimitiveComponentWithClassName): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -83,6 +84,7 @@ class ProgressComponent(RadixPrimitiveComponentWithClassName): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -108,6 +110,7 @@ class ProgressRoot(ProgressComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -168,6 +171,7 @@ class ProgressRoot(ProgressComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -192,6 +196,7 @@ class ProgressIndicator(ProgressComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -251,6 +256,7 @@ class ProgressIndicator(ProgressComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/radix/primitives/slider.pyi b/reflex/components/radix/primitives/slider.pyi index 0bc094c21..3c72de21d 100644 --- a/reflex/components/radix/primitives/slider.pyi +++ b/reflex/components/radix/primitives/slider.pyi @@ -28,6 +28,7 @@ class SliderComponent(RadixPrimitiveComponentWithClassName): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -86,6 +87,7 @@ class SliderComponent(RadixPrimitiveComponentWithClassName): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -126,6 +128,7 @@ class SliderRoot(SliderComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -190,6 +193,7 @@ class SliderRoot(SliderComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -213,6 +217,7 @@ class SliderTrack(SliderComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -271,6 +276,7 @@ class SliderTrack(SliderComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -294,6 +300,7 @@ class SliderRange(SliderComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -352,6 +359,7 @@ class SliderRange(SliderComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -375,6 +383,7 @@ class SliderThumb(SliderComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -433,6 +442,7 @@ class SliderThumb(SliderComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/radix/themes/base.pyi b/reflex/components/radix/themes/base.pyi index 1b40395f5..5fc7795bb 100644 --- a/reflex/components/radix/themes/base.pyi +++ b/reflex/components/radix/themes/base.pyi @@ -104,6 +104,7 @@ class CommonMarginProps(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -168,6 +169,7 @@ class CommonMarginProps(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -253,6 +255,7 @@ class RadixThemesComponent(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -315,6 +318,7 @@ class RadixThemesComponent(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -489,6 +493,7 @@ class Theme(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -558,6 +563,7 @@ class Theme(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -641,6 +647,7 @@ class ThemePanel(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -703,6 +710,7 @@ class ThemePanel(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -722,6 +730,7 @@ class RadixThemesColorModeProvider(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -779,6 +788,7 @@ class RadixThemesColorModeProvider(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/radix/themes/components/alertdialog.py b/reflex/components/radix/themes/components/alertdialog.py index 7a9edc8c6..067ce77c2 100644 --- a/reflex/components/radix/themes/components/alertdialog.py +++ b/reflex/components/radix/themes/components/alertdialog.py @@ -2,6 +2,7 @@ from typing import Any, Dict, Literal from reflex import el +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import LiteralSize, RadixThemesComponent @@ -25,7 +26,7 @@ class AlertDialogRoot(RadixThemesComponent): """ return { **super().get_event_triggers(), - "on_open_change": lambda e0: [e0], + EventTriggers.ON_OPEN_CHANGE: lambda e0: [e0], } @@ -54,9 +55,9 @@ class AlertDialogContent(el.Div, RadixThemesComponent): """ return { **super().get_event_triggers(), - "on_open_auto_focus": lambda e0: [e0], - "on_close_auto_focus": lambda e0: [e0], - "on_escape_key_down": lambda e0: [e0], + EventTriggers.ON_OPEN_AUTO_FOCUS: lambda e0: [e0], + EventTriggers.ON_CLOSE_AUTO_FOCUS: lambda e0: [e0], + EventTriggers.ON_ESCAPE_KEY_DOWN: lambda e0: [e0], } diff --git a/reflex/components/radix/themes/components/alertdialog.pyi b/reflex/components/radix/themes/components/alertdialog.pyi index c6c634a07..ddcae16dc 100644 --- a/reflex/components/radix/themes/components/alertdialog.pyi +++ b/reflex/components/radix/themes/components/alertdialog.pyi @@ -9,6 +9,7 @@ from reflex.event import EventChain, EventHandler, EventSpec from reflex.style import Style from typing import Any, Dict, Literal from reflex import el +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import LiteralSize, RadixThemesComponent @@ -90,6 +91,7 @@ class AlertDialogRoot(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -156,6 +158,7 @@ class AlertDialogRoot(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -238,6 +241,7 @@ class AlertDialogTrigger(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -300,6 +304,7 @@ class AlertDialogTrigger(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -433,6 +438,7 @@ class AlertDialogContent(el.Div, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -523,6 +529,7 @@ class AlertDialogContent(el.Div, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -605,6 +612,7 @@ class AlertDialogTitle(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -667,6 +675,7 @@ class AlertDialogTitle(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -749,6 +758,7 @@ class AlertDialogDescription(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -811,6 +821,7 @@ class AlertDialogDescription(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -893,6 +904,7 @@ class AlertDialogAction(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -955,6 +967,7 @@ class AlertDialogAction(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -1037,6 +1050,7 @@ class AlertDialogCancel(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1099,6 +1113,7 @@ class AlertDialogCancel(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/components/aspectratio.pyi b/reflex/components/radix/themes/components/aspectratio.pyi index b67bb9d09..043163274 100644 --- a/reflex/components/radix/themes/components/aspectratio.pyi +++ b/reflex/components/radix/themes/components/aspectratio.pyi @@ -86,6 +86,7 @@ class AspectRatio(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -149,6 +150,7 @@ class AspectRatio(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/components/avatar.pyi b/reflex/components/radix/themes/components/avatar.pyi index 635cea11e..037b78941 100644 --- a/reflex/components/radix/themes/components/avatar.pyi +++ b/reflex/components/radix/themes/components/avatar.pyi @@ -103,6 +103,7 @@ class Avatar(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -171,6 +172,7 @@ class Avatar(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/components/badge.pyi b/reflex/components/radix/themes/components/badge.pyi index 07b75e5a3..24a2c25ff 100644 --- a/reflex/components/radix/themes/components/badge.pyi +++ b/reflex/components/radix/themes/components/badge.pyi @@ -143,6 +143,7 @@ class Badge(el.Span, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -226,6 +227,7 @@ class Badge(el.Span, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/components/button.pyi b/reflex/components/radix/themes/components/button.pyi index b72a0acfc..6b0dc3a76 100644 --- a/reflex/components/radix/themes/components/button.pyi +++ b/reflex/components/radix/themes/components/button.pyi @@ -180,6 +180,7 @@ class Button(el.Button, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -275,6 +276,7 @@ class Button(el.Button, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/components/callout.pyi b/reflex/components/radix/themes/components/callout.pyi index 262816d37..632c57b97 100644 --- a/reflex/components/radix/themes/components/callout.pyi +++ b/reflex/components/radix/themes/components/callout.pyi @@ -145,6 +145,7 @@ class CalloutRoot(el.Div, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -228,6 +229,7 @@ class CalloutRoot(el.Div, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -353,6 +355,7 @@ class CalloutIcon(el.Div, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -432,6 +435,7 @@ class CalloutIcon(el.Div, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -557,6 +561,7 @@ class CalloutText(el.P, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -636,6 +641,7 @@ class CalloutText(el.P, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -773,6 +779,7 @@ class Callout(CalloutRoot): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -854,6 +861,7 @@ class Callout(CalloutRoot): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. diff --git a/reflex/components/radix/themes/components/card.pyi b/reflex/components/radix/themes/components/card.pyi index 0c6457ff8..9cf35f953 100644 --- a/reflex/components/radix/themes/components/card.pyi +++ b/reflex/components/radix/themes/components/card.pyi @@ -141,6 +141,7 @@ class Card(el.Div, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -223,6 +224,7 @@ class Card(el.Div, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/components/checkbox.py b/reflex/components/radix/themes/components/checkbox.py index 97a69be00..af776fdd7 100644 --- a/reflex/components/radix/themes/components/checkbox.py +++ b/reflex/components/radix/themes/components/checkbox.py @@ -4,6 +4,7 @@ from typing import Any, Dict, Literal from reflex.components.component import Component from reflex.components.radix.themes.layout.flex import Flex from reflex.components.radix.themes.typography.text import Text +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import ( @@ -54,6 +55,9 @@ class Checkbox(RadixThemesComponent): # The value of the checkbox control when submitting the form. value: Var[str] + # Props to rename + _rename_props = {"onChange": "onCheckedChange"} + def get_event_triggers(self) -> Dict[str, Any]: """Get the events triggers signatures for the component. @@ -62,7 +66,7 @@ class Checkbox(RadixThemesComponent): """ return { **super().get_event_triggers(), - "on_checked_change": lambda e0: [e0], + EventTriggers.ON_CHANGE: lambda e0: [e0], } @@ -94,7 +98,10 @@ class HighLevelCheckbox(Checkbox): return Text.create( Flex.create( - Checkbox.create(size=size, **props), + Checkbox.create( + size=size, + **props, + ), text, gap=gap, ), diff --git a/reflex/components/radix/themes/components/checkbox.pyi b/reflex/components/radix/themes/components/checkbox.pyi index c6d17a650..ed94c3776 100644 --- a/reflex/components/radix/themes/components/checkbox.pyi +++ b/reflex/components/radix/themes/components/checkbox.pyi @@ -11,6 +11,7 @@ from typing import Any, Dict, Literal from reflex.components.component import Component from reflex.components.radix.themes.layout.flex import Flex from reflex.components.radix.themes.typography.text import Text +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import LiteralAccentColor, LiteralSize, LiteralVariant, RadixThemesComponent @@ -108,11 +109,12 @@ class Checkbox(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, - on_checked_change: Optional[ + on_change: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, on_click: Optional[ @@ -178,11 +180,12 @@ class Checkbox(RadixThemesComponent): required: Whether the checkbox is required name: The name of the checkbox control when submitting the form. value: The value of the checkbox control when submitting the form. - style: The style of the component. + style: Props to rename The style of the component. key: A unique key for the component. id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -288,11 +291,12 @@ class HighLevelCheckbox(Checkbox): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, - on_checked_change: Optional[ + on_change: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, on_click: Optional[ @@ -356,11 +360,12 @@ class HighLevelCheckbox(Checkbox): required: Whether the checkbox is required name: The name of the checkbox control when submitting the form. value: The value of the checkbox control when submitting the form. - style: The style of the component. + style: Props to rename The style of the component. key: A unique key for the component. id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Additional properties to apply to the checkbox item. diff --git a/reflex/components/radix/themes/components/contextmenu.py b/reflex/components/radix/themes/components/contextmenu.py index 0eb67a72d..05277d05c 100644 --- a/reflex/components/radix/themes/components/contextmenu.py +++ b/reflex/components/radix/themes/components/contextmenu.py @@ -1,6 +1,7 @@ """Interactive components provided by @radix-ui/themes.""" from typing import Any, Dict, Literal +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import ( @@ -25,7 +26,7 @@ class ContextMenuRoot(RadixThemesComponent): """ return { **super().get_event_triggers(), - "on_open_change": lambda e0: [e0], + EventTriggers.ON_OPEN_CHANGE: lambda e0: [e0], } @@ -69,11 +70,11 @@ class ContextMenuContent(RadixThemesComponent): """ return { **super().get_event_triggers(), - "on_close_auto_focus": lambda e0: [e0], - "on_escape_key_down": lambda e0: [e0], - "on_pointer_down_outside": lambda e0: [e0], - "on_focus_outside": lambda e0: [e0], - "on_interact_outside": lambda e0: [e0], + EventTriggers.ON_CLOSE_AUTO_FOCUS: lambda e0: [e0], + EventTriggers.ON_ESCAPE_KEY_DOWN: lambda e0: [e0], + EventTriggers.ON_POINTER_DOWN_OUTSIDE: lambda e0: [e0], + EventTriggers.ON_FOCUS_OUTSIDE: lambda e0: [e0], + EventTriggers.ON_INTERACT_OUTSIDE: lambda e0: [e0], } @@ -108,10 +109,10 @@ class ContextMenuSubContent(RadixThemesComponent): """ return { **super().get_event_triggers(), - "on_escape_key_down": lambda e0: [e0], - "on_pointer_down_outside": lambda e0: [e0], - "on_focus_outside": lambda e0: [e0], - "on_interact_outside": lambda e0: [e0], + EventTriggers.ON_ESCAPE_KEY_DOWN: lambda e0: [e0], + EventTriggers.ON_POINTER_DOWN_OUTSIDE: lambda e0: [e0], + EventTriggers.ON_FOCUS_OUTSIDE: lambda e0: [e0], + EventTriggers.ON_INTERACT_OUTSIDE: lambda e0: [e0], } diff --git a/reflex/components/radix/themes/components/contextmenu.pyi b/reflex/components/radix/themes/components/contextmenu.pyi index 3b346da51..bf48232ce 100644 --- a/reflex/components/radix/themes/components/contextmenu.pyi +++ b/reflex/components/radix/themes/components/contextmenu.pyi @@ -8,6 +8,7 @@ from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventChain, EventHandler, EventSpec from reflex.style import Style from typing import Any, Dict, Literal +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import LiteralAccentColor, RadixThemesComponent @@ -87,6 +88,7 @@ class ContextMenuRoot(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -153,6 +155,7 @@ class ContextMenuRoot(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -236,6 +239,7 @@ class ContextMenuTrigger(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -299,6 +303,7 @@ class ContextMenuTrigger(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -389,6 +394,7 @@ class ContextMenuContent(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -471,6 +477,7 @@ class ContextMenuContent(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -553,6 +560,7 @@ class ContextMenuSub(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -615,6 +623,7 @@ class ContextMenuSub(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -698,6 +707,7 @@ class ContextMenuSubTrigger(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -761,6 +771,7 @@ class ContextMenuSubTrigger(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -845,6 +856,7 @@ class ContextMenuSubContent(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -920,6 +932,7 @@ class ContextMenuSubContent(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -1003,6 +1016,7 @@ class ContextMenuItem(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1066,6 +1080,7 @@ class ContextMenuItem(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -1148,6 +1163,7 @@ class ContextMenuSeparator(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1210,6 +1226,7 @@ class ContextMenuSeparator(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/components/dialog.py b/reflex/components/radix/themes/components/dialog.py index 8cb3ef4ec..3542ab402 100644 --- a/reflex/components/radix/themes/components/dialog.py +++ b/reflex/components/radix/themes/components/dialog.py @@ -2,6 +2,7 @@ from typing import Any, Dict, Literal from reflex import el +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import ( @@ -25,7 +26,7 @@ class DialogRoot(RadixThemesComponent): """ return { **super().get_event_triggers(), - "on_open_change": lambda e0: [e0], + EventTriggers.ON_OPEN_CHANGE: lambda e0: [e0], } @@ -57,11 +58,11 @@ class DialogContent(el.Div, RadixThemesComponent): """ return { **super().get_event_triggers(), - "on_open_auto_focus": lambda e0: [e0], - "on_close_auto_focus": lambda e0: [e0], - "on_escape_key_down": lambda e0: [e0], - "on_pointer_down_outside": lambda e0: [e0], - "on_interact_outside": lambda e0: [e0], + EventTriggers.ON_OPEN_AUTO_FOCUS: lambda e0: [e0], + EventTriggers.ON_CLOSE_AUTO_FOCUS: lambda e0: [e0], + EventTriggers.ON_ESCAPE_KEY_DOWN: lambda e0: [e0], + EventTriggers.ON_POINTER_DOWN_OUTSIDE: lambda e0: [e0], + EventTriggers.ON_INTERACT_OUTSIDE: lambda e0: [e0], } diff --git a/reflex/components/radix/themes/components/dialog.pyi b/reflex/components/radix/themes/components/dialog.pyi index c0b7d38ed..6d4a31cc5 100644 --- a/reflex/components/radix/themes/components/dialog.pyi +++ b/reflex/components/radix/themes/components/dialog.pyi @@ -9,6 +9,7 @@ from reflex.event import EventChain, EventHandler, EventSpec from reflex.style import Style from typing import Any, Dict, Literal from reflex import el +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import RadixThemesComponent @@ -88,6 +89,7 @@ class DialogRoot(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -154,6 +156,7 @@ class DialogRoot(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -236,6 +239,7 @@ class DialogTrigger(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -298,6 +302,7 @@ class DialogTrigger(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -380,6 +385,7 @@ class DialogTitle(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -442,6 +448,7 @@ class DialogTitle(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -569,6 +576,7 @@ class DialogContent(el.Div, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -664,6 +672,7 @@ class DialogContent(el.Div, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -746,6 +755,7 @@ class DialogDescription(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -808,6 +818,7 @@ class DialogDescription(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -890,6 +901,7 @@ class DialogClose(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -952,6 +964,7 @@ class DialogClose(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/components/dropdownmenu.py b/reflex/components/radix/themes/components/dropdownmenu.py index 92fa410f3..53331e5e1 100644 --- a/reflex/components/radix/themes/components/dropdownmenu.py +++ b/reflex/components/radix/themes/components/dropdownmenu.py @@ -1,6 +1,7 @@ """Interactive components provided by @radix-ui/themes.""" from typing import Any, Dict, Literal +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import ( @@ -28,7 +29,7 @@ class DropdownMenuRoot(RadixThemesComponent): """ return { **super().get_event_triggers(), - "on_open_change": lambda e0: [e0], + EventTriggers.ON_OPEN_CHANGE: lambda e0: [e0], } @@ -51,10 +52,10 @@ class DropdownMenuContent(RadixThemesComponent): """ return { **super().get_event_triggers(), - "on_close_auto_focus": lambda e0: [e0], - "on_escape_key_down": lambda e0: [e0], - "on_pointer_down_outside": lambda e0: [e0], - "on_interact_outside": lambda e0: [e0], + EventTriggers.ON_CLOSE_AUTO_FOCUS: lambda e0: [e0], + EventTriggers.ON_ESCAPE_KEY_DOWN: lambda e0: [e0], + EventTriggers.ON_POINTER_DOWN_OUTSIDE: lambda e0: [e0], + EventTriggers.ON_INTERACT_OUTSIDE: lambda e0: [e0], } diff --git a/reflex/components/radix/themes/components/dropdownmenu.pyi b/reflex/components/radix/themes/components/dropdownmenu.pyi index d97301515..c9170b15e 100644 --- a/reflex/components/radix/themes/components/dropdownmenu.pyi +++ b/reflex/components/radix/themes/components/dropdownmenu.pyi @@ -8,6 +8,7 @@ from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventChain, EventHandler, EventSpec from reflex.style import Style from typing import Any, Dict, Literal +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import LiteralAccentColor, RadixThemesComponent @@ -88,6 +89,7 @@ class DropdownMenuRoot(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -155,6 +157,7 @@ class DropdownMenuRoot(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -237,6 +240,7 @@ class DropdownMenuTrigger(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -299,6 +303,7 @@ class DropdownMenuTrigger(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -382,6 +387,7 @@ class DropdownMenuContent(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -456,6 +462,7 @@ class DropdownMenuContent(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -538,6 +545,7 @@ class DropdownMenuSubTrigger(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -600,6 +608,7 @@ class DropdownMenuSubTrigger(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -682,6 +691,7 @@ class DropdownMenuSub(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -744,6 +754,7 @@ class DropdownMenuSub(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -831,6 +842,7 @@ class DropdownMenuSubContent(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -896,6 +908,7 @@ class DropdownMenuSubContent(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -979,6 +992,7 @@ class DropdownMenuItem(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1042,6 +1056,7 @@ class DropdownMenuItem(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -1124,6 +1139,7 @@ class DropdownMenuSeparator(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1186,6 +1202,7 @@ class DropdownMenuSeparator(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/components/hovercard.py b/reflex/components/radix/themes/components/hovercard.py index c16c03024..04d579749 100644 --- a/reflex/components/radix/themes/components/hovercard.py +++ b/reflex/components/radix/themes/components/hovercard.py @@ -2,6 +2,7 @@ from typing import Any, Dict, Literal from reflex import el +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import ( @@ -34,7 +35,7 @@ class HoverCardRoot(RadixThemesComponent): """ return { **super().get_event_triggers(), - "on_open_change": lambda e0: [e0], + EventTriggers.ON_OPEN_CHANGE: lambda e0: [e0], } diff --git a/reflex/components/radix/themes/components/hovercard.pyi b/reflex/components/radix/themes/components/hovercard.pyi index 962118ac5..270d44b1e 100644 --- a/reflex/components/radix/themes/components/hovercard.pyi +++ b/reflex/components/radix/themes/components/hovercard.pyi @@ -9,6 +9,7 @@ from reflex.event import EventChain, EventHandler, EventSpec from reflex.style import Style from typing import Any, Dict, Literal from reflex import el +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import RadixThemesComponent @@ -91,6 +92,7 @@ class HoverCardRoot(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -160,6 +162,7 @@ class HoverCardRoot(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -242,6 +245,7 @@ class HoverCardTrigger(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -304,6 +308,7 @@ class HoverCardTrigger(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -443,6 +448,7 @@ class HoverCardContent(el.Div, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -526,6 +532,7 @@ class HoverCardContent(el.Div, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/components/iconbutton.pyi b/reflex/components/radix/themes/components/iconbutton.pyi index 1f512ca17..612116ec1 100644 --- a/reflex/components/radix/themes/components/iconbutton.pyi +++ b/reflex/components/radix/themes/components/iconbutton.pyi @@ -180,6 +180,7 @@ class IconButton(el.Button, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -275,6 +276,7 @@ class IconButton(el.Button, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/components/icons.pyi b/reflex/components/radix/themes/components/icons.pyi index 2002f9b0f..c7213c5e5 100644 --- a/reflex/components/radix/themes/components/icons.pyi +++ b/reflex/components/radix/themes/components/icons.pyi @@ -22,6 +22,7 @@ class RadixIconComponent(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -79,6 +80,7 @@ class RadixIconComponent(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -101,6 +103,7 @@ class Icon(RadixIconComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -160,6 +163,7 @@ class Icon(RadixIconComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The keyword arguments diff --git a/reflex/components/radix/themes/components/inset.pyi b/reflex/components/radix/themes/components/inset.pyi index 9c6ae4a36..c3f44ebe2 100644 --- a/reflex/components/radix/themes/components/inset.pyi +++ b/reflex/components/radix/themes/components/inset.pyi @@ -150,6 +150,7 @@ class Inset(el.Div, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -238,6 +239,7 @@ class Inset(el.Div, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/components/popover.py b/reflex/components/radix/themes/components/popover.py index fa8ce6b59..633365643 100644 --- a/reflex/components/radix/themes/components/popover.py +++ b/reflex/components/radix/themes/components/popover.py @@ -2,6 +2,7 @@ from typing import Any, Dict, Literal from reflex import el +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import ( @@ -28,7 +29,7 @@ class PopoverRoot(RadixThemesComponent): """ return { **super().get_event_triggers(), - "on_open_change": lambda e0: [e0], + EventTriggers.ON_OPEN_CHANGE: lambda e0: [e0], } @@ -69,12 +70,12 @@ class PopoverContent(el.Div, RadixThemesComponent): """ return { **super().get_event_triggers(), - "on_open_auto_focus": lambda e0: [e0], - "on_close_auto_focus": lambda e0: [e0], - "on_escape_key_down": lambda e0: [e0], - "on_pointer_down_outside": lambda e0: [e0], - "on_focus_outside": lambda e0: [e0], - "on_interact_outside": lambda e0: [e0], + EventTriggers.ON_OPEN_AUTO_FOCUS: lambda e0: [e0], + EventTriggers.ON_CLOSE_AUTO_FOCUS: lambda e0: [e0], + EventTriggers.ON_ESCAPE_KEY_DOWN: lambda e0: [e0], + EventTriggers.ON_POINTER_DOWN_OUTSIDE: lambda e0: [e0], + EventTriggers.ON_FOCUS_OUTSIDE: lambda e0: [e0], + EventTriggers.ON_INTERACT_OUTSIDE: lambda e0: [e0], } diff --git a/reflex/components/radix/themes/components/popover.pyi b/reflex/components/radix/themes/components/popover.pyi index d90f3f046..89e8681d1 100644 --- a/reflex/components/radix/themes/components/popover.pyi +++ b/reflex/components/radix/themes/components/popover.pyi @@ -9,6 +9,7 @@ from reflex.event import EventChain, EventHandler, EventSpec from reflex.style import Style from typing import Any, Dict, Literal from reflex import el +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import RadixThemesComponent @@ -89,6 +90,7 @@ class PopoverRoot(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -156,6 +158,7 @@ class PopoverRoot(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -238,6 +241,7 @@ class PopoverTrigger(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -300,6 +304,7 @@ class PopoverTrigger(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -442,6 +447,7 @@ class PopoverContent(el.Div, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -545,6 +551,7 @@ class PopoverContent(el.Div, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -627,6 +634,7 @@ class PopoverClose(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -689,6 +697,7 @@ class PopoverClose(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/components/radiogroup.py b/reflex/components/radix/themes/components/radiogroup.py index 099a7c287..29bbe517d 100644 --- a/reflex/components/radix/themes/components/radiogroup.py +++ b/reflex/components/radix/themes/components/radiogroup.py @@ -5,6 +5,7 @@ import reflex as rx from reflex.components.component import Component from reflex.components.radix.themes.layout.flex import Flex from reflex.components.radix.themes.typography.text import Text +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import ( @@ -33,10 +34,10 @@ class RadioGroupRoot(RadixThemesComponent): # Whether to render the radio group with higher contrast color against background high_contrast: Var[bool] - # The controlled value of the radio item to check. Should be used in conjunction with on_value_change. + # The controlled value of the radio item to check. Should be used in conjunction with on_change. value: Var[str] - # The initial value of checked radio item. Should be used in conjunction with onValueChange. + # The initial value of checked radio item. Should be used in conjunction with on_change. default_value: Var[str] # Whether the radio group is disabled @@ -54,6 +55,9 @@ class RadioGroupRoot(RadixThemesComponent): # When true, keyboard navigation will loop from last item to first, and vice versa. loop: Var[bool] + # Props to rename + _rename_props = {"onChange": "onValueChange"} + def get_event_triggers(self) -> Dict[str, Any]: """Get the events triggers signatures for the component. @@ -62,7 +66,7 @@ class RadioGroupRoot(RadixThemesComponent): """ return { **super().get_event_triggers(), - "on_value_change": lambda e0: [e0], + EventTriggers.ON_CHANGE: lambda e0: [e0], } @@ -71,7 +75,7 @@ class RadioGroupItem(RadixThemesComponent): tag = "RadioGroup.Item" - # The value of the radio item to check. Should be used in conjunction with on_value_change. + # The value of the radio item to check. Should be used in conjunction with on_change. value: Var[str] # When true, prevents the user from interacting with the radio item. diff --git a/reflex/components/radix/themes/components/radiogroup.pyi b/reflex/components/radix/themes/components/radiogroup.pyi index 8f4b0a15c..b4651e09d 100644 --- a/reflex/components/radix/themes/components/radiogroup.pyi +++ b/reflex/components/radix/themes/components/radiogroup.pyi @@ -12,6 +12,7 @@ import reflex as rx from reflex.components.component import Component from reflex.components.radix.themes.layout.flex import Flex from reflex.components.radix.themes.typography.text import Text +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import LiteralAccentColor, LiteralSize, RadixThemesComponent @@ -114,10 +115,14 @@ class RadioGroupRoot(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, + on_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, @@ -160,9 +165,6 @@ class RadioGroupRoot(RadixThemesComponent): on_unmount: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, - on_value_change: Optional[ - Union[EventHandler, EventSpec, list, function, BaseVar] - ] = None, **props ) -> "RadioGroupRoot": """Create a new component instance. @@ -177,18 +179,19 @@ class RadioGroupRoot(RadixThemesComponent): size: The size of the radio group: "1" | "2" | "3" variant: The variant of the radio group high_contrast: Whether to render the radio group with higher contrast color against background - value: The controlled value of the radio item to check. Should be used in conjunction with on_value_change. - default_value: The initial value of checked radio item. Should be used in conjunction with onValueChange. + value: The controlled value of the radio item to check. Should be used in conjunction with on_change. + default_value: The initial value of checked radio item. Should be used in conjunction with on_change. disabled: Whether the radio group is disabled name: The name of the group. Submitted with its owning form as part of a name/value pair. required: Whether the radio group is required orientation: The orientation of the component. loop: When true, keyboard navigation will loop from last item to first, and vice versa. - style: The style of the component. + style: Props to rename The style of the component. key: A unique key for the component. id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -274,6 +277,7 @@ class RadioGroupItem(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -331,7 +335,7 @@ class RadioGroupItem(RadixThemesComponent): *children: Child components. color: map to CSS default color property. color_scheme: map to radix color property. - value: The value of the radio item to check. Should be used in conjunction with on_value_change. + value: The value of the radio item to check. Should be used in conjunction with on_change. disabled: When true, prevents the user from interacting with the radio item. required: When true, indicates that the user must check the radio item before the owning form can be submitted. style: The style of the component. @@ -339,6 +343,7 @@ class RadioGroupItem(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -455,10 +460,14 @@ class HighLevelRadioGroup(RadioGroupRoot): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, + on_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, @@ -501,9 +510,6 @@ class HighLevelRadioGroup(RadioGroupRoot): on_unmount: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, - on_value_change: Optional[ - Union[EventHandler, EventSpec, list, function, BaseVar] - ] = None, **props ) -> "HighLevelRadioGroup": """Create a radio group component. @@ -517,18 +523,19 @@ class HighLevelRadioGroup(RadioGroupRoot): variant: The variant of the radio group color_scheme: The color of the radio group high_contrast: Whether to render the radio group with higher contrast color against background - value: The controlled value of the radio item to check. Should be used in conjunction with on_value_change. - default_value: The initial value of checked radio item. Should be used in conjunction with onValueChange. + value: The controlled value of the radio item to check. Should be used in conjunction with on_change. + default_value: The initial value of checked radio item. Should be used in conjunction with on_change. disabled: Whether the radio group is disabled name: The name of the group. Submitted with its owning form as part of a name/value pair. required: Whether the radio group is required orientation: The orientation of the component. loop: When true, keyboard navigation will loop from last item to first, and vice versa. - style: The style of the component. + style: Props to rename The style of the component. key: A unique key for the component. id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Additional properties to apply to the accordion item. diff --git a/reflex/components/radix/themes/components/scrollarea.pyi b/reflex/components/radix/themes/components/scrollarea.pyi index b51b35ca9..d2fe5e141 100644 --- a/reflex/components/radix/themes/components/scrollarea.pyi +++ b/reflex/components/radix/themes/components/scrollarea.pyi @@ -105,6 +105,7 @@ class ScrollArea(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -172,6 +173,7 @@ class ScrollArea(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/components/select.py b/reflex/components/radix/themes/components/select.py index 57388e625..8d4467312 100644 --- a/reflex/components/radix/themes/components/select.py +++ b/reflex/components/radix/themes/components/select.py @@ -3,6 +3,7 @@ from typing import Any, Dict, List, Literal, Union import reflex as rx from reflex.components.component import Component +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import ( @@ -25,7 +26,7 @@ class SelectRoot(RadixThemesComponent): # The value of the select when initially rendered. Use when you do not need to control the state of the select. default_value: Var[str] - # The controlled value of the select. Should be used in conjunction with on_value_change. + # The controlled value of the select. Should be used in conjunction with on_change. value: Var[str] # The open state of the select when it is initially rendered. Use when you do not need to control its open state. @@ -43,6 +44,9 @@ class SelectRoot(RadixThemesComponent): # When True, indicates that the user must select a value before the owning form can be submitted. required: Var[bool] + # Props to rename + _rename_props = {"onChange": "onValueChange"} + def get_event_triggers(self) -> Dict[str, Any]: """Get the events triggers signatures for the component. @@ -51,8 +55,8 @@ class SelectRoot(RadixThemesComponent): """ return { **super().get_event_triggers(), - "on_open_change": lambda e0: [e0], - "on_value_change": lambda e0: [e0], + EventTriggers.ON_OPEN_CHANGE: lambda e0: [e0], + EventTriggers.ON_CHANGE: lambda e0: [e0], } @@ -111,9 +115,9 @@ class SelectContent(RadixThemesComponent): """ return { **super().get_event_triggers(), - "on_close_auto_focus": lambda e0: [e0], - "on_escape_key_down": lambda e0: [e0], - "on_pointer_down_outside": lambda e0: [e0], + EventTriggers.ON_CLOSE_AUTO_FOCUS: lambda e0: [e0], + EventTriggers.ON_ESCAPE_KEY_DOWN: lambda e0: [e0], + EventTriggers.ON_POINTER_DOWN_OUTSIDE: lambda e0: [e0], } diff --git a/reflex/components/radix/themes/components/select.pyi b/reflex/components/radix/themes/components/select.pyi index d13d675d2..57aa6d373 100644 --- a/reflex/components/radix/themes/components/select.pyi +++ b/reflex/components/radix/themes/components/select.pyi @@ -10,6 +10,7 @@ from reflex.style import Style from typing import Any, Dict, List, Literal, Union import reflex as rx from reflex.components.component import Component +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import LiteralAccentColor, LiteralRadius, RadixThemesComponent @@ -100,10 +101,14 @@ class SelectRoot(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, + on_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, @@ -149,9 +154,6 @@ class SelectRoot(RadixThemesComponent): on_unmount: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, - on_value_change: Optional[ - Union[EventHandler, EventSpec, list, function, BaseVar] - ] = None, **props ) -> "SelectRoot": """Create a new component instance. @@ -165,17 +167,18 @@ class SelectRoot(RadixThemesComponent): color_scheme: map to radix color property. size: The size of the select: "1" | "2" | "3" default_value: The value of the select when initially rendered. Use when you do not need to control the state of the select. - value: The controlled value of the select. Should be used in conjunction with on_value_change. + value: The controlled value of the select. Should be used in conjunction with on_change. default_open: The open state of the select when it is initially rendered. Use when you do not need to control its open state. open: The controlled open state of the select. Must be used in conjunction with on_open_change. name: The name of the select control when submitting the form. disabled: When True, prevents the user from interacting with select. required: When True, indicates that the user must select a value before the owning form can be submitted. - style: The style of the component. + style: Props to rename The style of the component. key: A unique key for the component. id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -271,6 +274,7 @@ class SelectTrigger(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -336,6 +340,7 @@ class SelectTrigger(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -443,6 +448,7 @@ class SelectContent(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -521,6 +527,7 @@ class SelectContent(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -603,6 +610,7 @@ class SelectGroup(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -665,6 +673,7 @@ class SelectGroup(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -749,6 +758,7 @@ class SelectItem(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -813,6 +823,7 @@ class SelectItem(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -895,6 +906,7 @@ class SelectLabel(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -957,6 +969,7 @@ class SelectLabel(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -1039,6 +1052,7 @@ class SelectSeparator(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1101,6 +1115,7 @@ class SelectSeparator(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -1209,10 +1224,14 @@ class HighLevelSelect(SelectRoot): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, + on_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, @@ -1258,9 +1277,6 @@ class HighLevelSelect(SelectRoot): on_unmount: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, - on_value_change: Optional[ - Union[EventHandler, EventSpec, list, function, BaseVar] - ] = None, **props ) -> "HighLevelSelect": """Create a select component. @@ -1277,17 +1293,18 @@ class HighLevelSelect(SelectRoot): width: The width of the select. size: The size of the select: "1" | "2" | "3" default_value: The value of the select when initially rendered. Use when you do not need to control the state of the select. - value: The controlled value of the select. Should be used in conjunction with on_value_change. + value: The controlled value of the select. Should be used in conjunction with on_change. default_open: The open state of the select when it is initially rendered. Use when you do not need to control its open state. open: The controlled open state of the select. Must be used in conjunction with on_open_change. name: The name of the select control when submitting the form. disabled: When True, prevents the user from interacting with select. required: When True, indicates that the user must select a value before the owning form can be submitted. - style: The style of the component. + style: Props to rename The style of the component. key: A unique key for the component. id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Additional properties to apply to the select component. diff --git a/reflex/components/radix/themes/components/separator.pyi b/reflex/components/radix/themes/components/separator.pyi index 680cc13cf..53540bd4d 100644 --- a/reflex/components/radix/themes/components/separator.pyi +++ b/reflex/components/radix/themes/components/separator.pyi @@ -97,6 +97,7 @@ class Separator(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -162,6 +163,7 @@ class Separator(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/components/slider.py b/reflex/components/radix/themes/components/slider.py index e8cda4b6d..2914d2f62 100644 --- a/reflex/components/radix/themes/components/slider.py +++ b/reflex/components/radix/themes/components/slider.py @@ -1,6 +1,7 @@ """Interactive components provided by @radix-ui/themes.""" from typing import Any, Dict, List, Literal, Union +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import ( @@ -57,6 +58,9 @@ class Slider(RadixThemesComponent): # The orientation of the slider. orientation: Var[Literal["horizontal", "vertical"]] + # Props to rename + _rename_props = {"onChange": "onValueChange"} + def get_event_triggers(self) -> Dict[str, Any]: """Get the events triggers signatures for the component. @@ -65,6 +69,6 @@ class Slider(RadixThemesComponent): """ return { **super().get_event_triggers(), - "on_value_change": lambda e0: [e0], - "on_value_commit": lambda e0: [e0], + EventTriggers.ON_CHANGE: lambda e0: [e0], + EventTriggers.ON_VALUE_COMMIT: lambda e0: [e0], } diff --git a/reflex/components/radix/themes/components/slider.pyi b/reflex/components/radix/themes/components/slider.pyi index 6564834a4..305a2b262 100644 --- a/reflex/components/radix/themes/components/slider.pyi +++ b/reflex/components/radix/themes/components/slider.pyi @@ -8,6 +8,7 @@ from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventChain, EventHandler, EventSpec from reflex.style import Style from typing import Any, Dict, List, Literal, Union +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import LiteralAccentColor, LiteralRadius, RadixThemesComponent @@ -120,10 +121,14 @@ class Slider(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, + on_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, @@ -166,9 +171,6 @@ class Slider(RadixThemesComponent): on_unmount: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, - on_value_change: Optional[ - Union[EventHandler, EventSpec, list, function, BaseVar] - ] = None, on_value_commit: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, @@ -196,11 +198,12 @@ class Slider(RadixThemesComponent): step: The step value of the slider. disabled: Whether the slider is disabled orientation: The orientation of the slider. - style: The style of the component. + style: Props to rename The style of the component. key: A unique key for the component. id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/components/switch.py b/reflex/components/radix/themes/components/switch.py index dc5132ce1..1e9b20e85 100644 --- a/reflex/components/radix/themes/components/switch.py +++ b/reflex/components/radix/themes/components/switch.py @@ -55,6 +55,9 @@ class Switch(RadixThemesComponent): # Override theme radius for switch: "none" | "small" | "medium" | "large" | "full" radius: Var[LiteralRadius] + # Props to rename + _rename_props = {"onChange": "onCheckedChange"} + def get_event_triggers(self) -> Dict[str, Any]: """Get the event triggers that pass the component's value to the handler. @@ -63,5 +66,5 @@ class Switch(RadixThemesComponent): """ return { **super().get_event_triggers(), - EventTriggers.ON_CHECKED_CHANGE: lambda checked: [checked], + EventTriggers.ON_CHANGE: lambda checked: [checked], } diff --git a/reflex/components/radix/themes/components/switch.pyi b/reflex/components/radix/themes/components/switch.pyi index 3414c5078..8a8230b23 100644 --- a/reflex/components/radix/themes/components/switch.pyi +++ b/reflex/components/radix/themes/components/switch.pyi @@ -117,11 +117,12 @@ class Switch(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, - on_checked_change: Optional[ + on_change: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, on_click: Optional[ @@ -188,11 +189,12 @@ class Switch(RadixThemesComponent): variant: Variant of switch: "solid" | "soft" | "outline" | "ghost" high_contrast: Whether to render the switch with higher contrast color against background radius: Override theme radius for switch: "none" | "small" | "medium" | "large" | "full" - style: The style of the component. + style: Props to rename The style of the component. key: A unique key for the component. id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/components/table.pyi b/reflex/components/radix/themes/components/table.pyi index 4e348c9af..cc38617b1 100644 --- a/reflex/components/radix/themes/components/table.pyi +++ b/reflex/components/radix/themes/components/table.pyi @@ -150,6 +150,7 @@ class TableRoot(el.Table, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -236,6 +237,7 @@ class TableRoot(el.Table, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -364,6 +366,7 @@ class TableHeader(el.Thead, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -444,6 +447,7 @@ class TableHeader(el.Thead, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -578,6 +582,7 @@ class TableRow(el.Tr, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -659,6 +664,7 @@ class TableRow(el.Tr, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -812,6 +818,7 @@ class TableColumnHeaderCell(el.Th, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -900,6 +907,7 @@ class TableColumnHeaderCell(el.Th, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -1031,6 +1039,7 @@ class TableBody(el.Tbody, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1112,6 +1121,7 @@ class TableBody(el.Tbody, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -1262,6 +1272,7 @@ class TableCell(el.Td, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1349,6 +1360,7 @@ class TableCell(el.Td, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -1502,6 +1514,7 @@ class TableRowHeaderCell(el.Th, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1590,6 +1603,7 @@ class TableRowHeaderCell(el.Th, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/components/tabs.py b/reflex/components/radix/themes/components/tabs.py index c371edf20..bb3270dd3 100644 --- a/reflex/components/radix/themes/components/tabs.py +++ b/reflex/components/radix/themes/components/tabs.py @@ -1,6 +1,7 @@ """Interactive components provided by @radix-ui/themes.""" from typing import Any, Dict, Literal +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import ( @@ -25,6 +26,9 @@ class TabsRoot(RadixThemesComponent): # The orientation of the tabs. orientation: Var[Literal["horizontal", "vertical"]] + # Props to rename + _rename_props = {"onChange": "onValueChange"} + def get_event_triggers(self) -> Dict[str, Any]: """Get the events triggers signatures for the component. @@ -33,7 +37,7 @@ class TabsRoot(RadixThemesComponent): """ return { **super().get_event_triggers(), - "on_value_change": lambda e0: [e0], + EventTriggers.ON_CHANGE: lambda e0: [e0], } diff --git a/reflex/components/radix/themes/components/tabs.pyi b/reflex/components/radix/themes/components/tabs.pyi index ba33bed05..5bceb6f3d 100644 --- a/reflex/components/radix/themes/components/tabs.pyi +++ b/reflex/components/radix/themes/components/tabs.pyi @@ -8,6 +8,7 @@ from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventChain, EventHandler, EventSpec from reflex.style import Style from typing import Any, Dict, Literal +from reflex.constants import EventTriggers from reflex.vars import Var from ..base import RadixThemesComponent @@ -97,10 +98,14 @@ class TabsRoot(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, + on_change: Optional[ + Union[EventHandler, EventSpec, list, function, BaseVar] + ] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, @@ -143,9 +148,6 @@ class TabsRoot(RadixThemesComponent): on_unmount: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] ] = None, - on_value_change: Optional[ - Union[EventHandler, EventSpec, list, function, BaseVar] - ] = None, **props ) -> "TabsRoot": """Create a new component instance. @@ -161,11 +163,12 @@ class TabsRoot(RadixThemesComponent): default_value: The value of the tab that should be active when initially rendered. Use when you do not need to control the state of the tabs. value: The controlled value of the tab that should be active. Use when you need to control the state of the tabs. orientation: The orientation of the tabs. - style: The style of the component. + style: Props to rename The style of the component. key: A unique key for the component. id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -248,6 +251,7 @@ class TabsList(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -310,6 +314,7 @@ class TabsList(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -394,6 +399,7 @@ class TabsTrigger(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -458,6 +464,7 @@ class TabsTrigger(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -541,6 +548,7 @@ class TabsContent(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -604,6 +612,7 @@ class TabsContent(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/components/textarea.pyi b/reflex/components/radix/themes/components/textarea.pyi index 02badfd6e..54dd13ffd 100644 --- a/reflex/components/radix/themes/components/textarea.pyi +++ b/reflex/components/radix/themes/components/textarea.pyi @@ -177,6 +177,7 @@ class TextArea(RadixThemesComponent, el.Textarea): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -278,6 +279,7 @@ class TextArea(RadixThemesComponent, el.Textarea): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. diff --git a/reflex/components/radix/themes/components/textfield.pyi b/reflex/components/radix/themes/components/textfield.pyi index 8b81af8ec..2a855bf74 100644 --- a/reflex/components/radix/themes/components/textfield.pyi +++ b/reflex/components/radix/themes/components/textfield.pyi @@ -152,6 +152,7 @@ class TextFieldRoot(el.Div, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -234,6 +235,7 @@ class TextFieldRoot(el.Div, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -449,6 +451,7 @@ class TextFieldInput(el.Input, TextFieldRoot): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -568,6 +571,7 @@ class TextFieldInput(el.Input, TextFieldRoot): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. @@ -657,6 +661,7 @@ class TextFieldSlot(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -720,6 +725,7 @@ class TextFieldSlot(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. @@ -826,6 +832,7 @@ class Input(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -905,6 +912,7 @@ class Input(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the component. diff --git a/reflex/components/radix/themes/components/tooltip.pyi b/reflex/components/radix/themes/components/tooltip.pyi index 5c03d4205..543e4eb25 100644 --- a/reflex/components/radix/themes/components/tooltip.pyi +++ b/reflex/components/radix/themes/components/tooltip.pyi @@ -67,6 +67,7 @@ class Tooltip(RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -151,6 +152,7 @@ class Tooltip(RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The keyword arguments diff --git a/reflex/components/radix/themes/layout/base.pyi b/reflex/components/radix/themes/layout/base.pyi index fa3cfd9fa..a085807c9 100644 --- a/reflex/components/radix/themes/layout/base.pyi +++ b/reflex/components/radix/themes/layout/base.pyi @@ -173,6 +173,7 @@ class LayoutComponent(CommonMarginProps, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -251,6 +252,7 @@ class LayoutComponent(CommonMarginProps, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/layout/box.pyi b/reflex/components/radix/themes/layout/box.pyi index 2753c66b5..f27ade65d 100644 --- a/reflex/components/radix/themes/layout/box.pyi +++ b/reflex/components/radix/themes/layout/box.pyi @@ -127,6 +127,7 @@ class Box(el.Div, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -206,6 +207,7 @@ class Box(el.Div, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/layout/center.pyi b/reflex/components/radix/themes/layout/center.pyi index 1b1c8d852..9bbea0f1d 100644 --- a/reflex/components/radix/themes/layout/center.pyi +++ b/reflex/components/radix/themes/layout/center.pyi @@ -164,6 +164,7 @@ class Center(Flex): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -250,6 +251,7 @@ class Center(Flex): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/layout/container.pyi b/reflex/components/radix/themes/layout/container.pyi index 350a8ea54..177cb8954 100644 --- a/reflex/components/radix/themes/layout/container.pyi +++ b/reflex/components/radix/themes/layout/container.pyi @@ -134,6 +134,7 @@ class Container(el.Div, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -214,6 +215,7 @@ class Container(el.Div, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/layout/flex.pyi b/reflex/components/radix/themes/layout/flex.pyi index dbce1491a..5f1c8c2db 100644 --- a/reflex/components/radix/themes/layout/flex.pyi +++ b/reflex/components/radix/themes/layout/flex.pyi @@ -170,6 +170,7 @@ class Flex(el.Div, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -256,6 +257,7 @@ class Flex(el.Div, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/layout/grid.pyi b/reflex/components/radix/themes/layout/grid.pyi index 4620d5be3..4ae5cc601 100644 --- a/reflex/components/radix/themes/layout/grid.pyi +++ b/reflex/components/radix/themes/layout/grid.pyi @@ -171,6 +171,7 @@ class Grid(el.Div, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -259,6 +260,7 @@ class Grid(el.Div, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/layout/section.pyi b/reflex/components/radix/themes/layout/section.pyi index 986224d71..8a02ad758 100644 --- a/reflex/components/radix/themes/layout/section.pyi +++ b/reflex/components/radix/themes/layout/section.pyi @@ -134,6 +134,7 @@ class Section(el.Section, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -214,6 +215,7 @@ class Section(el.Section, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/layout/spacer.pyi b/reflex/components/radix/themes/layout/spacer.pyi index 32edfa454..7738f4f91 100644 --- a/reflex/components/radix/themes/layout/spacer.pyi +++ b/reflex/components/radix/themes/layout/spacer.pyi @@ -164,6 +164,7 @@ class Spacer(Flex): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -250,6 +251,7 @@ class Spacer(Flex): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/layout/stack.pyi b/reflex/components/radix/themes/layout/stack.pyi index a3e6d7823..c354db1a1 100644 --- a/reflex/components/radix/themes/layout/stack.pyi +++ b/reflex/components/radix/themes/layout/stack.pyi @@ -96,6 +96,7 @@ class Stack(Flex): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -178,6 +179,7 @@ class Stack(Flex): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the stack. @@ -268,6 +270,7 @@ class VStack(Stack): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -350,6 +353,7 @@ class VStack(Stack): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the stack. @@ -440,6 +444,7 @@ class HStack(Stack): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -522,6 +527,7 @@ class HStack(Stack): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the stack. diff --git a/reflex/components/radix/themes/typography/blockquote.pyi b/reflex/components/radix/themes/typography/blockquote.pyi index 42e967324..c6c9d499a 100644 --- a/reflex/components/radix/themes/typography/blockquote.pyi +++ b/reflex/components/radix/themes/typography/blockquote.pyi @@ -143,6 +143,7 @@ class Blockquote(el.Blockquote, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -226,6 +227,7 @@ class Blockquote(el.Blockquote, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/typography/code.pyi b/reflex/components/radix/themes/typography/code.pyi index 072425244..5f22ba3ac 100644 --- a/reflex/components/radix/themes/typography/code.pyi +++ b/reflex/components/radix/themes/typography/code.pyi @@ -148,6 +148,7 @@ class Code(el.Code, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -231,6 +232,7 @@ class Code(el.Code, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/typography/em.pyi b/reflex/components/radix/themes/typography/em.pyi index 30c21afea..556aa92c0 100644 --- a/reflex/components/radix/themes/typography/em.pyi +++ b/reflex/components/radix/themes/typography/em.pyi @@ -127,6 +127,7 @@ class Em(el.Em, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -206,6 +207,7 @@ class Em(el.Em, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/typography/heading.pyi b/reflex/components/radix/themes/typography/heading.pyi index 89f041465..0c1e81fa9 100644 --- a/reflex/components/radix/themes/typography/heading.pyi +++ b/reflex/components/radix/themes/typography/heading.pyi @@ -156,6 +156,7 @@ class Heading(el.H1, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -242,6 +243,7 @@ class Heading(el.H1, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/typography/kbd.pyi b/reflex/components/radix/themes/typography/kbd.pyi index 687ef0447..4d2bf3bd3 100644 --- a/reflex/components/radix/themes/typography/kbd.pyi +++ b/reflex/components/radix/themes/typography/kbd.pyi @@ -135,6 +135,7 @@ class Kbd(el.Kbd, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -215,6 +216,7 @@ class Kbd(el.Kbd, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/typography/link.pyi b/reflex/components/radix/themes/typography/link.pyi index adc8a05d3..bf3c62e2f 100644 --- a/reflex/components/radix/themes/typography/link.pyi +++ b/reflex/components/radix/themes/typography/link.pyi @@ -182,6 +182,7 @@ class Link(RadixThemesComponent, A): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -272,6 +273,7 @@ class Link(RadixThemesComponent, A): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/radix/themes/typography/quote.pyi b/reflex/components/radix/themes/typography/quote.pyi index a7827d552..aa8e7794e 100644 --- a/reflex/components/radix/themes/typography/quote.pyi +++ b/reflex/components/radix/themes/typography/quote.pyi @@ -128,6 +128,7 @@ class Quote(el.Q, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -208,6 +209,7 @@ class Quote(el.Q, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/typography/strong.pyi b/reflex/components/radix/themes/typography/strong.pyi index 47bce6826..5a911cd69 100644 --- a/reflex/components/radix/themes/typography/strong.pyi +++ b/reflex/components/radix/themes/typography/strong.pyi @@ -127,6 +127,7 @@ class Strong(el.Strong, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -206,6 +207,7 @@ class Strong(el.Strong, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/radix/themes/typography/text.pyi b/reflex/components/radix/themes/typography/text.pyi index 20d263c88..d4e33d785 100644 --- a/reflex/components/radix/themes/typography/text.pyi +++ b/reflex/components/radix/themes/typography/text.pyi @@ -156,6 +156,7 @@ class Text(el.Span, RadixThemesComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -242,6 +243,7 @@ class Text(el.Span, RadixThemesComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Component properties. diff --git a/reflex/components/react_player/audio.pyi b/reflex/components/react_player/audio.pyi index d45dbcdaf..061c9c29e 100644 --- a/reflex/components/react_player/audio.pyi +++ b/reflex/components/react_player/audio.pyi @@ -31,6 +31,7 @@ class Audio(ReactPlayer): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -97,6 +98,7 @@ class Audio(ReactPlayer): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/react_player/react_player.pyi b/reflex/components/react_player/react_player.pyi index 49ab91ab1..539adc7d6 100644 --- a/reflex/components/react_player/react_player.pyi +++ b/reflex/components/react_player/react_player.pyi @@ -30,6 +30,7 @@ class ReactPlayer(NoSSRComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -96,6 +97,7 @@ class ReactPlayer(NoSSRComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/react_player/video.pyi b/reflex/components/react_player/video.pyi index a3c447cb0..93627287c 100644 --- a/reflex/components/react_player/video.pyi +++ b/reflex/components/react_player/video.pyi @@ -31,6 +31,7 @@ class Video(ReactPlayer): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -97,6 +98,7 @@ class Video(ReactPlayer): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/recharts/cartesian.pyi b/reflex/components/recharts/cartesian.pyi index 3af7849a2..bf5259651 100644 --- a/reflex/components/recharts/cartesian.pyi +++ b/reflex/components/recharts/cartesian.pyi @@ -95,6 +95,7 @@ class Axis(Recharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -139,6 +140,7 @@ class Axis(Recharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -218,6 +220,7 @@ class XAxis(Axis): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -262,6 +265,7 @@ class XAxis(Axis): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -341,6 +345,7 @@ class YAxis(Axis): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -385,6 +390,7 @@ class YAxis(Axis): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -451,6 +457,7 @@ class ZAxis(Recharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -513,6 +520,7 @@ class ZAxis(Recharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -547,6 +555,7 @@ class Brush(Recharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_change: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -573,6 +582,7 @@ class Brush(Recharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -605,6 +615,7 @@ class Cartesian(Recharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -639,6 +650,7 @@ class Cartesian(Recharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -717,6 +729,7 @@ class Area(Cartesian): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -759,6 +772,7 @@ class Area(Cartesian): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -798,6 +812,7 @@ class Bar(Cartesian): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -840,6 +855,7 @@ class Bar(Cartesian): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -918,6 +934,7 @@ class Line(Cartesian): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -960,6 +977,7 @@ class Line(Cartesian): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1017,6 +1035,7 @@ class Scatter(Cartesian): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1058,6 +1077,7 @@ class Scatter(Cartesian): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1098,6 +1118,7 @@ class Funnel(Cartesian): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1136,6 +1157,7 @@ class Funnel(Cartesian): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1165,6 +1187,7 @@ class ErrorBar(Recharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1227,6 +1250,7 @@ class ErrorBar(Recharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1260,6 +1284,7 @@ class Reference(Recharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1323,6 +1348,7 @@ class Reference(Recharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1357,6 +1383,7 @@ class ReferenceLine(Reference): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1421,6 +1448,7 @@ class ReferenceLine(Reference): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1455,6 +1483,7 @@ class ReferenceDot(Reference): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1491,6 +1520,7 @@ class ReferenceDot(Reference): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1529,6 +1559,7 @@ class ReferenceArea(Recharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1597,6 +1628,7 @@ class ReferenceArea(Recharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1623,6 +1655,7 @@ class Grid(Recharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1684,6 +1717,7 @@ class Grid(Recharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1715,6 +1749,7 @@ class CartesianGrid(Grid): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1781,6 +1816,7 @@ class CartesianGrid(Grid): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -1826,6 +1862,7 @@ class CartesianAxis(Grid): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -1896,6 +1933,7 @@ class CartesianAxis(Grid): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/recharts/charts.pyi b/reflex/components/recharts/charts.pyi index 2d133cba7..4c401901f 100644 --- a/reflex/components/recharts/charts.pyi +++ b/reflex/components/recharts/charts.pyi @@ -53,6 +53,7 @@ class ChartBase(RechartsCharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -85,6 +86,7 @@ class ChartBase(RechartsCharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the chart component. @@ -130,6 +132,7 @@ class AreaChart(ChartBase): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -163,6 +166,7 @@ class AreaChart(ChartBase): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the chart component. @@ -207,6 +211,7 @@ class BarChart(ChartBase): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -244,6 +249,7 @@ class BarChart(ChartBase): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the chart component. @@ -283,6 +289,7 @@ class LineChart(ChartBase): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -315,6 +322,7 @@ class LineChart(ChartBase): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the chart component. @@ -364,6 +372,7 @@ class ComposedChart(ChartBase): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -401,6 +410,7 @@ class ComposedChart(ChartBase): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the chart component. @@ -441,6 +451,7 @@ class PieChart(ChartBase): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -470,6 +481,7 @@ class PieChart(ChartBase): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the chart component. @@ -516,6 +528,7 @@ class RadarChart(ChartBase): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -554,6 +567,7 @@ class RadarChart(ChartBase): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the chart component. @@ -603,6 +617,7 @@ class RadialBarChart(ChartBase): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -644,6 +659,7 @@ class RadialBarChart(ChartBase): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the chart component. @@ -684,6 +700,7 @@ class ScatterChart(ChartBase): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -722,6 +739,7 @@ class ScatterChart(ChartBase): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the chart component. @@ -755,6 +773,7 @@ class FunnelChart(RechartsCharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -787,6 +806,7 @@ class FunnelChart(RechartsCharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -820,6 +840,7 @@ class Treemap(RechartsCharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -886,6 +907,7 @@ class Treemap(RechartsCharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The properties of the chart component. diff --git a/reflex/components/recharts/general.pyi b/reflex/components/recharts/general.pyi index 8b5cb5c62..43eb3c1fa 100644 --- a/reflex/components/recharts/general.pyi +++ b/reflex/components/recharts/general.pyi @@ -37,6 +37,7 @@ class ResponsiveContainer(Recharts, MemoizationLeaf): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -100,6 +101,7 @@ class ResponsiveContainer(Recharts, MemoizationLeaf): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -174,6 +176,7 @@ class Legend(Recharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -214,6 +217,7 @@ class Legend(Recharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -244,6 +248,7 @@ class GraphingTooltip(Recharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -309,6 +314,7 @@ class GraphingTooltip(Recharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -380,6 +386,7 @@ class Label(Recharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -441,6 +448,7 @@ class Label(Recharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -513,6 +521,7 @@ class LabelList(Recharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -575,6 +584,7 @@ class LabelList(Recharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/recharts/polar.pyi b/reflex/components/recharts/polar.pyi index 8270f1cde..d19a39f77 100644 --- a/reflex/components/recharts/polar.pyi +++ b/reflex/components/recharts/polar.pyi @@ -46,6 +46,7 @@ class Pie(Recharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -92,6 +93,7 @@ class Pie(Recharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -130,6 +132,7 @@ class Radar(Recharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -198,6 +201,7 @@ class Radar(Recharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -226,6 +230,7 @@ class RadialBar(Recharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -261,6 +266,7 @@ class RadialBar(Recharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -299,6 +305,7 @@ class PolarAngleAxis(Recharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -340,6 +347,7 @@ class PolarAngleAxis(Recharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -371,6 +379,7 @@ class PolarGrid(Recharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -435,6 +444,7 @@ class PolarGrid(Recharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -512,6 +522,7 @@ class PolarRadiusAxis(Recharts): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_click: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -553,6 +564,7 @@ class PolarRadiusAxis(Recharts): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/recharts/recharts.pyi b/reflex/components/recharts/recharts.pyi index 1eb3a2203..787095e82 100644 --- a/reflex/components/recharts/recharts.pyi +++ b/reflex/components/recharts/recharts.pyi @@ -21,6 +21,7 @@ class Recharts(Component): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -78,6 +79,7 @@ class Recharts(Component): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. @@ -100,6 +102,7 @@ class RechartsCharts(NoSSRComponent, MemoizationLeaf): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -157,6 +160,7 @@ class RechartsCharts(NoSSRComponent, MemoizationLeaf): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: The props of the component. diff --git a/reflex/components/suneditor/editor.pyi b/reflex/components/suneditor/editor.pyi index 867274434..92c4b5e2b 100644 --- a/reflex/components/suneditor/editor.pyi +++ b/reflex/components/suneditor/editor.pyi @@ -126,6 +126,7 @@ class Editor(NoSSRComponent): id: Optional[Any] = None, class_name: Optional[Any] = None, autofocus: Optional[bool] = None, + _rename_props: Optional[Dict[str, str]] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, on_blur: Optional[ Union[EventHandler, EventSpec, list, function, BaseVar] @@ -226,6 +227,7 @@ class Editor(NoSSRComponent): id: The id for the component. class_name: The class name for the component. autofocus: Whether the component should take the focus once the page is loaded + _rename_props: props to change the name of custom_attrs: custom attribute **props: Any properties to be passed to the Editor diff --git a/reflex/constants/event.py b/reflex/constants/event.py index 669d377e3..bc85a611c 100644 --- a/reflex/constants/event.py +++ b/reflex/constants/event.py @@ -65,7 +65,6 @@ class EventTriggers(SimpleNamespace): ON_CHANGE = "on_change" ON_CHANGE_END = "on_change_end" ON_CHANGE_START = "on_change_start" - ON_CHECKED_CHANGE = "on_checked_change" ON_COMPLETE = "on_complete" ON_CONTEXT_MENU = "on_context_menu" ON_DOUBLE_CLICK = "on_double_click" @@ -83,6 +82,7 @@ class EventTriggers(SimpleNamespace): ON_OPEN_CHANGE = "on_open_change" ON_OPEN_AUTO_FOCUS = "on_open_auto_focus" ON_CLOSE_AUTO_FOCUS = "on_close_auto_focus" + ON_FOCUS_OUTSIDE = "on_focus_outside" ON_ESCAPE_KEY_DOWN = "on_escape_key_down" ON_POINTER_DOWN_OUTSIDE = "on_pointer_down_outside" ON_INTERACT_OUTSIDE = "on_interact_outside" @@ -91,3 +91,4 @@ class EventTriggers(SimpleNamespace): ON_MOUNT = "on_mount" ON_UNMOUNT = "on_unmount" ON_CLEAR_SERVER_ERRORS = "on_clear_server_errors" + ON_VALUE_COMMIT = "on_value_commit" From 6d33156d159f4bbf365db54b20ab3430f043bd4c Mon Sep 17 00:00:00 2001 From: Masen Furer Date: Thu, 1 Feb 2024 17:57:43 -0800 Subject: [PATCH 6/6] Move `is_used` to Upload component rather than UploadFilesProvider (#2514) --- reflex/app.py | 14 +++++++++----- reflex/components/core/upload.py | 23 ++++++----------------- reflex/components/core/upload.pyi | 13 ++++++++----- 3 files changed, 23 insertions(+), 27 deletions(-) diff --git a/reflex/app.py b/reflex/app.py index f19f8748f..7d5e449bf 100644 --- a/reflex/app.py +++ b/reflex/app.py @@ -46,7 +46,7 @@ from reflex.components.core.client_side_routing import ( Default404Page, wait_for_client_redirect, ) -from reflex.components.core.upload import UploadFilesProvider +from reflex.components.core.upload import Upload from reflex.components.radix import themes from reflex.config import get_config from reflex.event import Event, EventHandler, EventSpec @@ -185,6 +185,7 @@ class App(Base): # Set up the API. self.api = FastAPI() self.add_cors() + self.add_default_endpoints() if self.state: # Set up the state manager. @@ -241,12 +242,14 @@ class App(Base): return self.api def add_default_endpoints(self): - """Add the default endpoints.""" + """Add default api endpoints (ping).""" # To test the server. self.api.get(str(constants.Endpoint.PING))(ping) + def add_optional_endpoints(self): + """Add optional api endpoints (_upload).""" # To upload files. - if UploadFilesProvider.is_used: + if Upload.is_used: self.api.post(str(constants.Endpoint.UPLOAD))(upload(self)) def add_cors(self): @@ -655,6 +658,9 @@ class App(Base): if constants.Page404.SLUG not in self.pages: self.add_custom_404_page() + # Add the optional endpoints (_upload) + self.add_optional_endpoints() + if not self._should_compile(): return @@ -824,8 +830,6 @@ class App(Base): for output_path, code in compile_results: compiler_utils.write_page(output_path, code) - self.add_default_endpoints() - @contextlib.asynccontextmanager async def modify_state(self, token: str) -> AsyncIterator[BaseState]: """Modify the state out of band. diff --git a/reflex/components/core/upload.py b/reflex/components/core/upload.py index 9d0b6023f..489a5648a 100644 --- a/reflex/components/core/upload.py +++ b/reflex/components/core/upload.py @@ -98,23 +98,6 @@ class UploadFilesProvider(Component): library = f"/{Dirs.CONTEXTS_PATH}" tag = "UploadFilesProvider" - is_used: ClassVar[bool] = False - - @classmethod - def create(cls, *children, **props) -> Component: - """Create an UploadFilesProvider component. - - Args: - *children: The children of the component. - **props: The properties of the component. - - Returns: - The UploadFilesProvider component. - """ - cls.is_used = True - - return super().create(*children, **props) - class Upload(Component): """A file upload component.""" @@ -154,6 +137,9 @@ class Upload(Component): # Whether to disable using the space/enter keys to upload. no_keyboard: Var[bool] + # Marked True when any Upload component is created. + is_used: ClassVar[bool] = False + @classmethod def create(cls, *children, **props) -> Component: """Create an upload component. @@ -165,6 +151,9 @@ class Upload(Component): Returns: The upload component. """ + # Mark the Upload component as used in the app. + cls.is_used = True + # get only upload component props supported_props = cls.get_props() upload_props = { diff --git a/reflex/components/core/upload.pyi b/reflex/components/core/upload.pyi index f2d1dc52d..a7d82ada1 100644 --- a/reflex/components/core/upload.pyi +++ b/reflex/components/core/upload.pyi @@ -29,8 +29,6 @@ def clear_selected_files(id_: str = DEFAULT_UPLOAD_ID) -> EventSpec: ... def cancel_upload(upload_id: str) -> EventSpec: ... class UploadFilesProvider(Component): - is_used: ClassVar[bool] = False - @overload @classmethod def create( # type: ignore @@ -90,7 +88,7 @@ class UploadFilesProvider(Component): ] = None, **props ) -> "UploadFilesProvider": - """Create an UploadFilesProvider component. + """Create the component. Args: *children: The children of the component. @@ -101,14 +99,19 @@ class UploadFilesProvider(Component): autofocus: Whether the component should take the focus once the page is loaded _rename_props: props to change the name of custom_attrs: custom attribute - **props: The properties of the component. + **props: The props of the component. Returns: - The UploadFilesProvider component. + The component. + + Raises: + TypeError: If an invalid child is passed. """ ... class Upload(Component): + is_used: ClassVar[bool] = False + @overload @classmethod def create( # type: ignore