reflex 0.6.0__py3-none-any.whl → 0.6.0a1__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/custom_components/pyproject.toml.jinja2 +2 -2
- reflex/.templates/jinja/web/pages/_app.js.jinja2 +1 -1
- reflex/.templates/jinja/web/pages/utils.js.jinja2 +2 -2
- reflex/.templates/web/components/reflex/chakra_color_mode_provider.js +36 -0
- reflex/.templates/web/utils/state.js +1 -3
- reflex/__init__.py +2 -8
- reflex/__init__.pyi +1 -2
- reflex/app.py +2 -4
- reflex/app_module_for_backend.py +1 -1
- reflex/base.py +1 -1
- reflex/compiler/compiler.py +2 -2
- reflex/compiler/utils.py +3 -3
- reflex/components/base/app_wrap.py +2 -2
- reflex/components/base/app_wrap.pyi +27 -17
- reflex/components/base/bare.py +5 -4
- reflex/components/base/body.pyi +27 -17
- reflex/components/base/document.pyi +131 -81
- reflex/components/base/error_boundary.py +7 -6
- reflex/components/base/error_boundary.pyi +33 -20
- reflex/components/base/fragment.pyi +27 -17
- reflex/components/base/head.pyi +53 -33
- reflex/components/base/link.py +1 -1
- reflex/components/base/link.pyi +54 -33
- reflex/components/base/meta.pyi +105 -65
- reflex/components/base/script.py +2 -1
- reflex/components/base/script.pyi +38 -21
- reflex/components/component.py +47 -53
- reflex/components/core/banner.py +27 -23
- reflex/components/core/banner.pyi +171 -134
- reflex/components/core/client_side_routing.py +3 -2
- reflex/components/core/client_side_routing.pyi +54 -33
- reflex/components/core/clipboard.py +1 -2
- reflex/components/core/clipboard.pyi +33 -20
- reflex/components/core/cond.py +5 -5
- reflex/components/core/debounce.py +5 -5
- reflex/components/core/debounce.pyi +33 -20
- reflex/components/core/foreach.py +4 -3
- reflex/components/core/html.py +1 -1
- reflex/components/core/html.pyi +46 -35
- reflex/components/core/match.py +17 -17
- reflex/components/core/upload.py +23 -17
- reflex/components/core/upload.pyi +124 -78
- reflex/components/datadisplay/code.py +10 -9
- reflex/components/datadisplay/code.pyi +409 -299
- reflex/components/datadisplay/dataeditor.py +10 -8
- reflex/components/datadisplay/dataeditor.pyi +53 -40
- reflex/components/el/element.pyi +27 -17
- reflex/components/el/elements/base.py +1 -1
- reflex/components/el/elements/base.pyi +45 -34
- reflex/components/el/elements/forms.py +16 -16
- reflex/components/el/elements/forms.pyi +707 -554
- reflex/components/el/elements/inline.py +1 -1
- reflex/components/el/elements/inline.pyi +1218 -937
- reflex/components/el/elements/media.py +1 -1
- reflex/components/el/elements/media.pyi +997 -786
- reflex/components/el/elements/metadata.py +6 -3
- reflex/components/el/elements/metadata.pyi +242 -181
- reflex/components/el/elements/other.py +1 -1
- reflex/components/el/elements/other.pyi +306 -235
- reflex/components/el/elements/scripts.py +1 -1
- reflex/components/el/elements/scripts.pyi +140 -109
- reflex/components/el/elements/sectioning.py +2 -0
- reflex/components/el/elements/sectioning.pyi +647 -496
- reflex/components/el/elements/tables.py +1 -1
- reflex/components/el/elements/tables.pyi +452 -351
- reflex/components/el/elements/typography.py +1 -1
- reflex/components/el/elements/typography.pyi +657 -506
- reflex/components/gridjs/datatable.py +9 -6
- reflex/components/gridjs/datatable.pyi +56 -35
- reflex/components/lucide/icon.py +1 -1
- reflex/components/lucide/icon.pyi +54 -33
- reflex/components/markdown/markdown.py +31 -26
- reflex/components/markdown/markdown.pyi +37 -27
- reflex/components/moment/moment.py +12 -13
- reflex/components/moment/moment.pyi +35 -23
- reflex/components/next/base.pyi +27 -17
- reflex/components/next/image.py +1 -1
- reflex/components/next/image.pyi +37 -22
- reflex/components/next/link.py +1 -1
- reflex/components/next/link.pyi +28 -17
- reflex/components/next/video.py +1 -1
- reflex/components/next/video.pyi +28 -17
- reflex/components/plotly/plotly.py +13 -12
- reflex/components/plotly/plotly.pyi +54 -39
- reflex/components/props.py +1 -1
- reflex/components/radix/__init__.pyi +0 -1
- reflex/components/radix/primitives/__init__.pyi +0 -1
- reflex/components/radix/primitives/accordion.py +4 -4
- reflex/components/radix/primitives/accordion.pyi +495 -424
- reflex/components/radix/primitives/base.py +1 -1
- reflex/components/radix/primitives/base.pyi +54 -33
- reflex/components/radix/primitives/drawer.py +1 -1
- reflex/components/radix/primitives/drawer.pyi +273 -172
- reflex/components/radix/primitives/form.py +1 -1
- reflex/components/radix/primitives/form.pyi +364 -257
- reflex/components/radix/primitives/progress.py +1 -1
- reflex/components/radix/primitives/progress.pyi +282 -231
- reflex/components/radix/primitives/slider.py +1 -1
- reflex/components/radix/primitives/slider.pyi +138 -87
- reflex/components/radix/themes/base.py +24 -3
- reflex/components/radix/themes/base.pyi +250 -178
- reflex/components/radix/themes/color_mode.py +5 -5
- reflex/components/radix/themes/color_mode.pyi +220 -187
- reflex/components/radix/themes/components/alert_dialog.py +1 -1
- reflex/components/radix/themes/components/alert_dialog.pyi +207 -136
- reflex/components/radix/themes/components/aspect_ratio.py +1 -1
- reflex/components/radix/themes/components/aspect_ratio.pyi +28 -17
- reflex/components/radix/themes/components/avatar.py +1 -1
- reflex/components/radix/themes/components/avatar.pyi +81 -70
- reflex/components/radix/themes/components/badge.py +1 -1
- reflex/components/radix/themes/components/badge.pyi +99 -88
- reflex/components/radix/themes/components/button.py +1 -1
- reflex/components/radix/themes/components/button.pyi +109 -98
- reflex/components/radix/themes/components/callout.py +1 -1
- reflex/components/radix/themes/components/callout.pyi +373 -322
- reflex/components/radix/themes/components/card.py +1 -1
- reflex/components/radix/themes/components/card.pyi +49 -38
- reflex/components/radix/themes/components/checkbox.py +2 -1
- reflex/components/radix/themes/components/checkbox.pyi +245 -208
- reflex/components/radix/themes/components/checkbox_cards.py +1 -1
- reflex/components/radix/themes/components/checkbox_cards.pyi +115 -94
- reflex/components/radix/themes/components/checkbox_group.py +1 -1
- reflex/components/radix/themes/components/checkbox_group.pyi +107 -86
- reflex/components/radix/themes/components/context_menu.py +1 -1
- reflex/components/radix/themes/components/context_menu.pyi +319 -238
- reflex/components/radix/themes/components/data_list.py +1 -1
- reflex/components/radix/themes/components/data_list.pyi +171 -130
- reflex/components/radix/themes/components/dialog.py +1 -1
- reflex/components/radix/themes/components/dialog.pyi +210 -139
- reflex/components/radix/themes/components/dropdown_menu.py +1 -1
- reflex/components/radix/themes/components/dropdown_menu.pyi +332 -249
- reflex/components/radix/themes/components/hover_card.py +1 -1
- reflex/components/radix/themes/components/hover_card.pyi +131 -90
- reflex/components/radix/themes/components/icon_button.py +3 -2
- reflex/components/radix/themes/components/icon_button.pyi +109 -98
- reflex/components/radix/themes/components/inset.py +1 -1
- reflex/components/radix/themes/components/inset.pyi +58 -47
- reflex/components/radix/themes/components/popover.py +1 -1
- reflex/components/radix/themes/components/popover.pyi +136 -95
- reflex/components/radix/themes/components/progress.py +1 -1
- reflex/components/radix/themes/components/progress.pyi +82 -71
- reflex/components/radix/themes/components/radio.py +1 -1
- reflex/components/radix/themes/components/radio.pyi +80 -69
- reflex/components/radix/themes/components/radio_cards.py +1 -1
- reflex/components/radix/themes/components/radio_cards.pyi +119 -98
- reflex/components/radix/themes/components/radio_group.py +11 -8
- reflex/components/radix/themes/components/radio_group.pyi +271 -228
- reflex/components/radix/themes/components/scroll_area.py +1 -1
- reflex/components/radix/themes/components/scroll_area.pyi +32 -21
- reflex/components/radix/themes/components/segmented_control.py +1 -1
- reflex/components/radix/themes/components/segmented_control.pyi +113 -90
- reflex/components/radix/themes/components/select.py +3 -2
- reflex/components/radix/themes/components/select.pyi +471 -374
- reflex/components/radix/themes/components/separator.py +2 -1
- reflex/components/radix/themes/components/separator.pyi +80 -69
- reflex/components/radix/themes/components/skeleton.py +1 -1
- reflex/components/radix/themes/components/skeleton.pyi +34 -23
- reflex/components/radix/themes/components/slider.py +3 -2
- reflex/components/radix/themes/components/slider.pyi +88 -75
- reflex/components/radix/themes/components/spinner.py +1 -1
- reflex/components/radix/themes/components/spinner.pyi +30 -19
- reflex/components/radix/themes/components/switch.py +1 -1
- reflex/components/radix/themes/components/switch.pyi +84 -71
- reflex/components/radix/themes/components/table.py +1 -1
- reflex/components/radix/themes/components/table.pyi +332 -261
- reflex/components/radix/themes/components/tabs.py +1 -1
- reflex/components/radix/themes/components/tabs.pyi +194 -139
- reflex/components/radix/themes/components/text_area.py +1 -1
- reflex/components/radix/themes/components/text_area.pyi +111 -96
- reflex/components/radix/themes/components/text_field.py +1 -1
- reflex/components/radix/themes/components/text_field.pyi +286 -247
- reflex/components/radix/themes/components/tooltip.py +1 -1
- reflex/components/radix/themes/components/tooltip.pyi +37 -26
- reflex/components/radix/themes/layout/__init__.pyi +0 -1
- reflex/components/radix/themes/layout/base.py +1 -1
- reflex/components/radix/themes/layout/base.pyi +67 -56
- reflex/components/radix/themes/layout/box.pyi +45 -34
- reflex/components/radix/themes/layout/center.pyi +67 -56
- reflex/components/radix/themes/layout/container.py +2 -1
- reflex/components/radix/themes/layout/container.pyi +47 -36
- reflex/components/radix/themes/layout/flex.py +1 -1
- reflex/components/radix/themes/layout/flex.pyi +67 -56
- reflex/components/radix/themes/layout/grid.py +1 -1
- reflex/components/radix/themes/layout/grid.pyi +75 -64
- reflex/components/radix/themes/layout/list.py +6 -5
- reflex/components/radix/themes/layout/list.pyi +244 -193
- reflex/components/radix/themes/layout/section.py +2 -1
- reflex/components/radix/themes/layout/section.pyi +47 -36
- reflex/components/radix/themes/layout/spacer.pyi +67 -56
- reflex/components/radix/themes/layout/stack.py +1 -1
- reflex/components/radix/themes/layout/stack.pyi +159 -128
- reflex/components/radix/themes/typography/blockquote.py +1 -1
- reflex/components/radix/themes/typography/blockquote.pyi +100 -89
- reflex/components/radix/themes/typography/code.py +1 -1
- reflex/components/radix/themes/typography/code.pyi +101 -90
- reflex/components/radix/themes/typography/heading.py +1 -1
- reflex/components/radix/themes/typography/heading.pyi +107 -96
- reflex/components/radix/themes/typography/link.py +1 -1
- reflex/components/radix/themes/typography/link.pyi +113 -102
- reflex/components/radix/themes/typography/text.py +1 -1
- reflex/components/radix/themes/typography/text.pyi +572 -501
- reflex/components/react_player/audio.pyi +60 -33
- reflex/components/react_player/react_player.py +1 -1
- reflex/components/react_player/react_player.pyi +60 -33
- reflex/components/react_player/video.pyi +60 -33
- reflex/components/recharts/cartesian.py +3 -2
- reflex/components/recharts/cartesian.pyi +861 -678
- reflex/components/recharts/charts.py +5 -4
- reflex/components/recharts/charts.pyi +357 -252
- reflex/components/recharts/general.py +2 -1
- reflex/components/recharts/general.pyi +231 -180
- reflex/components/recharts/polar.py +5 -4
- reflex/components/recharts/polar.pyi +181 -144
- reflex/components/recharts/recharts.pyi +53 -33
- reflex/components/sonner/toast.py +17 -16
- reflex/components/sonner/toast.pyi +47 -36
- reflex/components/suneditor/editor.py +3 -2
- reflex/components/suneditor/editor.pyi +78 -55
- reflex/components/tags/cond_tag.py +4 -6
- reflex/components/tags/iter_tag.py +16 -28
- reflex/components/tags/match_tag.py +4 -6
- reflex/components/tags/tag.py +23 -40
- reflex/custom_components/custom_components.py +1 -3
- reflex/event.py +65 -113
- reflex/experimental/client_state.py +24 -25
- reflex/experimental/hooks.py +16 -16
- reflex/experimental/layout.py +5 -5
- reflex/experimental/layout.pyi +187 -136
- reflex/{vars → ivars}/__init__.py +2 -6
- reflex/{vars → ivars}/base.py +216 -599
- reflex/{vars → ivars}/function.py +19 -15
- reflex/{vars → ivars}/number.py +20 -41
- reflex/{vars → ivars}/object.py +30 -28
- reflex/{vars → ivars}/sequence.py +50 -53
- reflex/middleware/hydrate_middleware.py +0 -2
- reflex/middleware/middleware.py +3 -3
- reflex/state.py +82 -148
- reflex/style.py +22 -21
- reflex/utils/exceptions.py +0 -20
- reflex/utils/format.py +34 -54
- reflex/utils/imports.py +73 -16
- reflex/utils/prerequisites.py +15 -35
- reflex/utils/pyi_generator.py +8 -13
- reflex/utils/serializers.py +22 -12
- reflex/utils/telemetry.py +2 -3
- reflex/utils/types.py +5 -10
- reflex/vars.py +501 -0
- {reflex-0.6.0.dist-info → reflex-0.6.0a1.dist-info}/METADATA +5 -4
- reflex-0.6.0a1.dist-info/RECORD +384 -0
- reflex-0.6.0.dist-info/RECORD +0 -382
- {reflex-0.6.0.dist-info → reflex-0.6.0a1.dist-info}/LICENSE +0 -0
- {reflex-0.6.0.dist-info → reflex-0.6.0a1.dist-info}/WHEEL +0 -0
- {reflex-0.6.0.dist-info → reflex-0.6.0a1.dist-info}/entry_points.txt +0 -0
|
@@ -7,8 +7,9 @@ from typing import Any, Callable, Dict, Optional, Union, overload
|
|
|
7
7
|
|
|
8
8
|
from reflex.components.el.element import Element
|
|
9
9
|
from reflex.event import EventHandler, EventSpec
|
|
10
|
+
from reflex.ivars.base import ImmutableVar
|
|
10
11
|
from reflex.style import Style
|
|
11
|
-
from reflex.vars
|
|
12
|
+
from reflex.vars import Var
|
|
12
13
|
|
|
13
14
|
from .base import BaseHTML
|
|
14
15
|
|
|
@@ -18,72 +19,82 @@ class Base(BaseHTML):
|
|
|
18
19
|
def create( # type: ignore
|
|
19
20
|
cls,
|
|
20
21
|
*children,
|
|
21
|
-
href: Optional[Union[Var[Union[bool, int, str]],
|
|
22
|
-
target: Optional[Union[Var[Union[bool, int, str]],
|
|
23
|
-
access_key: Optional[Union[Var[Union[bool, int, str]],
|
|
22
|
+
href: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
23
|
+
target: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
24
|
+
access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
24
25
|
auto_capitalize: Optional[
|
|
25
|
-
Union[Var[Union[bool, int, str]],
|
|
26
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
26
27
|
] = None,
|
|
27
28
|
content_editable: Optional[
|
|
28
|
-
Union[Var[Union[bool, int, str]],
|
|
29
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
29
30
|
] = None,
|
|
30
31
|
context_menu: Optional[
|
|
31
|
-
Union[Var[Union[bool, int, str]],
|
|
32
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
32
33
|
] = None,
|
|
33
|
-
dir: Optional[Union[Var[Union[bool, int, str]],
|
|
34
|
-
draggable: Optional[Union[Var[Union[bool, int, str]],
|
|
34
|
+
dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
35
|
+
draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
35
36
|
enter_key_hint: Optional[
|
|
36
|
-
Union[Var[Union[bool, int, str]],
|
|
37
|
-
] = None,
|
|
38
|
-
hidden: Optional[Union[Var[Union[bool, int, str]],
|
|
39
|
-
input_mode: Optional[Union[Var[Union[bool, int, str]],
|
|
40
|
-
item_prop: Optional[Union[Var[Union[bool, int, str]],
|
|
41
|
-
lang: Optional[Union[Var[Union[bool, int, str]],
|
|
42
|
-
role: Optional[Union[Var[Union[bool, int, str]],
|
|
43
|
-
slot: Optional[Union[Var[Union[bool, int, str]],
|
|
44
|
-
spell_check: Optional[Union[Var[Union[bool, int, str]],
|
|
45
|
-
tab_index: Optional[Union[Var[Union[bool, int, str]],
|
|
46
|
-
title: Optional[Union[Var[Union[bool, int, str]],
|
|
37
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
38
|
+
] = None,
|
|
39
|
+
hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
40
|
+
input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
41
|
+
item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
42
|
+
lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
43
|
+
role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
44
|
+
slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
45
|
+
spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
46
|
+
tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
47
|
+
title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
47
48
|
style: Optional[Style] = None,
|
|
48
49
|
key: Optional[Any] = None,
|
|
49
50
|
id: Optional[Any] = None,
|
|
50
51
|
class_name: Optional[Any] = None,
|
|
51
52
|
autofocus: Optional[bool] = None,
|
|
52
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
53
|
-
on_blur: Optional[
|
|
54
|
-
|
|
53
|
+
custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
54
|
+
on_blur: Optional[
|
|
55
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
56
|
+
] = None,
|
|
57
|
+
on_click: Optional[
|
|
58
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
59
|
+
] = None,
|
|
55
60
|
on_context_menu: Optional[
|
|
56
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
61
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
57
62
|
] = None,
|
|
58
63
|
on_double_click: Optional[
|
|
59
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
64
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
65
|
+
] = None,
|
|
66
|
+
on_focus: Optional[
|
|
67
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
68
|
+
] = None,
|
|
69
|
+
on_mount: Optional[
|
|
70
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
60
71
|
] = None,
|
|
61
|
-
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
62
|
-
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
63
72
|
on_mouse_down: Optional[
|
|
64
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
73
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
65
74
|
] = None,
|
|
66
75
|
on_mouse_enter: Optional[
|
|
67
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
76
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
68
77
|
] = None,
|
|
69
78
|
on_mouse_leave: Optional[
|
|
70
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
79
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
71
80
|
] = None,
|
|
72
81
|
on_mouse_move: Optional[
|
|
73
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
82
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
74
83
|
] = None,
|
|
75
84
|
on_mouse_out: Optional[
|
|
76
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
85
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
77
86
|
] = None,
|
|
78
87
|
on_mouse_over: Optional[
|
|
79
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
88
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
80
89
|
] = None,
|
|
81
90
|
on_mouse_up: Optional[
|
|
82
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
91
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
92
|
+
] = None,
|
|
93
|
+
on_scroll: Optional[
|
|
94
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
83
95
|
] = None,
|
|
84
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
85
96
|
on_unmount: Optional[
|
|
86
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
97
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
87
98
|
] = None,
|
|
88
99
|
**props,
|
|
89
100
|
) -> "Base":
|
|
@@ -126,70 +137,80 @@ class Head(BaseHTML):
|
|
|
126
137
|
def create( # type: ignore
|
|
127
138
|
cls,
|
|
128
139
|
*children,
|
|
129
|
-
access_key: Optional[Union[Var[Union[bool, int, str]],
|
|
140
|
+
access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
130
141
|
auto_capitalize: Optional[
|
|
131
|
-
Union[Var[Union[bool, int, str]],
|
|
142
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
132
143
|
] = None,
|
|
133
144
|
content_editable: Optional[
|
|
134
|
-
Union[Var[Union[bool, int, str]],
|
|
145
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
135
146
|
] = None,
|
|
136
147
|
context_menu: Optional[
|
|
137
|
-
Union[Var[Union[bool, int, str]],
|
|
148
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
138
149
|
] = None,
|
|
139
|
-
dir: Optional[Union[Var[Union[bool, int, str]],
|
|
140
|
-
draggable: Optional[Union[Var[Union[bool, int, str]],
|
|
150
|
+
dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
151
|
+
draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
141
152
|
enter_key_hint: Optional[
|
|
142
|
-
Union[Var[Union[bool, int, str]],
|
|
143
|
-
] = None,
|
|
144
|
-
hidden: Optional[Union[Var[Union[bool, int, str]],
|
|
145
|
-
input_mode: Optional[Union[Var[Union[bool, int, str]],
|
|
146
|
-
item_prop: Optional[Union[Var[Union[bool, int, str]],
|
|
147
|
-
lang: Optional[Union[Var[Union[bool, int, str]],
|
|
148
|
-
role: Optional[Union[Var[Union[bool, int, str]],
|
|
149
|
-
slot: Optional[Union[Var[Union[bool, int, str]],
|
|
150
|
-
spell_check: Optional[Union[Var[Union[bool, int, str]],
|
|
151
|
-
tab_index: Optional[Union[Var[Union[bool, int, str]],
|
|
152
|
-
title: Optional[Union[Var[Union[bool, int, str]],
|
|
153
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
154
|
+
] = None,
|
|
155
|
+
hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
156
|
+
input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
157
|
+
item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
158
|
+
lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
159
|
+
role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
160
|
+
slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
161
|
+
spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
162
|
+
tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
163
|
+
title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
153
164
|
style: Optional[Style] = None,
|
|
154
165
|
key: Optional[Any] = None,
|
|
155
166
|
id: Optional[Any] = None,
|
|
156
167
|
class_name: Optional[Any] = None,
|
|
157
168
|
autofocus: Optional[bool] = None,
|
|
158
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
159
|
-
on_blur: Optional[
|
|
160
|
-
|
|
169
|
+
custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
170
|
+
on_blur: Optional[
|
|
171
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
172
|
+
] = None,
|
|
173
|
+
on_click: Optional[
|
|
174
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
175
|
+
] = None,
|
|
161
176
|
on_context_menu: Optional[
|
|
162
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
177
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
163
178
|
] = None,
|
|
164
179
|
on_double_click: Optional[
|
|
165
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
180
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
181
|
+
] = None,
|
|
182
|
+
on_focus: Optional[
|
|
183
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
184
|
+
] = None,
|
|
185
|
+
on_mount: Optional[
|
|
186
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
166
187
|
] = None,
|
|
167
|
-
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
168
|
-
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
169
188
|
on_mouse_down: Optional[
|
|
170
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
189
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
171
190
|
] = None,
|
|
172
191
|
on_mouse_enter: Optional[
|
|
173
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
192
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
174
193
|
] = None,
|
|
175
194
|
on_mouse_leave: Optional[
|
|
176
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
195
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
177
196
|
] = None,
|
|
178
197
|
on_mouse_move: Optional[
|
|
179
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
198
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
180
199
|
] = None,
|
|
181
200
|
on_mouse_out: Optional[
|
|
182
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
201
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
183
202
|
] = None,
|
|
184
203
|
on_mouse_over: Optional[
|
|
185
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
204
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
186
205
|
] = None,
|
|
187
206
|
on_mouse_up: Optional[
|
|
188
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
207
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
208
|
+
] = None,
|
|
209
|
+
on_scroll: Optional[
|
|
210
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
189
211
|
] = None,
|
|
190
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
191
212
|
on_unmount: Optional[
|
|
192
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
213
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
193
214
|
] = None,
|
|
194
215
|
**props,
|
|
195
216
|
) -> "Head":
|
|
@@ -233,82 +254,92 @@ class Link(BaseHTML):
|
|
|
233
254
|
cls,
|
|
234
255
|
*children,
|
|
235
256
|
cross_origin: Optional[
|
|
236
|
-
Union[Var[Union[bool, int, str]],
|
|
257
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
237
258
|
] = None,
|
|
238
|
-
href: Optional[Union[Var[Union[bool, int, str]],
|
|
239
|
-
href_lang: Optional[Union[Var[Union[bool, int, str]],
|
|
240
|
-
integrity: Optional[Union[Var[Union[bool, int, str]],
|
|
241
|
-
media: Optional[Union[Var[Union[bool, int, str]],
|
|
259
|
+
href: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
260
|
+
href_lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
261
|
+
integrity: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
262
|
+
media: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
242
263
|
referrer_policy: Optional[
|
|
243
|
-
Union[Var[Union[bool, int, str]],
|
|
264
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
244
265
|
] = None,
|
|
245
|
-
rel: Optional[Union[Var[Union[bool, int, str]],
|
|
246
|
-
sizes: Optional[Union[Var[Union[bool, int, str]],
|
|
247
|
-
type: Optional[Union[Var[Union[bool, int, str]],
|
|
248
|
-
access_key: Optional[Union[Var[Union[bool, int, str]],
|
|
266
|
+
rel: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
267
|
+
sizes: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
268
|
+
type: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
269
|
+
access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
249
270
|
auto_capitalize: Optional[
|
|
250
|
-
Union[Var[Union[bool, int, str]],
|
|
271
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
251
272
|
] = None,
|
|
252
273
|
content_editable: Optional[
|
|
253
|
-
Union[Var[Union[bool, int, str]],
|
|
274
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
254
275
|
] = None,
|
|
255
276
|
context_menu: Optional[
|
|
256
|
-
Union[Var[Union[bool, int, str]],
|
|
277
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
257
278
|
] = None,
|
|
258
|
-
dir: Optional[Union[Var[Union[bool, int, str]],
|
|
259
|
-
draggable: Optional[Union[Var[Union[bool, int, str]],
|
|
279
|
+
dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
280
|
+
draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
260
281
|
enter_key_hint: Optional[
|
|
261
|
-
Union[Var[Union[bool, int, str]],
|
|
262
|
-
] = None,
|
|
263
|
-
hidden: Optional[Union[Var[Union[bool, int, str]],
|
|
264
|
-
input_mode: Optional[Union[Var[Union[bool, int, str]],
|
|
265
|
-
item_prop: Optional[Union[Var[Union[bool, int, str]],
|
|
266
|
-
lang: Optional[Union[Var[Union[bool, int, str]],
|
|
267
|
-
role: Optional[Union[Var[Union[bool, int, str]],
|
|
268
|
-
slot: Optional[Union[Var[Union[bool, int, str]],
|
|
269
|
-
spell_check: Optional[Union[Var[Union[bool, int, str]],
|
|
270
|
-
tab_index: Optional[Union[Var[Union[bool, int, str]],
|
|
271
|
-
title: Optional[Union[Var[Union[bool, int, str]],
|
|
282
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
283
|
+
] = None,
|
|
284
|
+
hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
285
|
+
input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
286
|
+
item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
287
|
+
lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
288
|
+
role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
289
|
+
slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
290
|
+
spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
291
|
+
tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
292
|
+
title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
272
293
|
style: Optional[Style] = None,
|
|
273
294
|
key: Optional[Any] = None,
|
|
274
295
|
id: Optional[Any] = None,
|
|
275
296
|
class_name: Optional[Any] = None,
|
|
276
297
|
autofocus: Optional[bool] = None,
|
|
277
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
278
|
-
on_blur: Optional[
|
|
279
|
-
|
|
298
|
+
custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
299
|
+
on_blur: Optional[
|
|
300
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
301
|
+
] = None,
|
|
302
|
+
on_click: Optional[
|
|
303
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
304
|
+
] = None,
|
|
280
305
|
on_context_menu: Optional[
|
|
281
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
306
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
282
307
|
] = None,
|
|
283
308
|
on_double_click: Optional[
|
|
284
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
309
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
310
|
+
] = None,
|
|
311
|
+
on_focus: Optional[
|
|
312
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
313
|
+
] = None,
|
|
314
|
+
on_mount: Optional[
|
|
315
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
285
316
|
] = None,
|
|
286
|
-
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
287
|
-
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
288
317
|
on_mouse_down: Optional[
|
|
289
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
318
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
290
319
|
] = None,
|
|
291
320
|
on_mouse_enter: Optional[
|
|
292
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
321
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
293
322
|
] = None,
|
|
294
323
|
on_mouse_leave: Optional[
|
|
295
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
324
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
296
325
|
] = None,
|
|
297
326
|
on_mouse_move: Optional[
|
|
298
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
327
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
299
328
|
] = None,
|
|
300
329
|
on_mouse_out: Optional[
|
|
301
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
330
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
302
331
|
] = None,
|
|
303
332
|
on_mouse_over: Optional[
|
|
304
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
333
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
305
334
|
] = None,
|
|
306
335
|
on_mouse_up: Optional[
|
|
307
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
336
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
337
|
+
] = None,
|
|
338
|
+
on_scroll: Optional[
|
|
339
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
308
340
|
] = None,
|
|
309
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
310
341
|
on_unmount: Optional[
|
|
311
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
342
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
312
343
|
] = None,
|
|
313
344
|
**props,
|
|
314
345
|
) -> "Link":
|
|
@@ -360,74 +391,84 @@ class Meta(BaseHTML):
|
|
|
360
391
|
def create( # type: ignore
|
|
361
392
|
cls,
|
|
362
393
|
*children,
|
|
363
|
-
char_set: Optional[Union[Var[Union[bool, int, str]],
|
|
364
|
-
content: Optional[Union[Var[Union[bool, int, str]],
|
|
365
|
-
http_equiv: Optional[Union[Var[Union[bool, int, str]],
|
|
366
|
-
name: Optional[Union[Var[Union[bool, int, str]],
|
|
367
|
-
access_key: Optional[Union[Var[Union[bool, int, str]],
|
|
394
|
+
char_set: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
395
|
+
content: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
396
|
+
http_equiv: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
397
|
+
name: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
398
|
+
access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
368
399
|
auto_capitalize: Optional[
|
|
369
|
-
Union[Var[Union[bool, int, str]],
|
|
400
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
370
401
|
] = None,
|
|
371
402
|
content_editable: Optional[
|
|
372
|
-
Union[Var[Union[bool, int, str]],
|
|
403
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
373
404
|
] = None,
|
|
374
405
|
context_menu: Optional[
|
|
375
|
-
Union[Var[Union[bool, int, str]],
|
|
406
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
376
407
|
] = None,
|
|
377
|
-
dir: Optional[Union[Var[Union[bool, int, str]],
|
|
378
|
-
draggable: Optional[Union[Var[Union[bool, int, str]],
|
|
408
|
+
dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
409
|
+
draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
379
410
|
enter_key_hint: Optional[
|
|
380
|
-
Union[Var[Union[bool, int, str]],
|
|
381
|
-
] = None,
|
|
382
|
-
hidden: Optional[Union[Var[Union[bool, int, str]],
|
|
383
|
-
input_mode: Optional[Union[Var[Union[bool, int, str]],
|
|
384
|
-
item_prop: Optional[Union[Var[Union[bool, int, str]],
|
|
385
|
-
lang: Optional[Union[Var[Union[bool, int, str]],
|
|
386
|
-
role: Optional[Union[Var[Union[bool, int, str]],
|
|
387
|
-
slot: Optional[Union[Var[Union[bool, int, str]],
|
|
388
|
-
spell_check: Optional[Union[Var[Union[bool, int, str]],
|
|
389
|
-
tab_index: Optional[Union[Var[Union[bool, int, str]],
|
|
390
|
-
title: Optional[Union[Var[Union[bool, int, str]],
|
|
411
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
412
|
+
] = None,
|
|
413
|
+
hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
414
|
+
input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
415
|
+
item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
416
|
+
lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
417
|
+
role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
418
|
+
slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
419
|
+
spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
420
|
+
tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
421
|
+
title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
391
422
|
style: Optional[Style] = None,
|
|
392
423
|
key: Optional[Any] = None,
|
|
393
424
|
id: Optional[Any] = None,
|
|
394
425
|
class_name: Optional[Any] = None,
|
|
395
426
|
autofocus: Optional[bool] = None,
|
|
396
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
397
|
-
on_blur: Optional[
|
|
398
|
-
|
|
427
|
+
custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
428
|
+
on_blur: Optional[
|
|
429
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
430
|
+
] = None,
|
|
431
|
+
on_click: Optional[
|
|
432
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
433
|
+
] = None,
|
|
399
434
|
on_context_menu: Optional[
|
|
400
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
435
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
401
436
|
] = None,
|
|
402
437
|
on_double_click: Optional[
|
|
403
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
438
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
439
|
+
] = None,
|
|
440
|
+
on_focus: Optional[
|
|
441
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
442
|
+
] = None,
|
|
443
|
+
on_mount: Optional[
|
|
444
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
404
445
|
] = None,
|
|
405
|
-
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
406
|
-
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
407
446
|
on_mouse_down: Optional[
|
|
408
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
447
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
409
448
|
] = None,
|
|
410
449
|
on_mouse_enter: Optional[
|
|
411
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
450
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
412
451
|
] = None,
|
|
413
452
|
on_mouse_leave: Optional[
|
|
414
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
453
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
415
454
|
] = None,
|
|
416
455
|
on_mouse_move: Optional[
|
|
417
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
456
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
418
457
|
] = None,
|
|
419
458
|
on_mouse_out: Optional[
|
|
420
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
459
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
421
460
|
] = None,
|
|
422
461
|
on_mouse_over: Optional[
|
|
423
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
462
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
424
463
|
] = None,
|
|
425
464
|
on_mouse_up: Optional[
|
|
426
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
465
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
466
|
+
] = None,
|
|
467
|
+
on_scroll: Optional[
|
|
468
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
427
469
|
] = None,
|
|
428
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
429
470
|
on_unmount: Optional[
|
|
430
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
471
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
431
472
|
] = None,
|
|
432
473
|
**props,
|
|
433
474
|
) -> "Meta":
|
|
@@ -479,41 +520,51 @@ class Title(Element):
|
|
|
479
520
|
id: Optional[Any] = None,
|
|
480
521
|
class_name: Optional[Any] = None,
|
|
481
522
|
autofocus: Optional[bool] = None,
|
|
482
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
483
|
-
on_blur: Optional[
|
|
484
|
-
|
|
523
|
+
custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
524
|
+
on_blur: Optional[
|
|
525
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
526
|
+
] = None,
|
|
527
|
+
on_click: Optional[
|
|
528
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
529
|
+
] = None,
|
|
485
530
|
on_context_menu: Optional[
|
|
486
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
531
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
487
532
|
] = None,
|
|
488
533
|
on_double_click: Optional[
|
|
489
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
534
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
535
|
+
] = None,
|
|
536
|
+
on_focus: Optional[
|
|
537
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
538
|
+
] = None,
|
|
539
|
+
on_mount: Optional[
|
|
540
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
490
541
|
] = None,
|
|
491
|
-
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
492
|
-
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
493
542
|
on_mouse_down: Optional[
|
|
494
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
543
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
495
544
|
] = None,
|
|
496
545
|
on_mouse_enter: Optional[
|
|
497
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
546
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
498
547
|
] = None,
|
|
499
548
|
on_mouse_leave: Optional[
|
|
500
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
549
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
501
550
|
] = None,
|
|
502
551
|
on_mouse_move: Optional[
|
|
503
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
552
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
504
553
|
] = None,
|
|
505
554
|
on_mouse_out: Optional[
|
|
506
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
555
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
507
556
|
] = None,
|
|
508
557
|
on_mouse_over: Optional[
|
|
509
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
558
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
510
559
|
] = None,
|
|
511
560
|
on_mouse_up: Optional[
|
|
512
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
561
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
562
|
+
] = None,
|
|
563
|
+
on_scroll: Optional[
|
|
564
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
513
565
|
] = None,
|
|
514
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
515
566
|
on_unmount: Optional[
|
|
516
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
567
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
517
568
|
] = None,
|
|
518
569
|
**props,
|
|
519
570
|
) -> "Title":
|
|
@@ -540,47 +591,57 @@ class StyleEl(Element):
|
|
|
540
591
|
def create( # type: ignore
|
|
541
592
|
cls,
|
|
542
593
|
*children,
|
|
543
|
-
media: Optional[Union[Var[Union[bool, int, str]],
|
|
594
|
+
media: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
544
595
|
style: Optional[Style] = None,
|
|
545
596
|
key: Optional[Any] = None,
|
|
546
597
|
id: Optional[Any] = None,
|
|
547
598
|
class_name: Optional[Any] = None,
|
|
548
599
|
autofocus: Optional[bool] = None,
|
|
549
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
550
|
-
on_blur: Optional[
|
|
551
|
-
|
|
600
|
+
custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
601
|
+
on_blur: Optional[
|
|
602
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
603
|
+
] = None,
|
|
604
|
+
on_click: Optional[
|
|
605
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
606
|
+
] = None,
|
|
552
607
|
on_context_menu: Optional[
|
|
553
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
608
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
554
609
|
] = None,
|
|
555
610
|
on_double_click: Optional[
|
|
556
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
611
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
612
|
+
] = None,
|
|
613
|
+
on_focus: Optional[
|
|
614
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
615
|
+
] = None,
|
|
616
|
+
on_mount: Optional[
|
|
617
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
557
618
|
] = None,
|
|
558
|
-
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
559
|
-
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
560
619
|
on_mouse_down: Optional[
|
|
561
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
620
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
562
621
|
] = None,
|
|
563
622
|
on_mouse_enter: Optional[
|
|
564
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
623
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
565
624
|
] = None,
|
|
566
625
|
on_mouse_leave: Optional[
|
|
567
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
626
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
568
627
|
] = None,
|
|
569
628
|
on_mouse_move: Optional[
|
|
570
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
629
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
571
630
|
] = None,
|
|
572
631
|
on_mouse_out: Optional[
|
|
573
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
632
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
574
633
|
] = None,
|
|
575
634
|
on_mouse_over: Optional[
|
|
576
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
635
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
577
636
|
] = None,
|
|
578
637
|
on_mouse_up: Optional[
|
|
579
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
638
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
639
|
+
] = None,
|
|
640
|
+
on_scroll: Optional[
|
|
641
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
580
642
|
] = None,
|
|
581
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
582
643
|
on_unmount: Optional[
|
|
583
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
644
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
584
645
|
] = None,
|
|
585
646
|
**props,
|
|
586
647
|
) -> "StyleEl":
|