reflex 0.6.8a2__py3-none-any.whl → 0.7.0a2__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 +249 -116
- 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 +35 -6
- 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 +160 -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/plotly.py +5 -5
- reflex/components/plotly/plotly.pyi +34 -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 -15
- 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 +9 -7
- reflex/event.py +215 -208
- 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 +90 -19
- reflex/route.py +1 -1
- reflex/state.py +358 -401
- reflex/style.py +27 -3
- reflex/testing.py +29 -23
- reflex/utils/build.py +6 -2
- reflex/utils/codespaces.py +1 -4
- reflex/utils/compat.py +6 -5
- reflex/utils/console.py +52 -16
- 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 +2 -2
- reflex/utils/lazy_loader.py +7 -1
- reflex/utils/path_ops.py +28 -14
- reflex/utils/prerequisites.py +326 -67
- 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 +656 -333
- 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 +63 -62
- reflex/vars/sequence.py +79 -67
- {reflex-0.6.8a2.dist-info → reflex-0.7.0a2.dist-info}/METADATA +7 -8
- reflex-0.7.0a2.dist-info/RECORD +401 -0
- {reflex-0.6.8a2.dist-info → reflex-0.7.0a2.dist-info}/WHEEL +1 -1
- reflex/experimental/assets.py +0 -37
- reflex-0.6.8a2.dist-info/RECORD +0 -397
- {reflex-0.6.8a2.dist-info → reflex-0.7.0a2.dist-info}/LICENSE +0 -0
- {reflex-0.6.8a2.dist-info → reflex-0.7.0a2.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.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
|
|
|
@@ -43,21 +43,21 @@ class Skeleton(RadixLoadingProp, RadixThemesComponent):
|
|
|
43
43
|
class_name: Optional[Any] = None,
|
|
44
44
|
autofocus: Optional[bool] = None,
|
|
45
45
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
46
|
-
on_blur: Optional[EventType[
|
|
47
|
-
on_click: Optional[EventType[
|
|
48
|
-
on_context_menu: Optional[EventType[
|
|
49
|
-
on_double_click: Optional[EventType[
|
|
50
|
-
on_focus: Optional[EventType[
|
|
51
|
-
on_mount: Optional[EventType[
|
|
52
|
-
on_mouse_down: Optional[EventType[
|
|
53
|
-
on_mouse_enter: Optional[EventType[
|
|
54
|
-
on_mouse_leave: Optional[EventType[
|
|
55
|
-
on_mouse_move: Optional[EventType[
|
|
56
|
-
on_mouse_out: Optional[EventType[
|
|
57
|
-
on_mouse_over: Optional[EventType[
|
|
58
|
-
on_mouse_up: Optional[EventType[
|
|
59
|
-
on_scroll: Optional[EventType[
|
|
60
|
-
on_unmount: Optional[EventType[
|
|
46
|
+
on_blur: Optional[EventType[()]] = None,
|
|
47
|
+
on_click: Optional[EventType[()]] = None,
|
|
48
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
49
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
50
|
+
on_focus: Optional[EventType[()]] = None,
|
|
51
|
+
on_mount: Optional[EventType[()]] = None,
|
|
52
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
53
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
54
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
55
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
56
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
57
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
58
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
59
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
60
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
61
61
|
**props,
|
|
62
62
|
) -> "Skeleton":
|
|
63
63
|
"""Create a new component instance.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, List, 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, passthrough_event_spec
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
@@ -139,39 +139,33 @@ class Slider(RadixThemesComponent):
|
|
|
139
139
|
class_name: Optional[Any] = None,
|
|
140
140
|
autofocus: Optional[bool] = None,
|
|
141
141
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
142
|
-
on_blur: Optional[EventType[
|
|
142
|
+
on_blur: Optional[EventType[()]] = None,
|
|
143
143
|
on_change: Optional[
|
|
144
144
|
Union[
|
|
145
|
-
Union[
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
],
|
|
149
|
-
Union[EventType[[], BASE_STATE], EventType[[list[int]], BASE_STATE]],
|
|
150
|
-
Union[EventType[[], BASE_STATE], EventType[[list[float]], BASE_STATE]],
|
|
145
|
+
Union[EventType[()], EventType[list[Union[int, float]]]],
|
|
146
|
+
Union[EventType[()], EventType[list[int]]],
|
|
147
|
+
Union[EventType[()], EventType[list[float]]],
|
|
151
148
|
]
|
|
152
149
|
] = None,
|
|
153
|
-
on_click: Optional[EventType[
|
|
154
|
-
on_context_menu: Optional[EventType[
|
|
155
|
-
on_double_click: Optional[EventType[
|
|
156
|
-
on_focus: Optional[EventType[
|
|
157
|
-
on_mount: Optional[EventType[
|
|
158
|
-
on_mouse_down: Optional[EventType[
|
|
159
|
-
on_mouse_enter: Optional[EventType[
|
|
160
|
-
on_mouse_leave: Optional[EventType[
|
|
161
|
-
on_mouse_move: Optional[EventType[
|
|
162
|
-
on_mouse_out: Optional[EventType[
|
|
163
|
-
on_mouse_over: Optional[EventType[
|
|
164
|
-
on_mouse_up: Optional[EventType[
|
|
165
|
-
on_scroll: Optional[EventType[
|
|
166
|
-
on_unmount: Optional[EventType[
|
|
150
|
+
on_click: Optional[EventType[()]] = None,
|
|
151
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
152
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
153
|
+
on_focus: Optional[EventType[()]] = None,
|
|
154
|
+
on_mount: Optional[EventType[()]] = None,
|
|
155
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
156
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
157
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
158
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
159
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
160
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
161
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
162
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
163
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
167
164
|
on_value_commit: Optional[
|
|
168
165
|
Union[
|
|
169
|
-
Union[
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
],
|
|
173
|
-
Union[EventType[[], BASE_STATE], EventType[[list[int]], BASE_STATE]],
|
|
174
|
-
Union[EventType[[], BASE_STATE], EventType[[list[float]], BASE_STATE]],
|
|
166
|
+
Union[EventType[()], EventType[list[Union[int, float]]]],
|
|
167
|
+
Union[EventType[()], EventType[list[int]]],
|
|
168
|
+
Union[EventType[()], EventType[list[float]]],
|
|
175
169
|
]
|
|
176
170
|
] = None,
|
|
177
171
|
**props,
|
|
@@ -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
|
|
|
@@ -38,21 +38,21 @@ class Spinner(RadixLoadingProp, RadixThemesComponent):
|
|
|
38
38
|
class_name: Optional[Any] = None,
|
|
39
39
|
autofocus: Optional[bool] = None,
|
|
40
40
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
41
|
-
on_blur: Optional[EventType[
|
|
42
|
-
on_click: Optional[EventType[
|
|
43
|
-
on_context_menu: Optional[EventType[
|
|
44
|
-
on_double_click: Optional[EventType[
|
|
45
|
-
on_focus: Optional[EventType[
|
|
46
|
-
on_mount: Optional[EventType[
|
|
47
|
-
on_mouse_down: Optional[EventType[
|
|
48
|
-
on_mouse_enter: Optional[EventType[
|
|
49
|
-
on_mouse_leave: Optional[EventType[
|
|
50
|
-
on_mouse_move: Optional[EventType[
|
|
51
|
-
on_mouse_out: Optional[EventType[
|
|
52
|
-
on_mouse_over: Optional[EventType[
|
|
53
|
-
on_mouse_up: Optional[EventType[
|
|
54
|
-
on_scroll: Optional[EventType[
|
|
55
|
-
on_unmount: Optional[EventType[
|
|
41
|
+
on_blur: Optional[EventType[()]] = None,
|
|
42
|
+
on_click: Optional[EventType[()]] = None,
|
|
43
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
44
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
45
|
+
on_focus: Optional[EventType[()]] = None,
|
|
46
|
+
on_mount: Optional[EventType[()]] = None,
|
|
47
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
48
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
49
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
50
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
51
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
52
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
53
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
54
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
55
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
56
56
|
**props,
|
|
57
57
|
) -> "Spinner":
|
|
58
58
|
"""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
|
|
|
@@ -118,24 +118,22 @@ class Switch(RadixThemesComponent):
|
|
|
118
118
|
class_name: Optional[Any] = None,
|
|
119
119
|
autofocus: Optional[bool] = None,
|
|
120
120
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
121
|
-
on_blur: Optional[EventType[
|
|
122
|
-
on_change: Optional[
|
|
123
|
-
|
|
124
|
-
] = None,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
138
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
121
|
+
on_blur: Optional[EventType[()]] = None,
|
|
122
|
+
on_change: Optional[Union[EventType[()], EventType[bool]]] = None,
|
|
123
|
+
on_click: Optional[EventType[()]] = None,
|
|
124
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
125
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
126
|
+
on_focus: Optional[EventType[()]] = None,
|
|
127
|
+
on_mount: Optional[EventType[()]] = None,
|
|
128
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
129
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
130
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
131
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
132
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
133
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
134
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
135
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
136
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
139
137
|
**props,
|
|
140
138
|
) -> "Switch":
|
|
141
139
|
"""Create a new component instance.
|
|
@@ -8,7 +8,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
8
8
|
from reflex.components.component import ComponentNamespace
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
10
|
from reflex.components.el import elements
|
|
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
|
|
|
@@ -66,21 +66,21 @@ class TableRoot(elements.Table, RadixThemesComponent):
|
|
|
66
66
|
class_name: Optional[Any] = None,
|
|
67
67
|
autofocus: Optional[bool] = None,
|
|
68
68
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
69
|
-
on_blur: Optional[EventType[
|
|
70
|
-
on_click: Optional[EventType[
|
|
71
|
-
on_context_menu: Optional[EventType[
|
|
72
|
-
on_double_click: Optional[EventType[
|
|
73
|
-
on_focus: Optional[EventType[
|
|
74
|
-
on_mount: Optional[EventType[
|
|
75
|
-
on_mouse_down: Optional[EventType[
|
|
76
|
-
on_mouse_enter: Optional[EventType[
|
|
77
|
-
on_mouse_leave: Optional[EventType[
|
|
78
|
-
on_mouse_move: Optional[EventType[
|
|
79
|
-
on_mouse_out: Optional[EventType[
|
|
80
|
-
on_mouse_over: Optional[EventType[
|
|
81
|
-
on_mouse_up: Optional[EventType[
|
|
82
|
-
on_scroll: Optional[EventType[
|
|
83
|
-
on_unmount: Optional[EventType[
|
|
69
|
+
on_blur: Optional[EventType[()]] = None,
|
|
70
|
+
on_click: Optional[EventType[()]] = None,
|
|
71
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
72
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
73
|
+
on_focus: Optional[EventType[()]] = None,
|
|
74
|
+
on_mount: Optional[EventType[()]] = None,
|
|
75
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
76
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
77
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
78
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
79
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
80
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
81
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
82
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
83
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
84
84
|
**props,
|
|
85
85
|
) -> "TableRoot":
|
|
86
86
|
"""Create a new component instance.
|
|
@@ -160,21 +160,21 @@ class TableHeader(elements.Thead, RadixThemesComponent):
|
|
|
160
160
|
class_name: Optional[Any] = None,
|
|
161
161
|
autofocus: Optional[bool] = None,
|
|
162
162
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
163
|
-
on_blur: Optional[EventType[
|
|
164
|
-
on_click: Optional[EventType[
|
|
165
|
-
on_context_menu: Optional[EventType[
|
|
166
|
-
on_double_click: Optional[EventType[
|
|
167
|
-
on_focus: Optional[EventType[
|
|
168
|
-
on_mount: Optional[EventType[
|
|
169
|
-
on_mouse_down: Optional[EventType[
|
|
170
|
-
on_mouse_enter: Optional[EventType[
|
|
171
|
-
on_mouse_leave: Optional[EventType[
|
|
172
|
-
on_mouse_move: Optional[EventType[
|
|
173
|
-
on_mouse_out: Optional[EventType[
|
|
174
|
-
on_mouse_over: Optional[EventType[
|
|
175
|
-
on_mouse_up: Optional[EventType[
|
|
176
|
-
on_scroll: Optional[EventType[
|
|
177
|
-
on_unmount: Optional[EventType[
|
|
163
|
+
on_blur: Optional[EventType[()]] = None,
|
|
164
|
+
on_click: Optional[EventType[()]] = None,
|
|
165
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
166
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
167
|
+
on_focus: Optional[EventType[()]] = None,
|
|
168
|
+
on_mount: Optional[EventType[()]] = None,
|
|
169
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
170
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
171
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
172
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
173
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
174
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
175
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
176
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
177
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
178
178
|
**props,
|
|
179
179
|
) -> "TableHeader":
|
|
180
180
|
"""Create a new component instance.
|
|
@@ -256,21 +256,21 @@ class TableRow(elements.Tr, RadixThemesComponent):
|
|
|
256
256
|
class_name: Optional[Any] = None,
|
|
257
257
|
autofocus: Optional[bool] = None,
|
|
258
258
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
259
|
-
on_blur: Optional[EventType[
|
|
260
|
-
on_click: Optional[EventType[
|
|
261
|
-
on_context_menu: Optional[EventType[
|
|
262
|
-
on_double_click: Optional[EventType[
|
|
263
|
-
on_focus: Optional[EventType[
|
|
264
|
-
on_mount: Optional[EventType[
|
|
265
|
-
on_mouse_down: Optional[EventType[
|
|
266
|
-
on_mouse_enter: Optional[EventType[
|
|
267
|
-
on_mouse_leave: Optional[EventType[
|
|
268
|
-
on_mouse_move: Optional[EventType[
|
|
269
|
-
on_mouse_out: Optional[EventType[
|
|
270
|
-
on_mouse_over: Optional[EventType[
|
|
271
|
-
on_mouse_up: Optional[EventType[
|
|
272
|
-
on_scroll: Optional[EventType[
|
|
273
|
-
on_unmount: Optional[EventType[
|
|
259
|
+
on_blur: Optional[EventType[()]] = None,
|
|
260
|
+
on_click: Optional[EventType[()]] = None,
|
|
261
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
262
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
263
|
+
on_focus: Optional[EventType[()]] = None,
|
|
264
|
+
on_mount: Optional[EventType[()]] = None,
|
|
265
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
266
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
267
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
268
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
269
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
270
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
271
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
272
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
273
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
274
274
|
**props,
|
|
275
275
|
) -> "TableRow":
|
|
276
276
|
"""Create a new component instance.
|
|
@@ -363,21 +363,21 @@ class TableColumnHeaderCell(elements.Th, RadixThemesComponent):
|
|
|
363
363
|
class_name: Optional[Any] = None,
|
|
364
364
|
autofocus: Optional[bool] = None,
|
|
365
365
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
366
|
-
on_blur: Optional[EventType[
|
|
367
|
-
on_click: Optional[EventType[
|
|
368
|
-
on_context_menu: Optional[EventType[
|
|
369
|
-
on_double_click: Optional[EventType[
|
|
370
|
-
on_focus: Optional[EventType[
|
|
371
|
-
on_mount: Optional[EventType[
|
|
372
|
-
on_mouse_down: Optional[EventType[
|
|
373
|
-
on_mouse_enter: Optional[EventType[
|
|
374
|
-
on_mouse_leave: Optional[EventType[
|
|
375
|
-
on_mouse_move: Optional[EventType[
|
|
376
|
-
on_mouse_out: Optional[EventType[
|
|
377
|
-
on_mouse_over: Optional[EventType[
|
|
378
|
-
on_mouse_up: Optional[EventType[
|
|
379
|
-
on_scroll: Optional[EventType[
|
|
380
|
-
on_unmount: Optional[EventType[
|
|
366
|
+
on_blur: Optional[EventType[()]] = None,
|
|
367
|
+
on_click: Optional[EventType[()]] = None,
|
|
368
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
369
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
370
|
+
on_focus: Optional[EventType[()]] = None,
|
|
371
|
+
on_mount: Optional[EventType[()]] = None,
|
|
372
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
373
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
374
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
375
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
376
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
377
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
378
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
379
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
380
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
381
381
|
**props,
|
|
382
382
|
) -> "TableColumnHeaderCell":
|
|
383
383
|
"""Create a new component instance.
|
|
@@ -461,21 +461,21 @@ class TableBody(elements.Tbody, RadixThemesComponent):
|
|
|
461
461
|
class_name: Optional[Any] = None,
|
|
462
462
|
autofocus: Optional[bool] = None,
|
|
463
463
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
464
|
-
on_blur: Optional[EventType[
|
|
465
|
-
on_click: Optional[EventType[
|
|
466
|
-
on_context_menu: Optional[EventType[
|
|
467
|
-
on_double_click: Optional[EventType[
|
|
468
|
-
on_focus: Optional[EventType[
|
|
469
|
-
on_mount: Optional[EventType[
|
|
470
|
-
on_mouse_down: Optional[EventType[
|
|
471
|
-
on_mouse_enter: Optional[EventType[
|
|
472
|
-
on_mouse_leave: Optional[EventType[
|
|
473
|
-
on_mouse_move: Optional[EventType[
|
|
474
|
-
on_mouse_out: Optional[EventType[
|
|
475
|
-
on_mouse_over: Optional[EventType[
|
|
476
|
-
on_mouse_up: Optional[EventType[
|
|
477
|
-
on_scroll: Optional[EventType[
|
|
478
|
-
on_unmount: Optional[EventType[
|
|
464
|
+
on_blur: Optional[EventType[()]] = None,
|
|
465
|
+
on_click: Optional[EventType[()]] = None,
|
|
466
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
467
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
468
|
+
on_focus: Optional[EventType[()]] = None,
|
|
469
|
+
on_mount: Optional[EventType[()]] = None,
|
|
470
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
471
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
472
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
473
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
474
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
475
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
476
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
477
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
478
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
479
479
|
**props,
|
|
480
480
|
) -> "TableBody":
|
|
481
481
|
"""Create a new component instance.
|
|
@@ -686,21 +686,21 @@ class TableCell(elements.Td, CommonPaddingProps, RadixThemesComponent):
|
|
|
686
686
|
class_name: Optional[Any] = None,
|
|
687
687
|
autofocus: Optional[bool] = None,
|
|
688
688
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
689
|
-
on_blur: Optional[EventType[
|
|
690
|
-
on_click: Optional[EventType[
|
|
691
|
-
on_context_menu: Optional[EventType[
|
|
692
|
-
on_double_click: Optional[EventType[
|
|
693
|
-
on_focus: Optional[EventType[
|
|
694
|
-
on_mount: Optional[EventType[
|
|
695
|
-
on_mouse_down: Optional[EventType[
|
|
696
|
-
on_mouse_enter: Optional[EventType[
|
|
697
|
-
on_mouse_leave: Optional[EventType[
|
|
698
|
-
on_mouse_move: Optional[EventType[
|
|
699
|
-
on_mouse_out: Optional[EventType[
|
|
700
|
-
on_mouse_over: Optional[EventType[
|
|
701
|
-
on_mouse_up: Optional[EventType[
|
|
702
|
-
on_scroll: Optional[EventType[
|
|
703
|
-
on_unmount: Optional[EventType[
|
|
689
|
+
on_blur: Optional[EventType[()]] = None,
|
|
690
|
+
on_click: Optional[EventType[()]] = None,
|
|
691
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
692
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
693
|
+
on_focus: Optional[EventType[()]] = None,
|
|
694
|
+
on_mount: Optional[EventType[()]] = None,
|
|
695
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
696
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
697
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
698
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
699
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
700
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
701
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
702
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
703
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
704
704
|
**props,
|
|
705
705
|
) -> "TableCell":
|
|
706
706
|
"""Create a new component instance.
|
|
@@ -925,21 +925,21 @@ class TableRowHeaderCell(elements.Th, CommonPaddingProps, RadixThemesComponent):
|
|
|
925
925
|
class_name: Optional[Any] = None,
|
|
926
926
|
autofocus: Optional[bool] = None,
|
|
927
927
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
928
|
-
on_blur: Optional[EventType[
|
|
929
|
-
on_click: Optional[EventType[
|
|
930
|
-
on_context_menu: Optional[EventType[
|
|
931
|
-
on_double_click: Optional[EventType[
|
|
932
|
-
on_focus: Optional[EventType[
|
|
933
|
-
on_mount: Optional[EventType[
|
|
934
|
-
on_mouse_down: Optional[EventType[
|
|
935
|
-
on_mouse_enter: Optional[EventType[
|
|
936
|
-
on_mouse_leave: Optional[EventType[
|
|
937
|
-
on_mouse_move: Optional[EventType[
|
|
938
|
-
on_mouse_out: Optional[EventType[
|
|
939
|
-
on_mouse_over: Optional[EventType[
|
|
940
|
-
on_mouse_up: Optional[EventType[
|
|
941
|
-
on_scroll: Optional[EventType[
|
|
942
|
-
on_unmount: Optional[EventType[
|
|
928
|
+
on_blur: Optional[EventType[()]] = None,
|
|
929
|
+
on_click: Optional[EventType[()]] = None,
|
|
930
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
931
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
932
|
+
on_focus: Optional[EventType[()]] = None,
|
|
933
|
+
on_mount: Optional[EventType[()]] = None,
|
|
934
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
935
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
936
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
937
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
938
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
939
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
940
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
941
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
942
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
943
943
|
**props,
|
|
944
944
|
) -> "TableRowHeaderCell":
|
|
945
945
|
"""Create a new component instance.
|
|
@@ -7,6 +7,7 @@ from typing import Any, Dict, List, Literal
|
|
|
7
7
|
from reflex.components.component import Component, ComponentNamespace
|
|
8
8
|
from reflex.components.core.breakpoints import Responsive
|
|
9
9
|
from reflex.components.core.colors import color
|
|
10
|
+
from reflex.constants.compiler import MemoizationMode
|
|
10
11
|
from reflex.event import EventHandler, passthrough_event_spec
|
|
11
12
|
from reflex.vars.base import Var
|
|
12
13
|
|
|
@@ -95,6 +96,8 @@ class TabsTrigger(RadixThemesComponent):
|
|
|
95
96
|
|
|
96
97
|
_valid_parents: List[str] = ["TabsList"]
|
|
97
98
|
|
|
99
|
+
_memoization_mode = MemoizationMode(recursive=False)
|
|
100
|
+
|
|
98
101
|
@classmethod
|
|
99
102
|
def create(cls, *children, **props) -> Component:
|
|
100
103
|
"""Create a TabsTrigger component.
|