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
|
@@ -8,7 +8,7 @@ from typing import Any, Dict, Optional, Tuple, Union, overload
|
|
|
8
8
|
from jinja2 import Environment
|
|
9
9
|
|
|
10
10
|
from reflex.components.el.element import Element
|
|
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.utils.imports import ImportDict
|
|
14
14
|
from reflex.vars.base import Var
|
|
@@ -70,22 +70,22 @@ class Button(BaseHTML):
|
|
|
70
70
|
id: Optional[Any] = None,
|
|
71
71
|
class_name: Optional[Any] = None,
|
|
72
72
|
autofocus: Optional[bool] = None,
|
|
73
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
74
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
75
|
-
on_click: Optional[EventType[[]]] = None,
|
|
76
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
77
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
78
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
79
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
80
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
81
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
82
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
83
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
84
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
85
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
86
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
87
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
88
|
-
on_unmount: Optional[EventType[[]]] = None,
|
|
73
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
74
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
75
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
76
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
77
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
78
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
79
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
80
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
81
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
82
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
83
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
84
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
85
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
86
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
87
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
88
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
89
89
|
**props,
|
|
90
90
|
) -> "Button":
|
|
91
91
|
"""Create the component.
|
|
@@ -167,22 +167,22 @@ class Datalist(BaseHTML):
|
|
|
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[EventType[[]]] = None,
|
|
172
|
-
on_click: Optional[EventType[[]]] = None,
|
|
173
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
174
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
175
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
176
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
177
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
178
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
179
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
180
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
181
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
182
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
183
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
184
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
185
|
-
on_unmount: Optional[EventType[[]]] = None,
|
|
170
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
171
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
172
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
173
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
174
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
175
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
176
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
177
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
178
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
179
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
180
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
181
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
182
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
183
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
184
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
185
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
186
186
|
**props,
|
|
187
187
|
) -> "Datalist":
|
|
188
188
|
"""Create the component.
|
|
@@ -232,22 +232,22 @@ class Fieldset(Element):
|
|
|
232
232
|
id: Optional[Any] = None,
|
|
233
233
|
class_name: Optional[Any] = None,
|
|
234
234
|
autofocus: Optional[bool] = None,
|
|
235
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
236
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
237
|
-
on_click: Optional[EventType[[]]] = None,
|
|
238
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
239
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
240
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
241
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
242
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
243
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
244
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
245
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
246
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
247
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
248
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
249
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
250
|
-
on_unmount: Optional[EventType[[]]] = None,
|
|
235
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
236
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
237
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
238
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
239
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
240
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
241
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
242
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
243
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
244
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
245
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
246
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
247
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
248
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
249
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
250
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
251
251
|
**props,
|
|
252
252
|
) -> "Fieldset":
|
|
253
253
|
"""Create the component.
|
|
@@ -271,6 +271,7 @@ class Fieldset(Element):
|
|
|
271
271
|
...
|
|
272
272
|
|
|
273
273
|
def on_submit_event_spec() -> Tuple[Var[Dict[str, Any]]]: ...
|
|
274
|
+
def on_submit_string_event_spec() -> Tuple[Var[Dict[str, str]]]: ...
|
|
274
275
|
|
|
275
276
|
class Form(BaseHTML):
|
|
276
277
|
@overload
|
|
@@ -322,23 +323,32 @@ class Form(BaseHTML):
|
|
|
322
323
|
id: Optional[Any] = None,
|
|
323
324
|
class_name: Optional[Any] = None,
|
|
324
325
|
autofocus: Optional[bool] = None,
|
|
325
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
326
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
327
|
-
on_click: Optional[EventType[[]]] = None,
|
|
328
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
329
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
330
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
331
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
332
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
333
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
334
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
335
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
336
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
337
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
338
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
339
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
340
|
-
on_submit: Optional[
|
|
341
|
-
|
|
326
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
327
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
328
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
329
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
330
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
331
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
332
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
333
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
334
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
335
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
336
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
337
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
338
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
339
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
340
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
341
|
+
on_submit: Optional[
|
|
342
|
+
Union[
|
|
343
|
+
Union[
|
|
344
|
+
EventType[[], BASE_STATE], EventType[[Dict[str, Any]], BASE_STATE]
|
|
345
|
+
],
|
|
346
|
+
Union[
|
|
347
|
+
EventType[[], BASE_STATE], EventType[[Dict[str, str]], BASE_STATE]
|
|
348
|
+
],
|
|
349
|
+
]
|
|
350
|
+
] = None,
|
|
351
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
342
352
|
**props,
|
|
343
353
|
) -> "Form":
|
|
344
354
|
"""Create a form component.
|
|
@@ -356,6 +366,7 @@ class Form(BaseHTML):
|
|
|
356
366
|
target: Where to display the response after submitting the form
|
|
357
367
|
reset_on_submit: If true, the form will be cleared after submit.
|
|
358
368
|
handle_submit_unique_name: The name used to make this form's submit handler function unique.
|
|
369
|
+
on_submit: Fired when the form is submitted
|
|
359
370
|
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
360
371
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
361
372
|
content_editable: Indicates whether the element's content is editable.
|
|
@@ -462,25 +473,43 @@ class Input(BaseHTML):
|
|
|
462
473
|
id: Optional[Any] = None,
|
|
463
474
|
class_name: Optional[Any] = None,
|
|
464
475
|
autofocus: Optional[bool] = None,
|
|
465
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
466
|
-
on_blur: Optional[
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
476
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
477
|
+
on_blur: Optional[
|
|
478
|
+
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
479
|
+
] = None,
|
|
480
|
+
on_change: Optional[
|
|
481
|
+
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
482
|
+
] = None,
|
|
483
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
484
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
485
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
486
|
+
on_focus: Optional[
|
|
487
|
+
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
488
|
+
] = None,
|
|
489
|
+
on_key_down: Optional[
|
|
490
|
+
Union[
|
|
491
|
+
EventType[[], BASE_STATE],
|
|
492
|
+
EventType[[str], BASE_STATE],
|
|
493
|
+
EventType[[str, KeyInputInfo], BASE_STATE],
|
|
494
|
+
]
|
|
495
|
+
] = None,
|
|
496
|
+
on_key_up: Optional[
|
|
497
|
+
Union[
|
|
498
|
+
EventType[[], BASE_STATE],
|
|
499
|
+
EventType[[str], BASE_STATE],
|
|
500
|
+
EventType[[str, KeyInputInfo], BASE_STATE],
|
|
501
|
+
]
|
|
502
|
+
] = None,
|
|
503
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
504
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
505
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
506
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
507
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
508
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
509
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
510
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
511
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
512
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
484
513
|
**props,
|
|
485
514
|
) -> "Input":
|
|
486
515
|
"""Create the component.
|
|
@@ -520,6 +549,11 @@ class Input(BaseHTML):
|
|
|
520
549
|
type: Specifies the type of input
|
|
521
550
|
use_map: Name of the image map used with the input
|
|
522
551
|
value: Value of the input
|
|
552
|
+
on_change: Fired when the input value changes
|
|
553
|
+
on_focus: Fired when the input gains focus
|
|
554
|
+
on_blur: Fired when the input loses focus
|
|
555
|
+
on_key_down: Fired when a key is pressed down
|
|
556
|
+
on_key_up: Fired when a key is released
|
|
523
557
|
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
524
558
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
525
559
|
content_editable: Indicates whether the element's content is editable.
|
|
@@ -586,22 +620,22 @@ class Label(BaseHTML):
|
|
|
586
620
|
id: Optional[Any] = None,
|
|
587
621
|
class_name: Optional[Any] = None,
|
|
588
622
|
autofocus: Optional[bool] = None,
|
|
589
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
590
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
591
|
-
on_click: Optional[EventType[[]]] = None,
|
|
592
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
593
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
594
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
595
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
596
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
597
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
598
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
599
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
600
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
601
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
602
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
603
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
604
|
-
on_unmount: Optional[EventType[[]]] = None,
|
|
623
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
624
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
625
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
626
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
627
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
628
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
629
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
630
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
631
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
632
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
633
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
634
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
635
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
636
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
637
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
638
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
605
639
|
**props,
|
|
606
640
|
) -> "Label":
|
|
607
641
|
"""Create the component.
|
|
@@ -674,22 +708,22 @@ class Legend(BaseHTML):
|
|
|
674
708
|
id: Optional[Any] = None,
|
|
675
709
|
class_name: Optional[Any] = None,
|
|
676
710
|
autofocus: Optional[bool] = None,
|
|
677
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
678
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
679
|
-
on_click: Optional[EventType[[]]] = None,
|
|
680
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
681
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
682
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
683
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
684
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
685
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
686
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
687
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
688
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
689
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
690
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
691
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
692
|
-
on_unmount: Optional[EventType[[]]] = None,
|
|
711
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
712
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
713
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
714
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
715
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
716
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
717
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
718
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
719
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
720
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
721
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
722
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
723
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
724
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
725
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
726
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
693
727
|
**props,
|
|
694
728
|
) -> "Legend":
|
|
695
729
|
"""Create the component.
|
|
@@ -767,22 +801,22 @@ class Meter(BaseHTML):
|
|
|
767
801
|
id: Optional[Any] = None,
|
|
768
802
|
class_name: Optional[Any] = None,
|
|
769
803
|
autofocus: Optional[bool] = None,
|
|
770
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
771
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
772
|
-
on_click: Optional[EventType[[]]] = None,
|
|
773
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
774
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
775
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
776
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
777
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
778
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
779
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
780
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
781
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
782
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
783
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
784
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
785
|
-
on_unmount: Optional[EventType[[]]] = None,
|
|
804
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
805
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
806
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
807
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
808
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
809
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
810
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
811
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
812
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
813
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
814
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
815
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
816
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
817
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
818
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
819
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
786
820
|
**props,
|
|
787
821
|
) -> "Meter":
|
|
788
822
|
"""Create the component.
|
|
@@ -862,22 +896,22 @@ class Optgroup(BaseHTML):
|
|
|
862
896
|
id: Optional[Any] = None,
|
|
863
897
|
class_name: Optional[Any] = None,
|
|
864
898
|
autofocus: Optional[bool] = None,
|
|
865
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
866
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
867
|
-
on_click: Optional[EventType[[]]] = None,
|
|
868
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
869
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
870
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
871
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
872
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
873
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
874
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
875
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
876
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
877
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
878
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
879
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
880
|
-
on_unmount: Optional[EventType[[]]] = None,
|
|
899
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
900
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
901
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
902
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
903
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
904
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
905
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
906
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
907
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
908
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
909
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
910
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
911
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
912
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
913
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
914
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
881
915
|
**props,
|
|
882
916
|
) -> "Optgroup":
|
|
883
917
|
"""Create the component.
|
|
@@ -954,22 +988,22 @@ class Option(BaseHTML):
|
|
|
954
988
|
id: Optional[Any] = None,
|
|
955
989
|
class_name: Optional[Any] = None,
|
|
956
990
|
autofocus: Optional[bool] = None,
|
|
957
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
958
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
959
|
-
on_click: Optional[EventType[[]]] = None,
|
|
960
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
961
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
962
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
963
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
964
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
965
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
966
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
967
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
968
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
969
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
970
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
971
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
972
|
-
on_unmount: Optional[EventType[[]]] = None,
|
|
991
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
992
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
993
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
994
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
995
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
996
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
997
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
998
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
999
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
1000
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
1001
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
1002
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
1003
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
1004
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
1005
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
1006
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
973
1007
|
**props,
|
|
974
1008
|
) -> "Option":
|
|
975
1009
|
"""Create the component.
|
|
@@ -1047,22 +1081,22 @@ class Output(BaseHTML):
|
|
|
1047
1081
|
id: Optional[Any] = None,
|
|
1048
1082
|
class_name: Optional[Any] = None,
|
|
1049
1083
|
autofocus: Optional[bool] = None,
|
|
1050
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
1051
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
1052
|
-
on_click: Optional[EventType[[]]] = None,
|
|
1053
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
1054
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
1055
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
1056
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
1057
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
1058
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
1059
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
1060
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
1061
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
1062
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
1063
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
1064
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
1065
|
-
on_unmount: Optional[EventType[[]]] = None,
|
|
1084
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
1085
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
1086
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
1087
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
1088
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
1089
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
1090
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
1091
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
1092
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
1093
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
1094
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
1095
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
1096
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
1097
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
1098
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
1099
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
1066
1100
|
**props,
|
|
1067
1101
|
) -> "Output":
|
|
1068
1102
|
"""Create the component.
|
|
@@ -1139,22 +1173,22 @@ class Progress(BaseHTML):
|
|
|
1139
1173
|
id: Optional[Any] = None,
|
|
1140
1174
|
class_name: Optional[Any] = None,
|
|
1141
1175
|
autofocus: Optional[bool] = None,
|
|
1142
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
1143
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
1144
|
-
on_click: Optional[EventType[[]]] = None,
|
|
1145
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
1146
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
1147
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
1148
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
1149
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
1150
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
1151
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
1152
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
1153
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
1154
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
1155
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
1156
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
1157
|
-
on_unmount: Optional[EventType[[]]] = None,
|
|
1176
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
1177
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
1178
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
1179
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
1180
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
1181
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
1182
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
1183
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
1184
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
1185
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
1186
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
1187
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
1188
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
1189
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
1190
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
1191
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
1158
1192
|
**props,
|
|
1159
1193
|
) -> "Progress":
|
|
1160
1194
|
"""Create the component.
|
|
@@ -1238,23 +1272,25 @@ class Select(BaseHTML):
|
|
|
1238
1272
|
id: Optional[Any] = None,
|
|
1239
1273
|
class_name: Optional[Any] = None,
|
|
1240
1274
|
autofocus: Optional[bool] = None,
|
|
1241
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
1242
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
1243
|
-
on_change: Optional[
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1275
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
1276
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
1277
|
+
on_change: Optional[
|
|
1278
|
+
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
1279
|
+
] = None,
|
|
1280
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
1281
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
1282
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
1283
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
1284
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
1285
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
1286
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
1287
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
1288
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
1289
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
1290
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
1291
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
1292
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
1293
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
1258
1294
|
**props,
|
|
1259
1295
|
) -> "Select":
|
|
1260
1296
|
"""Create the component.
|
|
@@ -1269,6 +1305,7 @@ class Select(BaseHTML):
|
|
|
1269
1305
|
name: Name of the select, used when submitting the form
|
|
1270
1306
|
required: Indicates that the select control must have a selected option
|
|
1271
1307
|
size: Number of visible options in a drop-down list
|
|
1308
|
+
on_change: Fired when the select value changes
|
|
1272
1309
|
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
1273
1310
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
1274
1311
|
content_editable: Indicates whether the element's content is editable.
|
|
@@ -1355,25 +1392,43 @@ class Textarea(BaseHTML):
|
|
|
1355
1392
|
id: Optional[Any] = None,
|
|
1356
1393
|
class_name: Optional[Any] = None,
|
|
1357
1394
|
autofocus: Optional[bool] = None,
|
|
1358
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
1359
|
-
on_blur: Optional[
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1395
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
1396
|
+
on_blur: Optional[
|
|
1397
|
+
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
1398
|
+
] = None,
|
|
1399
|
+
on_change: Optional[
|
|
1400
|
+
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
1401
|
+
] = None,
|
|
1402
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
1403
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
1404
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
1405
|
+
on_focus: Optional[
|
|
1406
|
+
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
1407
|
+
] = None,
|
|
1408
|
+
on_key_down: Optional[
|
|
1409
|
+
Union[
|
|
1410
|
+
EventType[[], BASE_STATE],
|
|
1411
|
+
EventType[[str], BASE_STATE],
|
|
1412
|
+
EventType[[str, KeyInputInfo], BASE_STATE],
|
|
1413
|
+
]
|
|
1414
|
+
] = None,
|
|
1415
|
+
on_key_up: Optional[
|
|
1416
|
+
Union[
|
|
1417
|
+
EventType[[], BASE_STATE],
|
|
1418
|
+
EventType[[str], BASE_STATE],
|
|
1419
|
+
EventType[[str, KeyInputInfo], BASE_STATE],
|
|
1420
|
+
]
|
|
1421
|
+
] = None,
|
|
1422
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
1423
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
1424
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
1425
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
1426
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
1427
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
1428
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
1429
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
1430
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
1431
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
1377
1432
|
**props,
|
|
1378
1433
|
) -> "Textarea":
|
|
1379
1434
|
"""Create a textarea component.
|
|
@@ -1397,6 +1452,11 @@ class Textarea(BaseHTML):
|
|
|
1397
1452
|
rows: Visible number of lines in the text control
|
|
1398
1453
|
value: The controlled value of the textarea, read only unless used with on_change
|
|
1399
1454
|
wrap: How the text in the textarea is to be wrapped when submitting the form
|
|
1455
|
+
on_change: Fired when the input value changes
|
|
1456
|
+
on_focus: Fired when the input gains focus
|
|
1457
|
+
on_blur: Fired when the input loses focus
|
|
1458
|
+
on_key_down: Fired when a key is pressed down
|
|
1459
|
+
on_key_up: Fired when a key is released
|
|
1400
1460
|
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
1401
1461
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
1402
1462
|
content_editable: Indicates whether the element's content is editable.
|