From b305f895a8b471e679f0e26c5674ed22ed5d37a5 Mon Sep 17 00:00:00 2001 From: Tom Gotsman <64492814+tgberkeley@users.noreply.github.com> Date: Sun, 21 Jan 2024 13:31:47 -0800 Subject: [PATCH] minor update to select prop (#2424) --- reflex/components/radix/themes/components/select.py | 2 +- reflex/components/radix/themes/components/select.pyi | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/reflex/components/radix/themes/components/select.py b/reflex/components/radix/themes/components/select.py index 432d15cfd..4aada3544 100644 --- a/reflex/components/radix/themes/components/select.py +++ b/reflex/components/radix/themes/components/select.py @@ -21,7 +21,7 @@ class SelectRoot(CommonMarginProps, RadixThemesComponent): tag = "Select.Root" # The size of the select: "1" | "2" | "3" - size: Var[Literal[1, 2, 3]] + size: Var[Literal["1", "2", "3"]] # 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] diff --git a/reflex/components/radix/themes/components/select.pyi b/reflex/components/radix/themes/components/select.pyi index 30ece06b1..33d578b78 100644 --- a/reflex/components/radix/themes/components/select.pyi +++ b/reflex/components/radix/themes/components/select.pyi @@ -90,7 +90,9 @@ class SelectRoot(CommonMarginProps, RadixThemesComponent): ], ] ] = None, - size: Optional[Union[Var[Literal[1, 2, 3]], Literal[1, 2, 3]]] = None, + size: Optional[ + Union[Var[Literal["1", "2", "3"]], Literal["1", "2", "3"]] + ] = None, default_value: Optional[Union[Var[str], str]] = None, value: Optional[Union[Var[str], str]] = None, default_open: Optional[Union[Var[bool], bool]] = None, @@ -1540,7 +1542,9 @@ class HighLevelSelect(SelectRoot): ] ] = None, width: Optional[Union[Var[str], str]] = None, - size: Optional[Union[Var[Literal[1, 2, 3]], Literal[1, 2, 3]]] = None, + size: Optional[ + Union[Var[Literal["1", "2", "3"]], Literal["1", "2", "3"]] + ] = None, default_value: Optional[Union[Var[str], str]] = None, value: Optional[Union[Var[str], str]] = None, default_open: Optional[Union[Var[bool], bool]] = None,