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
|
@@ -9,7 +9,7 @@ from reflex.components.component import ComponentNamespace
|
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
10
|
from reflex.components.el import elements
|
|
11
11
|
from reflex.components.markdown.markdown import MarkdownComponentMap
|
|
12
|
-
from reflex.event import
|
|
12
|
+
from reflex.event import EventType
|
|
13
13
|
from reflex.style import Style
|
|
14
14
|
from reflex.vars.base import Var
|
|
15
15
|
|
|
@@ -232,21 +232,21 @@ class Text(elements.Span, RadixThemesComponent, MarkdownComponentMap):
|
|
|
232
232
|
class_name: Optional[Any] = None,
|
|
233
233
|
autofocus: Optional[bool] = None,
|
|
234
234
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
235
|
-
on_blur: Optional[EventType[
|
|
236
|
-
on_click: Optional[EventType[
|
|
237
|
-
on_context_menu: Optional[EventType[
|
|
238
|
-
on_double_click: Optional[EventType[
|
|
239
|
-
on_focus: Optional[EventType[
|
|
240
|
-
on_mount: Optional[EventType[
|
|
241
|
-
on_mouse_down: Optional[EventType[
|
|
242
|
-
on_mouse_enter: Optional[EventType[
|
|
243
|
-
on_mouse_leave: Optional[EventType[
|
|
244
|
-
on_mouse_move: Optional[EventType[
|
|
245
|
-
on_mouse_out: Optional[EventType[
|
|
246
|
-
on_mouse_over: Optional[EventType[
|
|
247
|
-
on_mouse_up: Optional[EventType[
|
|
248
|
-
on_scroll: Optional[EventType[
|
|
249
|
-
on_unmount: Optional[EventType[
|
|
235
|
+
on_blur: Optional[EventType[()]] = None,
|
|
236
|
+
on_click: Optional[EventType[()]] = None,
|
|
237
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
238
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
239
|
+
on_focus: Optional[EventType[()]] = None,
|
|
240
|
+
on_mount: Optional[EventType[()]] = None,
|
|
241
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
242
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
243
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
244
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
245
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
246
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
247
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
248
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
249
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
250
250
|
**props,
|
|
251
251
|
) -> "Text":
|
|
252
252
|
"""Create a new component instance.
|
|
@@ -489,21 +489,21 @@ class Span(Text):
|
|
|
489
489
|
class_name: Optional[Any] = None,
|
|
490
490
|
autofocus: Optional[bool] = None,
|
|
491
491
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
492
|
-
on_blur: Optional[EventType[
|
|
493
|
-
on_click: Optional[EventType[
|
|
494
|
-
on_context_menu: Optional[EventType[
|
|
495
|
-
on_double_click: Optional[EventType[
|
|
496
|
-
on_focus: Optional[EventType[
|
|
497
|
-
on_mount: Optional[EventType[
|
|
498
|
-
on_mouse_down: Optional[EventType[
|
|
499
|
-
on_mouse_enter: Optional[EventType[
|
|
500
|
-
on_mouse_leave: Optional[EventType[
|
|
501
|
-
on_mouse_move: Optional[EventType[
|
|
502
|
-
on_mouse_out: Optional[EventType[
|
|
503
|
-
on_mouse_over: Optional[EventType[
|
|
504
|
-
on_mouse_up: Optional[EventType[
|
|
505
|
-
on_scroll: Optional[EventType[
|
|
506
|
-
on_unmount: Optional[EventType[
|
|
492
|
+
on_blur: Optional[EventType[()]] = None,
|
|
493
|
+
on_click: Optional[EventType[()]] = None,
|
|
494
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
495
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
496
|
+
on_focus: Optional[EventType[()]] = None,
|
|
497
|
+
on_mount: Optional[EventType[()]] = None,
|
|
498
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
499
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
500
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
501
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
502
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
503
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
504
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
505
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
506
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
507
507
|
**props,
|
|
508
508
|
) -> "Span":
|
|
509
509
|
"""Create a new component instance.
|
|
@@ -586,21 +586,21 @@ class Em(elements.Em, RadixThemesComponent):
|
|
|
586
586
|
class_name: Optional[Any] = None,
|
|
587
587
|
autofocus: Optional[bool] = None,
|
|
588
588
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
589
|
-
on_blur: Optional[EventType[
|
|
590
|
-
on_click: Optional[EventType[
|
|
591
|
-
on_context_menu: Optional[EventType[
|
|
592
|
-
on_double_click: Optional[EventType[
|
|
593
|
-
on_focus: Optional[EventType[
|
|
594
|
-
on_mount: Optional[EventType[
|
|
595
|
-
on_mouse_down: Optional[EventType[
|
|
596
|
-
on_mouse_enter: Optional[EventType[
|
|
597
|
-
on_mouse_leave: Optional[EventType[
|
|
598
|
-
on_mouse_move: Optional[EventType[
|
|
599
|
-
on_mouse_out: Optional[EventType[
|
|
600
|
-
on_mouse_over: Optional[EventType[
|
|
601
|
-
on_mouse_up: Optional[EventType[
|
|
602
|
-
on_scroll: Optional[EventType[
|
|
603
|
-
on_unmount: Optional[EventType[
|
|
589
|
+
on_blur: Optional[EventType[()]] = None,
|
|
590
|
+
on_click: Optional[EventType[()]] = None,
|
|
591
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
592
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
593
|
+
on_focus: Optional[EventType[()]] = None,
|
|
594
|
+
on_mount: Optional[EventType[()]] = None,
|
|
595
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
596
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
597
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
598
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
599
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
600
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
601
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
602
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
603
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
604
604
|
**props,
|
|
605
605
|
) -> "Em":
|
|
606
606
|
"""Create a new component instance.
|
|
@@ -681,21 +681,21 @@ class Kbd(elements.Kbd, RadixThemesComponent):
|
|
|
681
681
|
class_name: Optional[Any] = None,
|
|
682
682
|
autofocus: Optional[bool] = None,
|
|
683
683
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
684
|
-
on_blur: Optional[EventType[
|
|
685
|
-
on_click: Optional[EventType[
|
|
686
|
-
on_context_menu: Optional[EventType[
|
|
687
|
-
on_double_click: Optional[EventType[
|
|
688
|
-
on_focus: Optional[EventType[
|
|
689
|
-
on_mount: Optional[EventType[
|
|
690
|
-
on_mouse_down: Optional[EventType[
|
|
691
|
-
on_mouse_enter: Optional[EventType[
|
|
692
|
-
on_mouse_leave: Optional[EventType[
|
|
693
|
-
on_mouse_move: Optional[EventType[
|
|
694
|
-
on_mouse_out: Optional[EventType[
|
|
695
|
-
on_mouse_over: Optional[EventType[
|
|
696
|
-
on_mouse_up: Optional[EventType[
|
|
697
|
-
on_scroll: Optional[EventType[
|
|
698
|
-
on_unmount: Optional[EventType[
|
|
684
|
+
on_blur: Optional[EventType[()]] = None,
|
|
685
|
+
on_click: Optional[EventType[()]] = None,
|
|
686
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
687
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
688
|
+
on_focus: Optional[EventType[()]] = None,
|
|
689
|
+
on_mount: Optional[EventType[()]] = None,
|
|
690
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
691
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
692
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
693
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
694
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
695
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
696
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
697
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
698
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
699
699
|
**props,
|
|
700
700
|
) -> "Kbd":
|
|
701
701
|
"""Create a new component instance.
|
|
@@ -772,21 +772,21 @@ class Quote(elements.Q, RadixThemesComponent):
|
|
|
772
772
|
class_name: Optional[Any] = None,
|
|
773
773
|
autofocus: Optional[bool] = None,
|
|
774
774
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
775
|
-
on_blur: Optional[EventType[
|
|
776
|
-
on_click: Optional[EventType[
|
|
777
|
-
on_context_menu: Optional[EventType[
|
|
778
|
-
on_double_click: Optional[EventType[
|
|
779
|
-
on_focus: Optional[EventType[
|
|
780
|
-
on_mount: Optional[EventType[
|
|
781
|
-
on_mouse_down: Optional[EventType[
|
|
782
|
-
on_mouse_enter: Optional[EventType[
|
|
783
|
-
on_mouse_leave: Optional[EventType[
|
|
784
|
-
on_mouse_move: Optional[EventType[
|
|
785
|
-
on_mouse_out: Optional[EventType[
|
|
786
|
-
on_mouse_over: Optional[EventType[
|
|
787
|
-
on_mouse_up: Optional[EventType[
|
|
788
|
-
on_scroll: Optional[EventType[
|
|
789
|
-
on_unmount: Optional[EventType[
|
|
775
|
+
on_blur: Optional[EventType[()]] = None,
|
|
776
|
+
on_click: Optional[EventType[()]] = None,
|
|
777
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
778
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
779
|
+
on_focus: Optional[EventType[()]] = None,
|
|
780
|
+
on_mount: Optional[EventType[()]] = None,
|
|
781
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
782
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
783
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
784
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
785
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
786
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
787
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
788
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
789
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
790
790
|
**props,
|
|
791
791
|
) -> "Quote":
|
|
792
792
|
"""Create a new component instance.
|
|
@@ -862,21 +862,21 @@ class Strong(elements.Strong, RadixThemesComponent):
|
|
|
862
862
|
class_name: Optional[Any] = None,
|
|
863
863
|
autofocus: Optional[bool] = None,
|
|
864
864
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
865
|
-
on_blur: Optional[EventType[
|
|
866
|
-
on_click: Optional[EventType[
|
|
867
|
-
on_context_menu: Optional[EventType[
|
|
868
|
-
on_double_click: Optional[EventType[
|
|
869
|
-
on_focus: Optional[EventType[
|
|
870
|
-
on_mount: Optional[EventType[
|
|
871
|
-
on_mouse_down: Optional[EventType[
|
|
872
|
-
on_mouse_enter: Optional[EventType[
|
|
873
|
-
on_mouse_leave: Optional[EventType[
|
|
874
|
-
on_mouse_move: Optional[EventType[
|
|
875
|
-
on_mouse_out: Optional[EventType[
|
|
876
|
-
on_mouse_over: Optional[EventType[
|
|
877
|
-
on_mouse_up: Optional[EventType[
|
|
878
|
-
on_scroll: Optional[EventType[
|
|
879
|
-
on_unmount: Optional[EventType[
|
|
865
|
+
on_blur: Optional[EventType[()]] = None,
|
|
866
|
+
on_click: Optional[EventType[()]] = None,
|
|
867
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
868
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
869
|
+
on_focus: Optional[EventType[()]] = None,
|
|
870
|
+
on_mount: Optional[EventType[()]] = None,
|
|
871
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
872
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
873
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
874
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
875
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
876
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
877
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
878
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
879
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
880
880
|
**props,
|
|
881
881
|
) -> "Strong":
|
|
882
882
|
"""Create a new component instance.
|
|
@@ -1115,21 +1115,21 @@ class TextNamespace(ComponentNamespace):
|
|
|
1115
1115
|
class_name: Optional[Any] = None,
|
|
1116
1116
|
autofocus: Optional[bool] = None,
|
|
1117
1117
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
1118
|
-
on_blur: Optional[EventType[
|
|
1119
|
-
on_click: Optional[EventType[
|
|
1120
|
-
on_context_menu: Optional[EventType[
|
|
1121
|
-
on_double_click: Optional[EventType[
|
|
1122
|
-
on_focus: Optional[EventType[
|
|
1123
|
-
on_mount: Optional[EventType[
|
|
1124
|
-
on_mouse_down: Optional[EventType[
|
|
1125
|
-
on_mouse_enter: Optional[EventType[
|
|
1126
|
-
on_mouse_leave: Optional[EventType[
|
|
1127
|
-
on_mouse_move: Optional[EventType[
|
|
1128
|
-
on_mouse_out: Optional[EventType[
|
|
1129
|
-
on_mouse_over: Optional[EventType[
|
|
1130
|
-
on_mouse_up: Optional[EventType[
|
|
1131
|
-
on_scroll: Optional[EventType[
|
|
1132
|
-
on_unmount: Optional[EventType[
|
|
1118
|
+
on_blur: Optional[EventType[()]] = None,
|
|
1119
|
+
on_click: Optional[EventType[()]] = None,
|
|
1120
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
1121
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
1122
|
+
on_focus: Optional[EventType[()]] = None,
|
|
1123
|
+
on_mount: Optional[EventType[()]] = None,
|
|
1124
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
1125
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
1126
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
1127
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
1128
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
1129
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
1130
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
1131
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
1132
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
1133
1133
|
**props,
|
|
1134
1134
|
) -> "Text":
|
|
1135
1135
|
"""Create a new component instance.
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, Optional, Union, overload
|
|
|
7
7
|
|
|
8
8
|
import reflex
|
|
9
9
|
from reflex.components.react_player.react_player import ReactPlayer
|
|
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
|
|
|
@@ -34,48 +34,42 @@ class Audio(ReactPlayer):
|
|
|
34
34
|
class_name: Optional[Any] = None,
|
|
35
35
|
autofocus: Optional[bool] = None,
|
|
36
36
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
37
|
-
on_blur: Optional[EventType[
|
|
38
|
-
on_buffer: Optional[EventType[
|
|
39
|
-
on_buffer_end: Optional[EventType[
|
|
40
|
-
on_click: Optional[EventType[
|
|
41
|
-
on_click_preview: Optional[EventType[
|
|
42
|
-
on_context_menu: Optional[EventType[
|
|
43
|
-
on_disable_pip: Optional[EventType[
|
|
44
|
-
on_double_click: Optional[EventType[
|
|
45
|
-
on_duration: Optional[
|
|
46
|
-
|
|
47
|
-
] = None,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
on_playback_quality_change: Optional[EventType[[], BASE_STATE]] = None,
|
|
63
|
-
on_playback_rate_change: Optional[EventType[[], BASE_STATE]] = None,
|
|
37
|
+
on_blur: Optional[EventType[()]] = None,
|
|
38
|
+
on_buffer: Optional[EventType[()]] = None,
|
|
39
|
+
on_buffer_end: Optional[EventType[()]] = None,
|
|
40
|
+
on_click: Optional[EventType[()]] = None,
|
|
41
|
+
on_click_preview: Optional[EventType[()]] = None,
|
|
42
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
43
|
+
on_disable_pip: Optional[EventType[()]] = None,
|
|
44
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
45
|
+
on_duration: Optional[Union[EventType[()], EventType[float]]] = None,
|
|
46
|
+
on_enable_pip: Optional[EventType[()]] = None,
|
|
47
|
+
on_ended: Optional[EventType[()]] = None,
|
|
48
|
+
on_error: Optional[EventType[()]] = None,
|
|
49
|
+
on_focus: Optional[EventType[()]] = None,
|
|
50
|
+
on_mount: Optional[EventType[()]] = None,
|
|
51
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
52
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
53
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
54
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
55
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
56
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
57
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
58
|
+
on_pause: Optional[EventType[()]] = None,
|
|
59
|
+
on_play: Optional[EventType[()]] = None,
|
|
60
|
+
on_playback_quality_change: Optional[EventType[()]] = None,
|
|
61
|
+
on_playback_rate_change: Optional[EventType[()]] = None,
|
|
64
62
|
on_progress: Optional[
|
|
65
63
|
Union[
|
|
66
|
-
EventType[
|
|
67
|
-
EventType[
|
|
68
|
-
[reflex.components.react_player.react_player.Progress], BASE_STATE
|
|
69
|
-
],
|
|
64
|
+
EventType[()],
|
|
65
|
+
EventType[reflex.components.react_player.react_player.Progress],
|
|
70
66
|
]
|
|
71
67
|
] = None,
|
|
72
|
-
on_ready: Optional[EventType[
|
|
73
|
-
on_scroll: Optional[EventType[
|
|
74
|
-
on_seek: Optional[
|
|
75
|
-
|
|
76
|
-
] = None,
|
|
77
|
-
on_start: Optional[EventType[[], BASE_STATE]] = None,
|
|
78
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
68
|
+
on_ready: Optional[EventType[()]] = None,
|
|
69
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
70
|
+
on_seek: Optional[Union[EventType[()], EventType[float]]] = None,
|
|
71
|
+
on_start: Optional[EventType[()]] = None,
|
|
72
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
79
73
|
**props,
|
|
80
74
|
) -> "Audio":
|
|
81
75
|
"""Create the component.
|
|
@@ -8,7 +8,7 @@ from typing import Any, Dict, Optional, Union, overload
|
|
|
8
8
|
from typing_extensions import TypedDict
|
|
9
9
|
|
|
10
10
|
from reflex.components.component import NoSSRComponent
|
|
11
|
-
from reflex.event import
|
|
11
|
+
from reflex.event import EventType
|
|
12
12
|
from reflex.style import Style
|
|
13
13
|
from reflex.vars.base import Var
|
|
14
14
|
|
|
@@ -39,43 +39,37 @@ class ReactPlayer(NoSSRComponent):
|
|
|
39
39
|
class_name: Optional[Any] = None,
|
|
40
40
|
autofocus: Optional[bool] = None,
|
|
41
41
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
42
|
-
on_blur: Optional[EventType[
|
|
43
|
-
on_buffer: Optional[EventType[
|
|
44
|
-
on_buffer_end: Optional[EventType[
|
|
45
|
-
on_click: Optional[EventType[
|
|
46
|
-
on_click_preview: Optional[EventType[
|
|
47
|
-
on_context_menu: Optional[EventType[
|
|
48
|
-
on_disable_pip: Optional[EventType[
|
|
49
|
-
on_double_click: Optional[EventType[
|
|
50
|
-
on_duration: Optional[
|
|
51
|
-
|
|
52
|
-
] = None,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
] = None,
|
|
72
|
-
|
|
73
|
-
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
74
|
-
on_seek: Optional[
|
|
75
|
-
Union[EventType[[], BASE_STATE], EventType[[float], BASE_STATE]]
|
|
76
|
-
] = None,
|
|
77
|
-
on_start: Optional[EventType[[], BASE_STATE]] = None,
|
|
78
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
42
|
+
on_blur: Optional[EventType[()]] = None,
|
|
43
|
+
on_buffer: Optional[EventType[()]] = None,
|
|
44
|
+
on_buffer_end: Optional[EventType[()]] = None,
|
|
45
|
+
on_click: Optional[EventType[()]] = None,
|
|
46
|
+
on_click_preview: Optional[EventType[()]] = None,
|
|
47
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
48
|
+
on_disable_pip: Optional[EventType[()]] = None,
|
|
49
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
50
|
+
on_duration: Optional[Union[EventType[()], EventType[float]]] = None,
|
|
51
|
+
on_enable_pip: Optional[EventType[()]] = None,
|
|
52
|
+
on_ended: Optional[EventType[()]] = None,
|
|
53
|
+
on_error: Optional[EventType[()]] = None,
|
|
54
|
+
on_focus: Optional[EventType[()]] = None,
|
|
55
|
+
on_mount: Optional[EventType[()]] = None,
|
|
56
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
57
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
58
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
59
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
60
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
61
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
62
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
63
|
+
on_pause: Optional[EventType[()]] = None,
|
|
64
|
+
on_play: Optional[EventType[()]] = None,
|
|
65
|
+
on_playback_quality_change: Optional[EventType[()]] = None,
|
|
66
|
+
on_playback_rate_change: Optional[EventType[()]] = None,
|
|
67
|
+
on_progress: Optional[Union[EventType[()], EventType[Progress]]] = None,
|
|
68
|
+
on_ready: Optional[EventType[()]] = None,
|
|
69
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
70
|
+
on_seek: Optional[Union[EventType[()], EventType[float]]] = None,
|
|
71
|
+
on_start: Optional[EventType[()]] = None,
|
|
72
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
79
73
|
**props,
|
|
80
74
|
) -> "ReactPlayer":
|
|
81
75
|
"""Create the component.
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, Optional, Union, overload
|
|
|
7
7
|
|
|
8
8
|
import reflex
|
|
9
9
|
from reflex.components.react_player.react_player import ReactPlayer
|
|
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
|
|
|
@@ -34,48 +34,42 @@ class Video(ReactPlayer):
|
|
|
34
34
|
class_name: Optional[Any] = None,
|
|
35
35
|
autofocus: Optional[bool] = None,
|
|
36
36
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
37
|
-
on_blur: Optional[EventType[
|
|
38
|
-
on_buffer: Optional[EventType[
|
|
39
|
-
on_buffer_end: Optional[EventType[
|
|
40
|
-
on_click: Optional[EventType[
|
|
41
|
-
on_click_preview: Optional[EventType[
|
|
42
|
-
on_context_menu: Optional[EventType[
|
|
43
|
-
on_disable_pip: Optional[EventType[
|
|
44
|
-
on_double_click: Optional[EventType[
|
|
45
|
-
on_duration: Optional[
|
|
46
|
-
|
|
47
|
-
] = None,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
on_playback_quality_change: Optional[EventType[[], BASE_STATE]] = None,
|
|
63
|
-
on_playback_rate_change: Optional[EventType[[], BASE_STATE]] = None,
|
|
37
|
+
on_blur: Optional[EventType[()]] = None,
|
|
38
|
+
on_buffer: Optional[EventType[()]] = None,
|
|
39
|
+
on_buffer_end: Optional[EventType[()]] = None,
|
|
40
|
+
on_click: Optional[EventType[()]] = None,
|
|
41
|
+
on_click_preview: Optional[EventType[()]] = None,
|
|
42
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
43
|
+
on_disable_pip: Optional[EventType[()]] = None,
|
|
44
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
45
|
+
on_duration: Optional[Union[EventType[()], EventType[float]]] = None,
|
|
46
|
+
on_enable_pip: Optional[EventType[()]] = None,
|
|
47
|
+
on_ended: Optional[EventType[()]] = None,
|
|
48
|
+
on_error: Optional[EventType[()]] = None,
|
|
49
|
+
on_focus: Optional[EventType[()]] = None,
|
|
50
|
+
on_mount: Optional[EventType[()]] = None,
|
|
51
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
52
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
53
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
54
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
55
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
56
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
57
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
58
|
+
on_pause: Optional[EventType[()]] = None,
|
|
59
|
+
on_play: Optional[EventType[()]] = None,
|
|
60
|
+
on_playback_quality_change: Optional[EventType[()]] = None,
|
|
61
|
+
on_playback_rate_change: Optional[EventType[()]] = None,
|
|
64
62
|
on_progress: Optional[
|
|
65
63
|
Union[
|
|
66
|
-
EventType[
|
|
67
|
-
EventType[
|
|
68
|
-
[reflex.components.react_player.react_player.Progress], BASE_STATE
|
|
69
|
-
],
|
|
64
|
+
EventType[()],
|
|
65
|
+
EventType[reflex.components.react_player.react_player.Progress],
|
|
70
66
|
]
|
|
71
67
|
] = None,
|
|
72
|
-
on_ready: Optional[EventType[
|
|
73
|
-
on_scroll: Optional[EventType[
|
|
74
|
-
on_seek: Optional[
|
|
75
|
-
|
|
76
|
-
] = None,
|
|
77
|
-
on_start: Optional[EventType[[], BASE_STATE]] = None,
|
|
78
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
68
|
+
on_ready: Optional[EventType[()]] = None,
|
|
69
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
70
|
+
on_seek: Optional[Union[EventType[()], EventType[float]]] = None,
|
|
71
|
+
on_start: Optional[EventType[()]] = None,
|
|
72
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
79
73
|
**props,
|
|
80
74
|
) -> "Video":
|
|
81
75
|
"""Create the component.
|