reflex 0.6.8a1__py3-none-any.whl → 0.7.0__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 +1 -1
- reflex/.templates/jinja/web/pages/_app.js.jinja2 +7 -7
- reflex/.templates/jinja/web/pages/utils.js.jinja2 +3 -3
- reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +1 -4
- reflex/.templates/web/utils/state.js +65 -36
- reflex/__init__.py +4 -17
- reflex/__init__.pyi +1 -2
- reflex/app.py +286 -135
- reflex/app_mixins/lifespan.py +9 -9
- reflex/app_mixins/middleware.py +6 -6
- reflex/app_module_for_backend.py +3 -7
- reflex/base.py +7 -7
- reflex/compiler/compiler.py +8 -0
- reflex/compiler/utils.py +57 -18
- reflex/components/base/app_wrap.pyi +16 -16
- reflex/components/base/bare.py +1 -1
- reflex/components/base/body.pyi +16 -16
- reflex/components/base/document.pyi +76 -76
- reflex/components/base/error_boundary.py +2 -1
- reflex/components/base/error_boundary.pyi +19 -22
- 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.py +2 -2
- reflex/components/base/meta.pyi +61 -61
- reflex/components/base/script.pyi +19 -19
- reflex/components/base/strict_mode.py +10 -0
- reflex/components/base/strict_mode.pyi +57 -0
- reflex/components/component.py +38 -77
- reflex/components/core/banner.py +159 -4
- reflex/components/core/banner.pyi +162 -76
- reflex/components/core/breakpoints.py +3 -1
- reflex/components/core/client_side_routing.py +1 -1
- reflex/components/core/client_side_routing.pyi +32 -32
- reflex/components/core/clipboard.pyi +17 -20
- reflex/components/core/cond.py +9 -10
- reflex/components/core/debounce.py +1 -1
- reflex/components/core/debounce.pyi +17 -17
- reflex/components/core/foreach.py +28 -3
- reflex/components/core/html.py +1 -1
- reflex/components/core/html.pyi +16 -16
- reflex/components/core/match.py +5 -5
- reflex/components/core/sticky.py +134 -0
- reflex/components/core/sticky.pyi +449 -0
- reflex/components/core/upload.py +2 -2
- reflex/components/core/upload.pyi +80 -88
- reflex/components/datadisplay/code.py +5 -14
- reflex/components/datadisplay/code.pyi +31 -31
- reflex/components/datadisplay/dataeditor.py +7 -4
- reflex/components/datadisplay/dataeditor.pyi +40 -54
- reflex/components/datadisplay/logo.py +13 -8
- reflex/components/datadisplay/shiki_code_block.py +14 -9
- reflex/components/datadisplay/shiki_code_block.pyi +46 -46
- reflex/components/dynamic.py +22 -3
- reflex/components/el/constants/reflex.py +1 -1
- reflex/components/el/element.py +1 -1
- reflex/components/el/element.pyi +16 -16
- reflex/components/el/elements/base.pyi +16 -16
- reflex/components/el/elements/forms.py +4 -4
- reflex/components/el/elements/forms.pyi +224 -258
- 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.py +46 -8
- reflex/components/lucide/icon.pyi +85 -31
- reflex/components/markdown/markdown.py +10 -8
- reflex/components/markdown/markdown.pyi +16 -16
- reflex/components/moment/moment.py +2 -2
- reflex/components/moment/moment.pyi +17 -19
- reflex/components/next/base.pyi +16 -16
- reflex/components/next/image.py +16 -4
- reflex/components/next/image.pyi +22 -20
- reflex/components/next/link.py +1 -1
- reflex/components/next/link.pyi +16 -16
- reflex/components/next/video.pyi +16 -16
- reflex/components/plotly/__init__.py +29 -2
- reflex/components/plotly/plotly.py +240 -5
- reflex/components/plotly/plotly.pyi +799 -44
- reflex/components/props.py +3 -3
- reflex/components/radix/__init__.pyi +1 -1
- reflex/components/radix/primitives/accordion.py +9 -5
- reflex/components/radix/primitives/accordion.pyi +110 -108
- reflex/components/radix/primitives/base.pyi +31 -31
- reflex/components/radix/primitives/drawer.py +5 -2
- reflex/components/radix/primitives/drawer.pyi +179 -187
- reflex/components/radix/primitives/form.pyi +160 -172
- reflex/components/radix/primitives/progress.py +1 -1
- reflex/components/radix/primitives/progress.pyi +76 -76
- reflex/components/radix/primitives/slider.py +1 -1
- reflex/components/radix/primitives/slider.pyi +78 -82
- reflex/components/radix/themes/base.pyi +121 -121
- reflex/components/radix/themes/color_mode.py +11 -9
- reflex/components/radix/themes/color_mode.pyi +47 -49
- reflex/components/radix/themes/components/alert_dialog.py +3 -0
- 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.py +1 -1
- reflex/components/radix/themes/components/card.pyi +17 -17
- 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.py +5 -0
- 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.py +3 -0
- reflex/components/radix/themes/components/dialog.pyi +113 -117
- reflex/components/radix/themes/components/dropdown_menu.py +5 -0
- reflex/components/radix/themes/components/dropdown_menu.pyi +133 -137
- reflex/components/radix/themes/components/hover_card.py +3 -0
- reflex/components/radix/themes/components/hover_card.pyi +63 -67
- reflex/components/radix/themes/components/icon_button.py +2 -2
- reflex/components/radix/themes/components/icon_button.pyi +17 -16
- reflex/components/radix/themes/components/inset.pyi +16 -16
- reflex/components/radix/themes/components/popover.py +3 -0
- 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.py +2 -0
- reflex/components/radix/themes/components/radio_cards.pyi +32 -34
- reflex/components/radix/themes/components/radio_group.py +1 -1
- 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 +4 -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.py +3 -0
- reflex/components/radix/themes/components/tabs.pyi +78 -82
- reflex/components/radix/themes/components/text_area.py +12 -0
- reflex/components/radix/themes/components/text_area.pyi +21 -33
- reflex/components/radix/themes/components/text_field.py +1 -1
- reflex/components/radix/themes/components/text_field.pyi +52 -80
- reflex/components/radix/themes/components/tooltip.py +6 -1
- reflex/components/radix/themes/components/tooltip.pyi +20 -21
- reflex/components/radix/themes/layout/__init__.pyi +1 -1
- 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.py +2 -2
- 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.py +2 -2
- 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.py +1 -1
- reflex/components/radix/themes/typography/link.pyi +16 -16
- reflex/components/radix/themes/typography/text.py +2 -2
- reflex/components/radix/themes/typography/text.pyi +106 -106
- reflex/components/react_player/audio.pyi +33 -39
- reflex/components/react_player/react_player.py +1 -1
- reflex/components/react_player/react_player.pyi +32 -38
- reflex/components/react_player/video.pyi +33 -39
- reflex/components/recharts/__init__.py +2 -0
- reflex/components/recharts/__init__.pyi +2 -0
- reflex/components/recharts/cartesian.pyi +282 -282
- reflex/components/recharts/charts.py +15 -15
- reflex/components/recharts/charts.pyi +164 -164
- reflex/components/recharts/general.py +19 -4
- reflex/components/recharts/general.pyi +132 -81
- reflex/components/recharts/polar.py +2 -2
- reflex/components/recharts/polar.pyi +55 -55
- reflex/components/recharts/recharts.py +4 -4
- reflex/components/recharts/recharts.pyi +31 -31
- reflex/components/sonner/toast.py +15 -13
- reflex/components/sonner/toast.pyi +22 -22
- reflex/components/suneditor/editor.py +6 -4
- reflex/components/suneditor/editor.pyi +26 -40
- reflex/components/tags/iter_tag.py +3 -3
- reflex/components/tags/tag.py +25 -3
- reflex/config.py +48 -20
- reflex/constants/__init__.py +1 -0
- reflex/constants/base.py +4 -1
- reflex/constants/compiler.py +5 -2
- reflex/constants/config.py +8 -1
- reflex/constants/installer.py +9 -9
- reflex/constants/style.py +1 -1
- reflex/custom_components/custom_components.py +18 -10
- reflex/event.py +228 -233
- reflex/experimental/__init__.py +19 -11
- reflex/experimental/client_state.py +53 -28
- reflex/experimental/hooks.py +5 -5
- reflex/experimental/layout.py +8 -5
- reflex/experimental/layout.pyi +79 -83
- reflex/experimental/misc.py +3 -3
- reflex/istate/wrappers.py +1 -1
- reflex/middleware/hydrate_middleware.py +2 -2
- reflex/model.py +11 -6
- reflex/page.py +5 -5
- reflex/reflex.py +104 -26
- reflex/route.py +1 -1
- reflex/state.py +358 -401
- reflex/style.py +27 -3
- reflex/testing.py +34 -39
- reflex/utils/build.py +6 -2
- reflex/utils/codespaces.py +1 -4
- reflex/utils/compat.py +6 -5
- reflex/utils/console.py +71 -21
- reflex/utils/exceptions.py +89 -26
- reflex/utils/exec.py +69 -74
- reflex/utils/export.py +6 -1
- reflex/utils/format.py +8 -40
- reflex/utils/imports.py +5 -2
- reflex/utils/lazy_loader.py +7 -1
- reflex/utils/path_ops.py +74 -14
- reflex/utils/prerequisites.py +345 -68
- reflex/utils/processes.py +45 -32
- reflex/utils/pyi_generator.py +39 -33
- reflex/utils/registry.py +4 -4
- reflex/utils/serializers.py +1 -1
- reflex/utils/telemetry.py +5 -4
- reflex/utils/types.py +42 -18
- reflex/vars/base.py +695 -330
- reflex/vars/datetime.py +6 -7
- reflex/vars/dep_tracking.py +344 -0
- reflex/vars/function.py +11 -5
- reflex/vars/number.py +31 -43
- reflex/vars/object.py +74 -64
- reflex/vars/sequence.py +79 -67
- {reflex-0.6.8a1.dist-info → reflex-0.7.0.dist-info}/METADATA +7 -10
- reflex-0.7.0.dist-info/RECORD +401 -0
- {reflex-0.6.8a1.dist-info → reflex-0.7.0.dist-info}/WHEEL +1 -1
- reflex/experimental/assets.py +0 -37
- reflex/proxy.py +0 -119
- reflex-0.6.8a1.dist-info/RECORD +0 -398
- {reflex-0.6.8a1.dist-info → reflex-0.7.0.dist-info}/LICENSE +0 -0
- {reflex-0.6.8a1.dist-info → reflex-0.7.0.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.el import elements
|
|
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
|
|
|
@@ -48,21 +48,21 @@ class Box(elements.Div, RadixThemesComponent):
|
|
|
48
48
|
class_name: Optional[Any] = None,
|
|
49
49
|
autofocus: Optional[bool] = None,
|
|
50
50
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
51
|
-
on_blur: Optional[EventType[
|
|
52
|
-
on_click: Optional[EventType[
|
|
53
|
-
on_context_menu: Optional[EventType[
|
|
54
|
-
on_double_click: Optional[EventType[
|
|
55
|
-
on_focus: Optional[EventType[
|
|
56
|
-
on_mount: Optional[EventType[
|
|
57
|
-
on_mouse_down: Optional[EventType[
|
|
58
|
-
on_mouse_enter: Optional[EventType[
|
|
59
|
-
on_mouse_leave: Optional[EventType[
|
|
60
|
-
on_mouse_move: Optional[EventType[
|
|
61
|
-
on_mouse_out: Optional[EventType[
|
|
62
|
-
on_mouse_over: Optional[EventType[
|
|
63
|
-
on_mouse_up: Optional[EventType[
|
|
64
|
-
on_scroll: Optional[EventType[
|
|
65
|
-
on_unmount: Optional[EventType[
|
|
51
|
+
on_blur: Optional[EventType[()]] = None,
|
|
52
|
+
on_click: Optional[EventType[()]] = None,
|
|
53
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
54
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
55
|
+
on_focus: Optional[EventType[()]] = None,
|
|
56
|
+
on_mount: Optional[EventType[()]] = None,
|
|
57
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
58
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
59
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
60
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
61
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
62
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
63
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
64
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
65
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
66
66
|
**props,
|
|
67
67
|
) -> "Box":
|
|
68
68
|
"""Create a new component instance.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.core.breakpoints import Breakpoints
|
|
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
|
|
|
@@ -125,21 +125,21 @@ class Center(Flex):
|
|
|
125
125
|
class_name: Optional[Any] = None,
|
|
126
126
|
autofocus: Optional[bool] = None,
|
|
127
127
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
128
|
-
on_blur: Optional[EventType[
|
|
129
|
-
on_click: Optional[EventType[
|
|
130
|
-
on_context_menu: Optional[EventType[
|
|
131
|
-
on_double_click: Optional[EventType[
|
|
132
|
-
on_focus: Optional[EventType[
|
|
133
|
-
on_mount: Optional[EventType[
|
|
134
|
-
on_mouse_down: Optional[EventType[
|
|
135
|
-
on_mouse_enter: Optional[EventType[
|
|
136
|
-
on_mouse_leave: Optional[EventType[
|
|
137
|
-
on_mouse_move: Optional[EventType[
|
|
138
|
-
on_mouse_out: Optional[EventType[
|
|
139
|
-
on_mouse_over: Optional[EventType[
|
|
140
|
-
on_mouse_up: Optional[EventType[
|
|
141
|
-
on_scroll: Optional[EventType[
|
|
142
|
-
on_unmount: Optional[EventType[
|
|
128
|
+
on_blur: Optional[EventType[()]] = None,
|
|
129
|
+
on_click: Optional[EventType[()]] = None,
|
|
130
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
131
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
132
|
+
on_focus: Optional[EventType[()]] = None,
|
|
133
|
+
on_mount: Optional[EventType[()]] = None,
|
|
134
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
135
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
136
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
137
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
138
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
139
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
140
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
141
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
142
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
143
143
|
**props,
|
|
144
144
|
) -> "Center":
|
|
145
145
|
"""Create a new component instance.
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
7
7
|
|
|
8
8
|
from reflex.components.core.breakpoints import Breakpoints
|
|
9
9
|
from reflex.components.el import elements
|
|
10
|
-
from reflex.event import
|
|
10
|
+
from reflex.event import EventType
|
|
11
11
|
from reflex.style import Style
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
@@ -65,21 +65,21 @@ class Container(elements.Div, RadixThemesComponent):
|
|
|
65
65
|
class_name: Optional[Any] = None,
|
|
66
66
|
autofocus: Optional[bool] = None,
|
|
67
67
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
68
|
-
on_blur: Optional[EventType[
|
|
69
|
-
on_click: Optional[EventType[
|
|
70
|
-
on_context_menu: Optional[EventType[
|
|
71
|
-
on_double_click: Optional[EventType[
|
|
72
|
-
on_focus: Optional[EventType[
|
|
73
|
-
on_mount: Optional[EventType[
|
|
74
|
-
on_mouse_down: Optional[EventType[
|
|
75
|
-
on_mouse_enter: Optional[EventType[
|
|
76
|
-
on_mouse_leave: Optional[EventType[
|
|
77
|
-
on_mouse_move: Optional[EventType[
|
|
78
|
-
on_mouse_out: Optional[EventType[
|
|
79
|
-
on_mouse_over: Optional[EventType[
|
|
80
|
-
on_mouse_up: Optional[EventType[
|
|
81
|
-
on_scroll: Optional[EventType[
|
|
82
|
-
on_unmount: Optional[EventType[
|
|
68
|
+
on_blur: Optional[EventType[()]] = None,
|
|
69
|
+
on_click: Optional[EventType[()]] = None,
|
|
70
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
71
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
72
|
+
on_focus: Optional[EventType[()]] = None,
|
|
73
|
+
on_mount: Optional[EventType[()]] = None,
|
|
74
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
75
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
76
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
77
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
78
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
79
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
80
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
81
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
82
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
83
83
|
**props,
|
|
84
84
|
) -> "Container":
|
|
85
85
|
"""Create the container component.
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
7
7
|
|
|
8
8
|
from reflex.components.core.breakpoints import Breakpoints
|
|
9
9
|
from reflex.components.el import elements
|
|
10
|
-
from reflex.event import
|
|
10
|
+
from reflex.event import EventType
|
|
11
11
|
from reflex.style import Style
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
@@ -128,21 +128,21 @@ class Flex(elements.Div, RadixThemesComponent):
|
|
|
128
128
|
class_name: Optional[Any] = None,
|
|
129
129
|
autofocus: Optional[bool] = None,
|
|
130
130
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
131
|
-
on_blur: Optional[EventType[
|
|
132
|
-
on_click: Optional[EventType[
|
|
133
|
-
on_context_menu: Optional[EventType[
|
|
134
|
-
on_double_click: Optional[EventType[
|
|
135
|
-
on_focus: Optional[EventType[
|
|
136
|
-
on_mount: Optional[EventType[
|
|
137
|
-
on_mouse_down: Optional[EventType[
|
|
138
|
-
on_mouse_enter: Optional[EventType[
|
|
139
|
-
on_mouse_leave: Optional[EventType[
|
|
140
|
-
on_mouse_move: Optional[EventType[
|
|
141
|
-
on_mouse_out: Optional[EventType[
|
|
142
|
-
on_mouse_over: Optional[EventType[
|
|
143
|
-
on_mouse_up: Optional[EventType[
|
|
144
|
-
on_scroll: Optional[EventType[
|
|
145
|
-
on_unmount: Optional[EventType[
|
|
131
|
+
on_blur: Optional[EventType[()]] = None,
|
|
132
|
+
on_click: Optional[EventType[()]] = None,
|
|
133
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
134
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
135
|
+
on_focus: Optional[EventType[()]] = None,
|
|
136
|
+
on_mount: Optional[EventType[()]] = None,
|
|
137
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
138
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
139
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
140
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
141
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
142
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
143
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
144
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
145
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
146
146
|
**props,
|
|
147
147
|
) -> "Flex":
|
|
148
148
|
"""Create a new component instance.
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
7
7
|
|
|
8
8
|
from reflex.components.core.breakpoints import Breakpoints
|
|
9
9
|
from reflex.components.el import elements
|
|
10
|
-
from reflex.event import
|
|
10
|
+
from reflex.event import EventType
|
|
11
11
|
from reflex.style import Style
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
@@ -157,21 +157,21 @@ class Grid(elements.Div, RadixThemesComponent):
|
|
|
157
157
|
class_name: Optional[Any] = None,
|
|
158
158
|
autofocus: Optional[bool] = None,
|
|
159
159
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
160
|
-
on_blur: Optional[EventType[
|
|
161
|
-
on_click: Optional[EventType[
|
|
162
|
-
on_context_menu: Optional[EventType[
|
|
163
|
-
on_double_click: Optional[EventType[
|
|
164
|
-
on_focus: Optional[EventType[
|
|
165
|
-
on_mount: Optional[EventType[
|
|
166
|
-
on_mouse_down: Optional[EventType[
|
|
167
|
-
on_mouse_enter: Optional[EventType[
|
|
168
|
-
on_mouse_leave: Optional[EventType[
|
|
169
|
-
on_mouse_move: Optional[EventType[
|
|
170
|
-
on_mouse_out: Optional[EventType[
|
|
171
|
-
on_mouse_over: Optional[EventType[
|
|
172
|
-
on_mouse_up: Optional[EventType[
|
|
173
|
-
on_scroll: Optional[EventType[
|
|
174
|
-
on_unmount: Optional[EventType[
|
|
160
|
+
on_blur: Optional[EventType[()]] = None,
|
|
161
|
+
on_click: Optional[EventType[()]] = None,
|
|
162
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
163
|
+
on_double_click: Optional[EventType[()]] = 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,
|
|
175
175
|
**props,
|
|
176
176
|
) -> "Grid":
|
|
177
177
|
"""Create a new component instance.
|
|
@@ -72,7 +72,7 @@ class BaseList(Component, MarkdownComponentMap):
|
|
|
72
72
|
if isinstance(items, Var):
|
|
73
73
|
children = [Foreach.create(items, ListItem.create)]
|
|
74
74
|
else:
|
|
75
|
-
children = [ListItem.create(item) for item in items]
|
|
75
|
+
children = [ListItem.create(item) for item in items]
|
|
76
76
|
props["direction"] = "column"
|
|
77
77
|
style = props.setdefault("style", {})
|
|
78
78
|
style["list_style_type"] = list_style_type
|
|
@@ -189,7 +189,7 @@ ordered_list = list_ns.ordered
|
|
|
189
189
|
unordered_list = list_ns.unordered
|
|
190
190
|
|
|
191
191
|
|
|
192
|
-
def __getattr__(name):
|
|
192
|
+
def __getattr__(name: Any):
|
|
193
193
|
# special case for when accessing list to avoid shadowing
|
|
194
194
|
# python's built in list object.
|
|
195
195
|
if name == "list":
|
|
@@ -8,7 +8,7 @@ from typing import Any, Dict, Iterable, Literal, Optional, Union, overload
|
|
|
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.components.markdown.markdown import MarkdownComponentMap
|
|
11
|
-
from reflex.event import
|
|
11
|
+
from reflex.event import EventType
|
|
12
12
|
from reflex.style import Style
|
|
13
13
|
from reflex.vars.base import Var
|
|
14
14
|
|
|
@@ -85,21 +85,21 @@ class BaseList(Component, MarkdownComponentMap):
|
|
|
85
85
|
class_name: Optional[Any] = None,
|
|
86
86
|
autofocus: Optional[bool] = None,
|
|
87
87
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
88
|
-
on_blur: Optional[EventType[
|
|
89
|
-
on_click: Optional[EventType[
|
|
90
|
-
on_context_menu: Optional[EventType[
|
|
91
|
-
on_double_click: Optional[EventType[
|
|
92
|
-
on_focus: Optional[EventType[
|
|
93
|
-
on_mount: Optional[EventType[
|
|
94
|
-
on_mouse_down: Optional[EventType[
|
|
95
|
-
on_mouse_enter: Optional[EventType[
|
|
96
|
-
on_mouse_leave: Optional[EventType[
|
|
97
|
-
on_mouse_move: Optional[EventType[
|
|
98
|
-
on_mouse_out: Optional[EventType[
|
|
99
|
-
on_mouse_over: Optional[EventType[
|
|
100
|
-
on_mouse_up: Optional[EventType[
|
|
101
|
-
on_scroll: Optional[EventType[
|
|
102
|
-
on_unmount: Optional[EventType[
|
|
88
|
+
on_blur: Optional[EventType[()]] = None,
|
|
89
|
+
on_click: Optional[EventType[()]] = None,
|
|
90
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
91
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
92
|
+
on_focus: Optional[EventType[()]] = None,
|
|
93
|
+
on_mount: Optional[EventType[()]] = None,
|
|
94
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
95
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
96
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
97
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
98
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
99
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
100
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
101
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
102
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
103
103
|
**props,
|
|
104
104
|
) -> "BaseList":
|
|
105
105
|
"""Create a list component.
|
|
@@ -202,21 +202,21 @@ class UnorderedList(BaseList, Ul):
|
|
|
202
202
|
class_name: Optional[Any] = None,
|
|
203
203
|
autofocus: Optional[bool] = None,
|
|
204
204
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
205
|
-
on_blur: Optional[EventType[
|
|
206
|
-
on_click: Optional[EventType[
|
|
207
|
-
on_context_menu: Optional[EventType[
|
|
208
|
-
on_double_click: Optional[EventType[
|
|
209
|
-
on_focus: Optional[EventType[
|
|
210
|
-
on_mount: Optional[EventType[
|
|
211
|
-
on_mouse_down: Optional[EventType[
|
|
212
|
-
on_mouse_enter: Optional[EventType[
|
|
213
|
-
on_mouse_leave: Optional[EventType[
|
|
214
|
-
on_mouse_move: Optional[EventType[
|
|
215
|
-
on_mouse_out: Optional[EventType[
|
|
216
|
-
on_mouse_over: Optional[EventType[
|
|
217
|
-
on_mouse_up: Optional[EventType[
|
|
218
|
-
on_scroll: Optional[EventType[
|
|
219
|
-
on_unmount: Optional[EventType[
|
|
205
|
+
on_blur: Optional[EventType[()]] = None,
|
|
206
|
+
on_click: Optional[EventType[()]] = None,
|
|
207
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
208
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
209
|
+
on_focus: Optional[EventType[()]] = None,
|
|
210
|
+
on_mount: Optional[EventType[()]] = None,
|
|
211
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
212
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
213
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
214
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
215
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
216
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
217
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
218
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
219
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
220
220
|
**props,
|
|
221
221
|
) -> "UnorderedList":
|
|
222
222
|
"""Create an unordered list component.
|
|
@@ -336,21 +336,21 @@ class OrderedList(BaseList, Ol):
|
|
|
336
336
|
class_name: Optional[Any] = None,
|
|
337
337
|
autofocus: Optional[bool] = None,
|
|
338
338
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
339
|
-
on_blur: Optional[EventType[
|
|
340
|
-
on_click: Optional[EventType[
|
|
341
|
-
on_context_menu: Optional[EventType[
|
|
342
|
-
on_double_click: Optional[EventType[
|
|
343
|
-
on_focus: Optional[EventType[
|
|
344
|
-
on_mount: Optional[EventType[
|
|
345
|
-
on_mouse_down: Optional[EventType[
|
|
346
|
-
on_mouse_enter: Optional[EventType[
|
|
347
|
-
on_mouse_leave: Optional[EventType[
|
|
348
|
-
on_mouse_move: Optional[EventType[
|
|
349
|
-
on_mouse_out: Optional[EventType[
|
|
350
|
-
on_mouse_over: Optional[EventType[
|
|
351
|
-
on_mouse_up: Optional[EventType[
|
|
352
|
-
on_scroll: Optional[EventType[
|
|
353
|
-
on_unmount: Optional[EventType[
|
|
339
|
+
on_blur: Optional[EventType[()]] = None,
|
|
340
|
+
on_click: Optional[EventType[()]] = None,
|
|
341
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
342
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
343
|
+
on_focus: Optional[EventType[()]] = None,
|
|
344
|
+
on_mount: Optional[EventType[()]] = None,
|
|
345
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
346
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
347
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
348
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
349
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
350
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
351
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
352
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
353
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
354
354
|
**props,
|
|
355
355
|
) -> "OrderedList":
|
|
356
356
|
"""Create an ordered list component.
|
|
@@ -427,21 +427,21 @@ class ListItem(Li, MarkdownComponentMap):
|
|
|
427
427
|
class_name: Optional[Any] = None,
|
|
428
428
|
autofocus: Optional[bool] = None,
|
|
429
429
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
430
|
-
on_blur: Optional[EventType[
|
|
431
|
-
on_click: Optional[EventType[
|
|
432
|
-
on_context_menu: Optional[EventType[
|
|
433
|
-
on_double_click: Optional[EventType[
|
|
434
|
-
on_focus: Optional[EventType[
|
|
435
|
-
on_mount: Optional[EventType[
|
|
436
|
-
on_mouse_down: Optional[EventType[
|
|
437
|
-
on_mouse_enter: Optional[EventType[
|
|
438
|
-
on_mouse_leave: Optional[EventType[
|
|
439
|
-
on_mouse_move: Optional[EventType[
|
|
440
|
-
on_mouse_out: Optional[EventType[
|
|
441
|
-
on_mouse_over: Optional[EventType[
|
|
442
|
-
on_mouse_up: Optional[EventType[
|
|
443
|
-
on_scroll: Optional[EventType[
|
|
444
|
-
on_unmount: Optional[EventType[
|
|
430
|
+
on_blur: Optional[EventType[()]] = None,
|
|
431
|
+
on_click: Optional[EventType[()]] = None,
|
|
432
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
433
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
434
|
+
on_focus: Optional[EventType[()]] = None,
|
|
435
|
+
on_mount: Optional[EventType[()]] = None,
|
|
436
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
437
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
438
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
439
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
440
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
441
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
442
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
443
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
444
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
445
445
|
**props,
|
|
446
446
|
) -> "ListItem":
|
|
447
447
|
"""Create a list item component.
|
|
@@ -534,21 +534,21 @@ class List(ComponentNamespace):
|
|
|
534
534
|
class_name: Optional[Any] = None,
|
|
535
535
|
autofocus: Optional[bool] = None,
|
|
536
536
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
537
|
-
on_blur: Optional[EventType[
|
|
538
|
-
on_click: Optional[EventType[
|
|
539
|
-
on_context_menu: Optional[EventType[
|
|
540
|
-
on_double_click: Optional[EventType[
|
|
541
|
-
on_focus: Optional[EventType[
|
|
542
|
-
on_mount: Optional[EventType[
|
|
543
|
-
on_mouse_down: Optional[EventType[
|
|
544
|
-
on_mouse_enter: Optional[EventType[
|
|
545
|
-
on_mouse_leave: Optional[EventType[
|
|
546
|
-
on_mouse_move: Optional[EventType[
|
|
547
|
-
on_mouse_out: Optional[EventType[
|
|
548
|
-
on_mouse_over: Optional[EventType[
|
|
549
|
-
on_mouse_up: Optional[EventType[
|
|
550
|
-
on_scroll: Optional[EventType[
|
|
551
|
-
on_unmount: Optional[EventType[
|
|
537
|
+
on_blur: Optional[EventType[()]] = None,
|
|
538
|
+
on_click: Optional[EventType[()]] = None,
|
|
539
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
540
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
541
|
+
on_focus: Optional[EventType[()]] = None,
|
|
542
|
+
on_mount: Optional[EventType[()]] = None,
|
|
543
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
544
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
545
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
546
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
547
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
548
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
549
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
550
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
551
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
552
552
|
**props,
|
|
553
553
|
) -> "BaseList":
|
|
554
554
|
"""Create a list component.
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
7
7
|
|
|
8
8
|
from reflex.components.core.breakpoints import Breakpoints
|
|
9
9
|
from reflex.components.el import elements
|
|
10
|
-
from reflex.event import
|
|
10
|
+
from reflex.event import EventType
|
|
11
11
|
from reflex.style import Style
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
@@ -62,21 +62,21 @@ class Section(elements.Section, RadixThemesComponent):
|
|
|
62
62
|
class_name: Optional[Any] = None,
|
|
63
63
|
autofocus: Optional[bool] = None,
|
|
64
64
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
65
|
-
on_blur: Optional[EventType[
|
|
66
|
-
on_click: Optional[EventType[
|
|
67
|
-
on_context_menu: Optional[EventType[
|
|
68
|
-
on_double_click: Optional[EventType[
|
|
69
|
-
on_focus: Optional[EventType[
|
|
70
|
-
on_mount: Optional[EventType[
|
|
71
|
-
on_mouse_down: Optional[EventType[
|
|
72
|
-
on_mouse_enter: Optional[EventType[
|
|
73
|
-
on_mouse_leave: Optional[EventType[
|
|
74
|
-
on_mouse_move: Optional[EventType[
|
|
75
|
-
on_mouse_out: Optional[EventType[
|
|
76
|
-
on_mouse_over: Optional[EventType[
|
|
77
|
-
on_mouse_up: Optional[EventType[
|
|
78
|
-
on_scroll: Optional[EventType[
|
|
79
|
-
on_unmount: Optional[EventType[
|
|
65
|
+
on_blur: Optional[EventType[()]] = None,
|
|
66
|
+
on_click: Optional[EventType[()]] = None,
|
|
67
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
68
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
69
|
+
on_focus: Optional[EventType[()]] = None,
|
|
70
|
+
on_mount: Optional[EventType[()]] = None,
|
|
71
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
72
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
73
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
74
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
75
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
76
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
77
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
78
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
79
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
80
80
|
**props,
|
|
81
81
|
) -> "Section":
|
|
82
82
|
"""Create a new component instance.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.core.breakpoints import Breakpoints
|
|
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
|
|
|
@@ -125,21 +125,21 @@ class Spacer(Flex):
|
|
|
125
125
|
class_name: Optional[Any] = None,
|
|
126
126
|
autofocus: Optional[bool] = None,
|
|
127
127
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
128
|
-
on_blur: Optional[EventType[
|
|
129
|
-
on_click: Optional[EventType[
|
|
130
|
-
on_context_menu: Optional[EventType[
|
|
131
|
-
on_double_click: Optional[EventType[
|
|
132
|
-
on_focus: Optional[EventType[
|
|
133
|
-
on_mount: Optional[EventType[
|
|
134
|
-
on_mouse_down: Optional[EventType[
|
|
135
|
-
on_mouse_enter: Optional[EventType[
|
|
136
|
-
on_mouse_leave: Optional[EventType[
|
|
137
|
-
on_mouse_move: Optional[EventType[
|
|
138
|
-
on_mouse_out: Optional[EventType[
|
|
139
|
-
on_mouse_over: Optional[EventType[
|
|
140
|
-
on_mouse_up: Optional[EventType[
|
|
141
|
-
on_scroll: Optional[EventType[
|
|
142
|
-
on_unmount: Optional[EventType[
|
|
128
|
+
on_blur: Optional[EventType[()]] = None,
|
|
129
|
+
on_click: Optional[EventType[()]] = None,
|
|
130
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
131
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
132
|
+
on_focus: Optional[EventType[()]] = None,
|
|
133
|
+
on_mount: Optional[EventType[()]] = None,
|
|
134
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
135
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
136
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
137
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
138
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
139
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
140
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
141
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
142
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
143
143
|
**props,
|
|
144
144
|
) -> "Spacer":
|
|
145
145
|
"""Create a new component instance.
|
|
@@ -49,14 +49,14 @@ class VStack(Stack):
|
|
|
49
49
|
"""A vertical stack component."""
|
|
50
50
|
|
|
51
51
|
# The direction of the stack.
|
|
52
|
-
direction: Var[LiteralFlexDirection] = "column"
|
|
52
|
+
direction: Var[LiteralFlexDirection] = Var.create("column")
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
class HStack(Stack):
|
|
56
56
|
"""A horizontal stack component."""
|
|
57
57
|
|
|
58
58
|
# The direction of the stack.
|
|
59
|
-
direction: Var[LiteralFlexDirection] = "row"
|
|
59
|
+
direction: Var[LiteralFlexDirection] = Var.create("row")
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
stack = Stack.create
|