From 56cf2acc742b4d78e3dd970d5ab52daa56a4cf12 Mon Sep 17 00:00:00 2001 From: Elijah Date: Wed, 30 Oct 2024 16:56:51 +0000 Subject: [PATCH] address missed comment --- reflex/components/radix/themes/layout/list.py | 4 +- .../components/radix/themes/layout/list.pyi | 84 +++++++++++++++++++ 2 files changed, 86 insertions(+), 2 deletions(-) diff --git a/reflex/components/radix/themes/layout/list.py b/reflex/components/radix/themes/layout/list.py index 970dec05a..bd82fa435 100644 --- a/reflex/components/radix/themes/layout/list.py +++ b/reflex/components/radix/themes/layout/list.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Any, Iterable, Literal, Optional, Union +from typing import Any, Iterable, Literal, Union from reflex.components.component import Component, ComponentNamespace from reflex.components.core.foreach import Foreach @@ -42,7 +42,7 @@ class BaseList(Component): tag = "ul" # The style of the list. Default to "none". - list_style_type: Optional[ + list_style_type: Var[ Union[LiteralListStyleTypeUnordered, LiteralListStyleTypeOrdered] ] = "none" diff --git a/reflex/components/radix/themes/layout/list.pyi b/reflex/components/radix/themes/layout/list.pyi index 4bcbeae45..1ce6359a4 100644 --- a/reflex/components/radix/themes/layout/list.pyi +++ b/reflex/components/radix/themes/layout/list.pyi @@ -54,6 +54,27 @@ class BaseList(Component): "upper-roman", ], Literal["circle", "disc", "none", "square"], + Var[ + Union[ + Literal[ + "armenian", + "decimal", + "decimal-leading-zero", + "georgian", + "hiragana", + "katakana", + "lower-alpha", + "lower-greek", + "lower-latin", + "lower-roman", + "none", + "upper-alpha", + "upper-latin", + "upper-roman", + ], + Literal["circle", "disc", "none", "square"], + ] + ], ] ] = None, items: Optional[Union[Iterable, Var[Iterable]]] = None, @@ -127,6 +148,27 @@ class UnorderedList(BaseList, Ul): "upper-roman", ], Literal["circle", "disc", "none", "square"], + Var[ + Union[ + Literal[ + "armenian", + "decimal", + "decimal-leading-zero", + "georgian", + "hiragana", + "katakana", + "lower-alpha", + "lower-greek", + "lower-latin", + "lower-roman", + "none", + "upper-alpha", + "upper-latin", + "upper-roman", + ], + Literal["circle", "disc", "none", "square"], + ] + ], ] ] = None, items: Optional[Union[Iterable, Var[Iterable]]] = None, @@ -238,6 +280,27 @@ class OrderedList(BaseList, Ol): "upper-roman", ], Literal["circle", "disc", "none", "square"], + Var[ + Union[ + Literal[ + "armenian", + "decimal", + "decimal-leading-zero", + "georgian", + "hiragana", + "katakana", + "lower-alpha", + "lower-greek", + "lower-latin", + "lower-roman", + "none", + "upper-alpha", + "upper-latin", + "upper-roman", + ], + Literal["circle", "disc", "none", "square"], + ] + ], ] ] = None, items: Optional[Union[Iterable, Var[Iterable]]] = None, @@ -444,6 +507,27 @@ class List(ComponentNamespace): "upper-roman", ], Literal["circle", "disc", "none", "square"], + Var[ + Union[ + Literal[ + "armenian", + "decimal", + "decimal-leading-zero", + "georgian", + "hiragana", + "katakana", + "lower-alpha", + "lower-greek", + "lower-latin", + "lower-roman", + "none", + "upper-alpha", + "upper-latin", + "upper-roman", + ], + Literal["circle", "disc", "none", "square"], + ] + ], ] ] = None, items: Optional[Union[Iterable, Var[Iterable]]] = None,