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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# ------------------------------------------------------
|
|
6
6
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
|
7
7
|
|
|
8
|
-
from reflex.event import
|
|
8
|
+
from reflex.event import EventType
|
|
9
9
|
from reflex.style import Style
|
|
10
10
|
from reflex.vars.base import Var
|
|
11
11
|
|
|
@@ -36,21 +36,21 @@ class ScrollArea(RadixThemesComponent):
|
|
|
36
36
|
class_name: Optional[Any] = None,
|
|
37
37
|
autofocus: Optional[bool] = None,
|
|
38
38
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
39
|
-
on_blur: Optional[EventType[
|
|
40
|
-
on_click: Optional[EventType[
|
|
41
|
-
on_context_menu: Optional[EventType[
|
|
42
|
-
on_double_click: Optional[EventType[
|
|
43
|
-
on_focus: Optional[EventType[
|
|
44
|
-
on_mount: Optional[EventType[
|
|
45
|
-
on_mouse_down: Optional[EventType[
|
|
46
|
-
on_mouse_enter: Optional[EventType[
|
|
47
|
-
on_mouse_leave: Optional[EventType[
|
|
48
|
-
on_mouse_move: Optional[EventType[
|
|
49
|
-
on_mouse_out: Optional[EventType[
|
|
50
|
-
on_mouse_over: Optional[EventType[
|
|
51
|
-
on_mouse_up: Optional[EventType[
|
|
52
|
-
on_scroll: Optional[EventType[
|
|
53
|
-
on_unmount: Optional[EventType[
|
|
39
|
+
on_blur: Optional[EventType[()]] = None,
|
|
40
|
+
on_click: Optional[EventType[()]] = None,
|
|
41
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
42
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
43
|
+
on_focus: Optional[EventType[()]] = None,
|
|
44
|
+
on_mount: Optional[EventType[()]] = None,
|
|
45
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
46
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
47
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
48
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
49
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
50
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
51
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
52
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
53
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
54
54
|
**props,
|
|
55
55
|
) -> "ScrollArea":
|
|
56
56
|
"""Create a new component instance.
|
|
@@ -7,7 +7,7 @@ from types import SimpleNamespace
|
|
|
7
7
|
from typing import Any, Dict, List, Literal, Optional, Tuple, Union, overload
|
|
8
8
|
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
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
|
|
|
@@ -118,27 +118,24 @@ class SegmentedControlRoot(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[
|
|
121
|
+
on_blur: Optional[EventType[()]] = None,
|
|
122
122
|
on_change: Optional[
|
|
123
|
-
Union[
|
|
124
|
-
EventType[[], BASE_STATE],
|
|
125
|
-
EventType[[Union[str, List[str]]], BASE_STATE],
|
|
126
|
-
]
|
|
123
|
+
Union[EventType[()], EventType[Union[str, List[str]]]]
|
|
127
124
|
] = None,
|
|
128
|
-
on_click: Optional[EventType[
|
|
129
|
-
on_context_menu: Optional[EventType[
|
|
130
|
-
on_double_click: Optional[EventType[
|
|
131
|
-
on_focus: Optional[EventType[
|
|
132
|
-
on_mount: Optional[EventType[
|
|
133
|
-
on_mouse_down: Optional[EventType[
|
|
134
|
-
on_mouse_enter: Optional[EventType[
|
|
135
|
-
on_mouse_leave: Optional[EventType[
|
|
136
|
-
on_mouse_move: Optional[EventType[
|
|
137
|
-
on_mouse_out: Optional[EventType[
|
|
138
|
-
on_mouse_over: Optional[EventType[
|
|
139
|
-
on_mouse_up: Optional[EventType[
|
|
140
|
-
on_scroll: Optional[EventType[
|
|
141
|
-
on_unmount: Optional[EventType[
|
|
125
|
+
on_click: Optional[EventType[()]] = None,
|
|
126
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
127
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
128
|
+
on_focus: Optional[EventType[()]] = None,
|
|
129
|
+
on_mount: Optional[EventType[()]] = None,
|
|
130
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
131
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
132
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
133
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
134
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
135
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
136
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
137
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
138
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
142
139
|
**props,
|
|
143
140
|
) -> "SegmentedControlRoot":
|
|
144
141
|
"""Create a new component instance.
|
|
@@ -182,21 +179,21 @@ class SegmentedControlItem(RadixThemesComponent):
|
|
|
182
179
|
class_name: Optional[Any] = None,
|
|
183
180
|
autofocus: Optional[bool] = None,
|
|
184
181
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
185
|
-
on_blur: Optional[EventType[
|
|
186
|
-
on_click: Optional[EventType[
|
|
187
|
-
on_context_menu: Optional[EventType[
|
|
188
|
-
on_double_click: Optional[EventType[
|
|
189
|
-
on_focus: Optional[EventType[
|
|
190
|
-
on_mount: Optional[EventType[
|
|
191
|
-
on_mouse_down: Optional[EventType[
|
|
192
|
-
on_mouse_enter: Optional[EventType[
|
|
193
|
-
on_mouse_leave: Optional[EventType[
|
|
194
|
-
on_mouse_move: Optional[EventType[
|
|
195
|
-
on_mouse_out: Optional[EventType[
|
|
196
|
-
on_mouse_over: Optional[EventType[
|
|
197
|
-
on_mouse_up: Optional[EventType[
|
|
198
|
-
on_scroll: Optional[EventType[
|
|
199
|
-
on_unmount: Optional[EventType[
|
|
182
|
+
on_blur: Optional[EventType[()]] = None,
|
|
183
|
+
on_click: Optional[EventType[()]] = None,
|
|
184
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
185
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
186
|
+
on_focus: Optional[EventType[()]] = None,
|
|
187
|
+
on_mount: Optional[EventType[()]] = None,
|
|
188
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
189
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
190
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
191
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
192
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
193
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
194
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
195
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
196
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
200
197
|
**props,
|
|
201
198
|
) -> "SegmentedControlItem":
|
|
202
199
|
"""Create a new component instance.
|
|
@@ -5,6 +5,7 @@ from typing import List, Literal, Union
|
|
|
5
5
|
import reflex as rx
|
|
6
6
|
from reflex.components.component import Component, ComponentNamespace
|
|
7
7
|
from reflex.components.core.breakpoints import Responsive
|
|
8
|
+
from reflex.constants.compiler import MemoizationMode
|
|
8
9
|
from reflex.event import no_args_event_spec, passthrough_event_spec
|
|
9
10
|
from reflex.vars.base import Var
|
|
10
11
|
|
|
@@ -69,6 +70,8 @@ class SelectTrigger(RadixThemesComponent):
|
|
|
69
70
|
|
|
70
71
|
_valid_parents: List[str] = ["SelectRoot"]
|
|
71
72
|
|
|
73
|
+
_memoization_mode = MemoizationMode(recursive=False)
|
|
74
|
+
|
|
72
75
|
|
|
73
76
|
class SelectContent(RadixThemesComponent):
|
|
74
77
|
"""The component that pops out when the select is open."""
|
|
@@ -187,6 +190,7 @@ class HighLevelSelect(SelectRoot):
|
|
|
187
190
|
The select component.
|
|
188
191
|
"""
|
|
189
192
|
trigger_prop_list = [
|
|
193
|
+
"id",
|
|
190
194
|
"placeholder",
|
|
191
195
|
"variant",
|
|
192
196
|
"radius",
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, List, Literal, Optional, Union, overload
|
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import ComponentNamespace
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
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
|
|
|
@@ -43,27 +43,23 @@ class SelectRoot(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_change: Optional[
|
|
48
|
-
|
|
49
|
-
] = None,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
Union[EventType[[], BASE_STATE], EventType[[bool], BASE_STATE]]
|
|
64
|
-
] = None,
|
|
65
|
-
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
66
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
46
|
+
on_blur: Optional[EventType[()]] = None,
|
|
47
|
+
on_change: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
48
|
+
on_click: Optional[EventType[()]] = None,
|
|
49
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
50
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
51
|
+
on_focus: Optional[EventType[()]] = None,
|
|
52
|
+
on_mount: Optional[EventType[()]] = None,
|
|
53
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
54
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
55
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
56
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
57
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
58
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
59
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
60
|
+
on_open_change: Optional[Union[EventType[()], EventType[bool]]] = None,
|
|
61
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
62
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
67
63
|
**props,
|
|
68
64
|
) -> "SelectRoot":
|
|
69
65
|
"""Create a new component instance.
|
|
@@ -183,21 +179,21 @@ class SelectTrigger(RadixThemesComponent):
|
|
|
183
179
|
class_name: Optional[Any] = None,
|
|
184
180
|
autofocus: Optional[bool] = None,
|
|
185
181
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
186
|
-
on_blur: Optional[EventType[
|
|
187
|
-
on_click: Optional[EventType[
|
|
188
|
-
on_context_menu: Optional[EventType[
|
|
189
|
-
on_double_click: Optional[EventType[
|
|
190
|
-
on_focus: Optional[EventType[
|
|
191
|
-
on_mount: Optional[EventType[
|
|
192
|
-
on_mouse_down: Optional[EventType[
|
|
193
|
-
on_mouse_enter: Optional[EventType[
|
|
194
|
-
on_mouse_leave: Optional[EventType[
|
|
195
|
-
on_mouse_move: Optional[EventType[
|
|
196
|
-
on_mouse_out: Optional[EventType[
|
|
197
|
-
on_mouse_over: Optional[EventType[
|
|
198
|
-
on_mouse_up: Optional[EventType[
|
|
199
|
-
on_scroll: Optional[EventType[
|
|
200
|
-
on_unmount: Optional[EventType[
|
|
182
|
+
on_blur: Optional[EventType[()]] = None,
|
|
183
|
+
on_click: Optional[EventType[()]] = None,
|
|
184
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
185
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
186
|
+
on_focus: Optional[EventType[()]] = None,
|
|
187
|
+
on_mount: Optional[EventType[()]] = None,
|
|
188
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
189
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
190
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
191
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
192
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
193
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
194
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
195
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
196
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
201
197
|
**props,
|
|
202
198
|
) -> "SelectTrigger":
|
|
203
199
|
"""Create a new component instance.
|
|
@@ -322,24 +318,24 @@ class SelectContent(RadixThemesComponent):
|
|
|
322
318
|
class_name: Optional[Any] = None,
|
|
323
319
|
autofocus: Optional[bool] = None,
|
|
324
320
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
325
|
-
on_blur: Optional[EventType[
|
|
326
|
-
on_click: Optional[EventType[
|
|
327
|
-
on_close_auto_focus: Optional[EventType[
|
|
328
|
-
on_context_menu: Optional[EventType[
|
|
329
|
-
on_double_click: Optional[EventType[
|
|
330
|
-
on_escape_key_down: Optional[EventType[
|
|
331
|
-
on_focus: Optional[EventType[
|
|
332
|
-
on_mount: Optional[EventType[
|
|
333
|
-
on_mouse_down: Optional[EventType[
|
|
334
|
-
on_mouse_enter: Optional[EventType[
|
|
335
|
-
on_mouse_leave: Optional[EventType[
|
|
336
|
-
on_mouse_move: Optional[EventType[
|
|
337
|
-
on_mouse_out: Optional[EventType[
|
|
338
|
-
on_mouse_over: Optional[EventType[
|
|
339
|
-
on_mouse_up: Optional[EventType[
|
|
340
|
-
on_pointer_down_outside: Optional[EventType[
|
|
341
|
-
on_scroll: Optional[EventType[
|
|
342
|
-
on_unmount: Optional[EventType[
|
|
321
|
+
on_blur: Optional[EventType[()]] = None,
|
|
322
|
+
on_click: Optional[EventType[()]] = None,
|
|
323
|
+
on_close_auto_focus: Optional[EventType[()]] = None,
|
|
324
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
325
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
326
|
+
on_escape_key_down: Optional[EventType[()]] = None,
|
|
327
|
+
on_focus: Optional[EventType[()]] = None,
|
|
328
|
+
on_mount: Optional[EventType[()]] = None,
|
|
329
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
330
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
331
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
332
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
333
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
334
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
335
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
336
|
+
on_pointer_down_outside: Optional[EventType[()]] = None,
|
|
337
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
338
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
343
339
|
**props,
|
|
344
340
|
) -> "SelectContent":
|
|
345
341
|
"""Create a new component instance.
|
|
@@ -385,21 +381,21 @@ class SelectGroup(RadixThemesComponent):
|
|
|
385
381
|
class_name: Optional[Any] = None,
|
|
386
382
|
autofocus: Optional[bool] = None,
|
|
387
383
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
388
|
-
on_blur: Optional[EventType[
|
|
389
|
-
on_click: Optional[EventType[
|
|
390
|
-
on_context_menu: Optional[EventType[
|
|
391
|
-
on_double_click: Optional[EventType[
|
|
392
|
-
on_focus: Optional[EventType[
|
|
393
|
-
on_mount: Optional[EventType[
|
|
394
|
-
on_mouse_down: Optional[EventType[
|
|
395
|
-
on_mouse_enter: Optional[EventType[
|
|
396
|
-
on_mouse_leave: Optional[EventType[
|
|
397
|
-
on_mouse_move: Optional[EventType[
|
|
398
|
-
on_mouse_out: Optional[EventType[
|
|
399
|
-
on_mouse_over: Optional[EventType[
|
|
400
|
-
on_mouse_up: Optional[EventType[
|
|
401
|
-
on_scroll: Optional[EventType[
|
|
402
|
-
on_unmount: Optional[EventType[
|
|
384
|
+
on_blur: Optional[EventType[()]] = None,
|
|
385
|
+
on_click: Optional[EventType[()]] = None,
|
|
386
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
387
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
388
|
+
on_focus: Optional[EventType[()]] = None,
|
|
389
|
+
on_mount: Optional[EventType[()]] = None,
|
|
390
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
391
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
392
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
393
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
394
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
395
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
396
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
397
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
398
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
403
399
|
**props,
|
|
404
400
|
) -> "SelectGroup":
|
|
405
401
|
"""Create a new component instance.
|
|
@@ -436,21 +432,21 @@ class SelectItem(RadixThemesComponent):
|
|
|
436
432
|
class_name: Optional[Any] = None,
|
|
437
433
|
autofocus: Optional[bool] = None,
|
|
438
434
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
439
|
-
on_blur: Optional[EventType[
|
|
440
|
-
on_click: Optional[EventType[
|
|
441
|
-
on_context_menu: Optional[EventType[
|
|
442
|
-
on_double_click: Optional[EventType[
|
|
443
|
-
on_focus: Optional[EventType[
|
|
444
|
-
on_mount: Optional[EventType[
|
|
445
|
-
on_mouse_down: Optional[EventType[
|
|
446
|
-
on_mouse_enter: Optional[EventType[
|
|
447
|
-
on_mouse_leave: Optional[EventType[
|
|
448
|
-
on_mouse_move: Optional[EventType[
|
|
449
|
-
on_mouse_out: Optional[EventType[
|
|
450
|
-
on_mouse_over: Optional[EventType[
|
|
451
|
-
on_mouse_up: Optional[EventType[
|
|
452
|
-
on_scroll: Optional[EventType[
|
|
453
|
-
on_unmount: Optional[EventType[
|
|
435
|
+
on_blur: Optional[EventType[()]] = None,
|
|
436
|
+
on_click: Optional[EventType[()]] = None,
|
|
437
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
438
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
439
|
+
on_focus: Optional[EventType[()]] = None,
|
|
440
|
+
on_mount: Optional[EventType[()]] = None,
|
|
441
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
442
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
443
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
444
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
445
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
446
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
447
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
448
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
449
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
454
450
|
**props,
|
|
455
451
|
) -> "SelectItem":
|
|
456
452
|
"""Create a new component instance.
|
|
@@ -487,21 +483,21 @@ class SelectLabel(RadixThemesComponent):
|
|
|
487
483
|
class_name: Optional[Any] = None,
|
|
488
484
|
autofocus: Optional[bool] = None,
|
|
489
485
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
490
|
-
on_blur: Optional[EventType[
|
|
491
|
-
on_click: Optional[EventType[
|
|
492
|
-
on_context_menu: Optional[EventType[
|
|
493
|
-
on_double_click: Optional[EventType[
|
|
494
|
-
on_focus: Optional[EventType[
|
|
495
|
-
on_mount: Optional[EventType[
|
|
496
|
-
on_mouse_down: Optional[EventType[
|
|
497
|
-
on_mouse_enter: Optional[EventType[
|
|
498
|
-
on_mouse_leave: Optional[EventType[
|
|
499
|
-
on_mouse_move: Optional[EventType[
|
|
500
|
-
on_mouse_out: Optional[EventType[
|
|
501
|
-
on_mouse_over: Optional[EventType[
|
|
502
|
-
on_mouse_up: Optional[EventType[
|
|
503
|
-
on_scroll: Optional[EventType[
|
|
504
|
-
on_unmount: Optional[EventType[
|
|
486
|
+
on_blur: Optional[EventType[()]] = None,
|
|
487
|
+
on_click: Optional[EventType[()]] = None,
|
|
488
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
489
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
490
|
+
on_focus: Optional[EventType[()]] = None,
|
|
491
|
+
on_mount: Optional[EventType[()]] = None,
|
|
492
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
493
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
494
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
495
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
496
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
497
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
498
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
499
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
500
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
505
501
|
**props,
|
|
506
502
|
) -> "SelectLabel":
|
|
507
503
|
"""Create a new component instance.
|
|
@@ -536,21 +532,21 @@ class SelectSeparator(RadixThemesComponent):
|
|
|
536
532
|
class_name: Optional[Any] = None,
|
|
537
533
|
autofocus: Optional[bool] = None,
|
|
538
534
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
539
|
-
on_blur: Optional[EventType[
|
|
540
|
-
on_click: Optional[EventType[
|
|
541
|
-
on_context_menu: Optional[EventType[
|
|
542
|
-
on_double_click: Optional[EventType[
|
|
543
|
-
on_focus: Optional[EventType[
|
|
544
|
-
on_mount: Optional[EventType[
|
|
545
|
-
on_mouse_down: Optional[EventType[
|
|
546
|
-
on_mouse_enter: Optional[EventType[
|
|
547
|
-
on_mouse_leave: Optional[EventType[
|
|
548
|
-
on_mouse_move: Optional[EventType[
|
|
549
|
-
on_mouse_out: Optional[EventType[
|
|
550
|
-
on_mouse_over: Optional[EventType[
|
|
551
|
-
on_mouse_up: Optional[EventType[
|
|
552
|
-
on_scroll: Optional[EventType[
|
|
553
|
-
on_unmount: Optional[EventType[
|
|
535
|
+
on_blur: Optional[EventType[()]] = None,
|
|
536
|
+
on_click: Optional[EventType[()]] = None,
|
|
537
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
538
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
539
|
+
on_focus: Optional[EventType[()]] = None,
|
|
540
|
+
on_mount: Optional[EventType[()]] = None,
|
|
541
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
542
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
543
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
544
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
545
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
546
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
547
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
548
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
549
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
554
550
|
**props,
|
|
555
551
|
) -> "SelectSeparator":
|
|
556
552
|
"""Create a new component instance.
|
|
@@ -688,27 +684,23 @@ class HighLevelSelect(SelectRoot):
|
|
|
688
684
|
class_name: Optional[Any] = None,
|
|
689
685
|
autofocus: Optional[bool] = None,
|
|
690
686
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
691
|
-
on_blur: Optional[EventType[
|
|
692
|
-
on_change: Optional[
|
|
693
|
-
|
|
694
|
-
] = None,
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
Union[EventType[[], BASE_STATE], EventType[[bool], BASE_STATE]]
|
|
709
|
-
] = None,
|
|
710
|
-
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
711
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
687
|
+
on_blur: Optional[EventType[()]] = None,
|
|
688
|
+
on_change: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
689
|
+
on_click: Optional[EventType[()]] = None,
|
|
690
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
691
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
692
|
+
on_focus: Optional[EventType[()]] = None,
|
|
693
|
+
on_mount: Optional[EventType[()]] = None,
|
|
694
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
695
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
696
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
697
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
698
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
699
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
700
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
701
|
+
on_open_change: Optional[Union[EventType[()], EventType[bool]]] = None,
|
|
702
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
703
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
712
704
|
**props,
|
|
713
705
|
) -> "HighLevelSelect":
|
|
714
706
|
"""Create a select component.
|
|
@@ -868,27 +860,23 @@ class Select(ComponentNamespace):
|
|
|
868
860
|
class_name: Optional[Any] = None,
|
|
869
861
|
autofocus: Optional[bool] = None,
|
|
870
862
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
871
|
-
on_blur: Optional[EventType[
|
|
872
|
-
on_change: Optional[
|
|
873
|
-
|
|
874
|
-
] = None,
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
Union[EventType[[], BASE_STATE], EventType[[bool], BASE_STATE]]
|
|
889
|
-
] = None,
|
|
890
|
-
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
891
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
863
|
+
on_blur: Optional[EventType[()]] = None,
|
|
864
|
+
on_change: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
865
|
+
on_click: Optional[EventType[()]] = None,
|
|
866
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
867
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
868
|
+
on_focus: Optional[EventType[()]] = None,
|
|
869
|
+
on_mount: Optional[EventType[()]] = None,
|
|
870
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
871
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
872
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
873
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
874
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
875
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
876
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
877
|
+
on_open_change: Optional[Union[EventType[()], EventType[bool]]] = None,
|
|
878
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
879
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
892
880
|
**props,
|
|
893
881
|
) -> "HighLevelSelect":
|
|
894
882
|
"""Create a select component.
|
|
@@ -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
|
|
|
@@ -113,21 +113,21 @@ class Separator(RadixThemesComponent):
|
|
|
113
113
|
class_name: Optional[Any] = None,
|
|
114
114
|
autofocus: Optional[bool] = None,
|
|
115
115
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
116
|
-
on_blur: Optional[EventType[
|
|
117
|
-
on_click: Optional[EventType[
|
|
118
|
-
on_context_menu: Optional[EventType[
|
|
119
|
-
on_double_click: Optional[EventType[
|
|
120
|
-
on_focus: Optional[EventType[
|
|
121
|
-
on_mount: Optional[EventType[
|
|
122
|
-
on_mouse_down: Optional[EventType[
|
|
123
|
-
on_mouse_enter: Optional[EventType[
|
|
124
|
-
on_mouse_leave: Optional[EventType[
|
|
125
|
-
on_mouse_move: Optional[EventType[
|
|
126
|
-
on_mouse_out: Optional[EventType[
|
|
127
|
-
on_mouse_over: Optional[EventType[
|
|
128
|
-
on_mouse_up: Optional[EventType[
|
|
129
|
-
on_scroll: Optional[EventType[
|
|
130
|
-
on_unmount: Optional[EventType[
|
|
116
|
+
on_blur: Optional[EventType[()]] = None,
|
|
117
|
+
on_click: Optional[EventType[()]] = None,
|
|
118
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
119
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
120
|
+
on_focus: Optional[EventType[()]] = None,
|
|
121
|
+
on_mount: Optional[EventType[()]] = None,
|
|
122
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
123
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
124
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
125
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
126
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
127
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
128
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
129
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
130
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
131
131
|
**props,
|
|
132
132
|
) -> "Separator":
|
|
133
133
|
"""Create a new component instance.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""Skeleton theme from Radix components."""
|
|
2
2
|
|
|
3
3
|
from reflex.components.core.breakpoints import Responsive
|
|
4
|
+
from reflex.constants.compiler import MemoizationMode
|
|
4
5
|
from reflex.vars.base import Var
|
|
5
6
|
|
|
6
7
|
from ..base import RadixLoadingProp, RadixThemesComponent
|
|
@@ -29,5 +30,7 @@ class Skeleton(RadixLoadingProp, RadixThemesComponent):
|
|
|
29
30
|
# The maximum height of the skeleton
|
|
30
31
|
max_height: Var[Responsive[str]]
|
|
31
32
|
|
|
33
|
+
_memoization_mode = MemoizationMode(recursive=False)
|
|
34
|
+
|
|
32
35
|
|
|
33
36
|
skeleton = Skeleton.create
|