reflex 0.7.0a1__py3-none-any.whl → 0.7.0a3__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/web/pages/utils.js.jinja2 +1 -1
- reflex/app.py +6 -8
- reflex/components/base/app_wrap.pyi +16 -16
- reflex/components/base/body.pyi +16 -16
- reflex/components/base/document.pyi +76 -76
- reflex/components/base/error_boundary.pyi +17 -21
- reflex/components/base/fragment.pyi +16 -16
- reflex/components/base/head.pyi +31 -31
- reflex/components/base/link.pyi +31 -31
- reflex/components/base/meta.pyi +61 -61
- reflex/components/base/script.pyi +19 -19
- reflex/components/base/strict_mode.pyi +16 -16
- reflex/components/core/banner.py +95 -19
- reflex/components/core/banner.pyi +91 -91
- reflex/components/core/client_side_routing.pyi +31 -31
- reflex/components/core/clipboard.pyi +17 -20
- reflex/components/core/debounce.pyi +17 -17
- reflex/components/core/foreach.py +5 -0
- reflex/components/core/html.pyi +16 -16
- reflex/components/core/sticky.pyi +61 -61
- reflex/components/core/upload.pyi +80 -88
- reflex/components/datadisplay/code.pyi +31 -31
- reflex/components/datadisplay/dataeditor.pyi +40 -54
- reflex/components/datadisplay/shiki_code_block.pyi +46 -46
- reflex/components/el/element.pyi +16 -16
- reflex/components/el/elements/base.pyi +16 -16
- reflex/components/el/elements/forms.pyi +222 -256
- reflex/components/el/elements/inline.pyi +421 -421
- reflex/components/el/elements/media.pyi +376 -376
- reflex/components/el/elements/metadata.pyi +91 -91
- reflex/components/el/elements/other.pyi +106 -106
- reflex/components/el/elements/scripts.pyi +46 -46
- reflex/components/el/elements/sectioning.pyi +226 -226
- reflex/components/el/elements/tables.pyi +151 -151
- reflex/components/el/elements/typography.pyi +226 -226
- reflex/components/gridjs/datatable.pyi +31 -31
- reflex/components/lucide/icon.pyi +46 -46
- reflex/components/markdown/markdown.pyi +16 -16
- reflex/components/moment/moment.pyi +17 -19
- reflex/components/next/base.pyi +16 -16
- reflex/components/next/image.pyi +18 -18
- reflex/components/next/link.pyi +16 -16
- reflex/components/next/video.pyi +16 -16
- reflex/components/plotly/plotly.pyi +34 -44
- reflex/components/radix/primitives/accordion.pyi +107 -107
- reflex/components/radix/primitives/base.pyi +31 -31
- reflex/components/radix/primitives/drawer.pyi +175 -183
- reflex/components/radix/primitives/form.pyi +160 -172
- reflex/components/radix/primitives/progress.pyi +76 -76
- reflex/components/radix/primitives/slider.pyi +78 -82
- reflex/components/radix/themes/base.pyi +121 -121
- reflex/components/radix/themes/color_mode.pyi +47 -49
- reflex/components/radix/themes/components/alert_dialog.pyi +110 -112
- reflex/components/radix/themes/components/aspect_ratio.pyi +16 -16
- reflex/components/radix/themes/components/avatar.pyi +16 -16
- reflex/components/radix/themes/components/badge.pyi +16 -16
- reflex/components/radix/themes/components/button.pyi +16 -16
- reflex/components/radix/themes/components/callout.pyi +76 -76
- reflex/components/radix/themes/components/card.pyi +16 -16
- reflex/components/radix/themes/components/checkbox.pyi +49 -55
- reflex/components/radix/themes/components/checkbox_cards.pyi +31 -31
- reflex/components/radix/themes/components/checkbox_group.pyi +31 -31
- reflex/components/radix/themes/components/context_menu.pyi +149 -155
- reflex/components/radix/themes/components/data_list.pyi +61 -61
- reflex/components/radix/themes/components/dialog.pyi +113 -117
- reflex/components/radix/themes/components/dropdown_menu.pyi +133 -137
- reflex/components/radix/themes/components/hover_card.pyi +63 -67
- reflex/components/radix/themes/components/icon_button.pyi +16 -16
- reflex/components/radix/themes/components/inset.pyi +16 -16
- reflex/components/radix/themes/components/popover.pyi +68 -70
- reflex/components/radix/themes/components/progress.pyi +16 -16
- reflex/components/radix/themes/components/radio.pyi +16 -16
- reflex/components/radix/themes/components/radio_cards.pyi +32 -34
- reflex/components/radix/themes/components/radio_group.pyi +62 -64
- reflex/components/radix/themes/components/scroll_area.pyi +16 -16
- reflex/components/radix/themes/components/segmented_control.pyi +32 -35
- reflex/components/radix/themes/components/select.py +1 -0
- reflex/components/radix/themes/components/select.pyi +145 -157
- reflex/components/radix/themes/components/separator.pyi +16 -16
- reflex/components/radix/themes/components/skeleton.py +3 -0
- reflex/components/radix/themes/components/skeleton.pyi +16 -16
- reflex/components/radix/themes/components/slider.pyi +22 -28
- reflex/components/radix/themes/components/spinner.pyi +16 -16
- reflex/components/radix/themes/components/switch.pyi +17 -19
- reflex/components/radix/themes/components/table.pyi +106 -106
- reflex/components/radix/themes/components/tabs.pyi +78 -82
- reflex/components/radix/themes/components/text_area.pyi +19 -33
- reflex/components/radix/themes/components/text_field.pyi +52 -80
- reflex/components/radix/themes/components/tooltip.py +3 -0
- reflex/components/radix/themes/components/tooltip.pyi +19 -21
- reflex/components/radix/themes/layout/base.pyi +16 -16
- reflex/components/radix/themes/layout/box.pyi +16 -16
- reflex/components/radix/themes/layout/center.pyi +16 -16
- reflex/components/radix/themes/layout/container.pyi +16 -16
- reflex/components/radix/themes/layout/flex.pyi +16 -16
- reflex/components/radix/themes/layout/grid.pyi +16 -16
- reflex/components/radix/themes/layout/list.pyi +76 -76
- reflex/components/radix/themes/layout/section.pyi +16 -16
- reflex/components/radix/themes/layout/spacer.pyi +16 -16
- reflex/components/radix/themes/layout/stack.pyi +46 -46
- reflex/components/radix/themes/typography/blockquote.pyi +16 -16
- reflex/components/radix/themes/typography/code.pyi +16 -16
- reflex/components/radix/themes/typography/heading.pyi +16 -16
- reflex/components/radix/themes/typography/link.pyi +16 -16
- reflex/components/radix/themes/typography/text.pyi +106 -106
- reflex/components/react_player/audio.pyi +33 -39
- reflex/components/react_player/react_player.pyi +32 -38
- reflex/components/react_player/video.pyi +33 -39
- reflex/components/recharts/cartesian.pyi +282 -282
- reflex/components/recharts/charts.pyi +164 -164
- reflex/components/recharts/general.pyi +92 -92
- reflex/components/recharts/polar.pyi +55 -55
- reflex/components/recharts/recharts.pyi +31 -31
- reflex/components/sonner/toast.pyi +16 -16
- reflex/components/suneditor/editor.pyi +24 -38
- reflex/custom_components/custom_components.py +10 -4
- reflex/event.py +89 -51
- reflex/experimental/layout.pyi +78 -82
- reflex/page.py +2 -2
- reflex/utils/exceptions.py +13 -0
- reflex/utils/format.py +1 -1
- reflex/utils/prerequisites.py +3 -3
- reflex/utils/pyi_generator.py +9 -8
- reflex/vars/base.py +10 -4
- {reflex-0.7.0a1.dist-info → reflex-0.7.0a3.dist-info}/METADATA +1 -1
- {reflex-0.7.0a1.dist-info → reflex-0.7.0a3.dist-info}/RECORD +129 -129
- {reflex-0.7.0a1.dist-info → reflex-0.7.0a3.dist-info}/LICENSE +0 -0
- {reflex-0.7.0a1.dist-info → reflex-0.7.0a3.dist-info}/WHEEL +0 -0
- {reflex-0.7.0a1.dist-info → reflex-0.7.0a3.dist-info}/entry_points.txt +0 -0
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, Optional, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
-
from reflex.event import
|
|
9
|
+
from reflex.event import EventType
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
@@ -26,21 +26,21 @@ class ClientSideRouting(Component):
|
|
|
26
26
|
class_name: Optional[Any] = None,
|
|
27
27
|
autofocus: Optional[bool] = None,
|
|
28
28
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
29
|
-
on_blur: Optional[EventType[
|
|
30
|
-
on_click: Optional[EventType[
|
|
31
|
-
on_context_menu: Optional[EventType[
|
|
32
|
-
on_double_click: Optional[EventType[
|
|
33
|
-
on_focus: Optional[EventType[
|
|
34
|
-
on_mount: Optional[EventType[
|
|
35
|
-
on_mouse_down: Optional[EventType[
|
|
36
|
-
on_mouse_enter: Optional[EventType[
|
|
37
|
-
on_mouse_leave: Optional[EventType[
|
|
38
|
-
on_mouse_move: Optional[EventType[
|
|
39
|
-
on_mouse_out: Optional[EventType[
|
|
40
|
-
on_mouse_over: Optional[EventType[
|
|
41
|
-
on_mouse_up: Optional[EventType[
|
|
42
|
-
on_scroll: Optional[EventType[
|
|
43
|
-
on_unmount: Optional[EventType[
|
|
29
|
+
on_blur: Optional[EventType[()]] = None,
|
|
30
|
+
on_click: Optional[EventType[()]] = None,
|
|
31
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
32
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
33
|
+
on_focus: Optional[EventType[()]] = None,
|
|
34
|
+
on_mount: Optional[EventType[()]] = None,
|
|
35
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
36
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
37
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
38
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
39
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
40
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
41
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
42
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
43
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
44
44
|
**props,
|
|
45
45
|
) -> "ClientSideRouting":
|
|
46
46
|
"""Create the component.
|
|
@@ -75,21 +75,21 @@ class Default404Page(Component):
|
|
|
75
75
|
class_name: Optional[Any] = None,
|
|
76
76
|
autofocus: Optional[bool] = None,
|
|
77
77
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
78
|
-
on_blur: Optional[EventType[
|
|
79
|
-
on_click: Optional[EventType[
|
|
80
|
-
on_context_menu: Optional[EventType[
|
|
81
|
-
on_double_click: Optional[EventType[
|
|
82
|
-
on_focus: Optional[EventType[
|
|
83
|
-
on_mount: Optional[EventType[
|
|
84
|
-
on_mouse_down: Optional[EventType[
|
|
85
|
-
on_mouse_enter: Optional[EventType[
|
|
86
|
-
on_mouse_leave: Optional[EventType[
|
|
87
|
-
on_mouse_move: Optional[EventType[
|
|
88
|
-
on_mouse_out: Optional[EventType[
|
|
89
|
-
on_mouse_over: Optional[EventType[
|
|
90
|
-
on_mouse_up: Optional[EventType[
|
|
91
|
-
on_scroll: Optional[EventType[
|
|
92
|
-
on_unmount: Optional[EventType[
|
|
78
|
+
on_blur: Optional[EventType[()]] = None,
|
|
79
|
+
on_click: Optional[EventType[()]] = None,
|
|
80
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
81
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
82
|
+
on_focus: Optional[EventType[()]] = None,
|
|
83
|
+
on_mount: Optional[EventType[()]] = None,
|
|
84
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
85
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
86
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
87
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
88
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
89
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
90
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
91
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
92
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
93
93
|
**props,
|
|
94
94
|
) -> "Default404Page":
|
|
95
95
|
"""Create the component.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, List, Optional, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.base.fragment import Fragment
|
|
9
|
-
from reflex.event import
|
|
9
|
+
from reflex.event import EventType
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.utils.imports import ImportVar
|
|
12
12
|
from reflex.vars.base import Var
|
|
@@ -27,27 +27,24 @@ class Clipboard(Fragment):
|
|
|
27
27
|
class_name: Optional[Any] = None,
|
|
28
28
|
autofocus: Optional[bool] = None,
|
|
29
29
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
30
|
-
on_blur: Optional[EventType[
|
|
31
|
-
on_click: Optional[EventType[
|
|
32
|
-
on_context_menu: Optional[EventType[
|
|
33
|
-
on_double_click: Optional[EventType[
|
|
34
|
-
on_focus: Optional[EventType[
|
|
35
|
-
on_mount: Optional[EventType[
|
|
36
|
-
on_mouse_down: Optional[EventType[
|
|
37
|
-
on_mouse_enter: Optional[EventType[
|
|
38
|
-
on_mouse_leave: Optional[EventType[
|
|
39
|
-
on_mouse_move: Optional[EventType[
|
|
40
|
-
on_mouse_out: Optional[EventType[
|
|
41
|
-
on_mouse_over: Optional[EventType[
|
|
42
|
-
on_mouse_up: Optional[EventType[
|
|
30
|
+
on_blur: Optional[EventType[()]] = None,
|
|
31
|
+
on_click: Optional[EventType[()]] = None,
|
|
32
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
33
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
34
|
+
on_focus: Optional[EventType[()]] = None,
|
|
35
|
+
on_mount: Optional[EventType[()]] = None,
|
|
36
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
37
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
38
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
39
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
40
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
41
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
42
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
43
43
|
on_paste: Optional[
|
|
44
|
-
Union[
|
|
45
|
-
EventType[[], BASE_STATE],
|
|
46
|
-
EventType[[list[tuple[str, str]]], BASE_STATE],
|
|
47
|
-
]
|
|
44
|
+
Union[EventType[()], EventType[list[tuple[str, str]]]]
|
|
48
45
|
] = None,
|
|
49
|
-
on_scroll: Optional[EventType[
|
|
50
|
-
on_unmount: Optional[EventType[
|
|
46
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
47
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
51
48
|
**props,
|
|
52
49
|
) -> "Clipboard":
|
|
53
50
|
"""Create a Clipboard component.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, Optional, Type, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
-
from reflex.event import
|
|
9
|
+
from reflex.event import EventType
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
@@ -31,22 +31,22 @@ class DebounceInput(Component):
|
|
|
31
31
|
class_name: Optional[Any] = None,
|
|
32
32
|
autofocus: Optional[bool] = None,
|
|
33
33
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
34
|
-
on_blur: Optional[EventType[
|
|
35
|
-
on_change: Optional[EventType[
|
|
36
|
-
on_click: Optional[EventType[
|
|
37
|
-
on_context_menu: Optional[EventType[
|
|
38
|
-
on_double_click: Optional[EventType[
|
|
39
|
-
on_focus: Optional[EventType[
|
|
40
|
-
on_mount: Optional[EventType[
|
|
41
|
-
on_mouse_down: Optional[EventType[
|
|
42
|
-
on_mouse_enter: Optional[EventType[
|
|
43
|
-
on_mouse_leave: Optional[EventType[
|
|
44
|
-
on_mouse_move: Optional[EventType[
|
|
45
|
-
on_mouse_out: Optional[EventType[
|
|
46
|
-
on_mouse_over: Optional[EventType[
|
|
47
|
-
on_mouse_up: Optional[EventType[
|
|
48
|
-
on_scroll: Optional[EventType[
|
|
49
|
-
on_unmount: Optional[EventType[
|
|
34
|
+
on_blur: Optional[EventType[()]] = None,
|
|
35
|
+
on_change: Optional[EventType[()]] = None,
|
|
36
|
+
on_click: Optional[EventType[()]] = None,
|
|
37
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
38
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
39
|
+
on_focus: Optional[EventType[()]] = None,
|
|
40
|
+
on_mount: Optional[EventType[()]] = None,
|
|
41
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
42
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
43
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
44
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
45
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
46
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
47
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
48
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
49
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
50
50
|
**props,
|
|
51
51
|
) -> "DebounceInput":
|
|
52
52
|
"""Create a DebounceInput component.
|
|
@@ -54,6 +54,8 @@ class Foreach(Component):
|
|
|
54
54
|
TypeError: If the render function is a ComponentState.
|
|
55
55
|
UntypedVarError: If the iterable is of type Any without a type annotation.
|
|
56
56
|
"""
|
|
57
|
+
from reflex.vars.object import ObjectVar
|
|
58
|
+
|
|
57
59
|
iterable = LiteralVar.create(iterable)
|
|
58
60
|
if iterable._var_type == Any:
|
|
59
61
|
raise ForeachVarError(
|
|
@@ -70,6 +72,9 @@ class Foreach(Component):
|
|
|
70
72
|
"Using a ComponentState as `render_fn` inside `rx.foreach` is not supported yet."
|
|
71
73
|
)
|
|
72
74
|
|
|
75
|
+
if isinstance(iterable, ObjectVar):
|
|
76
|
+
iterable = iterable.entries()
|
|
77
|
+
|
|
73
78
|
component = cls(
|
|
74
79
|
iterable=iterable,
|
|
75
80
|
render_fn=render_fn,
|
reflex/components/core/html.pyi
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, Optional, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.el.elements.typography import Div
|
|
9
|
-
from reflex.event import
|
|
9
|
+
from reflex.event import EventType
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
@@ -49,21 +49,21 @@ class Html(Div):
|
|
|
49
49
|
class_name: Optional[Any] = None,
|
|
50
50
|
autofocus: Optional[bool] = None,
|
|
51
51
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
52
|
-
on_blur: Optional[EventType[
|
|
53
|
-
on_click: Optional[EventType[
|
|
54
|
-
on_context_menu: Optional[EventType[
|
|
55
|
-
on_double_click: Optional[EventType[
|
|
56
|
-
on_focus: Optional[EventType[
|
|
57
|
-
on_mount: Optional[EventType[
|
|
58
|
-
on_mouse_down: Optional[EventType[
|
|
59
|
-
on_mouse_enter: Optional[EventType[
|
|
60
|
-
on_mouse_leave: Optional[EventType[
|
|
61
|
-
on_mouse_move: Optional[EventType[
|
|
62
|
-
on_mouse_out: Optional[EventType[
|
|
63
|
-
on_mouse_over: Optional[EventType[
|
|
64
|
-
on_mouse_up: Optional[EventType[
|
|
65
|
-
on_scroll: Optional[EventType[
|
|
66
|
-
on_unmount: Optional[EventType[
|
|
52
|
+
on_blur: Optional[EventType[()]] = None,
|
|
53
|
+
on_click: Optional[EventType[()]] = None,
|
|
54
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
55
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
56
|
+
on_focus: Optional[EventType[()]] = None,
|
|
57
|
+
on_mount: Optional[EventType[()]] = None,
|
|
58
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
59
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
60
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
61
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
62
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
63
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
64
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
65
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
66
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
67
67
|
**props,
|
|
68
68
|
) -> "Html":
|
|
69
69
|
"""Create a html component.
|
|
@@ -10,7 +10,7 @@ from reflex.components.core.breakpoints import Breakpoints
|
|
|
10
10
|
from reflex.components.el.elements.inline import A
|
|
11
11
|
from reflex.components.el.elements.media import Svg
|
|
12
12
|
from reflex.components.radix.themes.typography.text import Text
|
|
13
|
-
from reflex.event import
|
|
13
|
+
from reflex.event import EventType
|
|
14
14
|
from reflex.style import Style
|
|
15
15
|
from reflex.vars.base import Var
|
|
16
16
|
|
|
@@ -53,21 +53,21 @@ class StickyLogo(Svg):
|
|
|
53
53
|
class_name: Optional[Any] = None,
|
|
54
54
|
autofocus: Optional[bool] = None,
|
|
55
55
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
56
|
-
on_blur: Optional[EventType[
|
|
57
|
-
on_click: Optional[EventType[
|
|
58
|
-
on_context_menu: Optional[EventType[
|
|
59
|
-
on_double_click: Optional[EventType[
|
|
60
|
-
on_focus: Optional[EventType[
|
|
61
|
-
on_mount: Optional[EventType[
|
|
62
|
-
on_mouse_down: Optional[EventType[
|
|
63
|
-
on_mouse_enter: Optional[EventType[
|
|
64
|
-
on_mouse_leave: Optional[EventType[
|
|
65
|
-
on_mouse_move: Optional[EventType[
|
|
66
|
-
on_mouse_out: Optional[EventType[
|
|
67
|
-
on_mouse_over: Optional[EventType[
|
|
68
|
-
on_mouse_up: Optional[EventType[
|
|
69
|
-
on_scroll: Optional[EventType[
|
|
70
|
-
on_unmount: Optional[EventType[
|
|
56
|
+
on_blur: Optional[EventType[()]] = None,
|
|
57
|
+
on_click: Optional[EventType[()]] = None,
|
|
58
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
59
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
60
|
+
on_focus: Optional[EventType[()]] = None,
|
|
61
|
+
on_mount: Optional[EventType[()]] = None,
|
|
62
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
63
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
64
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
65
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
66
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
67
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
68
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
69
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
70
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
71
71
|
**props,
|
|
72
72
|
) -> "StickyLogo":
|
|
73
73
|
"""Create the simple Reflex logo SVG.
|
|
@@ -275,21 +275,21 @@ class StickyLabel(Text):
|
|
|
275
275
|
class_name: Optional[Any] = None,
|
|
276
276
|
autofocus: Optional[bool] = None,
|
|
277
277
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
278
|
-
on_blur: Optional[EventType[
|
|
279
|
-
on_click: Optional[EventType[
|
|
280
|
-
on_context_menu: Optional[EventType[
|
|
281
|
-
on_double_click: Optional[EventType[
|
|
282
|
-
on_focus: Optional[EventType[
|
|
283
|
-
on_mount: Optional[EventType[
|
|
284
|
-
on_mouse_down: Optional[EventType[
|
|
285
|
-
on_mouse_enter: Optional[EventType[
|
|
286
|
-
on_mouse_leave: Optional[EventType[
|
|
287
|
-
on_mouse_move: Optional[EventType[
|
|
288
|
-
on_mouse_out: Optional[EventType[
|
|
289
|
-
on_mouse_over: Optional[EventType[
|
|
290
|
-
on_mouse_up: Optional[EventType[
|
|
291
|
-
on_scroll: Optional[EventType[
|
|
292
|
-
on_unmount: Optional[EventType[
|
|
278
|
+
on_blur: Optional[EventType[()]] = None,
|
|
279
|
+
on_click: Optional[EventType[()]] = None,
|
|
280
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
281
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
282
|
+
on_focus: Optional[EventType[()]] = None,
|
|
283
|
+
on_mount: Optional[EventType[()]] = None,
|
|
284
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
285
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
286
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
287
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
288
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
289
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
290
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
291
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
292
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
293
293
|
**props,
|
|
294
294
|
) -> "StickyLabel":
|
|
295
295
|
"""Create the sticky label.
|
|
@@ -348,21 +348,21 @@ class StickyBadge(A):
|
|
|
348
348
|
class_name: Optional[Any] = None,
|
|
349
349
|
autofocus: Optional[bool] = None,
|
|
350
350
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
351
|
-
on_blur: Optional[EventType[
|
|
352
|
-
on_click: Optional[EventType[
|
|
353
|
-
on_context_menu: Optional[EventType[
|
|
354
|
-
on_double_click: Optional[EventType[
|
|
355
|
-
on_focus: Optional[EventType[
|
|
356
|
-
on_mount: Optional[EventType[
|
|
357
|
-
on_mouse_down: Optional[EventType[
|
|
358
|
-
on_mouse_enter: Optional[EventType[
|
|
359
|
-
on_mouse_leave: Optional[EventType[
|
|
360
|
-
on_mouse_move: Optional[EventType[
|
|
361
|
-
on_mouse_out: Optional[EventType[
|
|
362
|
-
on_mouse_over: Optional[EventType[
|
|
363
|
-
on_mouse_up: Optional[EventType[
|
|
364
|
-
on_scroll: Optional[EventType[
|
|
365
|
-
on_unmount: Optional[EventType[
|
|
351
|
+
on_blur: Optional[EventType[()]] = None,
|
|
352
|
+
on_click: Optional[EventType[()]] = None,
|
|
353
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
354
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
355
|
+
on_focus: Optional[EventType[()]] = None,
|
|
356
|
+
on_mount: Optional[EventType[()]] = None,
|
|
357
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
358
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
359
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
360
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
361
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
362
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
363
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
364
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
365
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
366
366
|
**props,
|
|
367
367
|
) -> "StickyBadge":
|
|
368
368
|
"""Create the sticky badge.
|
|
@@ -422,21 +422,21 @@ class StickyNamespace(ComponentNamespace):
|
|
|
422
422
|
class_name: Optional[Any] = None,
|
|
423
423
|
autofocus: Optional[bool] = None,
|
|
424
424
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
425
|
-
on_blur: Optional[EventType[
|
|
426
|
-
on_click: Optional[EventType[
|
|
427
|
-
on_context_menu: Optional[EventType[
|
|
428
|
-
on_double_click: Optional[EventType[
|
|
429
|
-
on_focus: Optional[EventType[
|
|
430
|
-
on_mount: Optional[EventType[
|
|
431
|
-
on_mouse_down: Optional[EventType[
|
|
432
|
-
on_mouse_enter: Optional[EventType[
|
|
433
|
-
on_mouse_leave: Optional[EventType[
|
|
434
|
-
on_mouse_move: Optional[EventType[
|
|
435
|
-
on_mouse_out: Optional[EventType[
|
|
436
|
-
on_mouse_over: Optional[EventType[
|
|
437
|
-
on_mouse_up: Optional[EventType[
|
|
438
|
-
on_scroll: Optional[EventType[
|
|
439
|
-
on_unmount: Optional[EventType[
|
|
425
|
+
on_blur: Optional[EventType[()]] = None,
|
|
426
|
+
on_click: Optional[EventType[()]] = None,
|
|
427
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
428
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
429
|
+
on_focus: Optional[EventType[()]] = None,
|
|
430
|
+
on_mount: Optional[EventType[()]] = None,
|
|
431
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
432
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
433
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
434
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
435
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
436
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
437
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
438
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
439
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
440
440
|
**props,
|
|
441
441
|
) -> "StickyBadge":
|
|
442
442
|
"""Create the sticky badge.
|
|
@@ -9,7 +9,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union, overload
|
|
|
9
9
|
from reflex.components.base.fragment import Fragment
|
|
10
10
|
from reflex.components.component import Component, ComponentNamespace, MemoizationLeaf
|
|
11
11
|
from reflex.constants import Dirs
|
|
12
|
-
from reflex.event import
|
|
12
|
+
from reflex.event import CallableEventSpec, EventSpec, EventType
|
|
13
13
|
from reflex.style import Style
|
|
14
14
|
from reflex.utils.imports import ImportVar
|
|
15
15
|
from reflex.vars import VarData
|
|
@@ -51,21 +51,21 @@ class UploadFilesProvider(Component):
|
|
|
51
51
|
class_name: Optional[Any] = None,
|
|
52
52
|
autofocus: Optional[bool] = None,
|
|
53
53
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
54
|
-
on_blur: Optional[EventType[
|
|
55
|
-
on_click: Optional[EventType[
|
|
56
|
-
on_context_menu: Optional[EventType[
|
|
57
|
-
on_double_click: Optional[EventType[
|
|
58
|
-
on_focus: Optional[EventType[
|
|
59
|
-
on_mount: Optional[EventType[
|
|
60
|
-
on_mouse_down: Optional[EventType[
|
|
61
|
-
on_mouse_enter: Optional[EventType[
|
|
62
|
-
on_mouse_leave: Optional[EventType[
|
|
63
|
-
on_mouse_move: Optional[EventType[
|
|
64
|
-
on_mouse_out: Optional[EventType[
|
|
65
|
-
on_mouse_over: Optional[EventType[
|
|
66
|
-
on_mouse_up: Optional[EventType[
|
|
67
|
-
on_scroll: Optional[EventType[
|
|
68
|
-
on_unmount: Optional[EventType[
|
|
54
|
+
on_blur: Optional[EventType[()]] = None,
|
|
55
|
+
on_click: Optional[EventType[()]] = None,
|
|
56
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
57
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
58
|
+
on_focus: Optional[EventType[()]] = None,
|
|
59
|
+
on_mount: Optional[EventType[()]] = None,
|
|
60
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
61
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
62
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
63
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
64
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
65
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
66
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
67
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
68
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
69
69
|
**props,
|
|
70
70
|
) -> "UploadFilesProvider":
|
|
71
71
|
"""Create the component.
|
|
@@ -97,24 +97,22 @@ class GhostUpload(Fragment):
|
|
|
97
97
|
class_name: Optional[Any] = None,
|
|
98
98
|
autofocus: Optional[bool] = None,
|
|
99
99
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
100
|
-
on_blur: Optional[EventType[
|
|
101
|
-
on_click: Optional[EventType[
|
|
102
|
-
on_context_menu: Optional[EventType[
|
|
103
|
-
on_double_click: Optional[EventType[
|
|
104
|
-
on_drop: Optional[
|
|
105
|
-
|
|
106
|
-
] = None,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
117
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
100
|
+
on_blur: Optional[EventType[()]] = None,
|
|
101
|
+
on_click: Optional[EventType[()]] = None,
|
|
102
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
103
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
104
|
+
on_drop: Optional[Union[EventType[()], EventType[Any]]] = None,
|
|
105
|
+
on_focus: Optional[EventType[()]] = None,
|
|
106
|
+
on_mount: Optional[EventType[()]] = None,
|
|
107
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
108
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
109
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
110
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
111
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
112
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
113
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
114
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
115
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
118
116
|
**props,
|
|
119
117
|
) -> "GhostUpload":
|
|
120
118
|
"""Create the component.
|
|
@@ -158,24 +156,22 @@ class Upload(MemoizationLeaf):
|
|
|
158
156
|
class_name: Optional[Any] = None,
|
|
159
157
|
autofocus: Optional[bool] = None,
|
|
160
158
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
161
|
-
on_blur: Optional[EventType[
|
|
162
|
-
on_click: Optional[EventType[
|
|
163
|
-
on_context_menu: Optional[EventType[
|
|
164
|
-
on_double_click: Optional[EventType[
|
|
165
|
-
on_drop: Optional[
|
|
166
|
-
|
|
167
|
-
] = None,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
178
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
159
|
+
on_blur: Optional[EventType[()]] = None,
|
|
160
|
+
on_click: Optional[EventType[()]] = None,
|
|
161
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
162
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
163
|
+
on_drop: Optional[Union[EventType[()], EventType[Any]]] = None,
|
|
164
|
+
on_focus: Optional[EventType[()]] = None,
|
|
165
|
+
on_mount: Optional[EventType[()]] = None,
|
|
166
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
167
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
168
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
169
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
170
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
171
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
172
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
173
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
174
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
179
175
|
**props,
|
|
180
176
|
) -> "Upload":
|
|
181
177
|
"""Create an upload component.
|
|
@@ -226,24 +222,22 @@ class StyledUpload(Upload):
|
|
|
226
222
|
class_name: Optional[Any] = None,
|
|
227
223
|
autofocus: Optional[bool] = None,
|
|
228
224
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
229
|
-
on_blur: Optional[EventType[
|
|
230
|
-
on_click: Optional[EventType[
|
|
231
|
-
on_context_menu: Optional[EventType[
|
|
232
|
-
on_double_click: Optional[EventType[
|
|
233
|
-
on_drop: Optional[
|
|
234
|
-
|
|
235
|
-
] = None,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
246
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
225
|
+
on_blur: Optional[EventType[()]] = None,
|
|
226
|
+
on_click: Optional[EventType[()]] = None,
|
|
227
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
228
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
229
|
+
on_drop: Optional[Union[EventType[()], EventType[Any]]] = None,
|
|
230
|
+
on_focus: Optional[EventType[()]] = None,
|
|
231
|
+
on_mount: Optional[EventType[()]] = None,
|
|
232
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
233
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
234
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
235
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
236
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
237
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
238
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
239
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
240
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
247
241
|
**props,
|
|
248
242
|
) -> "StyledUpload":
|
|
249
243
|
"""Create the styled upload component.
|
|
@@ -294,24 +288,22 @@ class UploadNamespace(ComponentNamespace):
|
|
|
294
288
|
class_name: Optional[Any] = None,
|
|
295
289
|
autofocus: Optional[bool] = None,
|
|
296
290
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
297
|
-
on_blur: Optional[EventType[
|
|
298
|
-
on_click: Optional[EventType[
|
|
299
|
-
on_context_menu: Optional[EventType[
|
|
300
|
-
on_double_click: Optional[EventType[
|
|
301
|
-
on_drop: Optional[
|
|
302
|
-
|
|
303
|
-
] = None,
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
314
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
291
|
+
on_blur: Optional[EventType[()]] = None,
|
|
292
|
+
on_click: Optional[EventType[()]] = None,
|
|
293
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
294
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
295
|
+
on_drop: Optional[Union[EventType[()], EventType[Any]]] = None,
|
|
296
|
+
on_focus: Optional[EventType[()]] = None,
|
|
297
|
+
on_mount: Optional[EventType[()]] = None,
|
|
298
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
299
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
300
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
301
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
302
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
303
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
304
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
305
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
306
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
315
307
|
**props,
|
|
316
308
|
) -> "StyledUpload":
|
|
317
309
|
"""Create the styled upload component.
|