reflex 0.7.0a1__py3-none-any.whl → 0.7.0a2__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/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 +6 -0
- {reflex-0.7.0a1.dist-info → reflex-0.7.0a2.dist-info}/METADATA +1 -1
- {reflex-0.7.0a1.dist-info → reflex-0.7.0a2.dist-info}/RECORD +128 -128
- {reflex-0.7.0a1.dist-info → reflex-0.7.0a2.dist-info}/LICENSE +0 -0
- {reflex-0.7.0a1.dist-info → reflex-0.7.0a2.dist-info}/WHEEL +0 -0
- {reflex-0.7.0a1.dist-info → reflex-0.7.0a2.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
|
|
11
|
+
from reflex.event import 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
|
|
@@ -71,21 +71,21 @@ class Button(BaseHTML):
|
|
|
71
71
|
class_name: Optional[Any] = None,
|
|
72
72
|
autofocus: Optional[bool] = None,
|
|
73
73
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
74
|
-
on_blur: Optional[EventType[
|
|
75
|
-
on_click: Optional[EventType[
|
|
76
|
-
on_context_menu: Optional[EventType[
|
|
77
|
-
on_double_click: Optional[EventType[
|
|
78
|
-
on_focus: Optional[EventType[
|
|
79
|
-
on_mount: Optional[EventType[
|
|
80
|
-
on_mouse_down: Optional[EventType[
|
|
81
|
-
on_mouse_enter: Optional[EventType[
|
|
82
|
-
on_mouse_leave: Optional[EventType[
|
|
83
|
-
on_mouse_move: Optional[EventType[
|
|
84
|
-
on_mouse_out: Optional[EventType[
|
|
85
|
-
on_mouse_over: Optional[EventType[
|
|
86
|
-
on_mouse_up: Optional[EventType[
|
|
87
|
-
on_scroll: Optional[EventType[
|
|
88
|
-
on_unmount: Optional[EventType[
|
|
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,
|
|
89
89
|
**props,
|
|
90
90
|
) -> "Button":
|
|
91
91
|
"""Create the component.
|
|
@@ -168,21 +168,21 @@ class Datalist(BaseHTML):
|
|
|
168
168
|
class_name: Optional[Any] = None,
|
|
169
169
|
autofocus: Optional[bool] = None,
|
|
170
170
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
171
|
-
on_blur: Optional[EventType[
|
|
172
|
-
on_click: Optional[EventType[
|
|
173
|
-
on_context_menu: Optional[EventType[
|
|
174
|
-
on_double_click: Optional[EventType[
|
|
175
|
-
on_focus: Optional[EventType[
|
|
176
|
-
on_mount: Optional[EventType[
|
|
177
|
-
on_mouse_down: Optional[EventType[
|
|
178
|
-
on_mouse_enter: Optional[EventType[
|
|
179
|
-
on_mouse_leave: Optional[EventType[
|
|
180
|
-
on_mouse_move: Optional[EventType[
|
|
181
|
-
on_mouse_out: Optional[EventType[
|
|
182
|
-
on_mouse_over: Optional[EventType[
|
|
183
|
-
on_mouse_up: Optional[EventType[
|
|
184
|
-
on_scroll: Optional[EventType[
|
|
185
|
-
on_unmount: Optional[EventType[
|
|
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,
|
|
186
186
|
**props,
|
|
187
187
|
) -> "Datalist":
|
|
188
188
|
"""Create the component.
|
|
@@ -233,21 +233,21 @@ class Fieldset(Element):
|
|
|
233
233
|
class_name: Optional[Any] = None,
|
|
234
234
|
autofocus: Optional[bool] = None,
|
|
235
235
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
236
|
-
on_blur: Optional[EventType[
|
|
237
|
-
on_click: Optional[EventType[
|
|
238
|
-
on_context_menu: Optional[EventType[
|
|
239
|
-
on_double_click: Optional[EventType[
|
|
240
|
-
on_focus: Optional[EventType[
|
|
241
|
-
on_mount: Optional[EventType[
|
|
242
|
-
on_mouse_down: Optional[EventType[
|
|
243
|
-
on_mouse_enter: Optional[EventType[
|
|
244
|
-
on_mouse_leave: Optional[EventType[
|
|
245
|
-
on_mouse_move: Optional[EventType[
|
|
246
|
-
on_mouse_out: Optional[EventType[
|
|
247
|
-
on_mouse_over: Optional[EventType[
|
|
248
|
-
on_mouse_up: Optional[EventType[
|
|
249
|
-
on_scroll: Optional[EventType[
|
|
250
|
-
on_unmount: Optional[EventType[
|
|
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,
|
|
251
251
|
**props,
|
|
252
252
|
) -> "Fieldset":
|
|
253
253
|
"""Create the component.
|
|
@@ -324,31 +324,27 @@ class Form(BaseHTML):
|
|
|
324
324
|
class_name: Optional[Any] = None,
|
|
325
325
|
autofocus: Optional[bool] = None,
|
|
326
326
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
327
|
-
on_blur: Optional[EventType[
|
|
328
|
-
on_click: Optional[EventType[
|
|
329
|
-
on_context_menu: Optional[EventType[
|
|
330
|
-
on_double_click: Optional[EventType[
|
|
331
|
-
on_focus: Optional[EventType[
|
|
332
|
-
on_mount: Optional[EventType[
|
|
333
|
-
on_mouse_down: Optional[EventType[
|
|
334
|
-
on_mouse_enter: Optional[EventType[
|
|
335
|
-
on_mouse_leave: Optional[EventType[
|
|
336
|
-
on_mouse_move: Optional[EventType[
|
|
337
|
-
on_mouse_out: Optional[EventType[
|
|
338
|
-
on_mouse_over: Optional[EventType[
|
|
339
|
-
on_mouse_up: Optional[EventType[
|
|
340
|
-
on_scroll: Optional[EventType[
|
|
327
|
+
on_blur: Optional[EventType[()]] = None,
|
|
328
|
+
on_click: Optional[EventType[()]] = None,
|
|
329
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
330
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
331
|
+
on_focus: Optional[EventType[()]] = None,
|
|
332
|
+
on_mount: Optional[EventType[()]] = None,
|
|
333
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
334
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
335
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
336
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
337
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
338
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
339
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
340
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
341
341
|
on_submit: Optional[
|
|
342
342
|
Union[
|
|
343
|
-
Union[
|
|
344
|
-
|
|
345
|
-
],
|
|
346
|
-
Union[
|
|
347
|
-
EventType[[], BASE_STATE], EventType[[dict[str, str]], BASE_STATE]
|
|
348
|
-
],
|
|
343
|
+
Union[EventType[()], EventType[dict[str, Any]]],
|
|
344
|
+
Union[EventType[()], EventType[dict[str, str]]],
|
|
349
345
|
]
|
|
350
346
|
] = None,
|
|
351
|
-
on_unmount: Optional[EventType[
|
|
347
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
352
348
|
**props,
|
|
353
349
|
) -> "Form":
|
|
354
350
|
"""Create a form component.
|
|
@@ -474,42 +470,28 @@ class Input(BaseHTML):
|
|
|
474
470
|
class_name: Optional[Any] = None,
|
|
475
471
|
autofocus: Optional[bool] = None,
|
|
476
472
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
477
|
-
on_blur: Optional[
|
|
478
|
-
|
|
479
|
-
] = None,
|
|
480
|
-
|
|
481
|
-
|
|
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,
|
|
473
|
+
on_blur: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
474
|
+
on_change: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
475
|
+
on_click: Optional[EventType[()]] = None,
|
|
476
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
477
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
478
|
+
on_focus: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
489
479
|
on_key_down: Optional[
|
|
490
|
-
Union[
|
|
491
|
-
EventType[[], BASE_STATE],
|
|
492
|
-
EventType[[str], BASE_STATE],
|
|
493
|
-
EventType[[str, KeyInputInfo], BASE_STATE],
|
|
494
|
-
]
|
|
480
|
+
Union[EventType[()], EventType[str], EventType[str, KeyInputInfo]]
|
|
495
481
|
] = None,
|
|
496
482
|
on_key_up: Optional[
|
|
497
|
-
Union[
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
] = None,
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
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,
|
|
483
|
+
Union[EventType[()], EventType[str], EventType[str, KeyInputInfo]]
|
|
484
|
+
] = None,
|
|
485
|
+
on_mount: Optional[EventType[()]] = None,
|
|
486
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
487
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
488
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
489
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
490
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
491
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
492
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
493
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
494
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
513
495
|
**props,
|
|
514
496
|
) -> "Input":
|
|
515
497
|
"""Create an Input component.
|
|
@@ -621,21 +603,21 @@ class Label(BaseHTML):
|
|
|
621
603
|
class_name: Optional[Any] = None,
|
|
622
604
|
autofocus: Optional[bool] = None,
|
|
623
605
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
624
|
-
on_blur: Optional[EventType[
|
|
625
|
-
on_click: Optional[EventType[
|
|
626
|
-
on_context_menu: Optional[EventType[
|
|
627
|
-
on_double_click: Optional[EventType[
|
|
628
|
-
on_focus: Optional[EventType[
|
|
629
|
-
on_mount: Optional[EventType[
|
|
630
|
-
on_mouse_down: Optional[EventType[
|
|
631
|
-
on_mouse_enter: Optional[EventType[
|
|
632
|
-
on_mouse_leave: Optional[EventType[
|
|
633
|
-
on_mouse_move: Optional[EventType[
|
|
634
|
-
on_mouse_out: Optional[EventType[
|
|
635
|
-
on_mouse_over: Optional[EventType[
|
|
636
|
-
on_mouse_up: Optional[EventType[
|
|
637
|
-
on_scroll: Optional[EventType[
|
|
638
|
-
on_unmount: Optional[EventType[
|
|
606
|
+
on_blur: Optional[EventType[()]] = None,
|
|
607
|
+
on_click: Optional[EventType[()]] = None,
|
|
608
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
609
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
610
|
+
on_focus: Optional[EventType[()]] = None,
|
|
611
|
+
on_mount: Optional[EventType[()]] = None,
|
|
612
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
613
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
614
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
615
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
616
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
617
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
618
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
619
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
620
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
639
621
|
**props,
|
|
640
622
|
) -> "Label":
|
|
641
623
|
"""Create the component.
|
|
@@ -709,21 +691,21 @@ class Legend(BaseHTML):
|
|
|
709
691
|
class_name: Optional[Any] = None,
|
|
710
692
|
autofocus: Optional[bool] = None,
|
|
711
693
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
712
|
-
on_blur: Optional[EventType[
|
|
713
|
-
on_click: Optional[EventType[
|
|
714
|
-
on_context_menu: Optional[EventType[
|
|
715
|
-
on_double_click: Optional[EventType[
|
|
716
|
-
on_focus: Optional[EventType[
|
|
717
|
-
on_mount: Optional[EventType[
|
|
718
|
-
on_mouse_down: Optional[EventType[
|
|
719
|
-
on_mouse_enter: Optional[EventType[
|
|
720
|
-
on_mouse_leave: Optional[EventType[
|
|
721
|
-
on_mouse_move: Optional[EventType[
|
|
722
|
-
on_mouse_out: Optional[EventType[
|
|
723
|
-
on_mouse_over: Optional[EventType[
|
|
724
|
-
on_mouse_up: Optional[EventType[
|
|
725
|
-
on_scroll: Optional[EventType[
|
|
726
|
-
on_unmount: Optional[EventType[
|
|
694
|
+
on_blur: Optional[EventType[()]] = None,
|
|
695
|
+
on_click: Optional[EventType[()]] = None,
|
|
696
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
697
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
698
|
+
on_focus: Optional[EventType[()]] = None,
|
|
699
|
+
on_mount: Optional[EventType[()]] = None,
|
|
700
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
701
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
702
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
703
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
704
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
705
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
706
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
707
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
708
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
727
709
|
**props,
|
|
728
710
|
) -> "Legend":
|
|
729
711
|
"""Create the component.
|
|
@@ -802,21 +784,21 @@ class Meter(BaseHTML):
|
|
|
802
784
|
class_name: Optional[Any] = None,
|
|
803
785
|
autofocus: Optional[bool] = None,
|
|
804
786
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
805
|
-
on_blur: Optional[EventType[
|
|
806
|
-
on_click: Optional[EventType[
|
|
807
|
-
on_context_menu: Optional[EventType[
|
|
808
|
-
on_double_click: Optional[EventType[
|
|
809
|
-
on_focus: Optional[EventType[
|
|
810
|
-
on_mount: Optional[EventType[
|
|
811
|
-
on_mouse_down: Optional[EventType[
|
|
812
|
-
on_mouse_enter: Optional[EventType[
|
|
813
|
-
on_mouse_leave: Optional[EventType[
|
|
814
|
-
on_mouse_move: Optional[EventType[
|
|
815
|
-
on_mouse_out: Optional[EventType[
|
|
816
|
-
on_mouse_over: Optional[EventType[
|
|
817
|
-
on_mouse_up: Optional[EventType[
|
|
818
|
-
on_scroll: Optional[EventType[
|
|
819
|
-
on_unmount: Optional[EventType[
|
|
787
|
+
on_blur: Optional[EventType[()]] = None,
|
|
788
|
+
on_click: Optional[EventType[()]] = None,
|
|
789
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
790
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
791
|
+
on_focus: Optional[EventType[()]] = None,
|
|
792
|
+
on_mount: Optional[EventType[()]] = None,
|
|
793
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
794
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
795
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
796
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
797
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
798
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
799
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
800
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
801
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
820
802
|
**props,
|
|
821
803
|
) -> "Meter":
|
|
822
804
|
"""Create the component.
|
|
@@ -897,21 +879,21 @@ class Optgroup(BaseHTML):
|
|
|
897
879
|
class_name: Optional[Any] = None,
|
|
898
880
|
autofocus: Optional[bool] = None,
|
|
899
881
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
900
|
-
on_blur: Optional[EventType[
|
|
901
|
-
on_click: Optional[EventType[
|
|
902
|
-
on_context_menu: Optional[EventType[
|
|
903
|
-
on_double_click: Optional[EventType[
|
|
904
|
-
on_focus: Optional[EventType[
|
|
905
|
-
on_mount: Optional[EventType[
|
|
906
|
-
on_mouse_down: Optional[EventType[
|
|
907
|
-
on_mouse_enter: Optional[EventType[
|
|
908
|
-
on_mouse_leave: Optional[EventType[
|
|
909
|
-
on_mouse_move: Optional[EventType[
|
|
910
|
-
on_mouse_out: Optional[EventType[
|
|
911
|
-
on_mouse_over: Optional[EventType[
|
|
912
|
-
on_mouse_up: Optional[EventType[
|
|
913
|
-
on_scroll: Optional[EventType[
|
|
914
|
-
on_unmount: Optional[EventType[
|
|
882
|
+
on_blur: Optional[EventType[()]] = None,
|
|
883
|
+
on_click: Optional[EventType[()]] = None,
|
|
884
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
885
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
886
|
+
on_focus: Optional[EventType[()]] = None,
|
|
887
|
+
on_mount: Optional[EventType[()]] = None,
|
|
888
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
889
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
890
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
891
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
892
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
893
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
894
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
895
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
896
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
915
897
|
**props,
|
|
916
898
|
) -> "Optgroup":
|
|
917
899
|
"""Create the component.
|
|
@@ -989,21 +971,21 @@ class Option(BaseHTML):
|
|
|
989
971
|
class_name: Optional[Any] = None,
|
|
990
972
|
autofocus: Optional[bool] = None,
|
|
991
973
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
992
|
-
on_blur: Optional[EventType[
|
|
993
|
-
on_click: Optional[EventType[
|
|
994
|
-
on_context_menu: Optional[EventType[
|
|
995
|
-
on_double_click: Optional[EventType[
|
|
996
|
-
on_focus: Optional[EventType[
|
|
997
|
-
on_mount: Optional[EventType[
|
|
998
|
-
on_mouse_down: Optional[EventType[
|
|
999
|
-
on_mouse_enter: Optional[EventType[
|
|
1000
|
-
on_mouse_leave: Optional[EventType[
|
|
1001
|
-
on_mouse_move: Optional[EventType[
|
|
1002
|
-
on_mouse_out: Optional[EventType[
|
|
1003
|
-
on_mouse_over: Optional[EventType[
|
|
1004
|
-
on_mouse_up: Optional[EventType[
|
|
1005
|
-
on_scroll: Optional[EventType[
|
|
1006
|
-
on_unmount: Optional[EventType[
|
|
974
|
+
on_blur: Optional[EventType[()]] = None,
|
|
975
|
+
on_click: Optional[EventType[()]] = None,
|
|
976
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
977
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
978
|
+
on_focus: Optional[EventType[()]] = None,
|
|
979
|
+
on_mount: Optional[EventType[()]] = None,
|
|
980
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
981
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
982
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
983
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
984
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
985
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
986
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
987
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
988
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
1007
989
|
**props,
|
|
1008
990
|
) -> "Option":
|
|
1009
991
|
"""Create the component.
|
|
@@ -1082,21 +1064,21 @@ class Output(BaseHTML):
|
|
|
1082
1064
|
class_name: Optional[Any] = None,
|
|
1083
1065
|
autofocus: Optional[bool] = None,
|
|
1084
1066
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
1085
|
-
on_blur: Optional[EventType[
|
|
1086
|
-
on_click: Optional[EventType[
|
|
1087
|
-
on_context_menu: Optional[EventType[
|
|
1088
|
-
on_double_click: Optional[EventType[
|
|
1089
|
-
on_focus: Optional[EventType[
|
|
1090
|
-
on_mount: Optional[EventType[
|
|
1091
|
-
on_mouse_down: Optional[EventType[
|
|
1092
|
-
on_mouse_enter: Optional[EventType[
|
|
1093
|
-
on_mouse_leave: Optional[EventType[
|
|
1094
|
-
on_mouse_move: Optional[EventType[
|
|
1095
|
-
on_mouse_out: Optional[EventType[
|
|
1096
|
-
on_mouse_over: Optional[EventType[
|
|
1097
|
-
on_mouse_up: Optional[EventType[
|
|
1098
|
-
on_scroll: Optional[EventType[
|
|
1099
|
-
on_unmount: Optional[EventType[
|
|
1067
|
+
on_blur: Optional[EventType[()]] = None,
|
|
1068
|
+
on_click: Optional[EventType[()]] = None,
|
|
1069
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
1070
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
1071
|
+
on_focus: Optional[EventType[()]] = None,
|
|
1072
|
+
on_mount: Optional[EventType[()]] = None,
|
|
1073
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
1074
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
1075
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
1076
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
1077
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
1078
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
1079
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
1080
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
1081
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
1100
1082
|
**props,
|
|
1101
1083
|
) -> "Output":
|
|
1102
1084
|
"""Create the component.
|
|
@@ -1174,21 +1156,21 @@ class Progress(BaseHTML):
|
|
|
1174
1156
|
class_name: Optional[Any] = None,
|
|
1175
1157
|
autofocus: Optional[bool] = None,
|
|
1176
1158
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
1177
|
-
on_blur: Optional[EventType[
|
|
1178
|
-
on_click: Optional[EventType[
|
|
1179
|
-
on_context_menu: Optional[EventType[
|
|
1180
|
-
on_double_click: Optional[EventType[
|
|
1181
|
-
on_focus: Optional[EventType[
|
|
1182
|
-
on_mount: Optional[EventType[
|
|
1183
|
-
on_mouse_down: Optional[EventType[
|
|
1184
|
-
on_mouse_enter: Optional[EventType[
|
|
1185
|
-
on_mouse_leave: Optional[EventType[
|
|
1186
|
-
on_mouse_move: Optional[EventType[
|
|
1187
|
-
on_mouse_out: Optional[EventType[
|
|
1188
|
-
on_mouse_over: Optional[EventType[
|
|
1189
|
-
on_mouse_up: Optional[EventType[
|
|
1190
|
-
on_scroll: Optional[EventType[
|
|
1191
|
-
on_unmount: Optional[EventType[
|
|
1159
|
+
on_blur: Optional[EventType[()]] = None,
|
|
1160
|
+
on_click: Optional[EventType[()]] = None,
|
|
1161
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
1162
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
1163
|
+
on_focus: Optional[EventType[()]] = None,
|
|
1164
|
+
on_mount: Optional[EventType[()]] = None,
|
|
1165
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
1166
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
1167
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
1168
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
1169
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
1170
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
1171
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
1172
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
1173
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
1192
1174
|
**props,
|
|
1193
1175
|
) -> "Progress":
|
|
1194
1176
|
"""Create the component.
|
|
@@ -1273,24 +1255,22 @@ class Select(BaseHTML):
|
|
|
1273
1255
|
class_name: Optional[Any] = None,
|
|
1274
1256
|
autofocus: Optional[bool] = None,
|
|
1275
1257
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
1276
|
-
on_blur: Optional[EventType[
|
|
1277
|
-
on_change: Optional[
|
|
1278
|
-
|
|
1279
|
-
] = None,
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
1293
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
1258
|
+
on_blur: Optional[EventType[()]] = None,
|
|
1259
|
+
on_change: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
1260
|
+
on_click: Optional[EventType[()]] = None,
|
|
1261
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
1262
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
1263
|
+
on_focus: Optional[EventType[()]] = None,
|
|
1264
|
+
on_mount: Optional[EventType[()]] = None,
|
|
1265
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
1266
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
1267
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
1268
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
1269
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
1270
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
1271
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
1272
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
1273
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
1294
1274
|
**props,
|
|
1295
1275
|
) -> "Select":
|
|
1296
1276
|
"""Create the component.
|
|
@@ -1394,42 +1374,28 @@ class Textarea(BaseHTML):
|
|
|
1394
1374
|
class_name: Optional[Any] = None,
|
|
1395
1375
|
autofocus: Optional[bool] = None,
|
|
1396
1376
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
1397
|
-
on_blur: Optional[
|
|
1398
|
-
|
|
1399
|
-
] = None,
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
] = None,
|
|
1403
|
-
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
1404
|
-
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
1405
|
-
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
1406
|
-
on_focus: Optional[
|
|
1407
|
-
Union[EventType[[], BASE_STATE], EventType[[str], BASE_STATE]]
|
|
1408
|
-
] = None,
|
|
1377
|
+
on_blur: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
1378
|
+
on_change: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
1379
|
+
on_click: Optional[EventType[()]] = None,
|
|
1380
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
1381
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
1382
|
+
on_focus: Optional[Union[EventType[()], EventType[str]]] = None,
|
|
1409
1383
|
on_key_down: Optional[
|
|
1410
|
-
Union[
|
|
1411
|
-
EventType[[], BASE_STATE],
|
|
1412
|
-
EventType[[str], BASE_STATE],
|
|
1413
|
-
EventType[[str, KeyInputInfo], BASE_STATE],
|
|
1414
|
-
]
|
|
1384
|
+
Union[EventType[()], EventType[str], EventType[str, KeyInputInfo]]
|
|
1415
1385
|
] = None,
|
|
1416
1386
|
on_key_up: Optional[
|
|
1417
|
-
Union[
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
] = None,
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
1430
|
-
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
1431
|
-
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
1432
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
1387
|
+
Union[EventType[()], EventType[str], EventType[str, KeyInputInfo]]
|
|
1388
|
+
] = None,
|
|
1389
|
+
on_mount: Optional[EventType[()]] = None,
|
|
1390
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
1391
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
1392
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
1393
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
1394
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
1395
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
1396
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
1397
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
1398
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
1433
1399
|
**props,
|
|
1434
1400
|
) -> "Textarea":
|
|
1435
1401
|
"""Create a textarea component.
|