瀏覽代碼

remove extra props on scroll area (#2581)

Nikhil Rao 1 年之前
父節點
當前提交
93c0091aad

+ 0 - 7
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"]]
 

+ 1 - 10
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.

+ 0 - 2
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."""

+ 0 - 2
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