reflex 0.5.5a2__py3-none-any.whl → 0.5.6a1__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/_app.js.jinja2 +0 -1
- reflex/.templates/jinja/web/utils/context.js.jinja2 +2 -0
- reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +20 -2
- reflex/.templates/web/utils/helpers/paste.js +59 -0
- reflex/__init__.py +2 -0
- reflex/__init__.pyi +86 -87
- reflex/app.py +64 -126
- reflex/app_mixins/__init__.py +5 -0
- reflex/app_mixins/lifespan.py +57 -0
- reflex/app_mixins/middleware.py +93 -0
- reflex/app_mixins/mixin.py +14 -0
- reflex/compiler/compiler.py +6 -1
- reflex/components/__init__.pyi +0 -2
- reflex/components/base/__init__.pyi +1 -3
- reflex/components/base/app_wrap.pyi +21 -22
- reflex/components/base/body.pyi +21 -20
- reflex/components/base/document.pyi +85 -85
- reflex/components/base/fragment.pyi +21 -20
- reflex/components/base/head.pyi +37 -36
- reflex/components/base/link.pyi +37 -37
- reflex/components/base/meta.pyi +69 -70
- reflex/components/base/script.py +6 -2
- reflex/components/base/script.pyi +31 -27
- reflex/components/chakra/base.pyi +54 -56
- reflex/components/chakra/datadisplay/badge.pyi +21 -21
- reflex/components/chakra/datadisplay/code.pyi +21 -20
- reflex/components/chakra/datadisplay/divider.pyi +21 -22
- reflex/components/chakra/datadisplay/keyboard_key.pyi +21 -20
- reflex/components/chakra/datadisplay/list.pyi +69 -71
- reflex/components/chakra/datadisplay/stat.pyi +101 -102
- reflex/components/chakra/datadisplay/table.pyi +149 -153
- reflex/components/chakra/datadisplay/tag.pyi +85 -89
- reflex/components/chakra/disclosure/accordion.pyi +87 -93
- reflex/components/chakra/disclosure/tabs.pyi +85 -90
- reflex/components/chakra/disclosure/transition.pyi +104 -105
- reflex/components/chakra/disclosure/visuallyhidden.pyi +21 -20
- reflex/components/chakra/feedback/alert.pyi +69 -70
- reflex/components/chakra/feedback/circularprogress.pyi +38 -40
- reflex/components/chakra/feedback/progress.pyi +22 -23
- reflex/components/chakra/feedback/skeleton.pyi +53 -53
- reflex/components/chakra/feedback/spinner.pyi +21 -21
- reflex/components/chakra/forms/button.pyi +37 -42
- reflex/components/chakra/forms/checkbox.pyi +38 -39
- reflex/components/chakra/forms/colormodeswitch.pyi +72 -71
- reflex/components/chakra/forms/date_picker.pyi +24 -24
- reflex/components/chakra/forms/date_time_picker.pyi +24 -24
- reflex/components/chakra/forms/editable.pyi +73 -74
- reflex/components/chakra/forms/email.pyi +24 -24
- reflex/components/chakra/forms/form.pyi +112 -141
- reflex/components/chakra/forms/iconbutton.pyi +21 -22
- reflex/components/chakra/forms/input.pyi +104 -111
- reflex/components/chakra/forms/numberinput.pyi +87 -91
- reflex/components/chakra/forms/password.pyi +24 -24
- reflex/components/chakra/forms/pininput.pyi +39 -45
- reflex/components/chakra/forms/radio.pyi +38 -43
- reflex/components/chakra/forms/rangeslider.pyi +72 -76
- reflex/components/chakra/forms/select.pyi +39 -44
- reflex/components/chakra/forms/slider.pyi +88 -91
- reflex/components/chakra/forms/switch.pyi +22 -23
- reflex/components/chakra/forms/textarea.pyi +24 -27
- reflex/components/chakra/forms/time_picker.pyi +24 -24
- reflex/components/chakra/layout/aspect_ratio.pyi +21 -21
- reflex/components/chakra/layout/box.pyi +21 -22
- reflex/components/chakra/layout/card.pyi +69 -73
- reflex/components/chakra/layout/center.pyi +53 -52
- reflex/components/chakra/layout/container.pyi +21 -21
- reflex/components/chakra/layout/flex.pyi +23 -26
- reflex/components/chakra/layout/grid.pyi +53 -54
- reflex/components/chakra/layout/spacer.pyi +21 -20
- reflex/components/chakra/layout/stack.pyi +62 -60
- reflex/components/chakra/layout/wrap.pyi +37 -38
- reflex/components/chakra/media/avatar.pyi +54 -55
- reflex/components/chakra/media/icon.pyi +37 -38
- reflex/components/chakra/media/image.pyi +24 -26
- reflex/components/chakra/navigation/breadcrumb.pyi +69 -71
- reflex/components/chakra/navigation/link.pyi +20 -21
- reflex/components/chakra/navigation/linkoverlay.pyi +37 -37
- reflex/components/chakra/navigation/stepper.pyi +149 -151
- reflex/components/chakra/overlay/alertdialog.pyi +121 -124
- reflex/components/chakra/overlay/drawer.pyi +121 -126
- reflex/components/chakra/overlay/menu.pyi +135 -141
- reflex/components/chakra/overlay/modal.pyi +121 -124
- reflex/components/chakra/overlay/popover.pyi +151 -156
- reflex/components/chakra/overlay/tooltip.pyi +23 -24
- reflex/components/chakra/typography/heading.pyi +21 -21
- reflex/components/chakra/typography/highlight.pyi +21 -23
- reflex/components/chakra/typography/span.pyi +21 -21
- reflex/components/chakra/typography/text.pyi +21 -21
- reflex/components/component.py +6 -2
- reflex/components/core/__init__.py +2 -0
- reflex/components/core/__init__.pyi +9 -7
- reflex/components/core/banner.pyi +118 -146
- reflex/components/core/breakpoints.py +95 -0
- reflex/components/core/client_side_routing.pyi +37 -39
- reflex/components/core/clipboard.py +95 -0
- reflex/components/core/clipboard.pyi +102 -0
- reflex/components/core/debounce.pyi +23 -28
- reflex/components/core/html.pyi +38 -55
- reflex/components/core/upload.pyi +74 -91
- reflex/components/datadisplay/__init__.pyi +2 -3
- reflex/components/datadisplay/code.py +3 -3
- reflex/components/datadisplay/code.pyi +22 -31
- reflex/components/datadisplay/dataeditor.pyi +41 -45
- reflex/components/el/__init__.pyi +131 -135
- reflex/components/el/element.pyi +21 -20
- reflex/components/el/elements/__init__.pyi +131 -132
- reflex/components/el/elements/base.pyi +38 -55
- reflex/components/el/elements/forms.pyi +558 -878
- reflex/components/el/elements/inline.pyi +941 -1403
- reflex/components/el/elements/media.pyi +645 -994
- reflex/components/el/elements/metadata.pyi +186 -268
- reflex/components/el/elements/other.pyi +239 -353
- reflex/components/el/elements/scripts.pyi +113 -171
- reflex/components/el/elements/sectioning.pyi +500 -739
- reflex/components/el/elements/tables.pyi +355 -551
- reflex/components/el/elements/typography.pyi +510 -760
- reflex/components/gridjs/datatable.pyi +38 -42
- reflex/components/lucide/icon.pyi +37 -38
- reflex/components/markdown/markdown.pyi +23 -36
- reflex/components/moment/moment.pyi +23 -25
- reflex/components/next/base.pyi +21 -20
- reflex/components/next/image.pyi +25 -27
- reflex/components/next/link.pyi +21 -21
- reflex/components/next/video.pyi +22 -22
- reflex/components/plotly/plotly.pyi +42 -45
- reflex/components/radix/__init__.pyi +26 -30
- reflex/components/radix/primitives/__init__.pyi +0 -2
- reflex/components/radix/primitives/accordion.pyi +119 -127
- reflex/components/radix/primitives/base.pyi +37 -40
- reflex/components/radix/primitives/drawer.pyi +175 -179
- reflex/components/radix/primitives/form.pyi +250 -336
- reflex/components/radix/primitives/progress.pyi +92 -96
- reflex/components/radix/primitives/slider.pyi +87 -89
- reflex/components/radix/themes/__init__.pyi +0 -2
- reflex/components/radix/themes/base.pyi +118 -121
- reflex/components/radix/themes/color_mode.pyi +103 -117
- reflex/components/radix/themes/components/__init__.pyi +12 -14
- reflex/components/radix/themes/components/alert_dialog.py +2 -1
- reflex/components/radix/themes/components/alert_dialog.pyi +150 -157
- reflex/components/radix/themes/components/aspect_ratio.pyi +22 -22
- reflex/components/radix/themes/components/avatar.py +2 -1
- reflex/components/radix/themes/components/avatar.pyi +32 -23
- reflex/components/radix/themes/components/badge.py +2 -1
- reflex/components/radix/themes/components/badge.pyi +50 -57
- reflex/components/radix/themes/components/button.py +2 -1
- reflex/components/radix/themes/components/button.pyi +60 -79
- reflex/components/radix/themes/components/callout.py +2 -1
- reflex/components/radix/themes/components/callout.pyi +201 -258
- reflex/components/radix/themes/components/card.py +2 -1
- reflex/components/radix/themes/components/card.pyi +48 -56
- reflex/components/radix/themes/components/checkbox.py +2 -1
- reflex/components/radix/themes/components/checkbox.pyi +68 -62
- reflex/components/radix/themes/components/checkbox_cards.py +8 -3
- reflex/components/radix/themes/components/checkbox_cards.pyi +87 -44
- reflex/components/radix/themes/components/checkbox_group.py +2 -1
- reflex/components/radix/themes/components/checkbox_group.pyi +49 -40
- reflex/components/radix/themes/components/context_menu.py +2 -1
- reflex/components/radix/themes/components/context_menu.pyi +153 -147
- reflex/components/radix/themes/components/data_list.py +8 -7
- reflex/components/radix/themes/components/data_list.pyi +116 -78
- reflex/components/radix/themes/components/dialog.py +2 -1
- reflex/components/radix/themes/components/dialog.pyi +154 -161
- reflex/components/radix/themes/components/dropdown_menu.py +2 -1
- reflex/components/radix/themes/components/dropdown_menu.pyi +169 -163
- reflex/components/radix/themes/components/hover_card.py +2 -1
- reflex/components/radix/themes/components/hover_card.pyi +97 -107
- reflex/components/radix/themes/components/icon_button.py +2 -1
- reflex/components/radix/themes/components/icon_button.pyi +59 -82
- reflex/components/radix/themes/components/inset.py +10 -9
- reflex/components/radix/themes/components/inset.pyi +109 -61
- reflex/components/radix/themes/components/popover.py +2 -1
- reflex/components/radix/themes/components/popover.pyi +105 -112
- reflex/components/radix/themes/components/progress.py +2 -1
- reflex/components/radix/themes/components/progress.pyi +32 -24
- reflex/components/radix/themes/components/radio.py +2 -1
- reflex/components/radix/themes/components/radio.pyi +32 -23
- reflex/components/radix/themes/components/radio_cards.py +51 -3
- reflex/components/radix/themes/components/radio_cards.pyi +120 -44
- reflex/components/radix/themes/components/radio_group.py +5 -2
- reflex/components/radix/themes/components/radio_group.pyi +82 -77
- reflex/components/radix/themes/components/scroll_area.pyi +21 -21
- reflex/components/radix/themes/components/segmented_control.py +2 -1
- reflex/components/radix/themes/components/segmented_control.pyi +52 -46
- reflex/components/radix/themes/components/select.py +2 -1
- reflex/components/radix/themes/components/select.pyi +188 -164
- reflex/components/radix/themes/components/separator.py +5 -2
- reflex/components/radix/themes/components/separator.pyi +40 -24
- reflex/components/radix/themes/components/skeleton.py +7 -6
- reflex/components/radix/themes/components/skeleton.pyi +40 -26
- reflex/components/radix/themes/components/slider.py +2 -1
- reflex/components/radix/themes/components/slider.pyi +40 -31
- reflex/components/radix/themes/components/spinner.py +2 -1
- reflex/components/radix/themes/components/spinner.pyi +31 -22
- reflex/components/radix/themes/components/switch.py +2 -1
- reflex/components/radix/themes/components/switch.pyi +33 -25
- reflex/components/radix/themes/components/table.py +2 -1
- reflex/components/radix/themes/components/table.pyi +265 -404
- reflex/components/radix/themes/components/tabs.py +14 -1
- reflex/components/radix/themes/components/tabs.pyi +113 -92
- reflex/components/radix/themes/components/text_area.py +3 -2
- reflex/components/radix/themes/components/text_area.pyi +64 -66
- reflex/components/radix/themes/components/text_field.py +2 -1
- reflex/components/radix/themes/components/text_field.pyi +116 -140
- reflex/components/radix/themes/components/tooltip.pyi +32 -37
- reflex/components/radix/themes/layout/__init__.pyi +4 -7
- reflex/components/radix/themes/layout/base.py +10 -9
- reflex/components/radix/themes/layout/base.pyi +121 -31
- reflex/components/radix/themes/layout/box.pyi +39 -53
- reflex/components/radix/themes/layout/center.pyi +89 -58
- reflex/components/radix/themes/layout/container.py +4 -1
- reflex/components/radix/themes/layout/container.pyi +51 -58
- reflex/components/radix/themes/layout/flex.py +6 -5
- reflex/components/radix/themes/layout/flex.pyi +91 -61
- reflex/components/radix/themes/layout/grid.py +9 -8
- reflex/components/radix/themes/layout/grid.pyi +116 -64
- reflex/components/radix/themes/layout/list.pyi +173 -233
- reflex/components/radix/themes/layout/section.py +4 -1
- reflex/components/radix/themes/layout/section.pyi +50 -57
- reflex/components/radix/themes/layout/spacer.pyi +89 -58
- reflex/components/radix/themes/layout/stack.pyi +160 -160
- reflex/components/radix/themes/typography/__init__.pyi +0 -2
- reflex/components/radix/themes/typography/blockquote.py +3 -2
- reflex/components/radix/themes/typography/blockquote.pyi +58 -59
- reflex/components/radix/themes/typography/code.py +3 -2
- reflex/components/radix/themes/typography/code.pyi +57 -58
- reflex/components/radix/themes/typography/heading.py +5 -4
- reflex/components/radix/themes/typography/heading.pyi +71 -60
- reflex/components/radix/themes/typography/link.py +4 -3
- reflex/components/radix/themes/typography/link.pyi +74 -82
- reflex/components/radix/themes/typography/text.py +5 -4
- reflex/components/radix/themes/typography/text.pyi +330 -364
- reflex/components/react_player/audio.pyi +37 -36
- reflex/components/react_player/react_player.pyi +37 -38
- reflex/components/react_player/video.pyi +37 -36
- reflex/components/recharts/__init__.pyi +41 -42
- reflex/components/recharts/cartesian.pyi +384 -400
- reflex/components/recharts/charts.pyi +224 -231
- reflex/components/recharts/general.pyi +89 -96
- reflex/components/recharts/polar.pyi +97 -104
- reflex/components/recharts/recharts.pyi +37 -37
- reflex/components/sonner/toast.pyi +22 -27
- reflex/components/suneditor/editor.pyi +53 -58
- reflex/config.py +6 -0
- reflex/constants/event.py +1 -0
- reflex/experimental/layout.pyi +140 -194
- reflex/model.py +14 -2
- reflex/state.py +38 -45
- reflex/style.py +24 -13
- reflex/utils/codespaces.py +94 -0
- reflex/utils/compat.py +21 -0
- reflex/utils/exceptions.py +4 -0
- reflex/utils/format.py +25 -4
- reflex/utils/prerequisites.py +0 -13
- reflex/utils/pyi_generator.py +88 -61
- reflex/utils/types.py +83 -5
- reflex/vars.py +62 -5
- reflex/vars.pyi +23 -11
- {reflex-0.5.5a2.dist-info → reflex-0.5.6a1.dist-info}/METADATA +4 -5
- {reflex-0.5.5a2.dist-info → reflex-0.5.6a1.dist-info}/RECORD +262 -253
- {reflex-0.5.5a2.dist-info → reflex-0.5.6a1.dist-info}/LICENSE +0 -0
- {reflex-0.5.5a2.dist-info → reflex-0.5.6a1.dist-info}/WHEEL +0 -0
- {reflex-0.5.5a2.dist-info → reflex-0.5.6a1.dist-info}/entry_points.txt +0 -0
reflex/experimental/layout.pyi
CHANGED
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
"""Stub file for reflex/experimental/layout.py"""
|
|
2
|
+
|
|
2
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
3
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
4
5
|
# ------------------------------------------------------
|
|
6
|
+
from typing import Any, Callable, Dict, List, Literal, Optional, Union, overload
|
|
5
7
|
|
|
6
|
-
from
|
|
7
|
-
from reflex.vars import Var, BaseVar, ComputedVar
|
|
8
|
-
from reflex.event import EventChain, EventHandler, EventSpec
|
|
9
|
-
from reflex.style import Style
|
|
10
|
-
from typing import Any, List
|
|
11
|
-
from reflex import color, cond
|
|
8
|
+
from reflex import color
|
|
12
9
|
from reflex.components.base.fragment import Fragment
|
|
13
10
|
from reflex.components.component import Component, ComponentNamespace, MemoizationLeaf
|
|
14
|
-
from reflex.components.radix.primitives.drawer import DrawerRoot
|
|
15
|
-
from reflex.components.radix.themes.components.icon_button import IconButton
|
|
11
|
+
from reflex.components.radix.primitives.drawer import DrawerRoot
|
|
16
12
|
from reflex.components.radix.themes.layout.box import Box
|
|
17
|
-
from reflex.
|
|
18
|
-
from reflex.components.radix.themes.layout.stack import HStack
|
|
19
|
-
from reflex.event import call_script
|
|
20
|
-
from reflex.experimental import hooks
|
|
13
|
+
from reflex.event import EventHandler, EventSpec
|
|
21
14
|
from reflex.state import ComponentState
|
|
22
15
|
from reflex.style import Style
|
|
23
|
-
from reflex.vars import Var
|
|
16
|
+
from reflex.vars import BaseVar, Var
|
|
24
17
|
|
|
25
18
|
class Sidebar(Box, MemoizationLeaf):
|
|
26
19
|
@overload
|
|
@@ -28,46 +21,30 @@ class Sidebar(Box, MemoizationLeaf):
|
|
|
28
21
|
def create( # type: ignore
|
|
29
22
|
cls,
|
|
30
23
|
*children,
|
|
31
|
-
access_key: Optional[
|
|
32
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
33
|
-
] = None,
|
|
24
|
+
access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
34
25
|
auto_capitalize: Optional[
|
|
35
|
-
Union[Var[Union[
|
|
26
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
36
27
|
] = None,
|
|
37
28
|
content_editable: Optional[
|
|
38
|
-
Union[Var[Union[
|
|
29
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
39
30
|
] = None,
|
|
40
31
|
context_menu: Optional[
|
|
41
|
-
Union[Var[Union[
|
|
42
|
-
] = None,
|
|
43
|
-
dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
44
|
-
draggable: Optional[
|
|
45
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
32
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
46
33
|
] = None,
|
|
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,
|
|
47
36
|
enter_key_hint: Optional[
|
|
48
|
-
Union[Var[Union[
|
|
49
|
-
] = None,
|
|
50
|
-
hidden: Optional[
|
|
51
|
-
|
|
52
|
-
] = None,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
] = None,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
] = None,
|
|
59
|
-
lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
60
|
-
role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
61
|
-
slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
62
|
-
spell_check: Optional[
|
|
63
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
64
|
-
] = None,
|
|
65
|
-
tab_index: Optional[
|
|
66
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
67
|
-
] = None,
|
|
68
|
-
title: Optional[
|
|
69
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
70
|
-
] = None,
|
|
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,
|
|
71
48
|
style: Optional[Style] = None,
|
|
72
49
|
key: Optional[Any] = None,
|
|
73
50
|
id: Optional[Any] = None,
|
|
@@ -75,51 +52,51 @@ class Sidebar(Box, MemoizationLeaf):
|
|
|
75
52
|
autofocus: Optional[bool] = None,
|
|
76
53
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
77
54
|
on_blur: Optional[
|
|
78
|
-
Union[EventHandler, EventSpec, list,
|
|
55
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
79
56
|
] = None,
|
|
80
57
|
on_click: Optional[
|
|
81
|
-
Union[EventHandler, EventSpec, list,
|
|
58
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
82
59
|
] = None,
|
|
83
60
|
on_context_menu: Optional[
|
|
84
|
-
Union[EventHandler, EventSpec, list,
|
|
61
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
85
62
|
] = None,
|
|
86
63
|
on_double_click: Optional[
|
|
87
|
-
Union[EventHandler, EventSpec, list,
|
|
64
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
88
65
|
] = None,
|
|
89
66
|
on_focus: Optional[
|
|
90
|
-
Union[EventHandler, EventSpec, list,
|
|
67
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
91
68
|
] = None,
|
|
92
69
|
on_mount: Optional[
|
|
93
|
-
Union[EventHandler, EventSpec, list,
|
|
70
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
94
71
|
] = None,
|
|
95
72
|
on_mouse_down: Optional[
|
|
96
|
-
Union[EventHandler, EventSpec, list,
|
|
73
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
97
74
|
] = None,
|
|
98
75
|
on_mouse_enter: Optional[
|
|
99
|
-
Union[EventHandler, EventSpec, list,
|
|
76
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
100
77
|
] = None,
|
|
101
78
|
on_mouse_leave: Optional[
|
|
102
|
-
Union[EventHandler, EventSpec, list,
|
|
79
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
103
80
|
] = None,
|
|
104
81
|
on_mouse_move: Optional[
|
|
105
|
-
Union[EventHandler, EventSpec, list,
|
|
82
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
106
83
|
] = None,
|
|
107
84
|
on_mouse_out: Optional[
|
|
108
|
-
Union[EventHandler, EventSpec, list,
|
|
85
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
109
86
|
] = None,
|
|
110
87
|
on_mouse_over: Optional[
|
|
111
|
-
Union[EventHandler, EventSpec, list,
|
|
88
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
112
89
|
] = None,
|
|
113
90
|
on_mouse_up: Optional[
|
|
114
|
-
Union[EventHandler, EventSpec, list,
|
|
91
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
115
92
|
] = None,
|
|
116
93
|
on_scroll: Optional[
|
|
117
|
-
Union[EventHandler, EventSpec, list,
|
|
94
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
118
95
|
] = None,
|
|
119
96
|
on_unmount: Optional[
|
|
120
|
-
Union[EventHandler, EventSpec, list,
|
|
97
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
121
98
|
] = None,
|
|
122
|
-
**props
|
|
99
|
+
**props,
|
|
123
100
|
) -> "Sidebar":
|
|
124
101
|
"""Create the sidebar component.
|
|
125
102
|
|
|
@@ -131,6 +108,7 @@ class Sidebar(Box, MemoizationLeaf):
|
|
|
131
108
|
The sidebar component.
|
|
132
109
|
"""
|
|
133
110
|
...
|
|
111
|
+
|
|
134
112
|
def add_style(self) -> dict[str, Any] | None: ...
|
|
135
113
|
def add_hooks(self) -> List[Var]: ...
|
|
136
114
|
|
|
@@ -150,7 +128,7 @@ class DrawerSidebar(DrawerRoot):
|
|
|
150
128
|
open: Optional[Union[Var[bool], bool]] = None,
|
|
151
129
|
should_scale_background: Optional[Union[Var[bool], bool]] = None,
|
|
152
130
|
close_threshold: Optional[Union[Var[float], float]] = None,
|
|
153
|
-
snap_points: Optional[List[Union[
|
|
131
|
+
snap_points: Optional[List[Union[float, str]]] = None,
|
|
154
132
|
fade_from_index: Optional[Union[Var[int], int]] = None,
|
|
155
133
|
scroll_lock_timeout: Optional[Union[Var[int], int]] = None,
|
|
156
134
|
modal: Optional[Union[Var[bool], bool]] = None,
|
|
@@ -169,54 +147,54 @@ class DrawerSidebar(DrawerRoot):
|
|
|
169
147
|
autofocus: Optional[bool] = None,
|
|
170
148
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
171
149
|
on_blur: Optional[
|
|
172
|
-
Union[EventHandler, EventSpec, list,
|
|
150
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
173
151
|
] = None,
|
|
174
152
|
on_click: Optional[
|
|
175
|
-
Union[EventHandler, EventSpec, list,
|
|
153
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
176
154
|
] = None,
|
|
177
155
|
on_context_menu: Optional[
|
|
178
|
-
Union[EventHandler, EventSpec, list,
|
|
156
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
179
157
|
] = None,
|
|
180
158
|
on_double_click: Optional[
|
|
181
|
-
Union[EventHandler, EventSpec, list,
|
|
159
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
182
160
|
] = None,
|
|
183
161
|
on_focus: Optional[
|
|
184
|
-
Union[EventHandler, EventSpec, list,
|
|
162
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
185
163
|
] = None,
|
|
186
164
|
on_mount: Optional[
|
|
187
|
-
Union[EventHandler, EventSpec, list,
|
|
165
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
188
166
|
] = None,
|
|
189
167
|
on_mouse_down: Optional[
|
|
190
|
-
Union[EventHandler, EventSpec, list,
|
|
168
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
191
169
|
] = None,
|
|
192
170
|
on_mouse_enter: Optional[
|
|
193
|
-
Union[EventHandler, EventSpec, list,
|
|
171
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
194
172
|
] = None,
|
|
195
173
|
on_mouse_leave: Optional[
|
|
196
|
-
Union[EventHandler, EventSpec, list,
|
|
174
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
197
175
|
] = None,
|
|
198
176
|
on_mouse_move: Optional[
|
|
199
|
-
Union[EventHandler, EventSpec, list,
|
|
177
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
200
178
|
] = None,
|
|
201
179
|
on_mouse_out: Optional[
|
|
202
|
-
Union[EventHandler, EventSpec, list,
|
|
180
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
203
181
|
] = None,
|
|
204
182
|
on_mouse_over: Optional[
|
|
205
|
-
Union[EventHandler, EventSpec, list,
|
|
183
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
206
184
|
] = None,
|
|
207
185
|
on_mouse_up: Optional[
|
|
208
|
-
Union[EventHandler, EventSpec, list,
|
|
186
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
209
187
|
] = None,
|
|
210
188
|
on_open_change: Optional[
|
|
211
|
-
Union[EventHandler, EventSpec, list,
|
|
189
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
212
190
|
] = None,
|
|
213
191
|
on_scroll: Optional[
|
|
214
|
-
Union[EventHandler, EventSpec, list,
|
|
192
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
215
193
|
] = None,
|
|
216
194
|
on_unmount: Optional[
|
|
217
|
-
Union[EventHandler, EventSpec, list,
|
|
195
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
218
196
|
] = None,
|
|
219
|
-
**props
|
|
197
|
+
**props,
|
|
220
198
|
) -> "DrawerSidebar":
|
|
221
199
|
"""Create the sidebar component.
|
|
222
200
|
|
|
@@ -250,51 +228,51 @@ class SidebarTrigger(Fragment):
|
|
|
250
228
|
autofocus: Optional[bool] = None,
|
|
251
229
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
252
230
|
on_blur: Optional[
|
|
253
|
-
Union[EventHandler, EventSpec, list,
|
|
231
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
254
232
|
] = None,
|
|
255
233
|
on_click: Optional[
|
|
256
|
-
Union[EventHandler, EventSpec, list,
|
|
234
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
257
235
|
] = None,
|
|
258
236
|
on_context_menu: Optional[
|
|
259
|
-
Union[EventHandler, EventSpec, list,
|
|
237
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
260
238
|
] = None,
|
|
261
239
|
on_double_click: Optional[
|
|
262
|
-
Union[EventHandler, EventSpec, list,
|
|
240
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
263
241
|
] = None,
|
|
264
242
|
on_focus: Optional[
|
|
265
|
-
Union[EventHandler, EventSpec, list,
|
|
243
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
266
244
|
] = None,
|
|
267
245
|
on_mount: Optional[
|
|
268
|
-
Union[EventHandler, EventSpec, list,
|
|
246
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
269
247
|
] = None,
|
|
270
248
|
on_mouse_down: Optional[
|
|
271
|
-
Union[EventHandler, EventSpec, list,
|
|
249
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
272
250
|
] = None,
|
|
273
251
|
on_mouse_enter: Optional[
|
|
274
|
-
Union[EventHandler, EventSpec, list,
|
|
252
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
275
253
|
] = None,
|
|
276
254
|
on_mouse_leave: Optional[
|
|
277
|
-
Union[EventHandler, EventSpec, list,
|
|
255
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
278
256
|
] = None,
|
|
279
257
|
on_mouse_move: Optional[
|
|
280
|
-
Union[EventHandler, EventSpec, list,
|
|
258
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
281
259
|
] = None,
|
|
282
260
|
on_mouse_out: Optional[
|
|
283
|
-
Union[EventHandler, EventSpec, list,
|
|
261
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
284
262
|
] = None,
|
|
285
263
|
on_mouse_over: Optional[
|
|
286
|
-
Union[EventHandler, EventSpec, list,
|
|
264
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
287
265
|
] = None,
|
|
288
266
|
on_mouse_up: Optional[
|
|
289
|
-
Union[EventHandler, EventSpec, list,
|
|
267
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
290
268
|
] = None,
|
|
291
269
|
on_scroll: Optional[
|
|
292
|
-
Union[EventHandler, EventSpec, list,
|
|
270
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
293
271
|
] = None,
|
|
294
272
|
on_unmount: Optional[
|
|
295
|
-
Union[EventHandler, EventSpec, list,
|
|
273
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
296
274
|
] = None,
|
|
297
|
-
**props
|
|
275
|
+
**props,
|
|
298
276
|
) -> "SidebarTrigger":
|
|
299
277
|
"""Create the sidebar trigger component.
|
|
300
278
|
|
|
@@ -314,46 +292,30 @@ class Layout(Box):
|
|
|
314
292
|
cls,
|
|
315
293
|
*children,
|
|
316
294
|
sidebar: Optional[Component] = None,
|
|
317
|
-
access_key: Optional[
|
|
318
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
319
|
-
] = None,
|
|
295
|
+
access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
320
296
|
auto_capitalize: Optional[
|
|
321
|
-
Union[Var[Union[
|
|
297
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
322
298
|
] = None,
|
|
323
299
|
content_editable: Optional[
|
|
324
|
-
Union[Var[Union[
|
|
300
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
325
301
|
] = None,
|
|
326
302
|
context_menu: Optional[
|
|
327
|
-
Union[Var[Union[
|
|
328
|
-
] = None,
|
|
329
|
-
dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
330
|
-
draggable: Optional[
|
|
331
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
303
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
332
304
|
] = None,
|
|
305
|
+
dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
306
|
+
draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
333
307
|
enter_key_hint: Optional[
|
|
334
|
-
Union[Var[Union[
|
|
335
|
-
] = None,
|
|
336
|
-
hidden: Optional[
|
|
337
|
-
|
|
338
|
-
] = None,
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
] = None,
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
] = None,
|
|
345
|
-
lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
346
|
-
role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
347
|
-
slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
348
|
-
spell_check: Optional[
|
|
349
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
350
|
-
] = None,
|
|
351
|
-
tab_index: Optional[
|
|
352
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
353
|
-
] = None,
|
|
354
|
-
title: Optional[
|
|
355
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
356
|
-
] = None,
|
|
308
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
309
|
+
] = None,
|
|
310
|
+
hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
311
|
+
input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
312
|
+
item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
313
|
+
lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
314
|
+
role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
315
|
+
slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
316
|
+
spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
317
|
+
tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
318
|
+
title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
357
319
|
style: Optional[Style] = None,
|
|
358
320
|
key: Optional[Any] = None,
|
|
359
321
|
id: Optional[Any] = None,
|
|
@@ -361,51 +323,51 @@ class Layout(Box):
|
|
|
361
323
|
autofocus: Optional[bool] = None,
|
|
362
324
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
363
325
|
on_blur: Optional[
|
|
364
|
-
Union[EventHandler, EventSpec, list,
|
|
326
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
365
327
|
] = None,
|
|
366
328
|
on_click: Optional[
|
|
367
|
-
Union[EventHandler, EventSpec, list,
|
|
329
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
368
330
|
] = None,
|
|
369
331
|
on_context_menu: Optional[
|
|
370
|
-
Union[EventHandler, EventSpec, list,
|
|
332
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
371
333
|
] = None,
|
|
372
334
|
on_double_click: Optional[
|
|
373
|
-
Union[EventHandler, EventSpec, list,
|
|
335
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
374
336
|
] = None,
|
|
375
337
|
on_focus: Optional[
|
|
376
|
-
Union[EventHandler, EventSpec, list,
|
|
338
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
377
339
|
] = None,
|
|
378
340
|
on_mount: Optional[
|
|
379
|
-
Union[EventHandler, EventSpec, list,
|
|
341
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
380
342
|
] = None,
|
|
381
343
|
on_mouse_down: Optional[
|
|
382
|
-
Union[EventHandler, EventSpec, list,
|
|
344
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
383
345
|
] = None,
|
|
384
346
|
on_mouse_enter: Optional[
|
|
385
|
-
Union[EventHandler, EventSpec, list,
|
|
347
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
386
348
|
] = None,
|
|
387
349
|
on_mouse_leave: Optional[
|
|
388
|
-
Union[EventHandler, EventSpec, list,
|
|
350
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
389
351
|
] = None,
|
|
390
352
|
on_mouse_move: Optional[
|
|
391
|
-
Union[EventHandler, EventSpec, list,
|
|
353
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
392
354
|
] = None,
|
|
393
355
|
on_mouse_out: Optional[
|
|
394
|
-
Union[EventHandler, EventSpec, list,
|
|
356
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
395
357
|
] = None,
|
|
396
358
|
on_mouse_over: Optional[
|
|
397
|
-
Union[EventHandler, EventSpec, list,
|
|
359
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
398
360
|
] = None,
|
|
399
361
|
on_mouse_up: Optional[
|
|
400
|
-
Union[EventHandler, EventSpec, list,
|
|
362
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
401
363
|
] = None,
|
|
402
364
|
on_scroll: Optional[
|
|
403
|
-
Union[EventHandler, EventSpec, list,
|
|
365
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
404
366
|
] = None,
|
|
405
367
|
on_unmount: Optional[
|
|
406
|
-
Union[EventHandler, EventSpec, list,
|
|
368
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
407
369
|
] = None,
|
|
408
|
-
**props
|
|
370
|
+
**props,
|
|
409
371
|
) -> "Layout":
|
|
410
372
|
"""Create the layout component.
|
|
411
373
|
|
|
@@ -428,46 +390,30 @@ class LayoutNamespace(ComponentNamespace):
|
|
|
428
390
|
def __call__(
|
|
429
391
|
*children,
|
|
430
392
|
sidebar: Optional[Component] = None,
|
|
431
|
-
access_key: Optional[
|
|
432
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
433
|
-
] = None,
|
|
393
|
+
access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
434
394
|
auto_capitalize: Optional[
|
|
435
|
-
Union[Var[Union[
|
|
395
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
436
396
|
] = None,
|
|
437
397
|
content_editable: Optional[
|
|
438
|
-
Union[Var[Union[
|
|
398
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
439
399
|
] = None,
|
|
440
400
|
context_menu: Optional[
|
|
441
|
-
Union[Var[Union[
|
|
442
|
-
] = None,
|
|
443
|
-
dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
444
|
-
draggable: Optional[
|
|
445
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
401
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
446
402
|
] = None,
|
|
403
|
+
dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
404
|
+
draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
447
405
|
enter_key_hint: Optional[
|
|
448
|
-
Union[Var[Union[
|
|
449
|
-
] = None,
|
|
450
|
-
hidden: Optional[
|
|
451
|
-
|
|
452
|
-
] = None,
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
] = None,
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
] = None,
|
|
459
|
-
lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
460
|
-
role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
461
|
-
slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
462
|
-
spell_check: Optional[
|
|
463
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
464
|
-
] = None,
|
|
465
|
-
tab_index: Optional[
|
|
466
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
467
|
-
] = None,
|
|
468
|
-
title: Optional[
|
|
469
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
470
|
-
] = None,
|
|
406
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
407
|
+
] = None,
|
|
408
|
+
hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
409
|
+
input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
410
|
+
item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
411
|
+
lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
412
|
+
role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
413
|
+
slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
414
|
+
spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
415
|
+
tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
416
|
+
title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
471
417
|
style: Optional[Style] = None,
|
|
472
418
|
key: Optional[Any] = None,
|
|
473
419
|
id: Optional[Any] = None,
|
|
@@ -475,51 +421,51 @@ class LayoutNamespace(ComponentNamespace):
|
|
|
475
421
|
autofocus: Optional[bool] = None,
|
|
476
422
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
477
423
|
on_blur: Optional[
|
|
478
|
-
Union[EventHandler, EventSpec, list,
|
|
424
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
479
425
|
] = None,
|
|
480
426
|
on_click: Optional[
|
|
481
|
-
Union[EventHandler, EventSpec, list,
|
|
427
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
482
428
|
] = None,
|
|
483
429
|
on_context_menu: Optional[
|
|
484
|
-
Union[EventHandler, EventSpec, list,
|
|
430
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
485
431
|
] = None,
|
|
486
432
|
on_double_click: Optional[
|
|
487
|
-
Union[EventHandler, EventSpec, list,
|
|
433
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
488
434
|
] = None,
|
|
489
435
|
on_focus: Optional[
|
|
490
|
-
Union[EventHandler, EventSpec, list,
|
|
436
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
491
437
|
] = None,
|
|
492
438
|
on_mount: Optional[
|
|
493
|
-
Union[EventHandler, EventSpec, list,
|
|
439
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
494
440
|
] = None,
|
|
495
441
|
on_mouse_down: Optional[
|
|
496
|
-
Union[EventHandler, EventSpec, list,
|
|
442
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
497
443
|
] = None,
|
|
498
444
|
on_mouse_enter: Optional[
|
|
499
|
-
Union[EventHandler, EventSpec, list,
|
|
445
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
500
446
|
] = None,
|
|
501
447
|
on_mouse_leave: Optional[
|
|
502
|
-
Union[EventHandler, EventSpec, list,
|
|
448
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
503
449
|
] = None,
|
|
504
450
|
on_mouse_move: Optional[
|
|
505
|
-
Union[EventHandler, EventSpec, list,
|
|
451
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
506
452
|
] = None,
|
|
507
453
|
on_mouse_out: Optional[
|
|
508
|
-
Union[EventHandler, EventSpec, list,
|
|
454
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
509
455
|
] = None,
|
|
510
456
|
on_mouse_over: Optional[
|
|
511
|
-
Union[EventHandler, EventSpec, list,
|
|
457
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
512
458
|
] = None,
|
|
513
459
|
on_mouse_up: Optional[
|
|
514
|
-
Union[EventHandler, EventSpec, list,
|
|
460
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
515
461
|
] = None,
|
|
516
462
|
on_scroll: Optional[
|
|
517
|
-
Union[EventHandler, EventSpec, list,
|
|
463
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
518
464
|
] = None,
|
|
519
465
|
on_unmount: Optional[
|
|
520
|
-
Union[EventHandler, EventSpec, list,
|
|
466
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
521
467
|
] = None,
|
|
522
|
-
**props
|
|
468
|
+
**props,
|
|
523
469
|
) -> "Layout":
|
|
524
470
|
"""Create the layout component.
|
|
525
471
|
|
reflex/model.py
CHANGED
|
@@ -24,7 +24,7 @@ from reflex.utils import console
|
|
|
24
24
|
from reflex.utils.compat import sqlmodel
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
def get_engine(url: str | None = None):
|
|
27
|
+
def get_engine(url: str | None = None) -> sqlalchemy.engine.Engine:
|
|
28
28
|
"""Get the database engine.
|
|
29
29
|
|
|
30
30
|
Args:
|
|
@@ -396,7 +396,7 @@ ModelRegistry.register(Model)
|
|
|
396
396
|
|
|
397
397
|
|
|
398
398
|
def session(url: str | None = None) -> sqlmodel.Session:
|
|
399
|
-
"""Get a session to interact with the database.
|
|
399
|
+
"""Get a sqlmodel session to interact with the database.
|
|
400
400
|
|
|
401
401
|
Args:
|
|
402
402
|
url: The database url.
|
|
@@ -405,3 +405,15 @@ def session(url: str | None = None) -> sqlmodel.Session:
|
|
|
405
405
|
A database session.
|
|
406
406
|
"""
|
|
407
407
|
return sqlmodel.Session(get_engine(url))
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
def sqla_session(url: str | None = None) -> sqlalchemy.orm.Session:
|
|
411
|
+
"""Get a bare sqlalchemy session to interact with the database.
|
|
412
|
+
|
|
413
|
+
Args:
|
|
414
|
+
url: The database url.
|
|
415
|
+
|
|
416
|
+
Returns:
|
|
417
|
+
A database session.
|
|
418
|
+
"""
|
|
419
|
+
return sqlalchemy.orm.Session(get_engine(url))
|