reflex 0.7.0a1__py3-none-any.whl → 0.7.0a3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of reflex might be problematic. Click here for more details.
- reflex/.templates/jinja/web/pages/utils.js.jinja2 +1 -1
- reflex/app.py +6 -8
- reflex/components/base/app_wrap.pyi +16 -16
- reflex/components/base/body.pyi +16 -16
- reflex/components/base/document.pyi +76 -76
- reflex/components/base/error_boundary.pyi +17 -21
- reflex/components/base/fragment.pyi +16 -16
- reflex/components/base/head.pyi +31 -31
- reflex/components/base/link.pyi +31 -31
- reflex/components/base/meta.pyi +61 -61
- reflex/components/base/script.pyi +19 -19
- reflex/components/base/strict_mode.pyi +16 -16
- reflex/components/core/banner.py +95 -19
- reflex/components/core/banner.pyi +91 -91
- reflex/components/core/client_side_routing.pyi +31 -31
- reflex/components/core/clipboard.pyi +17 -20
- reflex/components/core/debounce.pyi +17 -17
- reflex/components/core/foreach.py +5 -0
- reflex/components/core/html.pyi +16 -16
- reflex/components/core/sticky.pyi +61 -61
- reflex/components/core/upload.pyi +80 -88
- reflex/components/datadisplay/code.pyi +31 -31
- reflex/components/datadisplay/dataeditor.pyi +40 -54
- reflex/components/datadisplay/shiki_code_block.pyi +46 -46
- reflex/components/el/element.pyi +16 -16
- reflex/components/el/elements/base.pyi +16 -16
- reflex/components/el/elements/forms.pyi +222 -256
- reflex/components/el/elements/inline.pyi +421 -421
- reflex/components/el/elements/media.pyi +376 -376
- reflex/components/el/elements/metadata.pyi +91 -91
- reflex/components/el/elements/other.pyi +106 -106
- reflex/components/el/elements/scripts.pyi +46 -46
- reflex/components/el/elements/sectioning.pyi +226 -226
- reflex/components/el/elements/tables.pyi +151 -151
- reflex/components/el/elements/typography.pyi +226 -226
- reflex/components/gridjs/datatable.pyi +31 -31
- reflex/components/lucide/icon.pyi +46 -46
- reflex/components/markdown/markdown.pyi +16 -16
- reflex/components/moment/moment.pyi +17 -19
- reflex/components/next/base.pyi +16 -16
- reflex/components/next/image.pyi +18 -18
- reflex/components/next/link.pyi +16 -16
- reflex/components/next/video.pyi +16 -16
- reflex/components/plotly/plotly.pyi +34 -44
- reflex/components/radix/primitives/accordion.pyi +107 -107
- reflex/components/radix/primitives/base.pyi +31 -31
- reflex/components/radix/primitives/drawer.pyi +175 -183
- reflex/components/radix/primitives/form.pyi +160 -172
- reflex/components/radix/primitives/progress.pyi +76 -76
- reflex/components/radix/primitives/slider.pyi +78 -82
- reflex/components/radix/themes/base.pyi +121 -121
- reflex/components/radix/themes/color_mode.pyi +47 -49
- reflex/components/radix/themes/components/alert_dialog.pyi +110 -112
- reflex/components/radix/themes/components/aspect_ratio.pyi +16 -16
- reflex/components/radix/themes/components/avatar.pyi +16 -16
- reflex/components/radix/themes/components/badge.pyi +16 -16
- reflex/components/radix/themes/components/button.pyi +16 -16
- reflex/components/radix/themes/components/callout.pyi +76 -76
- reflex/components/radix/themes/components/card.pyi +16 -16
- reflex/components/radix/themes/components/checkbox.pyi +49 -55
- reflex/components/radix/themes/components/checkbox_cards.pyi +31 -31
- reflex/components/radix/themes/components/checkbox_group.pyi +31 -31
- reflex/components/radix/themes/components/context_menu.pyi +149 -155
- reflex/components/radix/themes/components/data_list.pyi +61 -61
- reflex/components/radix/themes/components/dialog.pyi +113 -117
- reflex/components/radix/themes/components/dropdown_menu.pyi +133 -137
- reflex/components/radix/themes/components/hover_card.pyi +63 -67
- reflex/components/radix/themes/components/icon_button.pyi +16 -16
- reflex/components/radix/themes/components/inset.pyi +16 -16
- reflex/components/radix/themes/components/popover.pyi +68 -70
- reflex/components/radix/themes/components/progress.pyi +16 -16
- reflex/components/radix/themes/components/radio.pyi +16 -16
- reflex/components/radix/themes/components/radio_cards.pyi +32 -34
- reflex/components/radix/themes/components/radio_group.pyi +62 -64
- reflex/components/radix/themes/components/scroll_area.pyi +16 -16
- reflex/components/radix/themes/components/segmented_control.pyi +32 -35
- reflex/components/radix/themes/components/select.py +1 -0
- reflex/components/radix/themes/components/select.pyi +145 -157
- reflex/components/radix/themes/components/separator.pyi +16 -16
- reflex/components/radix/themes/components/skeleton.py +3 -0
- reflex/components/radix/themes/components/skeleton.pyi +16 -16
- reflex/components/radix/themes/components/slider.pyi +22 -28
- reflex/components/radix/themes/components/spinner.pyi +16 -16
- reflex/components/radix/themes/components/switch.pyi +17 -19
- reflex/components/radix/themes/components/table.pyi +106 -106
- reflex/components/radix/themes/components/tabs.pyi +78 -82
- reflex/components/radix/themes/components/text_area.pyi +19 -33
- reflex/components/radix/themes/components/text_field.pyi +52 -80
- reflex/components/radix/themes/components/tooltip.py +3 -0
- reflex/components/radix/themes/components/tooltip.pyi +19 -21
- reflex/components/radix/themes/layout/base.pyi +16 -16
- reflex/components/radix/themes/layout/box.pyi +16 -16
- reflex/components/radix/themes/layout/center.pyi +16 -16
- reflex/components/radix/themes/layout/container.pyi +16 -16
- reflex/components/radix/themes/layout/flex.pyi +16 -16
- reflex/components/radix/themes/layout/grid.pyi +16 -16
- reflex/components/radix/themes/layout/list.pyi +76 -76
- reflex/components/radix/themes/layout/section.pyi +16 -16
- reflex/components/radix/themes/layout/spacer.pyi +16 -16
- reflex/components/radix/themes/layout/stack.pyi +46 -46
- reflex/components/radix/themes/typography/blockquote.pyi +16 -16
- reflex/components/radix/themes/typography/code.pyi +16 -16
- reflex/components/radix/themes/typography/heading.pyi +16 -16
- reflex/components/radix/themes/typography/link.pyi +16 -16
- reflex/components/radix/themes/typography/text.pyi +106 -106
- reflex/components/react_player/audio.pyi +33 -39
- reflex/components/react_player/react_player.pyi +32 -38
- reflex/components/react_player/video.pyi +33 -39
- reflex/components/recharts/cartesian.pyi +282 -282
- reflex/components/recharts/charts.pyi +164 -164
- reflex/components/recharts/general.pyi +92 -92
- reflex/components/recharts/polar.pyi +55 -55
- reflex/components/recharts/recharts.pyi +31 -31
- reflex/components/sonner/toast.pyi +16 -16
- reflex/components/suneditor/editor.pyi +24 -38
- reflex/custom_components/custom_components.py +10 -4
- reflex/event.py +89 -51
- reflex/experimental/layout.pyi +78 -82
- reflex/page.py +2 -2
- reflex/utils/exceptions.py +13 -0
- reflex/utils/format.py +1 -1
- reflex/utils/prerequisites.py +3 -3
- reflex/utils/pyi_generator.py +9 -8
- reflex/vars/base.py +10 -4
- {reflex-0.7.0a1.dist-info → reflex-0.7.0a3.dist-info}/METADATA +1 -1
- {reflex-0.7.0a1.dist-info → reflex-0.7.0a3.dist-info}/RECORD +129 -129
- {reflex-0.7.0a1.dist-info → reflex-0.7.0a3.dist-info}/LICENSE +0 -0
- {reflex-0.7.0a1.dist-info → reflex-0.7.0a3.dist-info}/WHEEL +0 -0
- {reflex-0.7.0a1.dist-info → reflex-0.7.0a3.dist-info}/entry_points.txt +0 -0
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, List, Literal, Optional, Union, overload
|
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import MemoizationLeaf
|
|
9
9
|
from reflex.constants.colors import Color
|
|
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
|
|
|
@@ -31,22 +31,22 @@ class ResponsiveContainer(Recharts, MemoizationLeaf):
|
|
|
31
31
|
class_name: Optional[Any] = None,
|
|
32
32
|
autofocus: Optional[bool] = None,
|
|
33
33
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
34
|
-
on_blur: Optional[EventType[
|
|
35
|
-
on_click: Optional[EventType[
|
|
36
|
-
on_context_menu: Optional[EventType[
|
|
37
|
-
on_double_click: Optional[EventType[
|
|
38
|
-
on_focus: Optional[EventType[
|
|
39
|
-
on_mount: Optional[EventType[
|
|
40
|
-
on_mouse_down: Optional[EventType[
|
|
41
|
-
on_mouse_enter: Optional[EventType[
|
|
42
|
-
on_mouse_leave: Optional[EventType[
|
|
43
|
-
on_mouse_move: Optional[EventType[
|
|
44
|
-
on_mouse_out: Optional[EventType[
|
|
45
|
-
on_mouse_over: Optional[EventType[
|
|
46
|
-
on_mouse_up: Optional[EventType[
|
|
47
|
-
on_resize: Optional[EventType[
|
|
48
|
-
on_scroll: Optional[EventType[
|
|
49
|
-
on_unmount: Optional[EventType[
|
|
34
|
+
on_blur: Optional[EventType[()]] = None,
|
|
35
|
+
on_click: Optional[EventType[()]] = None,
|
|
36
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
37
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
38
|
+
on_focus: Optional[EventType[()]] = None,
|
|
39
|
+
on_mount: Optional[EventType[()]] = None,
|
|
40
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
41
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
42
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
43
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
44
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
45
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
46
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
47
|
+
on_resize: Optional[EventType[()]] = None,
|
|
48
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
49
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
50
50
|
**props,
|
|
51
51
|
) -> "ResponsiveContainer":
|
|
52
52
|
"""Create a new memoization leaf component.
|
|
@@ -142,21 +142,21 @@ class Legend(Recharts):
|
|
|
142
142
|
class_name: Optional[Any] = None,
|
|
143
143
|
autofocus: Optional[bool] = None,
|
|
144
144
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
145
|
-
on_blur: Optional[EventType[
|
|
146
|
-
on_click: Optional[EventType[
|
|
147
|
-
on_context_menu: Optional[EventType[
|
|
148
|
-
on_double_click: Optional[EventType[
|
|
149
|
-
on_focus: Optional[EventType[
|
|
150
|
-
on_mount: Optional[EventType[
|
|
151
|
-
on_mouse_down: Optional[EventType[
|
|
152
|
-
on_mouse_enter: Optional[EventType[
|
|
153
|
-
on_mouse_leave: Optional[EventType[
|
|
154
|
-
on_mouse_move: Optional[EventType[
|
|
155
|
-
on_mouse_out: Optional[EventType[
|
|
156
|
-
on_mouse_over: Optional[EventType[
|
|
157
|
-
on_mouse_up: Optional[EventType[
|
|
158
|
-
on_scroll: Optional[EventType[
|
|
159
|
-
on_unmount: Optional[EventType[
|
|
145
|
+
on_blur: Optional[EventType[()]] = None,
|
|
146
|
+
on_click: Optional[EventType[()]] = None,
|
|
147
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
148
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
149
|
+
on_focus: Optional[EventType[()]] = None,
|
|
150
|
+
on_mount: Optional[EventType[()]] = None,
|
|
151
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
152
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
153
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
154
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
155
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
156
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
157
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
158
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
159
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
160
160
|
**props,
|
|
161
161
|
) -> "Legend":
|
|
162
162
|
"""Create the component.
|
|
@@ -232,21 +232,21 @@ class GraphingTooltip(Recharts):
|
|
|
232
232
|
class_name: Optional[Any] = None,
|
|
233
233
|
autofocus: Optional[bool] = None,
|
|
234
234
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
235
|
-
on_blur: Optional[EventType[
|
|
236
|
-
on_click: Optional[EventType[
|
|
237
|
-
on_context_menu: Optional[EventType[
|
|
238
|
-
on_double_click: Optional[EventType[
|
|
239
|
-
on_focus: Optional[EventType[
|
|
240
|
-
on_mount: Optional[EventType[
|
|
241
|
-
on_mouse_down: Optional[EventType[
|
|
242
|
-
on_mouse_enter: Optional[EventType[
|
|
243
|
-
on_mouse_leave: Optional[EventType[
|
|
244
|
-
on_mouse_move: Optional[EventType[
|
|
245
|
-
on_mouse_out: Optional[EventType[
|
|
246
|
-
on_mouse_over: Optional[EventType[
|
|
247
|
-
on_mouse_up: Optional[EventType[
|
|
248
|
-
on_scroll: Optional[EventType[
|
|
249
|
-
on_unmount: Optional[EventType[
|
|
235
|
+
on_blur: Optional[EventType[()]] = None,
|
|
236
|
+
on_click: Optional[EventType[()]] = None,
|
|
237
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
238
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
239
|
+
on_focus: Optional[EventType[()]] = None,
|
|
240
|
+
on_mount: Optional[EventType[()]] = None,
|
|
241
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
242
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
243
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
244
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
245
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
246
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
247
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
248
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
249
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
250
250
|
**props,
|
|
251
251
|
) -> "GraphingTooltip":
|
|
252
252
|
"""Create the component.
|
|
@@ -343,21 +343,21 @@ class Label(Recharts):
|
|
|
343
343
|
class_name: Optional[Any] = None,
|
|
344
344
|
autofocus: Optional[bool] = None,
|
|
345
345
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
346
|
-
on_blur: Optional[EventType[
|
|
347
|
-
on_click: Optional[EventType[
|
|
348
|
-
on_context_menu: Optional[EventType[
|
|
349
|
-
on_double_click: Optional[EventType[
|
|
350
|
-
on_focus: Optional[EventType[
|
|
351
|
-
on_mount: Optional[EventType[
|
|
352
|
-
on_mouse_down: Optional[EventType[
|
|
353
|
-
on_mouse_enter: Optional[EventType[
|
|
354
|
-
on_mouse_leave: Optional[EventType[
|
|
355
|
-
on_mouse_move: Optional[EventType[
|
|
356
|
-
on_mouse_out: Optional[EventType[
|
|
357
|
-
on_mouse_over: Optional[EventType[
|
|
358
|
-
on_mouse_up: Optional[EventType[
|
|
359
|
-
on_scroll: Optional[EventType[
|
|
360
|
-
on_unmount: Optional[EventType[
|
|
346
|
+
on_blur: Optional[EventType[()]] = None,
|
|
347
|
+
on_click: Optional[EventType[()]] = None,
|
|
348
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
349
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
350
|
+
on_focus: Optional[EventType[()]] = None,
|
|
351
|
+
on_mount: Optional[EventType[()]] = None,
|
|
352
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
353
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
354
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
355
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
356
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
357
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
358
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
359
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
360
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
361
361
|
**props,
|
|
362
362
|
) -> "Label":
|
|
363
363
|
"""Create the component.
|
|
@@ -443,21 +443,21 @@ class LabelList(Recharts):
|
|
|
443
443
|
class_name: Optional[Any] = None,
|
|
444
444
|
autofocus: Optional[bool] = None,
|
|
445
445
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
446
|
-
on_blur: Optional[EventType[
|
|
447
|
-
on_click: Optional[EventType[
|
|
448
|
-
on_context_menu: Optional[EventType[
|
|
449
|
-
on_double_click: Optional[EventType[
|
|
450
|
-
on_focus: Optional[EventType[
|
|
451
|
-
on_mount: Optional[EventType[
|
|
452
|
-
on_mouse_down: Optional[EventType[
|
|
453
|
-
on_mouse_enter: Optional[EventType[
|
|
454
|
-
on_mouse_leave: Optional[EventType[
|
|
455
|
-
on_mouse_move: Optional[EventType[
|
|
456
|
-
on_mouse_out: Optional[EventType[
|
|
457
|
-
on_mouse_over: Optional[EventType[
|
|
458
|
-
on_mouse_up: Optional[EventType[
|
|
459
|
-
on_scroll: Optional[EventType[
|
|
460
|
-
on_unmount: Optional[EventType[
|
|
446
|
+
on_blur: Optional[EventType[()]] = None,
|
|
447
|
+
on_click: Optional[EventType[()]] = None,
|
|
448
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
449
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
450
|
+
on_focus: Optional[EventType[()]] = None,
|
|
451
|
+
on_mount: Optional[EventType[()]] = None,
|
|
452
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
453
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
454
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
455
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
456
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
457
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
458
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
459
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
460
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
461
461
|
**props,
|
|
462
462
|
) -> "LabelList":
|
|
463
463
|
"""Create the component.
|
|
@@ -496,21 +496,21 @@ class Cell(Recharts):
|
|
|
496
496
|
class_name: Optional[Any] = None,
|
|
497
497
|
autofocus: Optional[bool] = None,
|
|
498
498
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
499
|
-
on_blur: Optional[EventType[
|
|
500
|
-
on_click: Optional[EventType[
|
|
501
|
-
on_context_menu: Optional[EventType[
|
|
502
|
-
on_double_click: Optional[EventType[
|
|
503
|
-
on_focus: Optional[EventType[
|
|
504
|
-
on_mount: Optional[EventType[
|
|
505
|
-
on_mouse_down: Optional[EventType[
|
|
506
|
-
on_mouse_enter: Optional[EventType[
|
|
507
|
-
on_mouse_leave: Optional[EventType[
|
|
508
|
-
on_mouse_move: Optional[EventType[
|
|
509
|
-
on_mouse_out: Optional[EventType[
|
|
510
|
-
on_mouse_over: Optional[EventType[
|
|
511
|
-
on_mouse_up: Optional[EventType[
|
|
512
|
-
on_scroll: Optional[EventType[
|
|
513
|
-
on_unmount: Optional[EventType[
|
|
499
|
+
on_blur: Optional[EventType[()]] = None,
|
|
500
|
+
on_click: Optional[EventType[()]] = None,
|
|
501
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
502
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
503
|
+
on_focus: Optional[EventType[()]] = None,
|
|
504
|
+
on_mount: Optional[EventType[()]] = None,
|
|
505
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
506
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
507
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
508
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
509
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
510
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
511
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
512
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
513
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
514
514
|
**props,
|
|
515
515
|
) -> "Cell":
|
|
516
516
|
"""Create the component.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, List, Literal, Optional, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.constants.colors import Color
|
|
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
|
|
|
@@ -82,14 +82,14 @@ class Pie(Recharts):
|
|
|
82
82
|
class_name: Optional[Any] = None,
|
|
83
83
|
autofocus: Optional[bool] = None,
|
|
84
84
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
85
|
-
on_animation_end: Optional[EventType[
|
|
86
|
-
on_animation_start: Optional[EventType[
|
|
87
|
-
on_click: Optional[EventType[
|
|
88
|
-
on_mouse_enter: Optional[EventType[
|
|
89
|
-
on_mouse_leave: Optional[EventType[
|
|
90
|
-
on_mouse_move: Optional[EventType[
|
|
91
|
-
on_mouse_out: Optional[EventType[
|
|
92
|
-
on_mouse_over: Optional[EventType[
|
|
85
|
+
on_animation_end: Optional[EventType[()]] = None,
|
|
86
|
+
on_animation_start: Optional[EventType[()]] = None,
|
|
87
|
+
on_click: Optional[EventType[()]] = None,
|
|
88
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
89
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
90
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
91
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
92
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
93
93
|
**props,
|
|
94
94
|
) -> "Pie":
|
|
95
95
|
"""Create the component.
|
|
@@ -191,8 +191,8 @@ class Radar(Recharts):
|
|
|
191
191
|
class_name: Optional[Any] = None,
|
|
192
192
|
autofocus: Optional[bool] = None,
|
|
193
193
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
194
|
-
on_animation_end: Optional[EventType[
|
|
195
|
-
on_animation_start: Optional[EventType[
|
|
194
|
+
on_animation_end: Optional[EventType[()]] = None,
|
|
195
|
+
on_animation_start: Optional[EventType[()]] = None,
|
|
196
196
|
**props,
|
|
197
197
|
) -> "Radar":
|
|
198
198
|
"""Create the component.
|
|
@@ -287,14 +287,14 @@ class RadialBar(Recharts):
|
|
|
287
287
|
class_name: Optional[Any] = None,
|
|
288
288
|
autofocus: Optional[bool] = None,
|
|
289
289
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
290
|
-
on_animation_end: Optional[EventType[
|
|
291
|
-
on_animation_start: Optional[EventType[
|
|
292
|
-
on_click: Optional[EventType[
|
|
293
|
-
on_mouse_enter: Optional[EventType[
|
|
294
|
-
on_mouse_leave: Optional[EventType[
|
|
295
|
-
on_mouse_move: Optional[EventType[
|
|
296
|
-
on_mouse_out: Optional[EventType[
|
|
297
|
-
on_mouse_over: Optional[EventType[
|
|
290
|
+
on_animation_end: Optional[EventType[()]] = None,
|
|
291
|
+
on_animation_start: Optional[EventType[()]] = None,
|
|
292
|
+
on_click: Optional[EventType[()]] = None,
|
|
293
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
294
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
295
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
296
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
297
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
298
298
|
**props,
|
|
299
299
|
) -> "RadialBar":
|
|
300
300
|
"""Create the component.
|
|
@@ -356,21 +356,21 @@ class PolarAngleAxis(Recharts):
|
|
|
356
356
|
class_name: Optional[Any] = None,
|
|
357
357
|
autofocus: Optional[bool] = None,
|
|
358
358
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
359
|
-
on_blur: Optional[EventType[
|
|
360
|
-
on_click: Optional[EventType[
|
|
361
|
-
on_context_menu: Optional[EventType[
|
|
362
|
-
on_double_click: Optional[EventType[
|
|
363
|
-
on_focus: Optional[EventType[
|
|
364
|
-
on_mount: Optional[EventType[
|
|
365
|
-
on_mouse_down: Optional[EventType[
|
|
366
|
-
on_mouse_enter: Optional[EventType[
|
|
367
|
-
on_mouse_leave: Optional[EventType[
|
|
368
|
-
on_mouse_move: Optional[EventType[
|
|
369
|
-
on_mouse_out: Optional[EventType[
|
|
370
|
-
on_mouse_over: Optional[EventType[
|
|
371
|
-
on_mouse_up: Optional[EventType[
|
|
372
|
-
on_scroll: Optional[EventType[
|
|
373
|
-
on_unmount: Optional[EventType[
|
|
359
|
+
on_blur: Optional[EventType[()]] = None,
|
|
360
|
+
on_click: Optional[EventType[()]] = None,
|
|
361
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
362
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
363
|
+
on_focus: Optional[EventType[()]] = None,
|
|
364
|
+
on_mount: Optional[EventType[()]] = None,
|
|
365
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
366
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
367
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
368
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
369
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
370
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
371
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
372
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
373
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
374
374
|
**props,
|
|
375
375
|
) -> "PolarAngleAxis":
|
|
376
376
|
"""Create the component.
|
|
@@ -432,21 +432,21 @@ class PolarGrid(Recharts):
|
|
|
432
432
|
class_name: Optional[Any] = None,
|
|
433
433
|
autofocus: Optional[bool] = None,
|
|
434
434
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
435
|
-
on_blur: Optional[EventType[
|
|
436
|
-
on_click: Optional[EventType[
|
|
437
|
-
on_context_menu: Optional[EventType[
|
|
438
|
-
on_double_click: Optional[EventType[
|
|
439
|
-
on_focus: Optional[EventType[
|
|
440
|
-
on_mount: Optional[EventType[
|
|
441
|
-
on_mouse_down: Optional[EventType[
|
|
442
|
-
on_mouse_enter: Optional[EventType[
|
|
443
|
-
on_mouse_leave: Optional[EventType[
|
|
444
|
-
on_mouse_move: Optional[EventType[
|
|
445
|
-
on_mouse_out: Optional[EventType[
|
|
446
|
-
on_mouse_over: Optional[EventType[
|
|
447
|
-
on_mouse_up: Optional[EventType[
|
|
448
|
-
on_scroll: Optional[EventType[
|
|
449
|
-
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,
|
|
450
450
|
**props,
|
|
451
451
|
) -> "PolarGrid":
|
|
452
452
|
"""Create the component.
|
|
@@ -552,12 +552,12 @@ class PolarRadiusAxis(Recharts):
|
|
|
552
552
|
class_name: Optional[Any] = None,
|
|
553
553
|
autofocus: Optional[bool] = None,
|
|
554
554
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
555
|
-
on_click: Optional[EventType[
|
|
556
|
-
on_mouse_enter: Optional[EventType[
|
|
557
|
-
on_mouse_leave: Optional[EventType[
|
|
558
|
-
on_mouse_move: Optional[EventType[
|
|
559
|
-
on_mouse_out: Optional[EventType[
|
|
560
|
-
on_mouse_over: Optional[EventType[
|
|
555
|
+
on_click: Optional[EventType[()]] = None,
|
|
556
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
557
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
558
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
559
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
560
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
561
561
|
**props,
|
|
562
562
|
) -> "PolarRadiusAxis":
|
|
563
563
|
"""Create the component.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component, MemoizationLeaf, NoSSRComponent
|
|
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
|
|
|
@@ -22,21 +22,21 @@ class Recharts(Component):
|
|
|
22
22
|
class_name: Optional[Any] = None,
|
|
23
23
|
autofocus: Optional[bool] = None,
|
|
24
24
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
25
|
-
on_blur: Optional[EventType[
|
|
26
|
-
on_click: Optional[EventType[
|
|
27
|
-
on_context_menu: Optional[EventType[
|
|
28
|
-
on_double_click: Optional[EventType[
|
|
29
|
-
on_focus: Optional[EventType[
|
|
30
|
-
on_mount: Optional[EventType[
|
|
31
|
-
on_mouse_down: Optional[EventType[
|
|
32
|
-
on_mouse_enter: Optional[EventType[
|
|
33
|
-
on_mouse_leave: Optional[EventType[
|
|
34
|
-
on_mouse_move: Optional[EventType[
|
|
35
|
-
on_mouse_out: Optional[EventType[
|
|
36
|
-
on_mouse_over: Optional[EventType[
|
|
37
|
-
on_mouse_up: Optional[EventType[
|
|
38
|
-
on_scroll: Optional[EventType[
|
|
39
|
-
on_unmount: Optional[EventType[
|
|
25
|
+
on_blur: Optional[EventType[()]] = None,
|
|
26
|
+
on_click: Optional[EventType[()]] = None,
|
|
27
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
28
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
29
|
+
on_focus: Optional[EventType[()]] = None,
|
|
30
|
+
on_mount: Optional[EventType[()]] = None,
|
|
31
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
32
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
33
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
34
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
35
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
36
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
37
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
38
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
39
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
40
40
|
**props,
|
|
41
41
|
) -> "Recharts":
|
|
42
42
|
"""Create the component.
|
|
@@ -68,21 +68,21 @@ class RechartsCharts(NoSSRComponent, MemoizationLeaf):
|
|
|
68
68
|
class_name: Optional[Any] = None,
|
|
69
69
|
autofocus: Optional[bool] = None,
|
|
70
70
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
71
|
-
on_blur: Optional[EventType[
|
|
72
|
-
on_click: Optional[EventType[
|
|
73
|
-
on_context_menu: Optional[EventType[
|
|
74
|
-
on_double_click: Optional[EventType[
|
|
75
|
-
on_focus: Optional[EventType[
|
|
76
|
-
on_mount: Optional[EventType[
|
|
77
|
-
on_mouse_down: Optional[EventType[
|
|
78
|
-
on_mouse_enter: Optional[EventType[
|
|
79
|
-
on_mouse_leave: Optional[EventType[
|
|
80
|
-
on_mouse_move: Optional[EventType[
|
|
81
|
-
on_mouse_out: Optional[EventType[
|
|
82
|
-
on_mouse_over: Optional[EventType[
|
|
83
|
-
on_mouse_up: Optional[EventType[
|
|
84
|
-
on_scroll: Optional[EventType[
|
|
85
|
-
on_unmount: Optional[EventType[
|
|
71
|
+
on_blur: Optional[EventType[()]] = None,
|
|
72
|
+
on_click: Optional[EventType[()]] = None,
|
|
73
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
74
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
75
|
+
on_focus: Optional[EventType[()]] = None,
|
|
76
|
+
on_mount: Optional[EventType[()]] = None,
|
|
77
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
78
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
79
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
80
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
81
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
82
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
83
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
84
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
85
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
86
86
|
**props,
|
|
87
87
|
) -> "RechartsCharts":
|
|
88
88
|
"""Create a new memoization leaf component.
|
|
@@ -9,7 +9,7 @@ from reflex.base import Base
|
|
|
9
9
|
from reflex.components.component import Component, ComponentNamespace
|
|
10
10
|
from reflex.components.lucide.icon import Icon
|
|
11
11
|
from reflex.components.props import NoExtrasAllowedProps, PropsBase
|
|
12
|
-
from reflex.event import
|
|
12
|
+
from reflex.event import EventSpec, EventType
|
|
13
13
|
from reflex.style import Style
|
|
14
14
|
from reflex.utils.serializers import serializer
|
|
15
15
|
from reflex.vars.base import Var
|
|
@@ -117,21 +117,21 @@ class Toaster(Component):
|
|
|
117
117
|
class_name: Optional[Any] = None,
|
|
118
118
|
autofocus: Optional[bool] = None,
|
|
119
119
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
120
|
-
on_blur: Optional[EventType[
|
|
121
|
-
on_click: Optional[EventType[
|
|
122
|
-
on_context_menu: Optional[EventType[
|
|
123
|
-
on_double_click: Optional[EventType[
|
|
124
|
-
on_focus: Optional[EventType[
|
|
125
|
-
on_mount: Optional[EventType[
|
|
126
|
-
on_mouse_down: Optional[EventType[
|
|
127
|
-
on_mouse_enter: Optional[EventType[
|
|
128
|
-
on_mouse_leave: Optional[EventType[
|
|
129
|
-
on_mouse_move: Optional[EventType[
|
|
130
|
-
on_mouse_out: Optional[EventType[
|
|
131
|
-
on_mouse_over: Optional[EventType[
|
|
132
|
-
on_mouse_up: Optional[EventType[
|
|
133
|
-
on_scroll: Optional[EventType[
|
|
134
|
-
on_unmount: Optional[EventType[
|
|
120
|
+
on_blur: Optional[EventType[()]] = None,
|
|
121
|
+
on_click: Optional[EventType[()]] = None,
|
|
122
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
123
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
124
|
+
on_focus: Optional[EventType[()]] = None,
|
|
125
|
+
on_mount: Optional[EventType[()]] = None,
|
|
126
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
127
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
128
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
129
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
130
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
131
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
132
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
133
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
134
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
135
135
|
**props,
|
|
136
136
|
) -> "Toaster":
|
|
137
137
|
"""Create a toaster component.
|
|
@@ -8,7 +8,7 @@ from typing import Any, Dict, List, Literal, Optional, Tuple, Union, overload
|
|
|
8
8
|
|
|
9
9
|
from reflex.base import Base
|
|
10
10
|
from reflex.components.component import NoSSRComponent
|
|
11
|
-
from reflex.event import
|
|
11
|
+
from reflex.event import EventType
|
|
12
12
|
from reflex.style import Style
|
|
13
13
|
from reflex.utils.imports import ImportDict
|
|
14
14
|
from reflex.vars.base import Var
|
|
@@ -127,45 +127,31 @@ class Editor(NoSSRComponent):
|
|
|
127
127
|
class_name: Optional[Any] = None,
|
|
128
128
|
autofocus: Optional[bool] = None,
|
|
129
129
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
130
|
-
on_blur: Optional[
|
|
131
|
-
|
|
132
|
-
] = None,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
] = None,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
] = None,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
149
|
-
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
150
|
-
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
151
|
-
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
152
|
-
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
153
|
-
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
130
|
+
on_blur: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
131
|
+
on_change: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
132
|
+
on_click: Optional[EventType[()]] = None,
|
|
133
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
134
|
+
on_copy: Optional[EventType[()]] = None,
|
|
135
|
+
on_cut: Optional[EventType[()]] = None,
|
|
136
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
137
|
+
on_focus: Optional[EventType[()]] = None,
|
|
138
|
+
on_input: Optional[EventType[()]] = None,
|
|
139
|
+
on_load: Optional[Union[EventType[()], EventType[bool]]] = None,
|
|
140
|
+
on_mount: Optional[EventType[()]] = None,
|
|
141
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
142
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
143
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
144
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
145
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
146
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
147
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
154
148
|
on_paste: Optional[
|
|
155
|
-
Union[
|
|
156
|
-
EventType[[], BASE_STATE],
|
|
157
|
-
EventType[[str], BASE_STATE],
|
|
158
|
-
EventType[[str, bool], BASE_STATE],
|
|
159
|
-
]
|
|
160
|
-
] = None,
|
|
161
|
-
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
162
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
163
|
-
toggle_code_view: Optional[
|
|
164
|
-
Union[EventType[[], BASE_STATE], EventType[[bool], BASE_STATE]]
|
|
165
|
-
] = None,
|
|
166
|
-
toggle_full_screen: Optional[
|
|
167
|
-
Union[EventType[[], BASE_STATE], EventType[[bool], BASE_STATE]]
|
|
149
|
+
Union[EventType[()], EventType[str], EventType[str, bool]]
|
|
168
150
|
] = None,
|
|
151
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
152
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
153
|
+
toggle_code_view: Optional[Union[EventType[()], EventType[bool]]] = None,
|
|
154
|
+
toggle_full_screen: Optional[Union[EventType[()], EventType[bool]]] = None,
|
|
169
155
|
**props,
|
|
170
156
|
) -> "Editor":
|
|
171
157
|
"""Create an instance of Editor. No children allowed.
|