reflex 0.6.0__py3-none-any.whl → 0.6.0a1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of reflex might be problematic. Click here for more details.
- reflex/.templates/jinja/custom_components/pyproject.toml.jinja2 +2 -2
- reflex/.templates/jinja/web/pages/_app.js.jinja2 +1 -1
- reflex/.templates/jinja/web/pages/utils.js.jinja2 +2 -2
- reflex/.templates/web/components/reflex/chakra_color_mode_provider.js +36 -0
- reflex/.templates/web/utils/state.js +1 -3
- reflex/__init__.py +2 -8
- reflex/__init__.pyi +1 -2
- reflex/app.py +2 -4
- reflex/app_module_for_backend.py +1 -1
- reflex/base.py +1 -1
- reflex/compiler/compiler.py +2 -2
- reflex/compiler/utils.py +3 -3
- reflex/components/base/app_wrap.py +2 -2
- reflex/components/base/app_wrap.pyi +27 -17
- reflex/components/base/bare.py +5 -4
- reflex/components/base/body.pyi +27 -17
- reflex/components/base/document.pyi +131 -81
- reflex/components/base/error_boundary.py +7 -6
- reflex/components/base/error_boundary.pyi +33 -20
- reflex/components/base/fragment.pyi +27 -17
- reflex/components/base/head.pyi +53 -33
- reflex/components/base/link.py +1 -1
- reflex/components/base/link.pyi +54 -33
- reflex/components/base/meta.pyi +105 -65
- reflex/components/base/script.py +2 -1
- reflex/components/base/script.pyi +38 -21
- reflex/components/component.py +47 -53
- reflex/components/core/banner.py +27 -23
- reflex/components/core/banner.pyi +171 -134
- reflex/components/core/client_side_routing.py +3 -2
- reflex/components/core/client_side_routing.pyi +54 -33
- reflex/components/core/clipboard.py +1 -2
- reflex/components/core/clipboard.pyi +33 -20
- reflex/components/core/cond.py +5 -5
- reflex/components/core/debounce.py +5 -5
- reflex/components/core/debounce.pyi +33 -20
- reflex/components/core/foreach.py +4 -3
- reflex/components/core/html.py +1 -1
- reflex/components/core/html.pyi +46 -35
- reflex/components/core/match.py +17 -17
- reflex/components/core/upload.py +23 -17
- reflex/components/core/upload.pyi +124 -78
- reflex/components/datadisplay/code.py +10 -9
- reflex/components/datadisplay/code.pyi +409 -299
- reflex/components/datadisplay/dataeditor.py +10 -8
- reflex/components/datadisplay/dataeditor.pyi +53 -40
- reflex/components/el/element.pyi +27 -17
- reflex/components/el/elements/base.py +1 -1
- reflex/components/el/elements/base.pyi +45 -34
- reflex/components/el/elements/forms.py +16 -16
- reflex/components/el/elements/forms.pyi +707 -554
- reflex/components/el/elements/inline.py +1 -1
- reflex/components/el/elements/inline.pyi +1218 -937
- reflex/components/el/elements/media.py +1 -1
- reflex/components/el/elements/media.pyi +997 -786
- reflex/components/el/elements/metadata.py +6 -3
- reflex/components/el/elements/metadata.pyi +242 -181
- reflex/components/el/elements/other.py +1 -1
- reflex/components/el/elements/other.pyi +306 -235
- reflex/components/el/elements/scripts.py +1 -1
- reflex/components/el/elements/scripts.pyi +140 -109
- reflex/components/el/elements/sectioning.py +2 -0
- reflex/components/el/elements/sectioning.pyi +647 -496
- reflex/components/el/elements/tables.py +1 -1
- reflex/components/el/elements/tables.pyi +452 -351
- reflex/components/el/elements/typography.py +1 -1
- reflex/components/el/elements/typography.pyi +657 -506
- reflex/components/gridjs/datatable.py +9 -6
- reflex/components/gridjs/datatable.pyi +56 -35
- reflex/components/lucide/icon.py +1 -1
- reflex/components/lucide/icon.pyi +54 -33
- reflex/components/markdown/markdown.py +31 -26
- reflex/components/markdown/markdown.pyi +37 -27
- reflex/components/moment/moment.py +12 -13
- reflex/components/moment/moment.pyi +35 -23
- reflex/components/next/base.pyi +27 -17
- reflex/components/next/image.py +1 -1
- reflex/components/next/image.pyi +37 -22
- reflex/components/next/link.py +1 -1
- reflex/components/next/link.pyi +28 -17
- reflex/components/next/video.py +1 -1
- reflex/components/next/video.pyi +28 -17
- reflex/components/plotly/plotly.py +13 -12
- reflex/components/plotly/plotly.pyi +54 -39
- reflex/components/props.py +1 -1
- reflex/components/radix/__init__.pyi +0 -1
- reflex/components/radix/primitives/__init__.pyi +0 -1
- reflex/components/radix/primitives/accordion.py +4 -4
- reflex/components/radix/primitives/accordion.pyi +495 -424
- reflex/components/radix/primitives/base.py +1 -1
- reflex/components/radix/primitives/base.pyi +54 -33
- reflex/components/radix/primitives/drawer.py +1 -1
- reflex/components/radix/primitives/drawer.pyi +273 -172
- reflex/components/radix/primitives/form.py +1 -1
- reflex/components/radix/primitives/form.pyi +364 -257
- reflex/components/radix/primitives/progress.py +1 -1
- reflex/components/radix/primitives/progress.pyi +282 -231
- reflex/components/radix/primitives/slider.py +1 -1
- reflex/components/radix/primitives/slider.pyi +138 -87
- reflex/components/radix/themes/base.py +24 -3
- reflex/components/radix/themes/base.pyi +250 -178
- reflex/components/radix/themes/color_mode.py +5 -5
- reflex/components/radix/themes/color_mode.pyi +220 -187
- reflex/components/radix/themes/components/alert_dialog.py +1 -1
- reflex/components/radix/themes/components/alert_dialog.pyi +207 -136
- reflex/components/radix/themes/components/aspect_ratio.py +1 -1
- reflex/components/radix/themes/components/aspect_ratio.pyi +28 -17
- reflex/components/radix/themes/components/avatar.py +1 -1
- reflex/components/radix/themes/components/avatar.pyi +81 -70
- reflex/components/radix/themes/components/badge.py +1 -1
- reflex/components/radix/themes/components/badge.pyi +99 -88
- reflex/components/radix/themes/components/button.py +1 -1
- reflex/components/radix/themes/components/button.pyi +109 -98
- reflex/components/radix/themes/components/callout.py +1 -1
- reflex/components/radix/themes/components/callout.pyi +373 -322
- reflex/components/radix/themes/components/card.py +1 -1
- reflex/components/radix/themes/components/card.pyi +49 -38
- reflex/components/radix/themes/components/checkbox.py +2 -1
- reflex/components/radix/themes/components/checkbox.pyi +245 -208
- reflex/components/radix/themes/components/checkbox_cards.py +1 -1
- reflex/components/radix/themes/components/checkbox_cards.pyi +115 -94
- reflex/components/radix/themes/components/checkbox_group.py +1 -1
- reflex/components/radix/themes/components/checkbox_group.pyi +107 -86
- reflex/components/radix/themes/components/context_menu.py +1 -1
- reflex/components/radix/themes/components/context_menu.pyi +319 -238
- reflex/components/radix/themes/components/data_list.py +1 -1
- reflex/components/radix/themes/components/data_list.pyi +171 -130
- reflex/components/radix/themes/components/dialog.py +1 -1
- reflex/components/radix/themes/components/dialog.pyi +210 -139
- reflex/components/radix/themes/components/dropdown_menu.py +1 -1
- reflex/components/radix/themes/components/dropdown_menu.pyi +332 -249
- reflex/components/radix/themes/components/hover_card.py +1 -1
- reflex/components/radix/themes/components/hover_card.pyi +131 -90
- reflex/components/radix/themes/components/icon_button.py +3 -2
- reflex/components/radix/themes/components/icon_button.pyi +109 -98
- reflex/components/radix/themes/components/inset.py +1 -1
- reflex/components/radix/themes/components/inset.pyi +58 -47
- reflex/components/radix/themes/components/popover.py +1 -1
- reflex/components/radix/themes/components/popover.pyi +136 -95
- reflex/components/radix/themes/components/progress.py +1 -1
- reflex/components/radix/themes/components/progress.pyi +82 -71
- reflex/components/radix/themes/components/radio.py +1 -1
- reflex/components/radix/themes/components/radio.pyi +80 -69
- reflex/components/radix/themes/components/radio_cards.py +1 -1
- reflex/components/radix/themes/components/radio_cards.pyi +119 -98
- reflex/components/radix/themes/components/radio_group.py +11 -8
- reflex/components/radix/themes/components/radio_group.pyi +271 -228
- reflex/components/radix/themes/components/scroll_area.py +1 -1
- reflex/components/radix/themes/components/scroll_area.pyi +32 -21
- reflex/components/radix/themes/components/segmented_control.py +1 -1
- reflex/components/radix/themes/components/segmented_control.pyi +113 -90
- reflex/components/radix/themes/components/select.py +3 -2
- reflex/components/radix/themes/components/select.pyi +471 -374
- reflex/components/radix/themes/components/separator.py +2 -1
- reflex/components/radix/themes/components/separator.pyi +80 -69
- reflex/components/radix/themes/components/skeleton.py +1 -1
- reflex/components/radix/themes/components/skeleton.pyi +34 -23
- reflex/components/radix/themes/components/slider.py +3 -2
- reflex/components/radix/themes/components/slider.pyi +88 -75
- reflex/components/radix/themes/components/spinner.py +1 -1
- reflex/components/radix/themes/components/spinner.pyi +30 -19
- reflex/components/radix/themes/components/switch.py +1 -1
- reflex/components/radix/themes/components/switch.pyi +84 -71
- reflex/components/radix/themes/components/table.py +1 -1
- reflex/components/radix/themes/components/table.pyi +332 -261
- reflex/components/radix/themes/components/tabs.py +1 -1
- reflex/components/radix/themes/components/tabs.pyi +194 -139
- reflex/components/radix/themes/components/text_area.py +1 -1
- reflex/components/radix/themes/components/text_area.pyi +111 -96
- reflex/components/radix/themes/components/text_field.py +1 -1
- reflex/components/radix/themes/components/text_field.pyi +286 -247
- reflex/components/radix/themes/components/tooltip.py +1 -1
- reflex/components/radix/themes/components/tooltip.pyi +37 -26
- reflex/components/radix/themes/layout/__init__.pyi +0 -1
- reflex/components/radix/themes/layout/base.py +1 -1
- reflex/components/radix/themes/layout/base.pyi +67 -56
- reflex/components/radix/themes/layout/box.pyi +45 -34
- reflex/components/radix/themes/layout/center.pyi +67 -56
- reflex/components/radix/themes/layout/container.py +2 -1
- reflex/components/radix/themes/layout/container.pyi +47 -36
- reflex/components/radix/themes/layout/flex.py +1 -1
- reflex/components/radix/themes/layout/flex.pyi +67 -56
- reflex/components/radix/themes/layout/grid.py +1 -1
- reflex/components/radix/themes/layout/grid.pyi +75 -64
- reflex/components/radix/themes/layout/list.py +6 -5
- reflex/components/radix/themes/layout/list.pyi +244 -193
- reflex/components/radix/themes/layout/section.py +2 -1
- reflex/components/radix/themes/layout/section.pyi +47 -36
- reflex/components/radix/themes/layout/spacer.pyi +67 -56
- reflex/components/radix/themes/layout/stack.py +1 -1
- reflex/components/radix/themes/layout/stack.pyi +159 -128
- reflex/components/radix/themes/typography/blockquote.py +1 -1
- reflex/components/radix/themes/typography/blockquote.pyi +100 -89
- reflex/components/radix/themes/typography/code.py +1 -1
- reflex/components/radix/themes/typography/code.pyi +101 -90
- reflex/components/radix/themes/typography/heading.py +1 -1
- reflex/components/radix/themes/typography/heading.pyi +107 -96
- reflex/components/radix/themes/typography/link.py +1 -1
- reflex/components/radix/themes/typography/link.pyi +113 -102
- reflex/components/radix/themes/typography/text.py +1 -1
- reflex/components/radix/themes/typography/text.pyi +572 -501
- reflex/components/react_player/audio.pyi +60 -33
- reflex/components/react_player/react_player.py +1 -1
- reflex/components/react_player/react_player.pyi +60 -33
- reflex/components/react_player/video.pyi +60 -33
- reflex/components/recharts/cartesian.py +3 -2
- reflex/components/recharts/cartesian.pyi +861 -678
- reflex/components/recharts/charts.py +5 -4
- reflex/components/recharts/charts.pyi +357 -252
- reflex/components/recharts/general.py +2 -1
- reflex/components/recharts/general.pyi +231 -180
- reflex/components/recharts/polar.py +5 -4
- reflex/components/recharts/polar.pyi +181 -144
- reflex/components/recharts/recharts.pyi +53 -33
- reflex/components/sonner/toast.py +17 -16
- reflex/components/sonner/toast.pyi +47 -36
- reflex/components/suneditor/editor.py +3 -2
- reflex/components/suneditor/editor.pyi +78 -55
- reflex/components/tags/cond_tag.py +4 -6
- reflex/components/tags/iter_tag.py +16 -28
- reflex/components/tags/match_tag.py +4 -6
- reflex/components/tags/tag.py +23 -40
- reflex/custom_components/custom_components.py +1 -3
- reflex/event.py +65 -113
- reflex/experimental/client_state.py +24 -25
- reflex/experimental/hooks.py +16 -16
- reflex/experimental/layout.py +5 -5
- reflex/experimental/layout.pyi +187 -136
- reflex/{vars → ivars}/__init__.py +2 -6
- reflex/{vars → ivars}/base.py +216 -599
- reflex/{vars → ivars}/function.py +19 -15
- reflex/{vars → ivars}/number.py +20 -41
- reflex/{vars → ivars}/object.py +30 -28
- reflex/{vars → ivars}/sequence.py +50 -53
- reflex/middleware/hydrate_middleware.py +0 -2
- reflex/middleware/middleware.py +3 -3
- reflex/state.py +82 -148
- reflex/style.py +22 -21
- reflex/utils/exceptions.py +0 -20
- reflex/utils/format.py +34 -54
- reflex/utils/imports.py +73 -16
- reflex/utils/prerequisites.py +15 -35
- reflex/utils/pyi_generator.py +8 -13
- reflex/utils/serializers.py +22 -12
- reflex/utils/telemetry.py +2 -3
- reflex/utils/types.py +5 -10
- reflex/vars.py +501 -0
- {reflex-0.6.0.dist-info → reflex-0.6.0a1.dist-info}/METADATA +5 -4
- reflex-0.6.0a1.dist-info/RECORD +384 -0
- reflex-0.6.0.dist-info/RECORD +0 -382
- {reflex-0.6.0.dist-info → reflex-0.6.0a1.dist-info}/LICENSE +0 -0
- {reflex-0.6.0.dist-info → reflex-0.6.0a1.dist-info}/WHEEL +0 -0
- {reflex-0.6.0.dist-info → reflex-0.6.0a1.dist-info}/entry_points.txt +0 -0
|
@@ -8,8 +8,9 @@ from typing import Any, Callable, Dict, Iterable, Literal, Optional, Union, over
|
|
|
8
8
|
from reflex.components.component import Component, ComponentNamespace
|
|
9
9
|
from reflex.components.el.elements.typography import Li, Ol, Ul
|
|
10
10
|
from reflex.event import EventHandler, EventSpec
|
|
11
|
+
from reflex.ivars.base import ImmutableVar
|
|
11
12
|
from reflex.style import Style
|
|
12
|
-
from reflex.vars
|
|
13
|
+
from reflex.vars import Var
|
|
13
14
|
|
|
14
15
|
LiteralListStyleTypeUnordered = Literal["none", "disc", "circle", "square"]
|
|
15
16
|
LiteralListStyleTypeOrdered = Literal[
|
|
@@ -35,47 +36,47 @@ class BaseList(Component):
|
|
|
35
36
|
def create( # type: ignore
|
|
36
37
|
cls,
|
|
37
38
|
*children,
|
|
38
|
-
items: Optional[
|
|
39
|
+
items: Optional[ImmutableVar[Iterable]] = None,
|
|
39
40
|
list_style_type: Optional[
|
|
40
41
|
Union[
|
|
41
|
-
Literal[
|
|
42
|
-
"armenian",
|
|
43
|
-
"decimal",
|
|
44
|
-
"decimal-leading-zero",
|
|
45
|
-
"georgian",
|
|
46
|
-
"hiragana",
|
|
47
|
-
"katakana",
|
|
48
|
-
"lower-alpha",
|
|
49
|
-
"lower-greek",
|
|
50
|
-
"lower-latin",
|
|
51
|
-
"lower-roman",
|
|
52
|
-
"none",
|
|
53
|
-
"upper-alpha",
|
|
54
|
-
"upper-latin",
|
|
55
|
-
"upper-roman",
|
|
56
|
-
],
|
|
57
|
-
Literal["circle", "disc", "none", "square"],
|
|
58
42
|
Var[
|
|
59
43
|
Union[
|
|
60
44
|
Literal[
|
|
61
|
-
"
|
|
45
|
+
"none",
|
|
62
46
|
"decimal",
|
|
63
47
|
"decimal-leading-zero",
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"katakana",
|
|
67
|
-
"lower-alpha",
|
|
48
|
+
"lower-roman",
|
|
49
|
+
"upper-roman",
|
|
68
50
|
"lower-greek",
|
|
69
51
|
"lower-latin",
|
|
70
|
-
"lower-roman",
|
|
71
|
-
"none",
|
|
72
|
-
"upper-alpha",
|
|
73
52
|
"upper-latin",
|
|
74
|
-
"
|
|
53
|
+
"armenian",
|
|
54
|
+
"georgian",
|
|
55
|
+
"lower-alpha",
|
|
56
|
+
"upper-alpha",
|
|
57
|
+
"hiragana",
|
|
58
|
+
"katakana",
|
|
75
59
|
],
|
|
76
|
-
Literal["
|
|
60
|
+
Literal["none", "disc", "circle", "square"],
|
|
77
61
|
]
|
|
78
62
|
],
|
|
63
|
+
Literal["none", "disc", "circle", "square"],
|
|
64
|
+
Literal[
|
|
65
|
+
"none",
|
|
66
|
+
"decimal",
|
|
67
|
+
"decimal-leading-zero",
|
|
68
|
+
"lower-roman",
|
|
69
|
+
"upper-roman",
|
|
70
|
+
"lower-greek",
|
|
71
|
+
"lower-latin",
|
|
72
|
+
"upper-latin",
|
|
73
|
+
"armenian",
|
|
74
|
+
"georgian",
|
|
75
|
+
"lower-alpha",
|
|
76
|
+
"upper-alpha",
|
|
77
|
+
"hiragana",
|
|
78
|
+
"katakana",
|
|
79
|
+
],
|
|
79
80
|
]
|
|
80
81
|
] = None,
|
|
81
82
|
style: Optional[Style] = None,
|
|
@@ -83,41 +84,51 @@ class BaseList(Component):
|
|
|
83
84
|
id: Optional[Any] = None,
|
|
84
85
|
class_name: Optional[Any] = None,
|
|
85
86
|
autofocus: Optional[bool] = None,
|
|
86
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
87
|
-
on_blur: Optional[
|
|
88
|
-
|
|
87
|
+
custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
88
|
+
on_blur: Optional[
|
|
89
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
90
|
+
] = None,
|
|
91
|
+
on_click: Optional[
|
|
92
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
93
|
+
] = None,
|
|
89
94
|
on_context_menu: Optional[
|
|
90
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
95
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
91
96
|
] = None,
|
|
92
97
|
on_double_click: Optional[
|
|
93
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
98
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
99
|
+
] = None,
|
|
100
|
+
on_focus: Optional[
|
|
101
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
102
|
+
] = None,
|
|
103
|
+
on_mount: Optional[
|
|
104
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
94
105
|
] = None,
|
|
95
|
-
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
96
|
-
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
97
106
|
on_mouse_down: Optional[
|
|
98
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
107
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
99
108
|
] = None,
|
|
100
109
|
on_mouse_enter: Optional[
|
|
101
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
110
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
102
111
|
] = None,
|
|
103
112
|
on_mouse_leave: Optional[
|
|
104
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
113
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
105
114
|
] = None,
|
|
106
115
|
on_mouse_move: Optional[
|
|
107
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
116
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
108
117
|
] = None,
|
|
109
118
|
on_mouse_out: Optional[
|
|
110
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
119
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
111
120
|
] = None,
|
|
112
121
|
on_mouse_over: Optional[
|
|
113
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
122
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
114
123
|
] = None,
|
|
115
124
|
on_mouse_up: Optional[
|
|
116
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
125
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
126
|
+
] = None,
|
|
127
|
+
on_scroll: Optional[
|
|
128
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
117
129
|
] = None,
|
|
118
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
119
130
|
on_unmount: Optional[
|
|
120
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
131
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
121
132
|
] = None,
|
|
122
133
|
**props,
|
|
123
134
|
) -> "BaseList":
|
|
@@ -149,72 +160,82 @@ class UnorderedList(BaseList, Ul):
|
|
|
149
160
|
def create( # type: ignore
|
|
150
161
|
cls,
|
|
151
162
|
*children,
|
|
152
|
-
items: Optional[
|
|
163
|
+
items: Optional[ImmutableVar[Iterable]] = None,
|
|
153
164
|
list_style_type: Optional[LiteralListStyleTypeUnordered] = "disc",
|
|
154
|
-
access_key: Optional[Union[Var[Union[bool, int, str]],
|
|
165
|
+
access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
155
166
|
auto_capitalize: Optional[
|
|
156
|
-
Union[Var[Union[bool, int, str]],
|
|
167
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
157
168
|
] = None,
|
|
158
169
|
content_editable: Optional[
|
|
159
|
-
Union[Var[Union[bool, int, str]],
|
|
170
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
160
171
|
] = None,
|
|
161
172
|
context_menu: Optional[
|
|
162
|
-
Union[Var[Union[bool, int, str]],
|
|
173
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
163
174
|
] = None,
|
|
164
|
-
dir: Optional[Union[Var[Union[bool, int, str]],
|
|
165
|
-
draggable: Optional[Union[Var[Union[bool, int, str]],
|
|
175
|
+
dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
176
|
+
draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
166
177
|
enter_key_hint: Optional[
|
|
167
|
-
Union[Var[Union[bool, int, str]],
|
|
168
|
-
] = None,
|
|
169
|
-
hidden: Optional[Union[Var[Union[bool, int, str]],
|
|
170
|
-
input_mode: Optional[Union[Var[Union[bool, int, str]],
|
|
171
|
-
item_prop: Optional[Union[Var[Union[bool, int, str]],
|
|
172
|
-
lang: Optional[Union[Var[Union[bool, int, str]],
|
|
173
|
-
role: Optional[Union[Var[Union[bool, int, str]],
|
|
174
|
-
slot: Optional[Union[Var[Union[bool, int, str]],
|
|
175
|
-
spell_check: Optional[Union[Var[Union[bool, int, str]],
|
|
176
|
-
tab_index: Optional[Union[Var[Union[bool, int, str]],
|
|
177
|
-
title: Optional[Union[Var[Union[bool, int, str]],
|
|
178
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
179
|
+
] = None,
|
|
180
|
+
hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
181
|
+
input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
182
|
+
item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
183
|
+
lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
184
|
+
role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
185
|
+
slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
186
|
+
spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
187
|
+
tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
188
|
+
title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
178
189
|
style: Optional[Style] = None,
|
|
179
190
|
key: Optional[Any] = None,
|
|
180
191
|
id: Optional[Any] = None,
|
|
181
192
|
class_name: Optional[Any] = None,
|
|
182
193
|
autofocus: Optional[bool] = None,
|
|
183
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
184
|
-
on_blur: Optional[
|
|
185
|
-
|
|
194
|
+
custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
195
|
+
on_blur: Optional[
|
|
196
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
197
|
+
] = None,
|
|
198
|
+
on_click: Optional[
|
|
199
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
200
|
+
] = None,
|
|
186
201
|
on_context_menu: Optional[
|
|
187
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
202
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
188
203
|
] = None,
|
|
189
204
|
on_double_click: Optional[
|
|
190
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
205
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
206
|
+
] = None,
|
|
207
|
+
on_focus: Optional[
|
|
208
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
209
|
+
] = None,
|
|
210
|
+
on_mount: Optional[
|
|
211
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
191
212
|
] = None,
|
|
192
|
-
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
193
|
-
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
194
213
|
on_mouse_down: Optional[
|
|
195
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
214
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
196
215
|
] = None,
|
|
197
216
|
on_mouse_enter: Optional[
|
|
198
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
217
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
199
218
|
] = None,
|
|
200
219
|
on_mouse_leave: Optional[
|
|
201
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
220
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
202
221
|
] = None,
|
|
203
222
|
on_mouse_move: Optional[
|
|
204
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
223
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
205
224
|
] = None,
|
|
206
225
|
on_mouse_out: Optional[
|
|
207
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
226
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
208
227
|
] = None,
|
|
209
228
|
on_mouse_over: Optional[
|
|
210
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
229
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
211
230
|
] = None,
|
|
212
231
|
on_mouse_up: Optional[
|
|
213
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
232
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
233
|
+
] = None,
|
|
234
|
+
on_scroll: Optional[
|
|
235
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
214
236
|
] = None,
|
|
215
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
216
237
|
on_unmount: Optional[
|
|
217
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
238
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
218
239
|
] = None,
|
|
219
240
|
**props,
|
|
220
241
|
) -> "UnorderedList":
|
|
@@ -260,75 +281,85 @@ class OrderedList(BaseList, Ol):
|
|
|
260
281
|
def create( # type: ignore
|
|
261
282
|
cls,
|
|
262
283
|
*children,
|
|
263
|
-
items: Optional[
|
|
284
|
+
items: Optional[ImmutableVar[Iterable]] = None,
|
|
264
285
|
list_style_type: Optional[LiteralListStyleTypeOrdered] = "decimal",
|
|
265
|
-
reversed: Optional[Union[Var[Union[bool, int, str]],
|
|
266
|
-
start: Optional[Union[Var[Union[bool, int, str]],
|
|
267
|
-
type: Optional[Union[Var[Union[bool, int, str]],
|
|
268
|
-
access_key: Optional[Union[Var[Union[bool, int, str]],
|
|
286
|
+
reversed: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
287
|
+
start: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
288
|
+
type: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
289
|
+
access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
269
290
|
auto_capitalize: Optional[
|
|
270
|
-
Union[Var[Union[bool, int, str]],
|
|
291
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
271
292
|
] = None,
|
|
272
293
|
content_editable: Optional[
|
|
273
|
-
Union[Var[Union[bool, int, str]],
|
|
294
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
274
295
|
] = None,
|
|
275
296
|
context_menu: Optional[
|
|
276
|
-
Union[Var[Union[bool, int, str]],
|
|
297
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
277
298
|
] = None,
|
|
278
|
-
dir: Optional[Union[Var[Union[bool, int, str]],
|
|
279
|
-
draggable: Optional[Union[Var[Union[bool, int, str]],
|
|
299
|
+
dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
300
|
+
draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
280
301
|
enter_key_hint: Optional[
|
|
281
|
-
Union[Var[Union[bool, int, str]],
|
|
282
|
-
] = None,
|
|
283
|
-
hidden: Optional[Union[Var[Union[bool, int, str]],
|
|
284
|
-
input_mode: Optional[Union[Var[Union[bool, int, str]],
|
|
285
|
-
item_prop: Optional[Union[Var[Union[bool, int, str]],
|
|
286
|
-
lang: Optional[Union[Var[Union[bool, int, str]],
|
|
287
|
-
role: Optional[Union[Var[Union[bool, int, str]],
|
|
288
|
-
slot: Optional[Union[Var[Union[bool, int, str]],
|
|
289
|
-
spell_check: Optional[Union[Var[Union[bool, int, str]],
|
|
290
|
-
tab_index: Optional[Union[Var[Union[bool, int, str]],
|
|
291
|
-
title: Optional[Union[Var[Union[bool, int, str]],
|
|
302
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
303
|
+
] = None,
|
|
304
|
+
hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
305
|
+
input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
306
|
+
item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
307
|
+
lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
308
|
+
role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
309
|
+
slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
310
|
+
spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
311
|
+
tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
312
|
+
title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
292
313
|
style: Optional[Style] = None,
|
|
293
314
|
key: Optional[Any] = None,
|
|
294
315
|
id: Optional[Any] = None,
|
|
295
316
|
class_name: Optional[Any] = None,
|
|
296
317
|
autofocus: Optional[bool] = None,
|
|
297
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
298
|
-
on_blur: Optional[
|
|
299
|
-
|
|
318
|
+
custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
319
|
+
on_blur: Optional[
|
|
320
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
321
|
+
] = None,
|
|
322
|
+
on_click: Optional[
|
|
323
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
324
|
+
] = None,
|
|
300
325
|
on_context_menu: Optional[
|
|
301
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
326
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
302
327
|
] = None,
|
|
303
328
|
on_double_click: Optional[
|
|
304
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
329
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
330
|
+
] = None,
|
|
331
|
+
on_focus: Optional[
|
|
332
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
333
|
+
] = None,
|
|
334
|
+
on_mount: Optional[
|
|
335
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
305
336
|
] = None,
|
|
306
|
-
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
307
|
-
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
308
337
|
on_mouse_down: Optional[
|
|
309
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
338
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
310
339
|
] = None,
|
|
311
340
|
on_mouse_enter: Optional[
|
|
312
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
341
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
313
342
|
] = None,
|
|
314
343
|
on_mouse_leave: Optional[
|
|
315
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
344
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
316
345
|
] = None,
|
|
317
346
|
on_mouse_move: Optional[
|
|
318
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
347
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
319
348
|
] = None,
|
|
320
349
|
on_mouse_out: Optional[
|
|
321
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
350
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
322
351
|
] = None,
|
|
323
352
|
on_mouse_over: Optional[
|
|
324
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
353
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
325
354
|
] = None,
|
|
326
355
|
on_mouse_up: Optional[
|
|
327
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
356
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
357
|
+
] = None,
|
|
358
|
+
on_scroll: Optional[
|
|
359
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
328
360
|
] = None,
|
|
329
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
330
361
|
on_unmount: Optional[
|
|
331
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
362
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
332
363
|
] = None,
|
|
333
364
|
**props,
|
|
334
365
|
) -> "OrderedList":
|
|
@@ -377,70 +408,80 @@ class ListItem(Li):
|
|
|
377
408
|
def create( # type: ignore
|
|
378
409
|
cls,
|
|
379
410
|
*children,
|
|
380
|
-
access_key: Optional[Union[Var[Union[bool, int, str]],
|
|
411
|
+
access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
381
412
|
auto_capitalize: Optional[
|
|
382
|
-
Union[Var[Union[bool, int, str]],
|
|
413
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
383
414
|
] = None,
|
|
384
415
|
content_editable: Optional[
|
|
385
|
-
Union[Var[Union[bool, int, str]],
|
|
416
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
386
417
|
] = None,
|
|
387
418
|
context_menu: Optional[
|
|
388
|
-
Union[Var[Union[bool, int, str]],
|
|
419
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
389
420
|
] = None,
|
|
390
|
-
dir: Optional[Union[Var[Union[bool, int, str]],
|
|
391
|
-
draggable: Optional[Union[Var[Union[bool, int, str]],
|
|
421
|
+
dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
422
|
+
draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
392
423
|
enter_key_hint: Optional[
|
|
393
|
-
Union[Var[Union[bool, int, str]],
|
|
394
|
-
] = None,
|
|
395
|
-
hidden: Optional[Union[Var[Union[bool, int, str]],
|
|
396
|
-
input_mode: Optional[Union[Var[Union[bool, int, str]],
|
|
397
|
-
item_prop: Optional[Union[Var[Union[bool, int, str]],
|
|
398
|
-
lang: Optional[Union[Var[Union[bool, int, str]],
|
|
399
|
-
role: Optional[Union[Var[Union[bool, int, str]],
|
|
400
|
-
slot: Optional[Union[Var[Union[bool, int, str]],
|
|
401
|
-
spell_check: Optional[Union[Var[Union[bool, int, str]],
|
|
402
|
-
tab_index: Optional[Union[Var[Union[bool, int, str]],
|
|
403
|
-
title: Optional[Union[Var[Union[bool, int, str]],
|
|
424
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
425
|
+
] = None,
|
|
426
|
+
hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
427
|
+
input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
428
|
+
item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
429
|
+
lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
430
|
+
role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
431
|
+
slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
432
|
+
spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
433
|
+
tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
434
|
+
title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
404
435
|
style: Optional[Style] = None,
|
|
405
436
|
key: Optional[Any] = None,
|
|
406
437
|
id: Optional[Any] = None,
|
|
407
438
|
class_name: Optional[Any] = None,
|
|
408
439
|
autofocus: Optional[bool] = None,
|
|
409
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
410
|
-
on_blur: Optional[
|
|
411
|
-
|
|
440
|
+
custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
441
|
+
on_blur: Optional[
|
|
442
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
443
|
+
] = None,
|
|
444
|
+
on_click: Optional[
|
|
445
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
446
|
+
] = None,
|
|
412
447
|
on_context_menu: Optional[
|
|
413
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
448
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
414
449
|
] = None,
|
|
415
450
|
on_double_click: Optional[
|
|
416
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
451
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
452
|
+
] = None,
|
|
453
|
+
on_focus: Optional[
|
|
454
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
455
|
+
] = None,
|
|
456
|
+
on_mount: Optional[
|
|
457
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
417
458
|
] = None,
|
|
418
|
-
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
419
|
-
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
420
459
|
on_mouse_down: Optional[
|
|
421
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
460
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
422
461
|
] = None,
|
|
423
462
|
on_mouse_enter: Optional[
|
|
424
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
463
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
425
464
|
] = None,
|
|
426
465
|
on_mouse_leave: Optional[
|
|
427
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
466
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
428
467
|
] = None,
|
|
429
468
|
on_mouse_move: Optional[
|
|
430
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
469
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
431
470
|
] = None,
|
|
432
471
|
on_mouse_out: Optional[
|
|
433
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
472
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
434
473
|
] = None,
|
|
435
474
|
on_mouse_over: Optional[
|
|
436
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
475
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
437
476
|
] = None,
|
|
438
477
|
on_mouse_up: Optional[
|
|
439
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
478
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
479
|
+
] = None,
|
|
480
|
+
on_scroll: Optional[
|
|
481
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
440
482
|
] = None,
|
|
441
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
442
483
|
on_unmount: Optional[
|
|
443
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
484
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
444
485
|
] = None,
|
|
445
486
|
**props,
|
|
446
487
|
) -> "ListItem":
|
|
@@ -486,47 +527,47 @@ class List(ComponentNamespace):
|
|
|
486
527
|
@staticmethod
|
|
487
528
|
def __call__(
|
|
488
529
|
*children,
|
|
489
|
-
items: Optional[
|
|
530
|
+
items: Optional[ImmutableVar[Iterable]] = None,
|
|
490
531
|
list_style_type: Optional[
|
|
491
532
|
Union[
|
|
492
|
-
Literal[
|
|
493
|
-
"armenian",
|
|
494
|
-
"decimal",
|
|
495
|
-
"decimal-leading-zero",
|
|
496
|
-
"georgian",
|
|
497
|
-
"hiragana",
|
|
498
|
-
"katakana",
|
|
499
|
-
"lower-alpha",
|
|
500
|
-
"lower-greek",
|
|
501
|
-
"lower-latin",
|
|
502
|
-
"lower-roman",
|
|
503
|
-
"none",
|
|
504
|
-
"upper-alpha",
|
|
505
|
-
"upper-latin",
|
|
506
|
-
"upper-roman",
|
|
507
|
-
],
|
|
508
|
-
Literal["circle", "disc", "none", "square"],
|
|
509
533
|
Var[
|
|
510
534
|
Union[
|
|
511
535
|
Literal[
|
|
512
|
-
"
|
|
536
|
+
"none",
|
|
513
537
|
"decimal",
|
|
514
538
|
"decimal-leading-zero",
|
|
515
|
-
"
|
|
516
|
-
"
|
|
517
|
-
"katakana",
|
|
518
|
-
"lower-alpha",
|
|
539
|
+
"lower-roman",
|
|
540
|
+
"upper-roman",
|
|
519
541
|
"lower-greek",
|
|
520
542
|
"lower-latin",
|
|
521
|
-
"lower-roman",
|
|
522
|
-
"none",
|
|
523
|
-
"upper-alpha",
|
|
524
543
|
"upper-latin",
|
|
525
|
-
"
|
|
544
|
+
"armenian",
|
|
545
|
+
"georgian",
|
|
546
|
+
"lower-alpha",
|
|
547
|
+
"upper-alpha",
|
|
548
|
+
"hiragana",
|
|
549
|
+
"katakana",
|
|
526
550
|
],
|
|
527
|
-
Literal["
|
|
551
|
+
Literal["none", "disc", "circle", "square"],
|
|
528
552
|
]
|
|
529
553
|
],
|
|
554
|
+
Literal["none", "disc", "circle", "square"],
|
|
555
|
+
Literal[
|
|
556
|
+
"none",
|
|
557
|
+
"decimal",
|
|
558
|
+
"decimal-leading-zero",
|
|
559
|
+
"lower-roman",
|
|
560
|
+
"upper-roman",
|
|
561
|
+
"lower-greek",
|
|
562
|
+
"lower-latin",
|
|
563
|
+
"upper-latin",
|
|
564
|
+
"armenian",
|
|
565
|
+
"georgian",
|
|
566
|
+
"lower-alpha",
|
|
567
|
+
"upper-alpha",
|
|
568
|
+
"hiragana",
|
|
569
|
+
"katakana",
|
|
570
|
+
],
|
|
530
571
|
]
|
|
531
572
|
] = None,
|
|
532
573
|
style: Optional[Style] = None,
|
|
@@ -534,41 +575,51 @@ class List(ComponentNamespace):
|
|
|
534
575
|
id: Optional[Any] = None,
|
|
535
576
|
class_name: Optional[Any] = None,
|
|
536
577
|
autofocus: Optional[bool] = None,
|
|
537
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
538
|
-
on_blur: Optional[
|
|
539
|
-
|
|
578
|
+
custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
579
|
+
on_blur: Optional[
|
|
580
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
581
|
+
] = None,
|
|
582
|
+
on_click: Optional[
|
|
583
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
584
|
+
] = None,
|
|
540
585
|
on_context_menu: Optional[
|
|
541
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
586
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
542
587
|
] = None,
|
|
543
588
|
on_double_click: Optional[
|
|
544
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
589
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
590
|
+
] = None,
|
|
591
|
+
on_focus: Optional[
|
|
592
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
593
|
+
] = None,
|
|
594
|
+
on_mount: Optional[
|
|
595
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
545
596
|
] = None,
|
|
546
|
-
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
547
|
-
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
548
597
|
on_mouse_down: Optional[
|
|
549
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
598
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
550
599
|
] = None,
|
|
551
600
|
on_mouse_enter: Optional[
|
|
552
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
601
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
553
602
|
] = None,
|
|
554
603
|
on_mouse_leave: Optional[
|
|
555
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
604
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
556
605
|
] = None,
|
|
557
606
|
on_mouse_move: Optional[
|
|
558
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
607
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
559
608
|
] = None,
|
|
560
609
|
on_mouse_out: Optional[
|
|
561
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
610
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
562
611
|
] = None,
|
|
563
612
|
on_mouse_over: Optional[
|
|
564
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
613
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
565
614
|
] = None,
|
|
566
615
|
on_mouse_up: Optional[
|
|
567
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
616
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
617
|
+
] = None,
|
|
618
|
+
on_scroll: Optional[
|
|
619
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
568
620
|
] = None,
|
|
569
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
570
621
|
on_unmount: Optional[
|
|
571
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
622
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
572
623
|
] = None,
|
|
573
624
|
**props,
|
|
574
625
|
) -> "BaseList":
|