reflex 0.6.4a2__py3-none-any.whl → 0.6.5__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/custom_component.js.jinja2 +0 -14
- reflex/.templates/jinja/web/pages/utils.js.jinja2 +4 -8
- reflex/.templates/web/components/shiki/code.js +16 -11
- reflex/.templates/web/utils/state.js +29 -21
- reflex/__init__.py +4 -0
- reflex/__init__.pyi +4 -0
- reflex/app.py +148 -154
- reflex/app_mixins/lifespan.py +5 -1
- reflex/app_mixins/middleware.py +3 -1
- reflex/app_mixins/mixin.py +3 -2
- reflex/base.py +2 -4
- reflex/compiler/compiler.py +111 -37
- reflex/components/base/app_wrap.pyi +17 -17
- reflex/components/base/bare.py +72 -3
- reflex/components/base/body.pyi +17 -17
- reflex/components/base/document.pyi +81 -81
- reflex/components/base/error_boundary.pyi +25 -18
- reflex/components/base/fragment.pyi +17 -17
- reflex/components/base/head.pyi +33 -33
- reflex/components/base/link.pyi +33 -33
- reflex/components/base/meta.pyi +65 -65
- reflex/components/base/script.py +4 -4
- reflex/components/base/script.pyi +23 -20
- reflex/components/component.py +250 -31
- reflex/components/core/banner.py +1 -1
- reflex/components/core/banner.pyi +81 -81
- reflex/components/core/client_side_routing.pyi +33 -33
- reflex/components/core/clipboard.py +2 -2
- reflex/components/core/clipboard.pyi +24 -18
- reflex/components/core/debounce.py +2 -2
- reflex/components/core/debounce.pyi +18 -18
- reflex/components/core/html.pyi +17 -17
- reflex/components/core/upload.py +90 -28
- reflex/components/core/upload.pyi +128 -72
- reflex/components/datadisplay/code.py +55 -40
- reflex/components/datadisplay/code.pyi +46 -44
- reflex/components/datadisplay/dataeditor.py +21 -20
- reflex/components/datadisplay/dataeditor.pyi +103 -35
- reflex/components/datadisplay/shiki_code_block.py +60 -27
- reflex/components/datadisplay/shiki_code_block.pyi +86 -65
- reflex/components/dynamic.py +9 -5
- reflex/components/el/element.pyi +17 -17
- reflex/components/el/elements/base.pyi +17 -17
- reflex/components/el/elements/forms.py +12 -3
- reflex/components/el/elements/forms.pyi +293 -233
- reflex/components/el/elements/inline.pyi +449 -449
- reflex/components/el/elements/media.pyi +401 -401
- reflex/components/el/elements/metadata.pyi +97 -97
- reflex/components/el/elements/other.pyi +113 -113
- reflex/components/el/elements/scripts.pyi +49 -49
- reflex/components/el/elements/sectioning.pyi +241 -241
- reflex/components/el/elements/tables.pyi +161 -161
- reflex/components/el/elements/typography.pyi +241 -241
- reflex/components/gridjs/datatable.pyi +33 -33
- reflex/components/lucide/icon.py +1 -1
- reflex/components/lucide/icon.pyi +33 -33
- reflex/components/markdown/markdown.py +180 -49
- reflex/components/markdown/markdown.pyi +36 -19
- reflex/components/moment/moment.py +17 -21
- reflex/components/moment/moment.pyi +26 -21
- reflex/components/next/base.pyi +17 -17
- reflex/components/next/image.py +3 -3
- reflex/components/next/image.pyi +21 -19
- reflex/components/next/link.pyi +17 -17
- reflex/components/next/video.pyi +17 -17
- reflex/components/plotly/plotly.py +79 -78
- reflex/components/plotly/plotly.pyi +91 -41
- reflex/components/props.py +34 -0
- reflex/components/radix/primitives/accordion.py +15 -8
- reflex/components/radix/primitives/accordion.pyi +121 -118
- reflex/components/radix/primitives/base.pyi +33 -33
- reflex/components/radix/primitives/drawer.py +41 -20
- reflex/components/radix/primitives/drawer.pyi +279 -190
- reflex/components/radix/primitives/form.py +2 -2
- reflex/components/radix/primitives/form.pyi +200 -167
- reflex/components/radix/primitives/progress.pyi +81 -81
- reflex/components/radix/primitives/slider.pyi +89 -83
- reflex/components/radix/themes/base.py +30 -1
- reflex/components/radix/themes/base.pyi +286 -113
- reflex/components/radix/themes/color_mode.py +17 -9
- reflex/components/radix/themes/color_mode.pyi +68 -56
- reflex/components/radix/themes/components/alert_dialog.py +8 -5
- reflex/components/radix/themes/components/alert_dialog.pyi +125 -117
- reflex/components/radix/themes/components/aspect_ratio.pyi +17 -17
- reflex/components/radix/themes/components/avatar.py +1 -5
- reflex/components/radix/themes/components/avatar.pyi +17 -17
- reflex/components/radix/themes/components/badge.py +1 -5
- reflex/components/radix/themes/components/badge.pyi +17 -17
- reflex/components/radix/themes/components/button.pyi +18 -21
- reflex/components/radix/themes/components/callout.py +1 -4
- reflex/components/radix/themes/components/callout.pyi +81 -81
- reflex/components/radix/themes/components/card.py +1 -3
- reflex/components/radix/themes/components/card.pyi +17 -17
- reflex/components/radix/themes/components/checkbox.py +4 -8
- reflex/components/radix/themes/components/checkbox.pyi +61 -52
- reflex/components/radix/themes/components/checkbox_cards.pyi +33 -33
- reflex/components/radix/themes/components/checkbox_group.pyi +33 -33
- reflex/components/radix/themes/components/context_menu.py +121 -28
- reflex/components/radix/themes/components/context_menu.pyi +250 -147
- reflex/components/radix/themes/components/data_list.pyi +65 -65
- reflex/components/radix/themes/components/dialog.py +11 -11
- reflex/components/radix/themes/components/dialog.pyi +135 -120
- reflex/components/radix/themes/components/dropdown_menu.py +14 -25
- reflex/components/radix/themes/components/dropdown_menu.pyi +157 -145
- reflex/components/radix/themes/components/hover_card.py +19 -7
- reflex/components/radix/themes/components/hover_card.pyi +102 -67
- reflex/components/radix/themes/components/icon_button.pyi +18 -21
- reflex/components/radix/themes/components/inset.py +1 -3
- reflex/components/radix/themes/components/inset.pyi +17 -17
- reflex/components/radix/themes/components/popover.py +22 -13
- reflex/components/radix/themes/components/popover.pyi +98 -72
- reflex/components/radix/themes/components/progress.pyi +17 -17
- reflex/components/radix/themes/components/radio.pyi +17 -17
- reflex/components/radix/themes/components/radio_cards.py +2 -2
- reflex/components/radix/themes/components/radio_cards.pyi +37 -34
- reflex/components/radix/themes/components/radio_group.py +3 -7
- reflex/components/radix/themes/components/radio_group.pyi +69 -66
- reflex/components/radix/themes/components/scroll_area.py +1 -3
- reflex/components/radix/themes/components/scroll_area.pyi +17 -17
- reflex/components/radix/themes/components/segmented_control.pyi +37 -34
- reflex/components/radix/themes/components/select.py +7 -11
- reflex/components/radix/themes/components/select.pyi +175 -154
- reflex/components/radix/themes/components/separator.py +1 -4
- reflex/components/radix/themes/components/separator.pyi +17 -17
- reflex/components/radix/themes/components/skeleton.pyi +17 -17
- reflex/components/radix/themes/components/slider.py +12 -21
- reflex/components/radix/themes/components/slider.pyi +47 -25
- reflex/components/radix/themes/components/spinner.py +1 -4
- reflex/components/radix/themes/components/spinner.pyi +17 -17
- reflex/components/radix/themes/components/switch.py +3 -6
- reflex/components/radix/themes/components/switch.pyi +21 -18
- reflex/components/radix/themes/components/table.py +21 -5
- reflex/components/radix/themes/components/table.pyi +392 -116
- reflex/components/radix/themes/components/tabs.py +3 -6
- reflex/components/radix/themes/components/tabs.pyi +89 -83
- reflex/components/radix/themes/components/text_area.py +1 -5
- reflex/components/radix/themes/components/text_area.pyi +43 -20
- reflex/components/radix/themes/components/text_field.py +1 -5
- reflex/components/radix/themes/components/text_field.pyi +101 -55
- reflex/components/radix/themes/components/tooltip.py +5 -7
- reflex/components/radix/themes/components/tooltip.pyi +25 -22
- reflex/components/radix/themes/layout/base.py +2 -27
- reflex/components/radix/themes/layout/base.pyi +82 -82
- reflex/components/radix/themes/layout/box.pyi +17 -17
- reflex/components/radix/themes/layout/center.pyi +17 -17
- reflex/components/radix/themes/layout/container.pyi +17 -17
- reflex/components/radix/themes/layout/flex.py +1 -6
- reflex/components/radix/themes/layout/flex.pyi +17 -17
- reflex/components/radix/themes/layout/grid.py +1 -6
- reflex/components/radix/themes/layout/grid.pyi +17 -17
- reflex/components/radix/themes/layout/list.py +20 -15
- reflex/components/radix/themes/layout/list.pyi +175 -92
- reflex/components/radix/themes/layout/section.pyi +17 -17
- reflex/components/radix/themes/layout/spacer.pyi +17 -17
- reflex/components/radix/themes/layout/stack.py +6 -6
- reflex/components/radix/themes/layout/stack.pyi +91 -62
- reflex/components/radix/themes/typography/blockquote.py +2 -8
- reflex/components/radix/themes/typography/blockquote.pyi +17 -17
- reflex/components/radix/themes/typography/code.py +4 -10
- reflex/components/radix/themes/typography/code.pyi +19 -18
- reflex/components/radix/themes/typography/heading.py +4 -11
- reflex/components/radix/themes/typography/heading.pyi +19 -18
- reflex/components/radix/themes/typography/link.py +4 -10
- reflex/components/radix/themes/typography/link.pyi +19 -18
- reflex/components/radix/themes/typography/text.py +4 -11
- reflex/components/radix/themes/typography/text.pyi +115 -114
- reflex/components/react_player/audio.pyi +58 -33
- reflex/components/react_player/react_player.py +17 -17
- reflex/components/react_player/react_player.pyi +55 -33
- reflex/components/react_player/video.pyi +58 -33
- reflex/components/recharts/cartesian.py +45 -45
- reflex/components/recharts/cartesian.pyi +389 -304
- reflex/components/recharts/charts.py +22 -22
- reflex/components/recharts/charts.pyi +226 -179
- reflex/components/recharts/general.py +26 -27
- reflex/components/recharts/general.pyi +106 -99
- reflex/components/recharts/polar.py +33 -33
- reflex/components/recharts/polar.pyi +70 -64
- reflex/components/recharts/recharts.pyi +33 -33
- reflex/components/sonner/toast.py +9 -36
- reflex/components/sonner/toast.pyi +20 -24
- reflex/components/suneditor/editor.py +8 -8
- reflex/components/suneditor/editor.pyi +50 -25
- reflex/components/tags/iter_tag.py +1 -10
- reflex/components/tags/tag.py +1 -4
- reflex/config.py +252 -41
- reflex/constants/__init__.py +4 -16
- reflex/constants/base.py +7 -14
- reflex/constants/colors.py +0 -1
- reflex/constants/installer.py +12 -7
- reflex/constants/state.py +4 -0
- reflex/custom_components/custom_components.py +6 -6
- reflex/event.py +486 -241
- reflex/experimental/client_state.py +9 -9
- reflex/experimental/layout.py +2 -2
- reflex/experimental/layout.pyi +95 -87
- reflex/experimental/misc.py +1 -1
- reflex/istate/__init__.py +1 -0
- reflex/istate/proxy.py +33 -0
- reflex/istate/wrappers.py +27 -0
- reflex/model.py +7 -7
- reflex/page.py +2 -1
- reflex/reflex.py +142 -8
- reflex/state.py +133 -46
- reflex/testing.py +9 -7
- reflex/utils/console.py +0 -1
- reflex/utils/exceptions.py +31 -3
- reflex/utils/exec.py +33 -14
- reflex/utils/format.py +15 -12
- reflex/utils/net.py +1 -1
- reflex/utils/path_ops.py +2 -2
- reflex/utils/prerequisites.py +82 -46
- reflex/utils/pyi_generator.py +63 -20
- reflex/utils/registry.py +1 -1
- reflex/utils/serializers.py +75 -36
- reflex/utils/telemetry.py +3 -2
- reflex/utils/types.py +125 -10
- reflex/vars/base.py +131 -119
- reflex/vars/function.py +59 -12
- reflex/vars/number.py +3 -1
- reflex/vars/object.py +30 -24
- reflex/vars/sequence.py +7 -7
- {reflex-0.6.4a2.dist-info → reflex-0.6.5.dist-info}/METADATA +3 -3
- reflex-0.6.5.dist-info/RECORD +394 -0
- reflex-0.6.4a2.dist-info/RECORD +0 -391
- {reflex-0.6.4a2.dist-info → reflex-0.6.5.dist-info}/LICENSE +0 -0
- {reflex-0.6.4a2.dist-info → reflex-0.6.5.dist-info}/WHEEL +0 -0
- {reflex-0.6.4a2.dist-info → reflex-0.6.5.dist-info}/entry_points.txt +0 -0
|
@@ -7,13 +7,10 @@ from typing import Any, Dict, List, Literal
|
|
|
7
7
|
from reflex.components.component import Component, ComponentNamespace
|
|
8
8
|
from reflex.components.core.breakpoints import Responsive
|
|
9
9
|
from reflex.components.core.colors import color
|
|
10
|
-
from reflex.event import EventHandler,
|
|
10
|
+
from reflex.event import EventHandler, passthrough_event_spec
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
|
-
from ..base import
|
|
14
|
-
LiteralAccentColor,
|
|
15
|
-
RadixThemesComponent,
|
|
16
|
-
)
|
|
13
|
+
from ..base import LiteralAccentColor, RadixThemesComponent
|
|
17
14
|
|
|
18
15
|
vertical_orientation_css = "&[data-orientation='vertical']"
|
|
19
16
|
|
|
@@ -42,7 +39,7 @@ class TabsRoot(RadixThemesComponent):
|
|
|
42
39
|
_rename_props = {"onChange": "onValueChange"}
|
|
43
40
|
|
|
44
41
|
# Fired when the value of the tabs changes.
|
|
45
|
-
on_change: EventHandler[
|
|
42
|
+
on_change: EventHandler[passthrough_event_spec(str)]
|
|
46
43
|
|
|
47
44
|
def add_style(self) -> Dict[str, Any] | None:
|
|
48
45
|
"""Add style for the component.
|
|
@@ -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 EventType
|
|
10
|
+
from reflex.event import BASE_STATE, EventType
|
|
11
11
|
from reflex.style import Style
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
@@ -39,23 +39,25 @@ class TabsRoot(RadixThemesComponent):
|
|
|
39
39
|
id: Optional[Any] = None,
|
|
40
40
|
class_name: Optional[Any] = None,
|
|
41
41
|
autofocus: Optional[bool] = None,
|
|
42
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
43
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
44
|
-
on_change: Optional[
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
42
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
43
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
44
|
+
on_change: Optional[
|
|
45
|
+
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
46
|
+
] = None,
|
|
47
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
48
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
49
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
50
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
51
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
52
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
53
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
54
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
55
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
56
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
57
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
58
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
59
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
60
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
59
61
|
**props,
|
|
60
62
|
) -> "TabsRoot":
|
|
61
63
|
"""Create a new component instance.
|
|
@@ -70,6 +72,7 @@ class TabsRoot(RadixThemesComponent):
|
|
|
70
72
|
orientation: The orientation of the tabs.
|
|
71
73
|
dir: Reading direction of the tabs.
|
|
72
74
|
activation_mode: The mode of activation for the tabs. "automatic" will activate the tab when focused. "manual" will activate the tab when clicked.
|
|
75
|
+
on_change: Props to rename Fired when the value of the tabs changes.
|
|
73
76
|
style: The style of the component.
|
|
74
77
|
key: A unique key for the component.
|
|
75
78
|
id: The id for the component.
|
|
@@ -103,22 +106,22 @@ class TabsList(RadixThemesComponent):
|
|
|
103
106
|
id: Optional[Any] = None,
|
|
104
107
|
class_name: Optional[Any] = None,
|
|
105
108
|
autofocus: Optional[bool] = None,
|
|
106
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
107
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
108
|
-
on_click: Optional[EventType[[]]] = None,
|
|
109
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
110
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
111
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
112
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
113
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
114
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
115
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
116
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
117
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
118
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
119
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
120
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
121
|
-
on_unmount: Optional[EventType[[]]] = None,
|
|
109
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
110
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
111
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
112
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
113
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
114
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
115
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
116
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
117
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
118
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
119
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
120
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
121
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
122
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
123
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
124
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
122
125
|
**props,
|
|
123
126
|
) -> "TabsList":
|
|
124
127
|
"""Create a new component instance.
|
|
@@ -218,22 +221,22 @@ class TabsTrigger(RadixThemesComponent):
|
|
|
218
221
|
id: Optional[Any] = None,
|
|
219
222
|
class_name: Optional[Any] = None,
|
|
220
223
|
autofocus: Optional[bool] = None,
|
|
221
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
222
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
223
|
-
on_click: Optional[EventType[[]]] = None,
|
|
224
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
225
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
226
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
227
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
228
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
229
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
230
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
231
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
232
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
233
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
234
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
235
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
236
|
-
on_unmount: Optional[EventType[[]]] = None,
|
|
224
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
225
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
226
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
227
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
228
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
229
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
230
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
231
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
232
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
233
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
234
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
235
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
236
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
237
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
238
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
239
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
237
240
|
**props,
|
|
238
241
|
) -> "TabsTrigger":
|
|
239
242
|
"""Create a TabsTrigger component.
|
|
@@ -272,22 +275,22 @@ class TabsContent(RadixThemesComponent):
|
|
|
272
275
|
id: Optional[Any] = None,
|
|
273
276
|
class_name: Optional[Any] = None,
|
|
274
277
|
autofocus: Optional[bool] = None,
|
|
275
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
276
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
277
|
-
on_click: Optional[EventType[[]]] = None,
|
|
278
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
279
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
280
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
281
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
282
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
283
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
284
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
285
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
286
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
287
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
288
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
289
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
290
|
-
on_unmount: Optional[EventType[[]]] = None,
|
|
278
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
279
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
280
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
281
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
282
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
283
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
284
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
285
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
286
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
287
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
288
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
289
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
290
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
291
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
292
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
293
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
291
294
|
**props,
|
|
292
295
|
) -> "TabsContent":
|
|
293
296
|
"""Create a new component instance.
|
|
@@ -338,23 +341,25 @@ class Tabs(ComponentNamespace):
|
|
|
338
341
|
id: Optional[Any] = None,
|
|
339
342
|
class_name: Optional[Any] = None,
|
|
340
343
|
autofocus: Optional[bool] = None,
|
|
341
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
342
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
343
|
-
on_change: Optional[
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
344
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
345
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
346
|
+
on_change: Optional[
|
|
347
|
+
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
348
|
+
] = None,
|
|
349
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
350
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
351
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
352
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
353
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
354
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
355
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
356
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
357
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
358
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
359
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
360
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
361
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
362
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
358
363
|
**props,
|
|
359
364
|
) -> "TabsRoot":
|
|
360
365
|
"""Create a new component instance.
|
|
@@ -369,6 +374,7 @@ class Tabs(ComponentNamespace):
|
|
|
369
374
|
orientation: The orientation of the tabs.
|
|
370
375
|
dir: Reading direction of the tabs.
|
|
371
376
|
activation_mode: The mode of activation for the tabs. "automatic" will activate the tab when focused. "manual" will activate the tab when clicked.
|
|
377
|
+
on_change: Props to rename Fired when the value of the tabs changes.
|
|
372
378
|
style: The style of the component.
|
|
373
379
|
key: A unique key for the component.
|
|
374
380
|
id: The id for the component.
|
|
@@ -8,11 +8,7 @@ from reflex.components.core.debounce import DebounceInput
|
|
|
8
8
|
from reflex.components.el import elements
|
|
9
9
|
from reflex.vars.base import Var
|
|
10
10
|
|
|
11
|
-
from ..base import
|
|
12
|
-
LiteralAccentColor,
|
|
13
|
-
LiteralRadius,
|
|
14
|
-
RadixThemesComponent,
|
|
15
|
-
)
|
|
11
|
+
from ..base import LiteralAccentColor, LiteralRadius, RadixThemesComponent
|
|
16
12
|
|
|
17
13
|
LiteralTextAreaSize = Literal["1", "2", "3"]
|
|
18
14
|
|
|
@@ -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 EventType
|
|
10
|
+
from reflex.event import BASE_STATE, EventType, KeyInputInfo
|
|
11
11
|
from reflex.style import Style
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
@@ -167,25 +167,43 @@ class TextArea(RadixThemesComponent, elements.Textarea):
|
|
|
167
167
|
id: Optional[Any] = None,
|
|
168
168
|
class_name: Optional[Any] = None,
|
|
169
169
|
autofocus: Optional[bool] = None,
|
|
170
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
171
|
-
on_blur: Optional[
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
170
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
171
|
+
on_blur: Optional[
|
|
172
|
+
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
173
|
+
] = None,
|
|
174
|
+
on_change: Optional[
|
|
175
|
+
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
176
|
+
] = None,
|
|
177
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
178
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
179
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
180
|
+
on_focus: Optional[
|
|
181
|
+
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
182
|
+
] = None,
|
|
183
|
+
on_key_down: Optional[
|
|
184
|
+
Union[
|
|
185
|
+
EventType[[], BASE_STATE],
|
|
186
|
+
EventType[[str], BASE_STATE],
|
|
187
|
+
EventType[[str, KeyInputInfo], BASE_STATE],
|
|
188
|
+
]
|
|
189
|
+
] = None,
|
|
190
|
+
on_key_up: Optional[
|
|
191
|
+
Union[
|
|
192
|
+
EventType[[], BASE_STATE],
|
|
193
|
+
EventType[[str], BASE_STATE],
|
|
194
|
+
EventType[[str, KeyInputInfo], BASE_STATE],
|
|
195
|
+
]
|
|
196
|
+
] = None,
|
|
197
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
198
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
199
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
200
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
201
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
202
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
203
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
204
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
205
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
206
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
189
207
|
**props,
|
|
190
208
|
) -> "TextArea":
|
|
191
209
|
"""Create an Input component.
|
|
@@ -214,6 +232,11 @@ class TextArea(RadixThemesComponent, elements.Textarea):
|
|
|
214
232
|
auto_height: Automatically fit the content height to the text (use min-height with this prop)
|
|
215
233
|
cols: Visible width of the text control, in average character widths
|
|
216
234
|
enter_key_submit: Enter key submits form (shift-enter adds new line)
|
|
235
|
+
on_change: Fired when the input value changes
|
|
236
|
+
on_focus: Fired when the input gains focus
|
|
237
|
+
on_blur: Fired when the input loses focus
|
|
238
|
+
on_key_down: Fired when a key is pressed down
|
|
239
|
+
on_key_up: Fired when a key is released
|
|
217
240
|
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
218
241
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
219
242
|
content_editable: Indicates whether the element's content is editable.
|
|
@@ -11,11 +11,7 @@ from reflex.components.el import elements
|
|
|
11
11
|
from reflex.event import EventHandler, input_event, key_event
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
14
|
-
from ..base import
|
|
15
|
-
LiteralAccentColor,
|
|
16
|
-
LiteralRadius,
|
|
17
|
-
RadixThemesComponent,
|
|
18
|
-
)
|
|
14
|
+
from ..base import LiteralAccentColor, LiteralRadius, RadixThemesComponent
|
|
19
15
|
|
|
20
16
|
LiteralTextFieldSize = Literal["1", "2", "3"]
|
|
21
17
|
LiteralTextFieldVariant = Literal["classic", "surface", "soft"]
|
|
@@ -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 EventType
|
|
11
|
+
from reflex.event import BASE_STATE, EventType, KeyInputInfo
|
|
12
12
|
from reflex.style import Style
|
|
13
13
|
from reflex.vars.base import Var
|
|
14
14
|
|
|
@@ -148,25 +148,43 @@ class TextFieldRoot(elements.Div, RadixThemesComponent):
|
|
|
148
148
|
id: Optional[Any] = None,
|
|
149
149
|
class_name: Optional[Any] = None,
|
|
150
150
|
autofocus: Optional[bool] = None,
|
|
151
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
152
|
-
on_blur: Optional[
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
151
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
152
|
+
on_blur: Optional[
|
|
153
|
+
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
154
|
+
] = None,
|
|
155
|
+
on_change: Optional[
|
|
156
|
+
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
157
|
+
] = None,
|
|
158
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
159
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
160
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
161
|
+
on_focus: Optional[
|
|
162
|
+
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
163
|
+
] = None,
|
|
164
|
+
on_key_down: Optional[
|
|
165
|
+
Union[
|
|
166
|
+
EventType[[], BASE_STATE],
|
|
167
|
+
EventType[[str], BASE_STATE],
|
|
168
|
+
EventType[[str, KeyInputInfo], BASE_STATE],
|
|
169
|
+
]
|
|
170
|
+
] = None,
|
|
171
|
+
on_key_up: Optional[
|
|
172
|
+
Union[
|
|
173
|
+
EventType[[], BASE_STATE],
|
|
174
|
+
EventType[[str], BASE_STATE],
|
|
175
|
+
EventType[[str, KeyInputInfo], BASE_STATE],
|
|
176
|
+
]
|
|
177
|
+
] = None,
|
|
178
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
179
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
180
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
181
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
182
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
183
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
184
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
185
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
186
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
187
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
170
188
|
**props,
|
|
171
189
|
) -> "TextFieldRoot":
|
|
172
190
|
"""Create an Input component.
|
|
@@ -188,6 +206,11 @@ class TextFieldRoot(elements.Div, RadixThemesComponent):
|
|
|
188
206
|
required: Indicates that the input is required
|
|
189
207
|
type: Specifies the type of input
|
|
190
208
|
value: Value of the input
|
|
209
|
+
on_change: Fired when the value of the textarea changes.
|
|
210
|
+
on_focus: Fired when the textarea is focused.
|
|
211
|
+
on_blur: Fired when the textarea is blurred.
|
|
212
|
+
on_key_down: Fired when a key is pressed down.
|
|
213
|
+
on_key_up: Fired when a key is released.
|
|
191
214
|
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
192
215
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
193
216
|
content_editable: Indicates whether the element's content is editable.
|
|
@@ -290,22 +313,22 @@ class TextFieldSlot(RadixThemesComponent):
|
|
|
290
313
|
id: Optional[Any] = None,
|
|
291
314
|
class_name: Optional[Any] = None,
|
|
292
315
|
autofocus: Optional[bool] = None,
|
|
293
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
294
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
295
|
-
on_click: Optional[EventType[[]]] = None,
|
|
296
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
297
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
298
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
299
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
300
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
301
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
302
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
303
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
304
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
305
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
306
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
307
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
308
|
-
on_unmount: Optional[EventType[[]]] = None,
|
|
316
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
317
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
318
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
319
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
320
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
321
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
322
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
323
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
324
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
325
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
326
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
327
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
328
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
329
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
330
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
331
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
309
332
|
**props,
|
|
310
333
|
) -> "TextFieldSlot":
|
|
311
334
|
"""Create a new component instance.
|
|
@@ -460,25 +483,43 @@ class TextField(ComponentNamespace):
|
|
|
460
483
|
id: Optional[Any] = None,
|
|
461
484
|
class_name: Optional[Any] = None,
|
|
462
485
|
autofocus: Optional[bool] = None,
|
|
463
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
464
|
-
on_blur: Optional[
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
486
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
487
|
+
on_blur: Optional[
|
|
488
|
+
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
489
|
+
] = None,
|
|
490
|
+
on_change: Optional[
|
|
491
|
+
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
492
|
+
] = None,
|
|
493
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
494
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
495
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
496
|
+
on_focus: Optional[
|
|
497
|
+
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
498
|
+
] = None,
|
|
499
|
+
on_key_down: Optional[
|
|
500
|
+
Union[
|
|
501
|
+
EventType[[], BASE_STATE],
|
|
502
|
+
EventType[[str], BASE_STATE],
|
|
503
|
+
EventType[[str, KeyInputInfo], BASE_STATE],
|
|
504
|
+
]
|
|
505
|
+
] = None,
|
|
506
|
+
on_key_up: Optional[
|
|
507
|
+
Union[
|
|
508
|
+
EventType[[], BASE_STATE],
|
|
509
|
+
EventType[[str], BASE_STATE],
|
|
510
|
+
EventType[[str, KeyInputInfo], BASE_STATE],
|
|
511
|
+
]
|
|
512
|
+
] = None,
|
|
513
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
514
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
515
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
516
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
517
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
518
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
519
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
520
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
521
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
522
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
482
523
|
**props,
|
|
483
524
|
) -> "TextFieldRoot":
|
|
484
525
|
"""Create an Input component.
|
|
@@ -500,6 +541,11 @@ class TextField(ComponentNamespace):
|
|
|
500
541
|
required: Indicates that the input is required
|
|
501
542
|
type: Specifies the type of input
|
|
502
543
|
value: Value of the input
|
|
544
|
+
on_change: Fired when the value of the textarea changes.
|
|
545
|
+
on_focus: Fired when the textarea is focused.
|
|
546
|
+
on_blur: Fired when the textarea is blurred.
|
|
547
|
+
on_key_down: Fired when a key is pressed down.
|
|
548
|
+
on_key_up: Fired when a key is released.
|
|
503
549
|
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
504
550
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
505
551
|
content_editable: Indicates whether the element's content is editable.
|
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
from typing import Dict, Literal, Union
|
|
4
4
|
|
|
5
5
|
from reflex.components.component import Component
|
|
6
|
-
from reflex.event import EventHandler,
|
|
6
|
+
from reflex.event import EventHandler, no_args_event_spec, passthrough_event_spec
|
|
7
7
|
from reflex.utils import format
|
|
8
8
|
from reflex.vars.base import Var
|
|
9
9
|
|
|
10
|
-
from ..base import
|
|
11
|
-
RadixThemesComponent,
|
|
12
|
-
)
|
|
10
|
+
from ..base import RadixThemesComponent
|
|
13
11
|
|
|
14
12
|
LiteralSideType = Literal[
|
|
15
13
|
"top",
|
|
@@ -85,13 +83,13 @@ class Tooltip(RadixThemesComponent):
|
|
|
85
83
|
aria_label: Var[str]
|
|
86
84
|
|
|
87
85
|
# Fired when the open state changes.
|
|
88
|
-
on_open_change: EventHandler[
|
|
86
|
+
on_open_change: EventHandler[passthrough_event_spec(bool)]
|
|
89
87
|
|
|
90
88
|
# Fired when the escape key is pressed.
|
|
91
|
-
on_escape_key_down: EventHandler[
|
|
89
|
+
on_escape_key_down: EventHandler[no_args_event_spec]
|
|
92
90
|
|
|
93
91
|
# Fired when the pointer is down outside the tooltip.
|
|
94
|
-
on_pointer_down_outside: EventHandler[
|
|
92
|
+
on_pointer_down_outside: EventHandler[no_args_event_spec]
|
|
95
93
|
|
|
96
94
|
@classmethod
|
|
97
95
|
def create(cls, *children, **props) -> Component:
|