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