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
|
@@ -8,7 +8,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
8
8
|
from reflex.components.component import ComponentNamespace
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
10
|
from reflex.components.el import elements
|
|
11
|
-
from reflex.event import
|
|
11
|
+
from reflex.event import EventType, KeyInputInfo
|
|
12
12
|
from reflex.style import Style
|
|
13
13
|
from reflex.vars.base import Var
|
|
14
14
|
|
|
@@ -174,42 +174,28 @@ class TextFieldRoot(elements.Input, RadixThemesComponent):
|
|
|
174
174
|
class_name: Optional[Any] = None,
|
|
175
175
|
autofocus: Optional[bool] = None,
|
|
176
176
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
177
|
-
on_blur: Optional[
|
|
178
|
-
|
|
179
|
-
] = None,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
] = None,
|
|
183
|
-
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
184
|
-
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
185
|
-
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
186
|
-
on_focus: Optional[
|
|
187
|
-
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
188
|
-
] = None,
|
|
177
|
+
on_blur: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
178
|
+
on_change: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
179
|
+
on_click: Optional[EventType[()]] = None,
|
|
180
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
181
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
182
|
+
on_focus: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
189
183
|
on_key_down: Optional[
|
|
190
|
-
Union[
|
|
191
|
-
EventType[[], BASE_STATE],
|
|
192
|
-
EventType[[str], BASE_STATE],
|
|
193
|
-
EventType[[str, KeyInputInfo], BASE_STATE],
|
|
194
|
-
]
|
|
184
|
+
Union[EventType[()], EventType[str], EventType[str, KeyInputInfo]]
|
|
195
185
|
] = None,
|
|
196
186
|
on_key_up: Optional[
|
|
197
|
-
Union[
|
|
198
|
-
EventType[[], BASE_STATE],
|
|
199
|
-
EventType[[str], BASE_STATE],
|
|
200
|
-
EventType[[str, KeyInputInfo], BASE_STATE],
|
|
201
|
-
]
|
|
187
|
+
Union[EventType[()], EventType[str], EventType[str, KeyInputInfo]]
|
|
202
188
|
] = None,
|
|
203
|
-
on_mount: Optional[EventType[
|
|
204
|
-
on_mouse_down: Optional[EventType[
|
|
205
|
-
on_mouse_enter: Optional[EventType[
|
|
206
|
-
on_mouse_leave: Optional[EventType[
|
|
207
|
-
on_mouse_move: Optional[EventType[
|
|
208
|
-
on_mouse_out: Optional[EventType[
|
|
209
|
-
on_mouse_over: Optional[EventType[
|
|
210
|
-
on_mouse_up: Optional[EventType[
|
|
211
|
-
on_scroll: Optional[EventType[
|
|
212
|
-
on_unmount: Optional[EventType[
|
|
189
|
+
on_mount: Optional[EventType[()]] = None,
|
|
190
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
191
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
192
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
193
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
194
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
195
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
196
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
197
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
198
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
213
199
|
**props,
|
|
214
200
|
) -> "TextFieldRoot":
|
|
215
201
|
"""Create an Input component.
|
|
@@ -360,21 +346,21 @@ class TextFieldSlot(RadixThemesComponent):
|
|
|
360
346
|
class_name: Optional[Any] = None,
|
|
361
347
|
autofocus: Optional[bool] = None,
|
|
362
348
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
363
|
-
on_blur: Optional[EventType[
|
|
364
|
-
on_click: Optional[EventType[
|
|
365
|
-
on_context_menu: Optional[EventType[
|
|
366
|
-
on_double_click: Optional[EventType[
|
|
367
|
-
on_focus: Optional[EventType[
|
|
368
|
-
on_mount: Optional[EventType[
|
|
369
|
-
on_mouse_down: Optional[EventType[
|
|
370
|
-
on_mouse_enter: Optional[EventType[
|
|
371
|
-
on_mouse_leave: Optional[EventType[
|
|
372
|
-
on_mouse_move: Optional[EventType[
|
|
373
|
-
on_mouse_out: Optional[EventType[
|
|
374
|
-
on_mouse_over: Optional[EventType[
|
|
375
|
-
on_mouse_up: Optional[EventType[
|
|
376
|
-
on_scroll: Optional[EventType[
|
|
377
|
-
on_unmount: Optional[EventType[
|
|
349
|
+
on_blur: Optional[EventType[()]] = None,
|
|
350
|
+
on_click: Optional[EventType[()]] = None,
|
|
351
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
352
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
353
|
+
on_focus: Optional[EventType[()]] = None,
|
|
354
|
+
on_mount: Optional[EventType[()]] = None,
|
|
355
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
356
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
357
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
358
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
359
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
360
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
361
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
362
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
363
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
378
364
|
**props,
|
|
379
365
|
) -> "TextFieldSlot":
|
|
380
366
|
"""Create a new component instance.
|
|
@@ -555,42 +541,28 @@ class TextField(ComponentNamespace):
|
|
|
555
541
|
class_name: Optional[Any] = None,
|
|
556
542
|
autofocus: Optional[bool] = None,
|
|
557
543
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
558
|
-
on_blur: Optional[
|
|
559
|
-
|
|
560
|
-
] = None,
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
] = None,
|
|
564
|
-
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
565
|
-
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
566
|
-
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
567
|
-
on_focus: Optional[
|
|
568
|
-
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
569
|
-
] = None,
|
|
544
|
+
on_blur: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
545
|
+
on_change: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
546
|
+
on_click: Optional[EventType[()]] = None,
|
|
547
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
548
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
549
|
+
on_focus: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
570
550
|
on_key_down: Optional[
|
|
571
|
-
Union[
|
|
572
|
-
EventType[[], BASE_STATE],
|
|
573
|
-
EventType[[str], BASE_STATE],
|
|
574
|
-
EventType[[str, KeyInputInfo], BASE_STATE],
|
|
575
|
-
]
|
|
551
|
+
Union[EventType[()], EventType[str], EventType[str, KeyInputInfo]]
|
|
576
552
|
] = None,
|
|
577
553
|
on_key_up: Optional[
|
|
578
|
-
Union[
|
|
579
|
-
EventType[[], BASE_STATE],
|
|
580
|
-
EventType[[str], BASE_STATE],
|
|
581
|
-
EventType[[str, KeyInputInfo], BASE_STATE],
|
|
582
|
-
]
|
|
554
|
+
Union[EventType[()], EventType[str], EventType[str, KeyInputInfo]]
|
|
583
555
|
] = None,
|
|
584
|
-
on_mount: Optional[EventType[
|
|
585
|
-
on_mouse_down: Optional[EventType[
|
|
586
|
-
on_mouse_enter: Optional[EventType[
|
|
587
|
-
on_mouse_leave: Optional[EventType[
|
|
588
|
-
on_mouse_move: Optional[EventType[
|
|
589
|
-
on_mouse_out: Optional[EventType[
|
|
590
|
-
on_mouse_over: Optional[EventType[
|
|
591
|
-
on_mouse_up: Optional[EventType[
|
|
592
|
-
on_scroll: Optional[EventType[
|
|
593
|
-
on_unmount: Optional[EventType[
|
|
556
|
+
on_mount: Optional[EventType[()]] = None,
|
|
557
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
558
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
559
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
560
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
561
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
562
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
563
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
564
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
565
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
594
566
|
**props,
|
|
595
567
|
) -> "TextFieldRoot":
|
|
596
568
|
"""Create an Input component.
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
from typing import Dict, Literal, Union
|
|
4
4
|
|
|
5
5
|
from reflex.components.component import Component
|
|
6
|
+
from reflex.constants.compiler import MemoizationMode
|
|
6
7
|
from reflex.event import EventHandler, no_args_event_spec, passthrough_event_spec
|
|
7
8
|
from reflex.utils import format
|
|
8
9
|
from reflex.vars.base import Var
|
|
@@ -94,6 +95,8 @@ class Tooltip(RadixThemesComponent):
|
|
|
94
95
|
# Fired when the pointer is down outside the tooltip.
|
|
95
96
|
on_pointer_down_outside: EventHandler[no_args_event_spec]
|
|
96
97
|
|
|
98
|
+
_memoization_mode = MemoizationMode(recursive=False)
|
|
99
|
+
|
|
97
100
|
@classmethod
|
|
98
101
|
def create(cls, *children, **props) -> Component:
|
|
99
102
|
"""Initialize the Tooltip component.
|
|
@@ -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
|
|
|
@@ -63,26 +63,24 @@ class Tooltip(RadixThemesComponent):
|
|
|
63
63
|
class_name: Optional[Any] = None,
|
|
64
64
|
autofocus: Optional[bool] = None,
|
|
65
65
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
66
|
-
on_blur: Optional[EventType[
|
|
67
|
-
on_click: Optional[EventType[
|
|
68
|
-
on_context_menu: Optional[EventType[
|
|
69
|
-
on_double_click: Optional[EventType[
|
|
70
|
-
on_escape_key_down: Optional[EventType[
|
|
71
|
-
on_focus: Optional[EventType[
|
|
72
|
-
on_mount: Optional[EventType[
|
|
73
|
-
on_mouse_down: Optional[EventType[
|
|
74
|
-
on_mouse_enter: Optional[EventType[
|
|
75
|
-
on_mouse_leave: Optional[EventType[
|
|
76
|
-
on_mouse_move: Optional[EventType[
|
|
77
|
-
on_mouse_out: Optional[EventType[
|
|
78
|
-
on_mouse_over: Optional[EventType[
|
|
79
|
-
on_mouse_up: Optional[EventType[
|
|
80
|
-
on_open_change: Optional[
|
|
81
|
-
|
|
82
|
-
] = None,
|
|
83
|
-
|
|
84
|
-
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
85
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
66
|
+
on_blur: Optional[EventType[()]] = None,
|
|
67
|
+
on_click: Optional[EventType[()]] = None,
|
|
68
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
69
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
70
|
+
on_escape_key_down: Optional[EventType[()]] = None,
|
|
71
|
+
on_focus: Optional[EventType[()]] = None,
|
|
72
|
+
on_mount: Optional[EventType[()]] = None,
|
|
73
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
74
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
75
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
76
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
77
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
78
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
79
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
80
|
+
on_open_change: Optional[Union[EventType[()], EventType[bool]]] = None,
|
|
81
|
+
on_pointer_down_outside: Optional[EventType[()]] = None,
|
|
82
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
83
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
86
84
|
**props,
|
|
87
85
|
) -> "Tooltip":
|
|
88
86
|
"""Initialize the Tooltip 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
|
|
|
@@ -201,21 +201,21 @@ class LayoutComponent(CommonMarginProps, CommonPaddingProps, RadixThemesComponen
|
|
|
201
201
|
class_name: Optional[Any] = None,
|
|
202
202
|
autofocus: Optional[bool] = None,
|
|
203
203
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
204
|
-
on_blur: Optional[EventType[
|
|
205
|
-
on_click: Optional[EventType[
|
|
206
|
-
on_context_menu: Optional[EventType[
|
|
207
|
-
on_double_click: Optional[EventType[
|
|
208
|
-
on_focus: Optional[EventType[
|
|
209
|
-
on_mount: Optional[EventType[
|
|
210
|
-
on_mouse_down: Optional[EventType[
|
|
211
|
-
on_mouse_enter: Optional[EventType[
|
|
212
|
-
on_mouse_leave: Optional[EventType[
|
|
213
|
-
on_mouse_move: Optional[EventType[
|
|
214
|
-
on_mouse_out: Optional[EventType[
|
|
215
|
-
on_mouse_over: Optional[EventType[
|
|
216
|
-
on_mouse_up: Optional[EventType[
|
|
217
|
-
on_scroll: Optional[EventType[
|
|
218
|
-
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,
|
|
219
219
|
**props,
|
|
220
220
|
) -> "LayoutComponent":
|
|
221
221
|
"""Create a new component instance.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, Optional, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.el import elements
|
|
9
|
-
from reflex.event import
|
|
9
|
+
from reflex.event import EventType
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
@@ -48,21 +48,21 @@ class Box(elements.Div, RadixThemesComponent):
|
|
|
48
48
|
class_name: Optional[Any] = None,
|
|
49
49
|
autofocus: Optional[bool] = None,
|
|
50
50
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
51
|
-
on_blur: Optional[EventType[
|
|
52
|
-
on_click: Optional[EventType[
|
|
53
|
-
on_context_menu: Optional[EventType[
|
|
54
|
-
on_double_click: Optional[EventType[
|
|
55
|
-
on_focus: Optional[EventType[
|
|
56
|
-
on_mount: Optional[EventType[
|
|
57
|
-
on_mouse_down: Optional[EventType[
|
|
58
|
-
on_mouse_enter: Optional[EventType[
|
|
59
|
-
on_mouse_leave: Optional[EventType[
|
|
60
|
-
on_mouse_move: Optional[EventType[
|
|
61
|
-
on_mouse_out: Optional[EventType[
|
|
62
|
-
on_mouse_over: Optional[EventType[
|
|
63
|
-
on_mouse_up: Optional[EventType[
|
|
64
|
-
on_scroll: Optional[EventType[
|
|
65
|
-
on_unmount: Optional[EventType[
|
|
51
|
+
on_blur: Optional[EventType[()]] = None,
|
|
52
|
+
on_click: Optional[EventType[()]] = None,
|
|
53
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
54
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
55
|
+
on_focus: Optional[EventType[()]] = None,
|
|
56
|
+
on_mount: Optional[EventType[()]] = None,
|
|
57
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
58
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
59
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
60
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
61
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
62
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
63
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
64
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
65
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
66
66
|
**props,
|
|
67
67
|
) -> "Box":
|
|
68
68
|
"""Create a new component instance.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.core.breakpoints import Breakpoints
|
|
9
|
-
from reflex.event import
|
|
9
|
+
from reflex.event import EventType
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
@@ -125,21 +125,21 @@ class Center(Flex):
|
|
|
125
125
|
class_name: Optional[Any] = None,
|
|
126
126
|
autofocus: Optional[bool] = None,
|
|
127
127
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
128
|
-
on_blur: Optional[EventType[
|
|
129
|
-
on_click: Optional[EventType[
|
|
130
|
-
on_context_menu: Optional[EventType[
|
|
131
|
-
on_double_click: Optional[EventType[
|
|
132
|
-
on_focus: Optional[EventType[
|
|
133
|
-
on_mount: Optional[EventType[
|
|
134
|
-
on_mouse_down: Optional[EventType[
|
|
135
|
-
on_mouse_enter: Optional[EventType[
|
|
136
|
-
on_mouse_leave: Optional[EventType[
|
|
137
|
-
on_mouse_move: Optional[EventType[
|
|
138
|
-
on_mouse_out: Optional[EventType[
|
|
139
|
-
on_mouse_over: Optional[EventType[
|
|
140
|
-
on_mouse_up: Optional[EventType[
|
|
141
|
-
on_scroll: Optional[EventType[
|
|
142
|
-
on_unmount: Optional[EventType[
|
|
128
|
+
on_blur: Optional[EventType[()]] = None,
|
|
129
|
+
on_click: Optional[EventType[()]] = None,
|
|
130
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
131
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
132
|
+
on_focus: Optional[EventType[()]] = None,
|
|
133
|
+
on_mount: Optional[EventType[()]] = None,
|
|
134
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
135
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
136
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
137
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
138
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
139
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
140
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
141
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
142
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
143
143
|
**props,
|
|
144
144
|
) -> "Center":
|
|
145
145
|
"""Create a new component instance.
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
7
7
|
|
|
8
8
|
from reflex.components.core.breakpoints import Breakpoints
|
|
9
9
|
from reflex.components.el import elements
|
|
10
|
-
from reflex.event import
|
|
10
|
+
from reflex.event import EventType
|
|
11
11
|
from reflex.style import Style
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
@@ -65,21 +65,21 @@ class Container(elements.Div, RadixThemesComponent):
|
|
|
65
65
|
class_name: Optional[Any] = None,
|
|
66
66
|
autofocus: Optional[bool] = None,
|
|
67
67
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
68
|
-
on_blur: Optional[EventType[
|
|
69
|
-
on_click: Optional[EventType[
|
|
70
|
-
on_context_menu: Optional[EventType[
|
|
71
|
-
on_double_click: Optional[EventType[
|
|
72
|
-
on_focus: Optional[EventType[
|
|
73
|
-
on_mount: Optional[EventType[
|
|
74
|
-
on_mouse_down: Optional[EventType[
|
|
75
|
-
on_mouse_enter: Optional[EventType[
|
|
76
|
-
on_mouse_leave: Optional[EventType[
|
|
77
|
-
on_mouse_move: Optional[EventType[
|
|
78
|
-
on_mouse_out: Optional[EventType[
|
|
79
|
-
on_mouse_over: Optional[EventType[
|
|
80
|
-
on_mouse_up: Optional[EventType[
|
|
81
|
-
on_scroll: Optional[EventType[
|
|
82
|
-
on_unmount: Optional[EventType[
|
|
68
|
+
on_blur: Optional[EventType[()]] = None,
|
|
69
|
+
on_click: Optional[EventType[()]] = None,
|
|
70
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
71
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
72
|
+
on_focus: Optional[EventType[()]] = None,
|
|
73
|
+
on_mount: Optional[EventType[()]] = None,
|
|
74
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
75
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
76
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
77
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
78
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
79
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
80
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
81
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
82
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
83
83
|
**props,
|
|
84
84
|
) -> "Container":
|
|
85
85
|
"""Create the container component.
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
7
7
|
|
|
8
8
|
from reflex.components.core.breakpoints import Breakpoints
|
|
9
9
|
from reflex.components.el import elements
|
|
10
|
-
from reflex.event import
|
|
10
|
+
from reflex.event import EventType
|
|
11
11
|
from reflex.style import Style
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
@@ -128,21 +128,21 @@ class Flex(elements.Div, RadixThemesComponent):
|
|
|
128
128
|
class_name: Optional[Any] = None,
|
|
129
129
|
autofocus: Optional[bool] = None,
|
|
130
130
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
131
|
-
on_blur: Optional[EventType[
|
|
132
|
-
on_click: Optional[EventType[
|
|
133
|
-
on_context_menu: Optional[EventType[
|
|
134
|
-
on_double_click: Optional[EventType[
|
|
135
|
-
on_focus: Optional[EventType[
|
|
136
|
-
on_mount: Optional[EventType[
|
|
137
|
-
on_mouse_down: Optional[EventType[
|
|
138
|
-
on_mouse_enter: Optional[EventType[
|
|
139
|
-
on_mouse_leave: Optional[EventType[
|
|
140
|
-
on_mouse_move: Optional[EventType[
|
|
141
|
-
on_mouse_out: Optional[EventType[
|
|
142
|
-
on_mouse_over: Optional[EventType[
|
|
143
|
-
on_mouse_up: Optional[EventType[
|
|
144
|
-
on_scroll: Optional[EventType[
|
|
145
|
-
on_unmount: Optional[EventType[
|
|
131
|
+
on_blur: Optional[EventType[()]] = None,
|
|
132
|
+
on_click: Optional[EventType[()]] = None,
|
|
133
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
134
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
135
|
+
on_focus: Optional[EventType[()]] = None,
|
|
136
|
+
on_mount: Optional[EventType[()]] = None,
|
|
137
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
138
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
139
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
140
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
141
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
142
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
143
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
144
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
145
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
146
146
|
**props,
|
|
147
147
|
) -> "Flex":
|
|
148
148
|
"""Create a new component instance.
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
7
7
|
|
|
8
8
|
from reflex.components.core.breakpoints import Breakpoints
|
|
9
9
|
from reflex.components.el import elements
|
|
10
|
-
from reflex.event import
|
|
10
|
+
from reflex.event import EventType
|
|
11
11
|
from reflex.style import Style
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
@@ -157,21 +157,21 @@ class Grid(elements.Div, RadixThemesComponent):
|
|
|
157
157
|
class_name: Optional[Any] = None,
|
|
158
158
|
autofocus: Optional[bool] = None,
|
|
159
159
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
160
|
-
on_blur: Optional[EventType[
|
|
161
|
-
on_click: Optional[EventType[
|
|
162
|
-
on_context_menu: Optional[EventType[
|
|
163
|
-
on_double_click: Optional[EventType[
|
|
164
|
-
on_focus: Optional[EventType[
|
|
165
|
-
on_mount: Optional[EventType[
|
|
166
|
-
on_mouse_down: Optional[EventType[
|
|
167
|
-
on_mouse_enter: Optional[EventType[
|
|
168
|
-
on_mouse_leave: Optional[EventType[
|
|
169
|
-
on_mouse_move: Optional[EventType[
|
|
170
|
-
on_mouse_out: Optional[EventType[
|
|
171
|
-
on_mouse_over: Optional[EventType[
|
|
172
|
-
on_mouse_up: Optional[EventType[
|
|
173
|
-
on_scroll: Optional[EventType[
|
|
174
|
-
on_unmount: Optional[EventType[
|
|
160
|
+
on_blur: Optional[EventType[()]] = None,
|
|
161
|
+
on_click: Optional[EventType[()]] = None,
|
|
162
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
163
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
164
|
+
on_focus: Optional[EventType[()]] = None,
|
|
165
|
+
on_mount: Optional[EventType[()]] = None,
|
|
166
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
167
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
168
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
169
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
170
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
171
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
172
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
173
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
174
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
175
175
|
**props,
|
|
176
176
|
) -> "Grid":
|
|
177
177
|
"""Create a new component instance.
|