From 93c0091aadb645c70c4c867791e97aab412a1427 Mon Sep 17 00:00:00 2001 From: Nikhil Rao Date: Tue, 13 Feb 2024 01:54:58 +0700 Subject: [PATCH] remove extra props on scroll area (#2581) --- .../components/radix/themes/components/scrollarea.py | 7 ------- .../components/radix/themes/components/scrollarea.pyi | 11 +---------- reflex/components/radix/themes/components/select.py | 2 -- reflex/components/radix/themes/components/select.pyi | 2 -- 4 files changed, 1 insertion(+), 21 deletions(-) diff --git a/reflex/components/radix/themes/components/scrollarea.py b/reflex/components/radix/themes/components/scrollarea.py index 911cda1a8..f829b5b8d 100644 --- a/reflex/components/radix/themes/components/scrollarea.py +++ b/reflex/components/radix/themes/components/scrollarea.py @@ -4,7 +4,6 @@ from typing import Literal from reflex.vars import Var from ..base import ( - LiteralRadius, RadixThemesComponent, ) @@ -14,12 +13,6 @@ class ScrollArea(RadixThemesComponent): tag = "ScrollArea" - # The size of the radio group: "1" | "2" | "3" - size: Var[Literal[1, 2, 3]] - - # The radius of the radio group - radius: Var[LiteralRadius] - # The alignment of the scroll area scrollbars: Var[Literal["vertical", "horizontal", "both"]] diff --git a/reflex/components/radix/themes/components/scrollarea.pyi b/reflex/components/radix/themes/components/scrollarea.pyi index dd2cda40f..029b0d6b1 100644 --- a/reflex/components/radix/themes/components/scrollarea.pyi +++ b/reflex/components/radix/themes/components/scrollarea.pyi @@ -9,7 +9,7 @@ from reflex.event import EventChain, EventHandler, EventSpec from reflex.style import Style from typing import Literal from reflex.vars import Var -from ..base import LiteralRadius, RadixThemesComponent +from ..base import RadixThemesComponent class ScrollArea(RadixThemesComponent): @overload @@ -80,13 +80,6 @@ class ScrollArea(RadixThemesComponent): ], ] ] = None, - size: Optional[Union[Var[Literal[1, 2, 3]], Literal[1, 2, 3]]] = None, - radius: Optional[ - Union[ - Var[Literal["none", "small", "medium", "large", "full"]], - Literal["none", "small", "medium", "large", "full"], - ] - ] = None, scrollbars: Optional[ Union[ Var[Literal["vertical", "horizontal", "both"]], @@ -163,8 +156,6 @@ class ScrollArea(RadixThemesComponent): *children: Child components. color: map to CSS default color property. color_scheme: map to radix color property. - size: The size of the radio group: "1" | "2" | "3" - radius: The radius of the radio group scrollbars: The alignment of the scroll area type_: Describes the nature of scrollbar visibility, similar to how the scrollbar preferences in MacOS control visibility of native scrollbars. "auto" | "always" | "scroll" | "hover" scroll_hide_delay: If type is set to either "scroll" or "hover", this prop determines the length of time, in milliseconds, before the scrollbars are hidden after the user stops interacting with scrollbars. diff --git a/reflex/components/radix/themes/components/select.py b/reflex/components/radix/themes/components/select.py index fc2feac2e..3545852e9 100644 --- a/reflex/components/radix/themes/components/select.py +++ b/reflex/components/radix/themes/components/select.py @@ -13,8 +13,6 @@ from ..base import ( RadixThemesComponent, ) -LiteralButtonSize = Literal[1, 2, 3, 4] - class SelectRoot(RadixThemesComponent): """Displays a list of options for the user to pick from, triggered by a button.""" diff --git a/reflex/components/radix/themes/components/select.pyi b/reflex/components/radix/themes/components/select.pyi index d689af3a8..85ca6e72b 100644 --- a/reflex/components/radix/themes/components/select.pyi +++ b/reflex/components/radix/themes/components/select.pyi @@ -15,8 +15,6 @@ from reflex.constants import EventTriggers from reflex.vars import Var from ..base import LiteralAccentColor, LiteralRadius, RadixThemesComponent -LiteralButtonSize = Literal[1, 2, 3, 4] - class SelectRoot(RadixThemesComponent): def get_event_triggers(self) -> Dict[str, Any]: ... @overload