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
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import ComponentNamespace
|
|
9
9
|
from reflex.components.el.elements.forms import Form as HTMLForm
|
|
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
|
|
|
@@ -26,21 +26,21 @@ class FormComponent(RadixPrimitiveComponentWithClassName):
|
|
|
26
26
|
class_name: Optional[Any] = None,
|
|
27
27
|
autofocus: Optional[bool] = None,
|
|
28
28
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
29
|
-
on_blur: Optional[EventType[
|
|
30
|
-
on_click: Optional[EventType[
|
|
31
|
-
on_context_menu: Optional[EventType[
|
|
32
|
-
on_double_click: Optional[EventType[
|
|
33
|
-
on_focus: Optional[EventType[
|
|
34
|
-
on_mount: Optional[EventType[
|
|
35
|
-
on_mouse_down: Optional[EventType[
|
|
36
|
-
on_mouse_enter: Optional[EventType[
|
|
37
|
-
on_mouse_leave: Optional[EventType[
|
|
38
|
-
on_mouse_move: Optional[EventType[
|
|
39
|
-
on_mouse_out: Optional[EventType[
|
|
40
|
-
on_mouse_over: Optional[EventType[
|
|
41
|
-
on_mouse_up: Optional[EventType[
|
|
42
|
-
on_scroll: Optional[EventType[
|
|
43
|
-
on_unmount: Optional[EventType[
|
|
29
|
+
on_blur: Optional[EventType[()]] = None,
|
|
30
|
+
on_click: Optional[EventType[()]] = None,
|
|
31
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
32
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
33
|
+
on_focus: Optional[EventType[()]] = None,
|
|
34
|
+
on_mount: Optional[EventType[()]] = None,
|
|
35
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
36
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
37
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
38
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
39
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
40
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
41
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
42
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
43
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
44
44
|
**props,
|
|
45
45
|
) -> "FormComponent":
|
|
46
46
|
"""Create the component.
|
|
@@ -114,32 +114,28 @@ class FormRoot(FormComponent, HTMLForm):
|
|
|
114
114
|
class_name: Optional[Any] = None,
|
|
115
115
|
autofocus: Optional[bool] = None,
|
|
116
116
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
117
|
-
on_blur: Optional[EventType[
|
|
118
|
-
on_clear_server_errors: Optional[EventType[
|
|
119
|
-
on_click: Optional[EventType[
|
|
120
|
-
on_context_menu: Optional[EventType[
|
|
121
|
-
on_double_click: Optional[EventType[
|
|
122
|
-
on_focus: Optional[EventType[
|
|
123
|
-
on_mount: Optional[EventType[
|
|
124
|
-
on_mouse_down: Optional[EventType[
|
|
125
|
-
on_mouse_enter: Optional[EventType[
|
|
126
|
-
on_mouse_leave: Optional[EventType[
|
|
127
|
-
on_mouse_move: Optional[EventType[
|
|
128
|
-
on_mouse_out: Optional[EventType[
|
|
129
|
-
on_mouse_over: Optional[EventType[
|
|
130
|
-
on_mouse_up: Optional[EventType[
|
|
131
|
-
on_scroll: Optional[EventType[
|
|
117
|
+
on_blur: Optional[EventType[()]] = None,
|
|
118
|
+
on_clear_server_errors: Optional[EventType[()]] = None,
|
|
119
|
+
on_click: Optional[EventType[()]] = None,
|
|
120
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
121
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
122
|
+
on_focus: Optional[EventType[()]] = None,
|
|
123
|
+
on_mount: Optional[EventType[()]] = None,
|
|
124
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
125
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
126
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
127
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
128
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
129
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
130
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
131
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
132
132
|
on_submit: Optional[
|
|
133
133
|
Union[
|
|
134
|
-
Union[
|
|
135
|
-
|
|
136
|
-
],
|
|
137
|
-
Union[
|
|
138
|
-
EventType[[], BASE_STATE], EventType[[Dict[str, str]], BASE_STATE]
|
|
139
|
-
],
|
|
134
|
+
Union[EventType[()], EventType[dict[str, Any]]],
|
|
135
|
+
Union[EventType[()], EventType[dict[str, str]]],
|
|
140
136
|
]
|
|
141
137
|
] = None,
|
|
142
|
-
on_unmount: Optional[EventType[
|
|
138
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
143
139
|
**props,
|
|
144
140
|
) -> "FormRoot":
|
|
145
141
|
"""Create a form component.
|
|
@@ -205,21 +201,21 @@ class FormField(FormComponent):
|
|
|
205
201
|
class_name: Optional[Any] = None,
|
|
206
202
|
autofocus: Optional[bool] = None,
|
|
207
203
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
208
|
-
on_blur: Optional[EventType[
|
|
209
|
-
on_click: Optional[EventType[
|
|
210
|
-
on_context_menu: Optional[EventType[
|
|
211
|
-
on_double_click: Optional[EventType[
|
|
212
|
-
on_focus: Optional[EventType[
|
|
213
|
-
on_mount: Optional[EventType[
|
|
214
|
-
on_mouse_down: Optional[EventType[
|
|
215
|
-
on_mouse_enter: Optional[EventType[
|
|
216
|
-
on_mouse_leave: Optional[EventType[
|
|
217
|
-
on_mouse_move: Optional[EventType[
|
|
218
|
-
on_mouse_out: Optional[EventType[
|
|
219
|
-
on_mouse_over: Optional[EventType[
|
|
220
|
-
on_mouse_up: Optional[EventType[
|
|
221
|
-
on_scroll: Optional[EventType[
|
|
222
|
-
on_unmount: Optional[EventType[
|
|
204
|
+
on_blur: Optional[EventType[()]] = None,
|
|
205
|
+
on_click: Optional[EventType[()]] = None,
|
|
206
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
207
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
208
|
+
on_focus: Optional[EventType[()]] = None,
|
|
209
|
+
on_mount: Optional[EventType[()]] = None,
|
|
210
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
211
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
212
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
213
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
214
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
215
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
216
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
217
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
218
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
223
219
|
**props,
|
|
224
220
|
) -> "FormField":
|
|
225
221
|
"""Create the component.
|
|
@@ -256,21 +252,21 @@ class FormLabel(FormComponent):
|
|
|
256
252
|
class_name: Optional[Any] = None,
|
|
257
253
|
autofocus: Optional[bool] = None,
|
|
258
254
|
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[
|
|
255
|
+
on_blur: Optional[EventType[()]] = None,
|
|
256
|
+
on_click: Optional[EventType[()]] = None,
|
|
257
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
258
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
259
|
+
on_focus: Optional[EventType[()]] = None,
|
|
260
|
+
on_mount: Optional[EventType[()]] = None,
|
|
261
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
262
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
263
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
264
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
265
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
266
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
267
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
268
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
269
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
274
270
|
**props,
|
|
275
271
|
) -> "FormLabel":
|
|
276
272
|
"""Create the component.
|
|
@@ -304,21 +300,21 @@ class FormControl(FormComponent):
|
|
|
304
300
|
class_name: Optional[Any] = None,
|
|
305
301
|
autofocus: Optional[bool] = None,
|
|
306
302
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
307
|
-
on_blur: Optional[EventType[
|
|
308
|
-
on_click: Optional[EventType[
|
|
309
|
-
on_context_menu: Optional[EventType[
|
|
310
|
-
on_double_click: Optional[EventType[
|
|
311
|
-
on_focus: Optional[EventType[
|
|
312
|
-
on_mount: Optional[EventType[
|
|
313
|
-
on_mouse_down: Optional[EventType[
|
|
314
|
-
on_mouse_enter: Optional[EventType[
|
|
315
|
-
on_mouse_leave: Optional[EventType[
|
|
316
|
-
on_mouse_move: Optional[EventType[
|
|
317
|
-
on_mouse_out: Optional[EventType[
|
|
318
|
-
on_mouse_over: Optional[EventType[
|
|
319
|
-
on_mouse_up: Optional[EventType[
|
|
320
|
-
on_scroll: Optional[EventType[
|
|
321
|
-
on_unmount: Optional[EventType[
|
|
303
|
+
on_blur: Optional[EventType[()]] = None,
|
|
304
|
+
on_click: Optional[EventType[()]] = None,
|
|
305
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
306
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
307
|
+
on_focus: Optional[EventType[()]] = None,
|
|
308
|
+
on_mount: Optional[EventType[()]] = None,
|
|
309
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
310
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
311
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
312
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
313
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
314
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
315
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
316
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
317
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
322
318
|
**props,
|
|
323
319
|
) -> "FormControl":
|
|
324
320
|
"""Create a Form Control component.
|
|
@@ -402,21 +398,21 @@ class FormMessage(FormComponent):
|
|
|
402
398
|
class_name: Optional[Any] = None,
|
|
403
399
|
autofocus: Optional[bool] = None,
|
|
404
400
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
405
|
-
on_blur: Optional[EventType[
|
|
406
|
-
on_click: Optional[EventType[
|
|
407
|
-
on_context_menu: Optional[EventType[
|
|
408
|
-
on_double_click: Optional[EventType[
|
|
409
|
-
on_focus: Optional[EventType[
|
|
410
|
-
on_mount: Optional[EventType[
|
|
411
|
-
on_mouse_down: Optional[EventType[
|
|
412
|
-
on_mouse_enter: Optional[EventType[
|
|
413
|
-
on_mouse_leave: Optional[EventType[
|
|
414
|
-
on_mouse_move: Optional[EventType[
|
|
415
|
-
on_mouse_out: Optional[EventType[
|
|
416
|
-
on_mouse_over: Optional[EventType[
|
|
417
|
-
on_mouse_up: Optional[EventType[
|
|
418
|
-
on_scroll: Optional[EventType[
|
|
419
|
-
on_unmount: Optional[EventType[
|
|
401
|
+
on_blur: Optional[EventType[()]] = None,
|
|
402
|
+
on_click: Optional[EventType[()]] = None,
|
|
403
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
404
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
405
|
+
on_focus: Optional[EventType[()]] = None,
|
|
406
|
+
on_mount: Optional[EventType[()]] = None,
|
|
407
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
408
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
409
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
410
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
411
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
412
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
413
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
414
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
415
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
420
416
|
**props,
|
|
421
417
|
) -> "FormMessage":
|
|
422
418
|
"""Create the component.
|
|
@@ -453,21 +449,21 @@ class FormValidityState(FormComponent):
|
|
|
453
449
|
class_name: Optional[Any] = None,
|
|
454
450
|
autofocus: Optional[bool] = None,
|
|
455
451
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
456
|
-
on_blur: Optional[EventType[
|
|
457
|
-
on_click: Optional[EventType[
|
|
458
|
-
on_context_menu: Optional[EventType[
|
|
459
|
-
on_double_click: Optional[EventType[
|
|
460
|
-
on_focus: Optional[EventType[
|
|
461
|
-
on_mount: Optional[EventType[
|
|
462
|
-
on_mouse_down: Optional[EventType[
|
|
463
|
-
on_mouse_enter: Optional[EventType[
|
|
464
|
-
on_mouse_leave: Optional[EventType[
|
|
465
|
-
on_mouse_move: Optional[EventType[
|
|
466
|
-
on_mouse_out: Optional[EventType[
|
|
467
|
-
on_mouse_over: Optional[EventType[
|
|
468
|
-
on_mouse_up: Optional[EventType[
|
|
469
|
-
on_scroll: Optional[EventType[
|
|
470
|
-
on_unmount: Optional[EventType[
|
|
452
|
+
on_blur: Optional[EventType[()]] = None,
|
|
453
|
+
on_click: Optional[EventType[()]] = None,
|
|
454
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
455
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
456
|
+
on_focus: Optional[EventType[()]] = None,
|
|
457
|
+
on_mount: Optional[EventType[()]] = None,
|
|
458
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
459
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
460
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
461
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
462
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
463
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
464
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
465
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
466
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
471
467
|
**props,
|
|
472
468
|
) -> "FormValidityState":
|
|
473
469
|
"""Create the component.
|
|
@@ -501,21 +497,21 @@ class FormSubmit(FormComponent):
|
|
|
501
497
|
class_name: Optional[Any] = None,
|
|
502
498
|
autofocus: Optional[bool] = None,
|
|
503
499
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
504
|
-
on_blur: Optional[EventType[
|
|
505
|
-
on_click: Optional[EventType[
|
|
506
|
-
on_context_menu: Optional[EventType[
|
|
507
|
-
on_double_click: Optional[EventType[
|
|
508
|
-
on_focus: Optional[EventType[
|
|
509
|
-
on_mount: Optional[EventType[
|
|
510
|
-
on_mouse_down: Optional[EventType[
|
|
511
|
-
on_mouse_enter: Optional[EventType[
|
|
512
|
-
on_mouse_leave: Optional[EventType[
|
|
513
|
-
on_mouse_move: Optional[EventType[
|
|
514
|
-
on_mouse_out: Optional[EventType[
|
|
515
|
-
on_mouse_over: Optional[EventType[
|
|
516
|
-
on_mouse_up: Optional[EventType[
|
|
517
|
-
on_scroll: Optional[EventType[
|
|
518
|
-
on_unmount: Optional[EventType[
|
|
500
|
+
on_blur: Optional[EventType[()]] = None,
|
|
501
|
+
on_click: Optional[EventType[()]] = None,
|
|
502
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
503
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
504
|
+
on_focus: Optional[EventType[()]] = None,
|
|
505
|
+
on_mount: Optional[EventType[()]] = None,
|
|
506
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
507
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
508
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
509
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
510
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
511
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
512
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
513
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
514
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
519
515
|
**props,
|
|
520
516
|
) -> "FormSubmit":
|
|
521
517
|
"""Create the component.
|
|
@@ -590,32 +586,28 @@ class Form(FormRoot):
|
|
|
590
586
|
class_name: Optional[Any] = None,
|
|
591
587
|
autofocus: Optional[bool] = None,
|
|
592
588
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
593
|
-
on_blur: Optional[EventType[
|
|
594
|
-
on_clear_server_errors: Optional[EventType[
|
|
595
|
-
on_click: Optional[EventType[
|
|
596
|
-
on_context_menu: Optional[EventType[
|
|
597
|
-
on_double_click: Optional[EventType[
|
|
598
|
-
on_focus: Optional[EventType[
|
|
599
|
-
on_mount: Optional[EventType[
|
|
600
|
-
on_mouse_down: Optional[EventType[
|
|
601
|
-
on_mouse_enter: Optional[EventType[
|
|
602
|
-
on_mouse_leave: Optional[EventType[
|
|
603
|
-
on_mouse_move: Optional[EventType[
|
|
604
|
-
on_mouse_out: Optional[EventType[
|
|
605
|
-
on_mouse_over: Optional[EventType[
|
|
606
|
-
on_mouse_up: Optional[EventType[
|
|
607
|
-
on_scroll: Optional[EventType[
|
|
589
|
+
on_blur: Optional[EventType[()]] = None,
|
|
590
|
+
on_clear_server_errors: Optional[EventType[()]] = None,
|
|
591
|
+
on_click: Optional[EventType[()]] = None,
|
|
592
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
593
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
594
|
+
on_focus: Optional[EventType[()]] = None,
|
|
595
|
+
on_mount: Optional[EventType[()]] = None,
|
|
596
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
597
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
598
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
599
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
600
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
601
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
602
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
603
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
608
604
|
on_submit: Optional[
|
|
609
605
|
Union[
|
|
610
|
-
Union[
|
|
611
|
-
|
|
612
|
-
],
|
|
613
|
-
Union[
|
|
614
|
-
EventType[[], BASE_STATE], EventType[[Dict[str, str]], BASE_STATE]
|
|
615
|
-
],
|
|
606
|
+
Union[EventType[()], EventType[dict[str, Any]]],
|
|
607
|
+
Union[EventType[()], EventType[dict[str, str]]],
|
|
616
608
|
]
|
|
617
609
|
] = None,
|
|
618
|
-
on_unmount: Optional[EventType[
|
|
610
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
619
611
|
**props,
|
|
620
612
|
) -> "Form":
|
|
621
613
|
"""Create a form component.
|
|
@@ -723,32 +715,28 @@ class FormNamespace(ComponentNamespace):
|
|
|
723
715
|
class_name: Optional[Any] = None,
|
|
724
716
|
autofocus: Optional[bool] = None,
|
|
725
717
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
726
|
-
on_blur: Optional[EventType[
|
|
727
|
-
on_clear_server_errors: Optional[EventType[
|
|
728
|
-
on_click: Optional[EventType[
|
|
729
|
-
on_context_menu: Optional[EventType[
|
|
730
|
-
on_double_click: Optional[EventType[
|
|
731
|
-
on_focus: Optional[EventType[
|
|
732
|
-
on_mount: Optional[EventType[
|
|
733
|
-
on_mouse_down: Optional[EventType[
|
|
734
|
-
on_mouse_enter: Optional[EventType[
|
|
735
|
-
on_mouse_leave: Optional[EventType[
|
|
736
|
-
on_mouse_move: Optional[EventType[
|
|
737
|
-
on_mouse_out: Optional[EventType[
|
|
738
|
-
on_mouse_over: Optional[EventType[
|
|
739
|
-
on_mouse_up: Optional[EventType[
|
|
740
|
-
on_scroll: Optional[EventType[
|
|
718
|
+
on_blur: Optional[EventType[()]] = None,
|
|
719
|
+
on_clear_server_errors: Optional[EventType[()]] = None,
|
|
720
|
+
on_click: Optional[EventType[()]] = None,
|
|
721
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
722
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
723
|
+
on_focus: Optional[EventType[()]] = None,
|
|
724
|
+
on_mount: Optional[EventType[()]] = None,
|
|
725
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
726
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
727
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
728
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
729
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
730
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
731
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
732
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
741
733
|
on_submit: Optional[
|
|
742
734
|
Union[
|
|
743
|
-
Union[
|
|
744
|
-
|
|
745
|
-
],
|
|
746
|
-
Union[
|
|
747
|
-
EventType[[], BASE_STATE], EventType[[Dict[str, str]], BASE_STATE]
|
|
748
|
-
],
|
|
735
|
+
Union[EventType[()], EventType[dict[str, Any]]],
|
|
736
|
+
Union[EventType[()], EventType[dict[str, str]]],
|
|
749
737
|
]
|
|
750
738
|
] = None,
|
|
751
|
-
on_unmount: Optional[EventType[
|
|
739
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
752
740
|
**props,
|
|
753
741
|
) -> "Form":
|
|
754
742
|
"""Create a form component.
|
|
@@ -83,7 +83,7 @@ class ProgressIndicator(ProgressComponent):
|
|
|
83
83
|
"&[data_state='loading']": {
|
|
84
84
|
"transition": f"transform {DEFAULT_ANIMATION_DURATION}ms linear",
|
|
85
85
|
},
|
|
86
|
-
"transform": f"translateX(calc(-100% + ({self.value} / {self.max} * 100%)))",
|
|
86
|
+
"transform": f"translateX(calc(-100% + ({self.value} / {self.max} * 100%)))",
|
|
87
87
|
"boxShadow": "inset 0 0 0 1px var(--gray-a5)",
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import ComponentNamespace
|
|
9
9
|
from reflex.components.radix.primitives.base import RadixPrimitiveComponentWithClassName
|
|
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
|
|
|
@@ -24,21 +24,21 @@ class ProgressComponent(RadixPrimitiveComponentWithClassName):
|
|
|
24
24
|
class_name: Optional[Any] = None,
|
|
25
25
|
autofocus: Optional[bool] = None,
|
|
26
26
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
27
|
-
on_blur: Optional[EventType[
|
|
28
|
-
on_click: Optional[EventType[
|
|
29
|
-
on_context_menu: Optional[EventType[
|
|
30
|
-
on_double_click: Optional[EventType[
|
|
31
|
-
on_focus: Optional[EventType[
|
|
32
|
-
on_mount: Optional[EventType[
|
|
33
|
-
on_mouse_down: Optional[EventType[
|
|
34
|
-
on_mouse_enter: Optional[EventType[
|
|
35
|
-
on_mouse_leave: Optional[EventType[
|
|
36
|
-
on_mouse_move: Optional[EventType[
|
|
37
|
-
on_mouse_out: Optional[EventType[
|
|
38
|
-
on_mouse_over: Optional[EventType[
|
|
39
|
-
on_mouse_up: Optional[EventType[
|
|
40
|
-
on_scroll: Optional[EventType[
|
|
41
|
-
on_unmount: Optional[EventType[
|
|
27
|
+
on_blur: Optional[EventType[()]] = None,
|
|
28
|
+
on_click: Optional[EventType[()]] = None,
|
|
29
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
30
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
31
|
+
on_focus: Optional[EventType[()]] = None,
|
|
32
|
+
on_mount: Optional[EventType[()]] = None,
|
|
33
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
34
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
35
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
36
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
37
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
38
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
39
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
40
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
41
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
42
42
|
**props,
|
|
43
43
|
) -> "ProgressComponent":
|
|
44
44
|
"""Create the component.
|
|
@@ -79,21 +79,21 @@ class ProgressRoot(ProgressComponent):
|
|
|
79
79
|
class_name: Optional[Any] = None,
|
|
80
80
|
autofocus: Optional[bool] = None,
|
|
81
81
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
82
|
-
on_blur: Optional[EventType[
|
|
83
|
-
on_click: Optional[EventType[
|
|
84
|
-
on_context_menu: Optional[EventType[
|
|
85
|
-
on_double_click: Optional[EventType[
|
|
86
|
-
on_focus: Optional[EventType[
|
|
87
|
-
on_mount: Optional[EventType[
|
|
88
|
-
on_mouse_down: Optional[EventType[
|
|
89
|
-
on_mouse_enter: Optional[EventType[
|
|
90
|
-
on_mouse_leave: Optional[EventType[
|
|
91
|
-
on_mouse_move: Optional[EventType[
|
|
92
|
-
on_mouse_out: Optional[EventType[
|
|
93
|
-
on_mouse_over: Optional[EventType[
|
|
94
|
-
on_mouse_up: Optional[EventType[
|
|
95
|
-
on_scroll: Optional[EventType[
|
|
96
|
-
on_unmount: Optional[EventType[
|
|
82
|
+
on_blur: Optional[EventType[()]] = None,
|
|
83
|
+
on_click: Optional[EventType[()]] = None,
|
|
84
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
85
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
86
|
+
on_focus: Optional[EventType[()]] = None,
|
|
87
|
+
on_mount: Optional[EventType[()]] = None,
|
|
88
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
89
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
90
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
91
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
92
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
93
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
94
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
95
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
96
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
97
97
|
**props,
|
|
98
98
|
) -> "ProgressRoot":
|
|
99
99
|
"""Create the component.
|
|
@@ -193,21 +193,21 @@ class ProgressIndicator(ProgressComponent):
|
|
|
193
193
|
class_name: Optional[Any] = None,
|
|
194
194
|
autofocus: Optional[bool] = None,
|
|
195
195
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
196
|
-
on_blur: Optional[EventType[
|
|
197
|
-
on_click: Optional[EventType[
|
|
198
|
-
on_context_menu: Optional[EventType[
|
|
199
|
-
on_double_click: Optional[EventType[
|
|
200
|
-
on_focus: Optional[EventType[
|
|
201
|
-
on_mount: Optional[EventType[
|
|
202
|
-
on_mouse_down: Optional[EventType[
|
|
203
|
-
on_mouse_enter: Optional[EventType[
|
|
204
|
-
on_mouse_leave: Optional[EventType[
|
|
205
|
-
on_mouse_move: Optional[EventType[
|
|
206
|
-
on_mouse_out: Optional[EventType[
|
|
207
|
-
on_mouse_over: Optional[EventType[
|
|
208
|
-
on_mouse_up: Optional[EventType[
|
|
209
|
-
on_scroll: Optional[EventType[
|
|
210
|
-
on_unmount: Optional[EventType[
|
|
196
|
+
on_blur: Optional[EventType[()]] = None,
|
|
197
|
+
on_click: Optional[EventType[()]] = None,
|
|
198
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
199
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
200
|
+
on_focus: Optional[EventType[()]] = None,
|
|
201
|
+
on_mount: Optional[EventType[()]] = None,
|
|
202
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
203
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
204
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
205
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
206
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
207
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
208
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
209
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
210
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
211
211
|
**props,
|
|
212
212
|
) -> "ProgressIndicator":
|
|
213
213
|
"""Create the component.
|
|
@@ -314,21 +314,21 @@ class Progress(ProgressRoot):
|
|
|
314
314
|
class_name: Optional[Any] = None,
|
|
315
315
|
autofocus: Optional[bool] = None,
|
|
316
316
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
317
|
-
on_blur: Optional[EventType[
|
|
318
|
-
on_click: Optional[EventType[
|
|
319
|
-
on_context_menu: Optional[EventType[
|
|
320
|
-
on_double_click: Optional[EventType[
|
|
321
|
-
on_focus: Optional[EventType[
|
|
322
|
-
on_mount: Optional[EventType[
|
|
323
|
-
on_mouse_down: Optional[EventType[
|
|
324
|
-
on_mouse_enter: Optional[EventType[
|
|
325
|
-
on_mouse_leave: Optional[EventType[
|
|
326
|
-
on_mouse_move: Optional[EventType[
|
|
327
|
-
on_mouse_out: Optional[EventType[
|
|
328
|
-
on_mouse_over: Optional[EventType[
|
|
329
|
-
on_mouse_up: Optional[EventType[
|
|
330
|
-
on_scroll: Optional[EventType[
|
|
331
|
-
on_unmount: Optional[EventType[
|
|
317
|
+
on_blur: Optional[EventType[()]] = None,
|
|
318
|
+
on_click: Optional[EventType[()]] = None,
|
|
319
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
320
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
321
|
+
on_focus: Optional[EventType[()]] = None,
|
|
322
|
+
on_mount: Optional[EventType[()]] = None,
|
|
323
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
324
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
325
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
326
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
327
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
328
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
329
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
330
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
331
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
332
332
|
**props,
|
|
333
333
|
) -> "Progress":
|
|
334
334
|
"""High-level API for progress bar.
|
|
@@ -436,21 +436,21 @@ class ProgressNamespace(ComponentNamespace):
|
|
|
436
436
|
class_name: Optional[Any] = None,
|
|
437
437
|
autofocus: Optional[bool] = None,
|
|
438
438
|
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[
|
|
439
|
+
on_blur: Optional[EventType[()]] = None,
|
|
440
|
+
on_click: Optional[EventType[()]] = None,
|
|
441
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
442
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
443
|
+
on_focus: Optional[EventType[()]] = None,
|
|
444
|
+
on_mount: Optional[EventType[()]] = None,
|
|
445
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
446
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
447
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
448
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
449
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
450
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
451
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
452
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
453
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
454
454
|
**props,
|
|
455
455
|
) -> "Progress":
|
|
456
456
|
"""High-level API for progress bar.
|