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
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.core.breakpoints import Breakpoints
|
|
9
|
-
from reflex.event import
|
|
9
|
+
from reflex.event import EventType
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
@@ -118,24 +118,22 @@ class Switch(RadixThemesComponent):
|
|
|
118
118
|
class_name: Optional[Any] = None,
|
|
119
119
|
autofocus: Optional[bool] = None,
|
|
120
120
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
121
|
-
on_blur: Optional[EventType[
|
|
122
|
-
on_change: Optional[
|
|
123
|
-
|
|
124
|
-
] = None,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
138
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
121
|
+
on_blur: Optional[EventType[()]] = None,
|
|
122
|
+
on_change: Optional[Union[EventType[()], EventType[bool]]] = None,
|
|
123
|
+
on_click: Optional[EventType[()]] = None,
|
|
124
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
125
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
126
|
+
on_focus: Optional[EventType[()]] = None,
|
|
127
|
+
on_mount: Optional[EventType[()]] = None,
|
|
128
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
129
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
130
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
131
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
132
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
133
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
134
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
135
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
136
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
139
137
|
**props,
|
|
140
138
|
) -> "Switch":
|
|
141
139
|
"""Create a new component instance.
|
|
@@ -8,7 +8,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
8
8
|
from reflex.components.component import ComponentNamespace
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
10
|
from reflex.components.el import elements
|
|
11
|
-
from reflex.event import
|
|
11
|
+
from reflex.event import EventType
|
|
12
12
|
from reflex.style import Style
|
|
13
13
|
from reflex.vars.base import Var
|
|
14
14
|
|
|
@@ -66,21 +66,21 @@ class TableRoot(elements.Table, RadixThemesComponent):
|
|
|
66
66
|
class_name: Optional[Any] = None,
|
|
67
67
|
autofocus: Optional[bool] = None,
|
|
68
68
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
69
|
-
on_blur: Optional[EventType[
|
|
70
|
-
on_click: Optional[EventType[
|
|
71
|
-
on_context_menu: Optional[EventType[
|
|
72
|
-
on_double_click: Optional[EventType[
|
|
73
|
-
on_focus: Optional[EventType[
|
|
74
|
-
on_mount: Optional[EventType[
|
|
75
|
-
on_mouse_down: Optional[EventType[
|
|
76
|
-
on_mouse_enter: Optional[EventType[
|
|
77
|
-
on_mouse_leave: Optional[EventType[
|
|
78
|
-
on_mouse_move: Optional[EventType[
|
|
79
|
-
on_mouse_out: Optional[EventType[
|
|
80
|
-
on_mouse_over: Optional[EventType[
|
|
81
|
-
on_mouse_up: Optional[EventType[
|
|
82
|
-
on_scroll: Optional[EventType[
|
|
83
|
-
on_unmount: Optional[EventType[
|
|
69
|
+
on_blur: Optional[EventType[()]] = None,
|
|
70
|
+
on_click: Optional[EventType[()]] = None,
|
|
71
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
72
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
73
|
+
on_focus: Optional[EventType[()]] = None,
|
|
74
|
+
on_mount: Optional[EventType[()]] = None,
|
|
75
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
76
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
77
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
78
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
79
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
80
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
81
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
82
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
83
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
84
84
|
**props,
|
|
85
85
|
) -> "TableRoot":
|
|
86
86
|
"""Create a new component instance.
|
|
@@ -160,21 +160,21 @@ class TableHeader(elements.Thead, RadixThemesComponent):
|
|
|
160
160
|
class_name: Optional[Any] = None,
|
|
161
161
|
autofocus: Optional[bool] = None,
|
|
162
162
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
163
|
-
on_blur: Optional[EventType[
|
|
164
|
-
on_click: Optional[EventType[
|
|
165
|
-
on_context_menu: Optional[EventType[
|
|
166
|
-
on_double_click: Optional[EventType[
|
|
167
|
-
on_focus: Optional[EventType[
|
|
168
|
-
on_mount: Optional[EventType[
|
|
169
|
-
on_mouse_down: Optional[EventType[
|
|
170
|
-
on_mouse_enter: Optional[EventType[
|
|
171
|
-
on_mouse_leave: Optional[EventType[
|
|
172
|
-
on_mouse_move: Optional[EventType[
|
|
173
|
-
on_mouse_out: Optional[EventType[
|
|
174
|
-
on_mouse_over: Optional[EventType[
|
|
175
|
-
on_mouse_up: Optional[EventType[
|
|
176
|
-
on_scroll: Optional[EventType[
|
|
177
|
-
on_unmount: Optional[EventType[
|
|
163
|
+
on_blur: Optional[EventType[()]] = None,
|
|
164
|
+
on_click: Optional[EventType[()]] = None,
|
|
165
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
166
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
167
|
+
on_focus: Optional[EventType[()]] = None,
|
|
168
|
+
on_mount: Optional[EventType[()]] = None,
|
|
169
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
170
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
171
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
172
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
173
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
174
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
175
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
176
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
177
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
178
178
|
**props,
|
|
179
179
|
) -> "TableHeader":
|
|
180
180
|
"""Create a new component instance.
|
|
@@ -256,21 +256,21 @@ class TableRow(elements.Tr, RadixThemesComponent):
|
|
|
256
256
|
class_name: Optional[Any] = None,
|
|
257
257
|
autofocus: Optional[bool] = None,
|
|
258
258
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
259
|
-
on_blur: Optional[EventType[
|
|
260
|
-
on_click: Optional[EventType[
|
|
261
|
-
on_context_menu: Optional[EventType[
|
|
262
|
-
on_double_click: Optional[EventType[
|
|
263
|
-
on_focus: Optional[EventType[
|
|
264
|
-
on_mount: Optional[EventType[
|
|
265
|
-
on_mouse_down: Optional[EventType[
|
|
266
|
-
on_mouse_enter: Optional[EventType[
|
|
267
|
-
on_mouse_leave: Optional[EventType[
|
|
268
|
-
on_mouse_move: Optional[EventType[
|
|
269
|
-
on_mouse_out: Optional[EventType[
|
|
270
|
-
on_mouse_over: Optional[EventType[
|
|
271
|
-
on_mouse_up: Optional[EventType[
|
|
272
|
-
on_scroll: Optional[EventType[
|
|
273
|
-
on_unmount: Optional[EventType[
|
|
259
|
+
on_blur: Optional[EventType[()]] = None,
|
|
260
|
+
on_click: Optional[EventType[()]] = None,
|
|
261
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
262
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
263
|
+
on_focus: Optional[EventType[()]] = None,
|
|
264
|
+
on_mount: Optional[EventType[()]] = None,
|
|
265
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
266
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
267
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
268
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
269
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
270
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
271
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
272
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
273
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
274
274
|
**props,
|
|
275
275
|
) -> "TableRow":
|
|
276
276
|
"""Create a new component instance.
|
|
@@ -363,21 +363,21 @@ class TableColumnHeaderCell(elements.Th, RadixThemesComponent):
|
|
|
363
363
|
class_name: Optional[Any] = None,
|
|
364
364
|
autofocus: Optional[bool] = None,
|
|
365
365
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
366
|
-
on_blur: Optional[EventType[
|
|
367
|
-
on_click: Optional[EventType[
|
|
368
|
-
on_context_menu: Optional[EventType[
|
|
369
|
-
on_double_click: Optional[EventType[
|
|
370
|
-
on_focus: Optional[EventType[
|
|
371
|
-
on_mount: Optional[EventType[
|
|
372
|
-
on_mouse_down: Optional[EventType[
|
|
373
|
-
on_mouse_enter: Optional[EventType[
|
|
374
|
-
on_mouse_leave: Optional[EventType[
|
|
375
|
-
on_mouse_move: Optional[EventType[
|
|
376
|
-
on_mouse_out: Optional[EventType[
|
|
377
|
-
on_mouse_over: Optional[EventType[
|
|
378
|
-
on_mouse_up: Optional[EventType[
|
|
379
|
-
on_scroll: Optional[EventType[
|
|
380
|
-
on_unmount: Optional[EventType[
|
|
366
|
+
on_blur: Optional[EventType[()]] = None,
|
|
367
|
+
on_click: Optional[EventType[()]] = None,
|
|
368
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
369
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
370
|
+
on_focus: Optional[EventType[()]] = None,
|
|
371
|
+
on_mount: Optional[EventType[()]] = None,
|
|
372
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
373
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
374
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
375
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
376
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
377
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
378
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
379
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
380
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
381
381
|
**props,
|
|
382
382
|
) -> "TableColumnHeaderCell":
|
|
383
383
|
"""Create a new component instance.
|
|
@@ -461,21 +461,21 @@ class TableBody(elements.Tbody, RadixThemesComponent):
|
|
|
461
461
|
class_name: Optional[Any] = None,
|
|
462
462
|
autofocus: Optional[bool] = None,
|
|
463
463
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
464
|
-
on_blur: Optional[EventType[
|
|
465
|
-
on_click: Optional[EventType[
|
|
466
|
-
on_context_menu: Optional[EventType[
|
|
467
|
-
on_double_click: Optional[EventType[
|
|
468
|
-
on_focus: Optional[EventType[
|
|
469
|
-
on_mount: Optional[EventType[
|
|
470
|
-
on_mouse_down: Optional[EventType[
|
|
471
|
-
on_mouse_enter: Optional[EventType[
|
|
472
|
-
on_mouse_leave: Optional[EventType[
|
|
473
|
-
on_mouse_move: Optional[EventType[
|
|
474
|
-
on_mouse_out: Optional[EventType[
|
|
475
|
-
on_mouse_over: Optional[EventType[
|
|
476
|
-
on_mouse_up: Optional[EventType[
|
|
477
|
-
on_scroll: Optional[EventType[
|
|
478
|
-
on_unmount: Optional[EventType[
|
|
464
|
+
on_blur: Optional[EventType[()]] = None,
|
|
465
|
+
on_click: Optional[EventType[()]] = None,
|
|
466
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
467
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
468
|
+
on_focus: Optional[EventType[()]] = None,
|
|
469
|
+
on_mount: Optional[EventType[()]] = None,
|
|
470
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
471
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
472
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
473
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
474
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
475
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
476
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
477
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
478
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
479
479
|
**props,
|
|
480
480
|
) -> "TableBody":
|
|
481
481
|
"""Create a new component instance.
|
|
@@ -686,21 +686,21 @@ class TableCell(elements.Td, CommonPaddingProps, RadixThemesComponent):
|
|
|
686
686
|
class_name: Optional[Any] = None,
|
|
687
687
|
autofocus: Optional[bool] = None,
|
|
688
688
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
689
|
-
on_blur: Optional[EventType[
|
|
690
|
-
on_click: Optional[EventType[
|
|
691
|
-
on_context_menu: Optional[EventType[
|
|
692
|
-
on_double_click: Optional[EventType[
|
|
693
|
-
on_focus: Optional[EventType[
|
|
694
|
-
on_mount: Optional[EventType[
|
|
695
|
-
on_mouse_down: Optional[EventType[
|
|
696
|
-
on_mouse_enter: Optional[EventType[
|
|
697
|
-
on_mouse_leave: Optional[EventType[
|
|
698
|
-
on_mouse_move: Optional[EventType[
|
|
699
|
-
on_mouse_out: Optional[EventType[
|
|
700
|
-
on_mouse_over: Optional[EventType[
|
|
701
|
-
on_mouse_up: Optional[EventType[
|
|
702
|
-
on_scroll: Optional[EventType[
|
|
703
|
-
on_unmount: Optional[EventType[
|
|
689
|
+
on_blur: Optional[EventType[()]] = None,
|
|
690
|
+
on_click: Optional[EventType[()]] = None,
|
|
691
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
692
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
693
|
+
on_focus: Optional[EventType[()]] = None,
|
|
694
|
+
on_mount: Optional[EventType[()]] = None,
|
|
695
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
696
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
697
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
698
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
699
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
700
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
701
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
702
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
703
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
704
704
|
**props,
|
|
705
705
|
) -> "TableCell":
|
|
706
706
|
"""Create a new component instance.
|
|
@@ -925,21 +925,21 @@ class TableRowHeaderCell(elements.Th, CommonPaddingProps, RadixThemesComponent):
|
|
|
925
925
|
class_name: Optional[Any] = None,
|
|
926
926
|
autofocus: Optional[bool] = None,
|
|
927
927
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
928
|
-
on_blur: Optional[EventType[
|
|
929
|
-
on_click: Optional[EventType[
|
|
930
|
-
on_context_menu: Optional[EventType[
|
|
931
|
-
on_double_click: Optional[EventType[
|
|
932
|
-
on_focus: Optional[EventType[
|
|
933
|
-
on_mount: Optional[EventType[
|
|
934
|
-
on_mouse_down: Optional[EventType[
|
|
935
|
-
on_mouse_enter: Optional[EventType[
|
|
936
|
-
on_mouse_leave: Optional[EventType[
|
|
937
|
-
on_mouse_move: Optional[EventType[
|
|
938
|
-
on_mouse_out: Optional[EventType[
|
|
939
|
-
on_mouse_over: Optional[EventType[
|
|
940
|
-
on_mouse_up: Optional[EventType[
|
|
941
|
-
on_scroll: Optional[EventType[
|
|
942
|
-
on_unmount: Optional[EventType[
|
|
928
|
+
on_blur: Optional[EventType[()]] = None,
|
|
929
|
+
on_click: Optional[EventType[()]] = None,
|
|
930
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
931
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
932
|
+
on_focus: Optional[EventType[()]] = None,
|
|
933
|
+
on_mount: Optional[EventType[()]] = None,
|
|
934
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
935
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
936
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
937
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
938
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
939
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
940
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
941
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
942
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
943
943
|
**props,
|
|
944
944
|
) -> "TableRowHeaderCell":
|
|
945
945
|
"""Create a new component instance.
|
|
@@ -7,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.core.breakpoints import Breakpoints
|
|
10
|
-
from reflex.event import
|
|
10
|
+
from reflex.event import EventType
|
|
11
11
|
from reflex.style import Style
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
@@ -40,24 +40,22 @@ class TabsRoot(RadixThemesComponent):
|
|
|
40
40
|
class_name: Optional[Any] = None,
|
|
41
41
|
autofocus: Optional[bool] = None,
|
|
42
42
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
43
|
-
on_blur: Optional[EventType[
|
|
44
|
-
on_change: Optional[
|
|
45
|
-
|
|
46
|
-
] = None,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
60
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
43
|
+
on_blur: Optional[EventType[()]] = None,
|
|
44
|
+
on_change: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
45
|
+
on_click: Optional[EventType[()]] = None,
|
|
46
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
47
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
48
|
+
on_focus: Optional[EventType[()]] = None,
|
|
49
|
+
on_mount: Optional[EventType[()]] = None,
|
|
50
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
51
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
52
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
53
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
54
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
55
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
56
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
57
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
58
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
61
59
|
**props,
|
|
62
60
|
) -> "TabsRoot":
|
|
63
61
|
"""Create a new component instance.
|
|
@@ -107,21 +105,21 @@ class TabsList(RadixThemesComponent):
|
|
|
107
105
|
class_name: Optional[Any] = None,
|
|
108
106
|
autofocus: Optional[bool] = None,
|
|
109
107
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
110
|
-
on_blur: Optional[EventType[
|
|
111
|
-
on_click: Optional[EventType[
|
|
112
|
-
on_context_menu: Optional[EventType[
|
|
113
|
-
on_double_click: Optional[EventType[
|
|
114
|
-
on_focus: Optional[EventType[
|
|
115
|
-
on_mount: Optional[EventType[
|
|
116
|
-
on_mouse_down: Optional[EventType[
|
|
117
|
-
on_mouse_enter: Optional[EventType[
|
|
118
|
-
on_mouse_leave: Optional[EventType[
|
|
119
|
-
on_mouse_move: Optional[EventType[
|
|
120
|
-
on_mouse_out: Optional[EventType[
|
|
121
|
-
on_mouse_over: Optional[EventType[
|
|
122
|
-
on_mouse_up: Optional[EventType[
|
|
123
|
-
on_scroll: Optional[EventType[
|
|
124
|
-
on_unmount: Optional[EventType[
|
|
108
|
+
on_blur: Optional[EventType[()]] = None,
|
|
109
|
+
on_click: Optional[EventType[()]] = None,
|
|
110
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
111
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
112
|
+
on_focus: Optional[EventType[()]] = None,
|
|
113
|
+
on_mount: Optional[EventType[()]] = None,
|
|
114
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
115
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
116
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
117
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
118
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
119
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
120
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
121
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
122
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
125
123
|
**props,
|
|
126
124
|
) -> "TabsList":
|
|
127
125
|
"""Create a new component instance.
|
|
@@ -222,21 +220,21 @@ class TabsTrigger(RadixThemesComponent):
|
|
|
222
220
|
class_name: Optional[Any] = None,
|
|
223
221
|
autofocus: Optional[bool] = None,
|
|
224
222
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
225
|
-
on_blur: Optional[EventType[
|
|
226
|
-
on_click: Optional[EventType[
|
|
227
|
-
on_context_menu: Optional[EventType[
|
|
228
|
-
on_double_click: Optional[EventType[
|
|
229
|
-
on_focus: Optional[EventType[
|
|
230
|
-
on_mount: Optional[EventType[
|
|
231
|
-
on_mouse_down: Optional[EventType[
|
|
232
|
-
on_mouse_enter: Optional[EventType[
|
|
233
|
-
on_mouse_leave: Optional[EventType[
|
|
234
|
-
on_mouse_move: Optional[EventType[
|
|
235
|
-
on_mouse_out: Optional[EventType[
|
|
236
|
-
on_mouse_over: Optional[EventType[
|
|
237
|
-
on_mouse_up: Optional[EventType[
|
|
238
|
-
on_scroll: Optional[EventType[
|
|
239
|
-
on_unmount: Optional[EventType[
|
|
223
|
+
on_blur: Optional[EventType[()]] = None,
|
|
224
|
+
on_click: Optional[EventType[()]] = None,
|
|
225
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
226
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
227
|
+
on_focus: Optional[EventType[()]] = None,
|
|
228
|
+
on_mount: Optional[EventType[()]] = None,
|
|
229
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
230
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
231
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
232
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
233
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
234
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
235
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
236
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
237
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
240
238
|
**props,
|
|
241
239
|
) -> "TabsTrigger":
|
|
242
240
|
"""Create a TabsTrigger component.
|
|
@@ -276,21 +274,21 @@ class TabsContent(RadixThemesComponent):
|
|
|
276
274
|
class_name: Optional[Any] = None,
|
|
277
275
|
autofocus: Optional[bool] = None,
|
|
278
276
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
279
|
-
on_blur: Optional[EventType[
|
|
280
|
-
on_click: Optional[EventType[
|
|
281
|
-
on_context_menu: Optional[EventType[
|
|
282
|
-
on_double_click: Optional[EventType[
|
|
283
|
-
on_focus: Optional[EventType[
|
|
284
|
-
on_mount: Optional[EventType[
|
|
285
|
-
on_mouse_down: Optional[EventType[
|
|
286
|
-
on_mouse_enter: Optional[EventType[
|
|
287
|
-
on_mouse_leave: Optional[EventType[
|
|
288
|
-
on_mouse_move: Optional[EventType[
|
|
289
|
-
on_mouse_out: Optional[EventType[
|
|
290
|
-
on_mouse_over: Optional[EventType[
|
|
291
|
-
on_mouse_up: Optional[EventType[
|
|
292
|
-
on_scroll: Optional[EventType[
|
|
293
|
-
on_unmount: Optional[EventType[
|
|
277
|
+
on_blur: Optional[EventType[()]] = None,
|
|
278
|
+
on_click: Optional[EventType[()]] = None,
|
|
279
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
280
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
281
|
+
on_focus: Optional[EventType[()]] = None,
|
|
282
|
+
on_mount: Optional[EventType[()]] = None,
|
|
283
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
284
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
285
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
286
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
287
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
288
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
289
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
290
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
291
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
294
292
|
**props,
|
|
295
293
|
) -> "TabsContent":
|
|
296
294
|
"""Create a new component instance.
|
|
@@ -342,24 +340,22 @@ class Tabs(ComponentNamespace):
|
|
|
342
340
|
class_name: Optional[Any] = None,
|
|
343
341
|
autofocus: Optional[bool] = None,
|
|
344
342
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
345
|
-
on_blur: Optional[EventType[
|
|
346
|
-
on_change: Optional[
|
|
347
|
-
|
|
348
|
-
] = None,
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
362
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
343
|
+
on_blur: Optional[EventType[()]] = None,
|
|
344
|
+
on_change: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
345
|
+
on_click: Optional[EventType[()]] = None,
|
|
346
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
347
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
348
|
+
on_focus: Optional[EventType[()]] = None,
|
|
349
|
+
on_mount: Optional[EventType[()]] = None,
|
|
350
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
351
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
352
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
353
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
354
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
355
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
356
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
357
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
358
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
363
359
|
**props,
|
|
364
360
|
) -> "TabsRoot":
|
|
365
361
|
"""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, KeyInputInfo
|
|
11
11
|
from reflex.style import Style
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
@@ -169,42 +169,28 @@ class TextArea(RadixThemesComponent, elements.Textarea):
|
|
|
169
169
|
class_name: Optional[Any] = None,
|
|
170
170
|
autofocus: Optional[bool] = None,
|
|
171
171
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
172
|
-
on_blur: Optional[
|
|
173
|
-
|
|
174
|
-
] = None,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
] = None,
|
|
178
|
-
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
179
|
-
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
180
|
-
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
181
|
-
on_focus: Optional[
|
|
182
|
-
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
183
|
-
] = None,
|
|
172
|
+
on_blur: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
173
|
+
on_change: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
174
|
+
on_click: Optional[EventType[()]] = None,
|
|
175
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
176
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
177
|
+
on_focus: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
184
178
|
on_key_down: Optional[
|
|
185
|
-
Union[
|
|
186
|
-
EventType[[], BASE_STATE],
|
|
187
|
-
EventType[[str], BASE_STATE],
|
|
188
|
-
EventType[[str, KeyInputInfo], BASE_STATE],
|
|
189
|
-
]
|
|
179
|
+
Union[EventType[()], EventType[str], EventType[str, KeyInputInfo]]
|
|
190
180
|
] = None,
|
|
191
181
|
on_key_up: Optional[
|
|
192
|
-
Union[
|
|
193
|
-
EventType[[], BASE_STATE],
|
|
194
|
-
EventType[[str], BASE_STATE],
|
|
195
|
-
EventType[[str, KeyInputInfo], BASE_STATE],
|
|
196
|
-
]
|
|
182
|
+
Union[EventType[()], EventType[str], EventType[str, KeyInputInfo]]
|
|
197
183
|
] = None,
|
|
198
|
-
on_mount: Optional[EventType[
|
|
199
|
-
on_mouse_down: Optional[EventType[
|
|
200
|
-
on_mouse_enter: Optional[EventType[
|
|
201
|
-
on_mouse_leave: Optional[EventType[
|
|
202
|
-
on_mouse_move: Optional[EventType[
|
|
203
|
-
on_mouse_out: Optional[EventType[
|
|
204
|
-
on_mouse_over: Optional[EventType[
|
|
205
|
-
on_mouse_up: Optional[EventType[
|
|
206
|
-
on_scroll: Optional[EventType[
|
|
207
|
-
on_unmount: Optional[EventType[
|
|
184
|
+
on_mount: Optional[EventType[()]] = None,
|
|
185
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
186
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
187
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
188
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
189
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
190
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
191
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
192
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
193
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
208
194
|
**props,
|
|
209
195
|
) -> "TextArea":
|
|
210
196
|
"""Create an Input component.
|