reflex 0.5.9.dev1__py3-none-any.whl → 0.5.10__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/web/utils/client_side_routing.js +6 -1
- reflex/__init__.py +21 -2
- reflex/__init__.pyi +0 -1
- reflex/app.py +1 -1
- reflex/components/__init__.py +0 -1
- reflex/components/__init__.pyi +0 -1
- reflex/components/markdown/markdown.py +1 -1
- reflex/components/recharts/cartesian.py +3 -0
- reflex/components/recharts/cartesian.pyi +2 -0
- reflex/components/sonner/toast.py +27 -1
- reflex/components/sonner/toast.pyi +5 -0
- reflex/constants/base.py +2 -0
- reflex/constants/installer.py +2 -0
- reflex/experimental/hooks.py +1 -1
- reflex/reflex.py +0 -15
- reflex/state.py +22 -22
- reflex/testing.py +8 -3
- reflex/utils/net.py +43 -0
- reflex/utils/prerequisites.py +27 -126
- reflex/utils/registry.py +48 -0
- reflex/utils/types.py +1 -1
- reflex/vars.py +4 -2
- {reflex-0.5.9.dev1.dist-info → reflex-0.5.10.dist-info}/METADATA +2 -1
- {reflex-0.5.9.dev1.dist-info → reflex-0.5.10.dist-info}/RECORD +27 -168
- reflex/components/chakra/__init__.py +0 -204
- reflex/components/chakra/base.py +0 -210
- reflex/components/chakra/base.pyi +0 -319
- reflex/components/chakra/datadisplay/__init__.py +0 -10
- reflex/components/chakra/datadisplay/badge.py +0 -16
- reflex/components/chakra/datadisplay/badge.pyi +0 -96
- reflex/components/chakra/datadisplay/code.py +0 -11
- reflex/components/chakra/datadisplay/code.pyi +0 -87
- reflex/components/chakra/datadisplay/divider.py +0 -20
- reflex/components/chakra/datadisplay/divider.pyi +0 -100
- reflex/components/chakra/datadisplay/keyboard_key.py +0 -9
- reflex/components/chakra/datadisplay/keyboard_key.pyi +0 -87
- reflex/components/chakra/datadisplay/list.py +0 -60
- reflex/components/chakra/datadisplay/list.pyi +0 -339
- reflex/components/chakra/datadisplay/stat.py +0 -80
- reflex/components/chakra/datadisplay/stat.pyi +0 -477
- reflex/components/chakra/datadisplay/table.py +0 -305
- reflex/components/chakra/datadisplay/table.pyi +0 -737
- reflex/components/chakra/datadisplay/tag.py +0 -85
- reflex/components/chakra/datadisplay/tag.pyi +0 -433
- reflex/components/chakra/disclosure/__init__.py +0 -14
- reflex/components/chakra/disclosure/accordion.py +0 -110
- reflex/components/chakra/disclosure/accordion.pyi +0 -411
- reflex/components/chakra/disclosure/tabs.py +0 -117
- reflex/components/chakra/disclosure/tabs.pyi +0 -496
- reflex/components/chakra/disclosure/transition.py +0 -73
- reflex/components/chakra/disclosure/transition.pyi +0 -509
- reflex/components/chakra/disclosure/visuallyhidden.py +0 -9
- reflex/components/chakra/disclosure/visuallyhidden.pyi +0 -87
- reflex/components/chakra/feedback/__init__.py +0 -7
- reflex/components/chakra/feedback/alert.py +0 -68
- reflex/components/chakra/feedback/alert.pyi +0 -335
- reflex/components/chakra/feedback/circularprogress.py +0 -68
- reflex/components/chakra/feedback/circularprogress.pyi +0 -185
- reflex/components/chakra/feedback/progress.py +0 -33
- reflex/components/chakra/feedback/progress.pyi +0 -101
- reflex/components/chakra/feedback/skeleton.py +0 -70
- reflex/components/chakra/feedback/skeleton.pyi +0 -271
- reflex/components/chakra/feedback/spinner.py +0 -25
- reflex/components/chakra/feedback/spinner.pyi +0 -102
- reflex/components/chakra/forms/__init__.py +0 -49
- reflex/components/chakra/forms/button.py +0 -83
- reflex/components/chakra/forms/button.pyi +0 -262
- reflex/components/chakra/forms/checkbox.py +0 -77
- reflex/components/chakra/forms/checkbox.pyi +0 -247
- reflex/components/chakra/forms/colormodeswitch.py +0 -104
- reflex/components/chakra/forms/colormodeswitch.pyi +0 -473
- reflex/components/chakra/forms/date_picker.py +0 -11
- reflex/components/chakra/forms/date_picker.pyi +0 -129
- reflex/components/chakra/forms/date_time_picker.py +0 -11
- reflex/components/chakra/forms/date_time_picker.pyi +0 -129
- reflex/components/chakra/forms/editable.py +0 -67
- reflex/components/chakra/forms/editable.pyi +0 -343
- reflex/components/chakra/forms/email.py +0 -11
- reflex/components/chakra/forms/email.pyi +0 -129
- reflex/components/chakra/forms/form.py +0 -103
- reflex/components/chakra/forms/form.pyi +0 -484
- reflex/components/chakra/forms/iconbutton.py +0 -38
- reflex/components/chakra/forms/iconbutton.pyi +0 -108
- reflex/components/chakra/forms/input.py +0 -130
- reflex/components/chakra/forms/input.pyi +0 -566
- reflex/components/chakra/forms/multiselect.py +0 -355
- reflex/components/chakra/forms/numberinput.py +0 -128
- reflex/components/chakra/forms/numberinput.pyi +0 -442
- reflex/components/chakra/forms/password.py +0 -11
- reflex/components/chakra/forms/password.pyi +0 -129
- reflex/components/chakra/forms/pininput.py +0 -201
- reflex/components/chakra/forms/pininput.pyi +0 -215
- reflex/components/chakra/forms/radio.py +0 -101
- reflex/components/chakra/forms/radio.pyi +0 -197
- reflex/components/chakra/forms/rangeslider.py +0 -149
- reflex/components/chakra/forms/rangeslider.pyi +0 -354
- reflex/components/chakra/forms/select.py +0 -103
- reflex/components/chakra/forms/select.pyi +0 -204
- reflex/components/chakra/forms/slider.py +0 -130
- reflex/components/chakra/forms/slider.pyi +0 -449
- reflex/components/chakra/forms/switch.py +0 -49
- reflex/components/chakra/forms/switch.pyi +0 -159
- reflex/components/chakra/forms/textarea.py +0 -79
- reflex/components/chakra/forms/textarea.pyi +0 -123
- reflex/components/chakra/forms/time_picker.py +0 -11
- reflex/components/chakra/forms/time_picker.pyi +0 -129
- reflex/components/chakra/layout/__init__.py +0 -14
- reflex/components/chakra/layout/aspect_ratio.py +0 -13
- reflex/components/chakra/layout/aspect_ratio.pyi +0 -89
- reflex/components/chakra/layout/box.py +0 -31
- reflex/components/chakra/layout/box.pyi +0 -93
- reflex/components/chakra/layout/card.py +0 -100
- reflex/components/chakra/layout/card.pyi +0 -379
- reflex/components/chakra/layout/center.py +0 -21
- reflex/components/chakra/layout/center.pyi +0 -239
- reflex/components/chakra/layout/container.py +0 -13
- reflex/components/chakra/layout/container.pyi +0 -89
- reflex/components/chakra/layout/flex.py +0 -33
- reflex/components/chakra/layout/flex.pyi +0 -101
- reflex/components/chakra/layout/grid.py +0 -125
- reflex/components/chakra/layout/grid.pyi +0 -293
- reflex/components/chakra/layout/spacer.py +0 -9
- reflex/components/chakra/layout/spacer.pyi +0 -87
- reflex/components/chakra/layout/stack.py +0 -48
- reflex/components/chakra/layout/stack.pyi +0 -305
- reflex/components/chakra/layout/wrap.py +0 -57
- reflex/components/chakra/layout/wrap.pyi +0 -179
- reflex/components/chakra/media/__init__.py +0 -7
- reflex/components/chakra/media/avatar.py +0 -58
- reflex/components/chakra/media/avatar.pyi +0 -267
- reflex/components/chakra/media/icon.py +0 -111
- reflex/components/chakra/media/icon.pyi +0 -171
- reflex/components/chakra/media/image.py +0 -74
- reflex/components/chakra/media/image.pyi +0 -118
- reflex/components/chakra/navigation/__init__.py +0 -18
- reflex/components/chakra/navigation/breadcrumb.py +0 -98
- reflex/components/chakra/navigation/breadcrumb.pyi +0 -351
- reflex/components/chakra/navigation/link.py +0 -62
- reflex/components/chakra/navigation/link.pyi +0 -105
- reflex/components/chakra/navigation/linkoverlay.py +0 -22
- reflex/components/chakra/navigation/linkoverlay.pyi +0 -167
- reflex/components/chakra/navigation/stepper.py +0 -113
- reflex/components/chakra/navigation/stepper.pyi +0 -762
- reflex/components/chakra/overlay/__init__.py +0 -50
- reflex/components/chakra/overlay/alertdialog.py +0 -153
- reflex/components/chakra/overlay/alertdialog.pyi +0 -612
- reflex/components/chakra/overlay/drawer.py +0 -168
- reflex/components/chakra/overlay/drawer.pyi +0 -652
- reflex/components/chakra/overlay/menu.py +0 -225
- reflex/components/chakra/overlay/menu.pyi +0 -708
- reflex/components/chakra/overlay/modal.py +0 -166
- reflex/components/chakra/overlay/modal.pyi +0 -600
- reflex/components/chakra/overlay/popover.py +0 -183
- reflex/components/chakra/overlay/popover.pyi +0 -757
- reflex/components/chakra/overlay/tooltip.py +0 -70
- reflex/components/chakra/overlay/tooltip.pyi +0 -129
- reflex/components/chakra/typography/__init__.py +0 -10
- reflex/components/chakra/typography/heading.py +0 -16
- reflex/components/chakra/typography/heading.pyi +0 -96
- reflex/components/chakra/typography/highlight.py +0 -23
- reflex/components/chakra/typography/highlight.pyi +0 -91
- reflex/components/chakra/typography/span.py +0 -15
- reflex/components/chakra/typography/span.pyi +0 -89
- reflex/components/chakra/typography/text.py +0 -18
- reflex/components/chakra/typography/text.pyi +0 -91
- reflex/components/media/__init__.py +0 -1
- reflex/components/media/icon.py +0 -3
- {reflex-0.5.9.dev1.dist-info → reflex-0.5.10.dist-info}/LICENSE +0 -0
- {reflex-0.5.9.dev1.dist-info → reflex-0.5.10.dist-info}/WHEEL +0 -0
- {reflex-0.5.9.dev1.dist-info → reflex-0.5.10.dist-info}/entry_points.txt +0 -0
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"""Stub file for reflex/components/chakra/layout/spacer.py"""
|
|
2
|
-
|
|
3
|
-
# ------------------- DO NOT EDIT ----------------------
|
|
4
|
-
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
|
-
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Callable, Dict, Optional, Union, overload
|
|
7
|
-
|
|
8
|
-
from reflex.components.chakra import ChakraComponent
|
|
9
|
-
from reflex.event import EventHandler, EventSpec
|
|
10
|
-
from reflex.style import Style
|
|
11
|
-
from reflex.vars import BaseVar, Var
|
|
12
|
-
|
|
13
|
-
class Spacer(ChakraComponent):
|
|
14
|
-
@overload
|
|
15
|
-
@classmethod
|
|
16
|
-
def create( # type: ignore
|
|
17
|
-
cls,
|
|
18
|
-
*children,
|
|
19
|
-
style: Optional[Style] = None,
|
|
20
|
-
key: Optional[Any] = None,
|
|
21
|
-
id: Optional[Any] = None,
|
|
22
|
-
class_name: Optional[Any] = None,
|
|
23
|
-
autofocus: Optional[bool] = None,
|
|
24
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
25
|
-
on_blur: Optional[
|
|
26
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
27
|
-
] = None,
|
|
28
|
-
on_click: Optional[
|
|
29
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
30
|
-
] = None,
|
|
31
|
-
on_context_menu: Optional[
|
|
32
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
33
|
-
] = None,
|
|
34
|
-
on_double_click: Optional[
|
|
35
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
36
|
-
] = None,
|
|
37
|
-
on_focus: Optional[
|
|
38
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
39
|
-
] = None,
|
|
40
|
-
on_mount: Optional[
|
|
41
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
42
|
-
] = None,
|
|
43
|
-
on_mouse_down: Optional[
|
|
44
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
45
|
-
] = None,
|
|
46
|
-
on_mouse_enter: Optional[
|
|
47
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
48
|
-
] = None,
|
|
49
|
-
on_mouse_leave: Optional[
|
|
50
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
51
|
-
] = None,
|
|
52
|
-
on_mouse_move: Optional[
|
|
53
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
54
|
-
] = None,
|
|
55
|
-
on_mouse_out: Optional[
|
|
56
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
57
|
-
] = None,
|
|
58
|
-
on_mouse_over: Optional[
|
|
59
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
60
|
-
] = None,
|
|
61
|
-
on_mouse_up: Optional[
|
|
62
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
63
|
-
] = None,
|
|
64
|
-
on_scroll: Optional[
|
|
65
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
66
|
-
] = None,
|
|
67
|
-
on_unmount: Optional[
|
|
68
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
69
|
-
] = None,
|
|
70
|
-
**props,
|
|
71
|
-
) -> "Spacer":
|
|
72
|
-
"""Create the component.
|
|
73
|
-
|
|
74
|
-
Args:
|
|
75
|
-
*children: The children of the component.
|
|
76
|
-
style: The style of the component.
|
|
77
|
-
key: A unique key for the component.
|
|
78
|
-
id: The id for the component.
|
|
79
|
-
class_name: The class name for the component.
|
|
80
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
81
|
-
custom_attrs: custom attribute
|
|
82
|
-
**props: The props of the component.
|
|
83
|
-
|
|
84
|
-
Returns:
|
|
85
|
-
The component.
|
|
86
|
-
"""
|
|
87
|
-
...
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"""Container to stack elements with spacing."""
|
|
2
|
-
|
|
3
|
-
from typing import List, Union
|
|
4
|
-
|
|
5
|
-
from reflex.components.chakra import ChakraComponent, LiteralStackDirection
|
|
6
|
-
from reflex.vars import Var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class Stack(ChakraComponent):
|
|
10
|
-
"""Container to stack elements with spacing."""
|
|
11
|
-
|
|
12
|
-
tag = "Stack"
|
|
13
|
-
|
|
14
|
-
# Shorthand for alignItems style prop
|
|
15
|
-
align_items: Var[str]
|
|
16
|
-
|
|
17
|
-
# The direction to stack the items.
|
|
18
|
-
direction: Var[Union[LiteralStackDirection, List[str]]]
|
|
19
|
-
|
|
20
|
-
# If true the items will be stacked horizontally.
|
|
21
|
-
is_inline: Var[bool]
|
|
22
|
-
|
|
23
|
-
# Shorthand for justifyContent style prop
|
|
24
|
-
justify_content: Var[str]
|
|
25
|
-
|
|
26
|
-
# If true, the children will be wrapped in a Box, and the Box will take the spacing props
|
|
27
|
-
should_wrap_children: Var[bool]
|
|
28
|
-
|
|
29
|
-
# The space between each stack item
|
|
30
|
-
spacing: Var[str]
|
|
31
|
-
|
|
32
|
-
# Shorthand for flexWrap style prop
|
|
33
|
-
wrap: Var[str]
|
|
34
|
-
|
|
35
|
-
# Alignment of contents.
|
|
36
|
-
justify: Var[str]
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
class Hstack(Stack):
|
|
40
|
-
"""Stack items horizontally."""
|
|
41
|
-
|
|
42
|
-
tag = "HStack"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
class Vstack(Stack):
|
|
46
|
-
"""Stack items vertically."""
|
|
47
|
-
|
|
48
|
-
tag = "VStack"
|
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
"""Stub file for reflex/components/chakra/layout/stack.py"""
|
|
2
|
-
|
|
3
|
-
# ------------------- DO NOT EDIT ----------------------
|
|
4
|
-
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
|
-
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Callable, Dict, List, Literal, Optional, Union, overload
|
|
7
|
-
|
|
8
|
-
from reflex.components.chakra import ChakraComponent
|
|
9
|
-
from reflex.event import EventHandler, EventSpec
|
|
10
|
-
from reflex.style import Style
|
|
11
|
-
from reflex.vars import BaseVar, Var
|
|
12
|
-
|
|
13
|
-
class Stack(ChakraComponent):
|
|
14
|
-
@overload
|
|
15
|
-
@classmethod
|
|
16
|
-
def create( # type: ignore
|
|
17
|
-
cls,
|
|
18
|
-
*children,
|
|
19
|
-
align_items: Optional[Union[Var[str], str]] = None,
|
|
20
|
-
direction: Optional[
|
|
21
|
-
Union[
|
|
22
|
-
Var[Union[List[str], Literal["row", "column"]]],
|
|
23
|
-
Literal["row", "column"],
|
|
24
|
-
List[str],
|
|
25
|
-
]
|
|
26
|
-
] = None,
|
|
27
|
-
is_inline: Optional[Union[Var[bool], bool]] = None,
|
|
28
|
-
justify_content: Optional[Union[Var[str], str]] = None,
|
|
29
|
-
should_wrap_children: Optional[Union[Var[bool], bool]] = None,
|
|
30
|
-
spacing: Optional[Union[Var[str], str]] = None,
|
|
31
|
-
wrap: Optional[Union[Var[str], str]] = None,
|
|
32
|
-
justify: Optional[Union[Var[str], str]] = None,
|
|
33
|
-
style: Optional[Style] = None,
|
|
34
|
-
key: Optional[Any] = None,
|
|
35
|
-
id: Optional[Any] = None,
|
|
36
|
-
class_name: Optional[Any] = None,
|
|
37
|
-
autofocus: Optional[bool] = None,
|
|
38
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
39
|
-
on_blur: Optional[
|
|
40
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
41
|
-
] = None,
|
|
42
|
-
on_click: Optional[
|
|
43
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
44
|
-
] = None,
|
|
45
|
-
on_context_menu: Optional[
|
|
46
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
47
|
-
] = None,
|
|
48
|
-
on_double_click: Optional[
|
|
49
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
50
|
-
] = None,
|
|
51
|
-
on_focus: Optional[
|
|
52
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
53
|
-
] = None,
|
|
54
|
-
on_mount: Optional[
|
|
55
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
56
|
-
] = None,
|
|
57
|
-
on_mouse_down: Optional[
|
|
58
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
59
|
-
] = None,
|
|
60
|
-
on_mouse_enter: Optional[
|
|
61
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
62
|
-
] = None,
|
|
63
|
-
on_mouse_leave: Optional[
|
|
64
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
65
|
-
] = None,
|
|
66
|
-
on_mouse_move: Optional[
|
|
67
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
68
|
-
] = None,
|
|
69
|
-
on_mouse_out: Optional[
|
|
70
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
71
|
-
] = None,
|
|
72
|
-
on_mouse_over: Optional[
|
|
73
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
74
|
-
] = None,
|
|
75
|
-
on_mouse_up: Optional[
|
|
76
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
77
|
-
] = None,
|
|
78
|
-
on_scroll: Optional[
|
|
79
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
80
|
-
] = None,
|
|
81
|
-
on_unmount: Optional[
|
|
82
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
83
|
-
] = None,
|
|
84
|
-
**props,
|
|
85
|
-
) -> "Stack":
|
|
86
|
-
"""Create the component.
|
|
87
|
-
|
|
88
|
-
Args:
|
|
89
|
-
*children: The children of the component.
|
|
90
|
-
align_items: Shorthand for alignItems style prop
|
|
91
|
-
direction: The direction to stack the items.
|
|
92
|
-
is_inline: If true the items will be stacked horizontally.
|
|
93
|
-
justify_content: Shorthand for justifyContent style prop
|
|
94
|
-
should_wrap_children: If true, the children will be wrapped in a Box, and the Box will take the spacing props
|
|
95
|
-
spacing: The space between each stack item
|
|
96
|
-
wrap: Shorthand for flexWrap style prop
|
|
97
|
-
justify: Alignment of contents.
|
|
98
|
-
style: The style of the component.
|
|
99
|
-
key: A unique key for the component.
|
|
100
|
-
id: The id for the component.
|
|
101
|
-
class_name: The class name for the component.
|
|
102
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
103
|
-
custom_attrs: custom attribute
|
|
104
|
-
**props: The props of the component.
|
|
105
|
-
|
|
106
|
-
Returns:
|
|
107
|
-
The component.
|
|
108
|
-
"""
|
|
109
|
-
...
|
|
110
|
-
|
|
111
|
-
class Hstack(Stack):
|
|
112
|
-
@overload
|
|
113
|
-
@classmethod
|
|
114
|
-
def create( # type: ignore
|
|
115
|
-
cls,
|
|
116
|
-
*children,
|
|
117
|
-
align_items: Optional[Union[Var[str], str]] = None,
|
|
118
|
-
direction: Optional[
|
|
119
|
-
Union[
|
|
120
|
-
Var[Union[List[str], Literal["row", "column"]]],
|
|
121
|
-
Literal["row", "column"],
|
|
122
|
-
List[str],
|
|
123
|
-
]
|
|
124
|
-
] = None,
|
|
125
|
-
is_inline: Optional[Union[Var[bool], bool]] = None,
|
|
126
|
-
justify_content: Optional[Union[Var[str], str]] = None,
|
|
127
|
-
should_wrap_children: Optional[Union[Var[bool], bool]] = None,
|
|
128
|
-
spacing: Optional[Union[Var[str], str]] = None,
|
|
129
|
-
wrap: Optional[Union[Var[str], str]] = None,
|
|
130
|
-
justify: Optional[Union[Var[str], str]] = None,
|
|
131
|
-
style: Optional[Style] = None,
|
|
132
|
-
key: Optional[Any] = None,
|
|
133
|
-
id: Optional[Any] = None,
|
|
134
|
-
class_name: Optional[Any] = None,
|
|
135
|
-
autofocus: Optional[bool] = None,
|
|
136
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
137
|
-
on_blur: Optional[
|
|
138
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
139
|
-
] = None,
|
|
140
|
-
on_click: Optional[
|
|
141
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
142
|
-
] = None,
|
|
143
|
-
on_context_menu: Optional[
|
|
144
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
145
|
-
] = None,
|
|
146
|
-
on_double_click: Optional[
|
|
147
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
148
|
-
] = None,
|
|
149
|
-
on_focus: Optional[
|
|
150
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
151
|
-
] = None,
|
|
152
|
-
on_mount: Optional[
|
|
153
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
154
|
-
] = None,
|
|
155
|
-
on_mouse_down: Optional[
|
|
156
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
157
|
-
] = None,
|
|
158
|
-
on_mouse_enter: Optional[
|
|
159
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
160
|
-
] = None,
|
|
161
|
-
on_mouse_leave: Optional[
|
|
162
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
163
|
-
] = None,
|
|
164
|
-
on_mouse_move: Optional[
|
|
165
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
166
|
-
] = None,
|
|
167
|
-
on_mouse_out: Optional[
|
|
168
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
169
|
-
] = None,
|
|
170
|
-
on_mouse_over: Optional[
|
|
171
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
172
|
-
] = None,
|
|
173
|
-
on_mouse_up: Optional[
|
|
174
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
175
|
-
] = None,
|
|
176
|
-
on_scroll: Optional[
|
|
177
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
178
|
-
] = None,
|
|
179
|
-
on_unmount: Optional[
|
|
180
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
181
|
-
] = None,
|
|
182
|
-
**props,
|
|
183
|
-
) -> "Hstack":
|
|
184
|
-
"""Create the component.
|
|
185
|
-
|
|
186
|
-
Args:
|
|
187
|
-
*children: The children of the component.
|
|
188
|
-
align_items: Shorthand for alignItems style prop
|
|
189
|
-
direction: The direction to stack the items.
|
|
190
|
-
is_inline: If true the items will be stacked horizontally.
|
|
191
|
-
justify_content: Shorthand for justifyContent style prop
|
|
192
|
-
should_wrap_children: If true, the children will be wrapped in a Box, and the Box will take the spacing props
|
|
193
|
-
spacing: The space between each stack item
|
|
194
|
-
wrap: Shorthand for flexWrap style prop
|
|
195
|
-
justify: Alignment of contents.
|
|
196
|
-
style: The style of the component.
|
|
197
|
-
key: A unique key for the component.
|
|
198
|
-
id: The id for the component.
|
|
199
|
-
class_name: The class name for the component.
|
|
200
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
201
|
-
custom_attrs: custom attribute
|
|
202
|
-
**props: The props of the component.
|
|
203
|
-
|
|
204
|
-
Returns:
|
|
205
|
-
The component.
|
|
206
|
-
"""
|
|
207
|
-
...
|
|
208
|
-
|
|
209
|
-
class Vstack(Stack):
|
|
210
|
-
@overload
|
|
211
|
-
@classmethod
|
|
212
|
-
def create( # type: ignore
|
|
213
|
-
cls,
|
|
214
|
-
*children,
|
|
215
|
-
align_items: Optional[Union[Var[str], str]] = None,
|
|
216
|
-
direction: Optional[
|
|
217
|
-
Union[
|
|
218
|
-
Var[Union[List[str], Literal["row", "column"]]],
|
|
219
|
-
Literal["row", "column"],
|
|
220
|
-
List[str],
|
|
221
|
-
]
|
|
222
|
-
] = None,
|
|
223
|
-
is_inline: Optional[Union[Var[bool], bool]] = None,
|
|
224
|
-
justify_content: Optional[Union[Var[str], str]] = None,
|
|
225
|
-
should_wrap_children: Optional[Union[Var[bool], bool]] = None,
|
|
226
|
-
spacing: Optional[Union[Var[str], str]] = None,
|
|
227
|
-
wrap: Optional[Union[Var[str], str]] = None,
|
|
228
|
-
justify: Optional[Union[Var[str], str]] = None,
|
|
229
|
-
style: Optional[Style] = None,
|
|
230
|
-
key: Optional[Any] = None,
|
|
231
|
-
id: Optional[Any] = None,
|
|
232
|
-
class_name: Optional[Any] = None,
|
|
233
|
-
autofocus: Optional[bool] = None,
|
|
234
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
235
|
-
on_blur: Optional[
|
|
236
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
237
|
-
] = None,
|
|
238
|
-
on_click: Optional[
|
|
239
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
240
|
-
] = None,
|
|
241
|
-
on_context_menu: Optional[
|
|
242
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
243
|
-
] = None,
|
|
244
|
-
on_double_click: Optional[
|
|
245
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
246
|
-
] = None,
|
|
247
|
-
on_focus: Optional[
|
|
248
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
249
|
-
] = None,
|
|
250
|
-
on_mount: Optional[
|
|
251
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
252
|
-
] = None,
|
|
253
|
-
on_mouse_down: Optional[
|
|
254
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
255
|
-
] = None,
|
|
256
|
-
on_mouse_enter: Optional[
|
|
257
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
258
|
-
] = None,
|
|
259
|
-
on_mouse_leave: Optional[
|
|
260
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
261
|
-
] = None,
|
|
262
|
-
on_mouse_move: Optional[
|
|
263
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
264
|
-
] = None,
|
|
265
|
-
on_mouse_out: Optional[
|
|
266
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
267
|
-
] = None,
|
|
268
|
-
on_mouse_over: Optional[
|
|
269
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
270
|
-
] = None,
|
|
271
|
-
on_mouse_up: Optional[
|
|
272
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
273
|
-
] = None,
|
|
274
|
-
on_scroll: Optional[
|
|
275
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
276
|
-
] = None,
|
|
277
|
-
on_unmount: Optional[
|
|
278
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
279
|
-
] = None,
|
|
280
|
-
**props,
|
|
281
|
-
) -> "Vstack":
|
|
282
|
-
"""Create the component.
|
|
283
|
-
|
|
284
|
-
Args:
|
|
285
|
-
*children: The children of the component.
|
|
286
|
-
align_items: Shorthand for alignItems style prop
|
|
287
|
-
direction: The direction to stack the items.
|
|
288
|
-
is_inline: If true the items will be stacked horizontally.
|
|
289
|
-
justify_content: Shorthand for justifyContent style prop
|
|
290
|
-
should_wrap_children: If true, the children will be wrapped in a Box, and the Box will take the spacing props
|
|
291
|
-
spacing: The space between each stack item
|
|
292
|
-
wrap: Shorthand for flexWrap style prop
|
|
293
|
-
justify: Alignment of contents.
|
|
294
|
-
style: The style of the component.
|
|
295
|
-
key: A unique key for the component.
|
|
296
|
-
id: The id for the component.
|
|
297
|
-
class_name: The class name for the component.
|
|
298
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
299
|
-
custom_attrs: custom attribute
|
|
300
|
-
**props: The props of the component.
|
|
301
|
-
|
|
302
|
-
Returns:
|
|
303
|
-
The component.
|
|
304
|
-
"""
|
|
305
|
-
...
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"""Container to stack elements with spacing."""
|
|
2
|
-
|
|
3
|
-
from reflex.components.chakra import ChakraComponent
|
|
4
|
-
from reflex.components.component import Component
|
|
5
|
-
from reflex.vars import Var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class Wrap(ChakraComponent):
|
|
9
|
-
"""Layout component used to add space between elements and wrap automatically if there isn't enough space."""
|
|
10
|
-
|
|
11
|
-
tag = "Wrap"
|
|
12
|
-
|
|
13
|
-
# How to align the items.
|
|
14
|
-
align: Var[str]
|
|
15
|
-
|
|
16
|
-
# The flex direction of the wrap.
|
|
17
|
-
direction: Var[str]
|
|
18
|
-
|
|
19
|
-
# How to justify the items.
|
|
20
|
-
justify: Var[str]
|
|
21
|
-
|
|
22
|
-
# Whether to wrap children in `rx.wrap_item`.
|
|
23
|
-
should_wrap_children: Var[bool]
|
|
24
|
-
|
|
25
|
-
# The spacing between the items.
|
|
26
|
-
spacing: Var[str]
|
|
27
|
-
|
|
28
|
-
# The horizontal spacing between the items.
|
|
29
|
-
spacing_x: Var[str]
|
|
30
|
-
|
|
31
|
-
# The vertical spacing between the items.
|
|
32
|
-
spacing_y: Var[str]
|
|
33
|
-
|
|
34
|
-
@classmethod
|
|
35
|
-
def create(cls, *children, items=None, **props) -> Component:
|
|
36
|
-
"""Return a wrap component.
|
|
37
|
-
|
|
38
|
-
Args:
|
|
39
|
-
*children: The children of the component.
|
|
40
|
-
items (list): The items of the wrap component.
|
|
41
|
-
**props: The properties of the component.
|
|
42
|
-
|
|
43
|
-
Returns:
|
|
44
|
-
The wrap component.
|
|
45
|
-
"""
|
|
46
|
-
if len(children) == 0:
|
|
47
|
-
children = []
|
|
48
|
-
for item in items or []:
|
|
49
|
-
children.append(WrapItem.create(*item))
|
|
50
|
-
|
|
51
|
-
return super().create(*children, **props)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
class WrapItem(ChakraComponent):
|
|
55
|
-
"""Item of the Wrap component."""
|
|
56
|
-
|
|
57
|
-
tag = "WrapItem"
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
"""Stub file for reflex/components/chakra/layout/wrap.py"""
|
|
2
|
-
|
|
3
|
-
# ------------------- DO NOT EDIT ----------------------
|
|
4
|
-
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
|
-
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Callable, Dict, Optional, Union, overload
|
|
7
|
-
|
|
8
|
-
from reflex.components.chakra import ChakraComponent
|
|
9
|
-
from reflex.event import EventHandler, EventSpec
|
|
10
|
-
from reflex.style import Style
|
|
11
|
-
from reflex.vars import BaseVar, Var
|
|
12
|
-
|
|
13
|
-
class Wrap(ChakraComponent):
|
|
14
|
-
@overload
|
|
15
|
-
@classmethod
|
|
16
|
-
def create( # type: ignore
|
|
17
|
-
cls,
|
|
18
|
-
*children,
|
|
19
|
-
items=None,
|
|
20
|
-
align: Optional[Union[Var[str], str]] = None,
|
|
21
|
-
direction: Optional[Union[Var[str], str]] = None,
|
|
22
|
-
justify: Optional[Union[Var[str], str]] = None,
|
|
23
|
-
should_wrap_children: Optional[Union[Var[bool], bool]] = None,
|
|
24
|
-
spacing: Optional[Union[Var[str], str]] = None,
|
|
25
|
-
spacing_x: Optional[Union[Var[str], str]] = None,
|
|
26
|
-
spacing_y: Optional[Union[Var[str], str]] = None,
|
|
27
|
-
style: Optional[Style] = None,
|
|
28
|
-
key: Optional[Any] = None,
|
|
29
|
-
id: Optional[Any] = None,
|
|
30
|
-
class_name: Optional[Any] = None,
|
|
31
|
-
autofocus: Optional[bool] = None,
|
|
32
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
33
|
-
on_blur: Optional[
|
|
34
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
35
|
-
] = None,
|
|
36
|
-
on_click: Optional[
|
|
37
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
38
|
-
] = None,
|
|
39
|
-
on_context_menu: Optional[
|
|
40
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
41
|
-
] = None,
|
|
42
|
-
on_double_click: Optional[
|
|
43
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
44
|
-
] = None,
|
|
45
|
-
on_focus: Optional[
|
|
46
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
47
|
-
] = None,
|
|
48
|
-
on_mount: Optional[
|
|
49
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
50
|
-
] = None,
|
|
51
|
-
on_mouse_down: Optional[
|
|
52
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
53
|
-
] = None,
|
|
54
|
-
on_mouse_enter: Optional[
|
|
55
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
56
|
-
] = None,
|
|
57
|
-
on_mouse_leave: Optional[
|
|
58
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
59
|
-
] = None,
|
|
60
|
-
on_mouse_move: Optional[
|
|
61
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
62
|
-
] = None,
|
|
63
|
-
on_mouse_out: Optional[
|
|
64
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
65
|
-
] = None,
|
|
66
|
-
on_mouse_over: Optional[
|
|
67
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
68
|
-
] = None,
|
|
69
|
-
on_mouse_up: Optional[
|
|
70
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
71
|
-
] = None,
|
|
72
|
-
on_scroll: Optional[
|
|
73
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
74
|
-
] = None,
|
|
75
|
-
on_unmount: Optional[
|
|
76
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
77
|
-
] = None,
|
|
78
|
-
**props,
|
|
79
|
-
) -> "Wrap":
|
|
80
|
-
"""Return a wrap component.
|
|
81
|
-
|
|
82
|
-
Args:
|
|
83
|
-
*children: The children of the component.
|
|
84
|
-
items (list): The items of the wrap component.
|
|
85
|
-
align: How to align the items.
|
|
86
|
-
direction: The flex direction of the wrap.
|
|
87
|
-
justify: How to justify the items.
|
|
88
|
-
should_wrap_children: Whether to wrap children in `rx.wrap_item`.
|
|
89
|
-
spacing: The spacing between the items.
|
|
90
|
-
spacing_x: The horizontal spacing between the items.
|
|
91
|
-
spacing_y: The vertical spacing between the items.
|
|
92
|
-
style: The style of the component.
|
|
93
|
-
key: A unique key for the component.
|
|
94
|
-
id: The id for the component.
|
|
95
|
-
class_name: The class name for the component.
|
|
96
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
97
|
-
custom_attrs: custom attribute
|
|
98
|
-
**props: The properties of the component.
|
|
99
|
-
|
|
100
|
-
Returns:
|
|
101
|
-
The wrap component.
|
|
102
|
-
"""
|
|
103
|
-
...
|
|
104
|
-
|
|
105
|
-
class WrapItem(ChakraComponent):
|
|
106
|
-
@overload
|
|
107
|
-
@classmethod
|
|
108
|
-
def create( # type: ignore
|
|
109
|
-
cls,
|
|
110
|
-
*children,
|
|
111
|
-
style: Optional[Style] = None,
|
|
112
|
-
key: Optional[Any] = None,
|
|
113
|
-
id: Optional[Any] = None,
|
|
114
|
-
class_name: Optional[Any] = None,
|
|
115
|
-
autofocus: Optional[bool] = None,
|
|
116
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
117
|
-
on_blur: Optional[
|
|
118
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
119
|
-
] = None,
|
|
120
|
-
on_click: Optional[
|
|
121
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
122
|
-
] = None,
|
|
123
|
-
on_context_menu: Optional[
|
|
124
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
125
|
-
] = None,
|
|
126
|
-
on_double_click: Optional[
|
|
127
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
128
|
-
] = None,
|
|
129
|
-
on_focus: Optional[
|
|
130
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
131
|
-
] = None,
|
|
132
|
-
on_mount: Optional[
|
|
133
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
134
|
-
] = None,
|
|
135
|
-
on_mouse_down: Optional[
|
|
136
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
137
|
-
] = None,
|
|
138
|
-
on_mouse_enter: Optional[
|
|
139
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
140
|
-
] = None,
|
|
141
|
-
on_mouse_leave: Optional[
|
|
142
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
143
|
-
] = None,
|
|
144
|
-
on_mouse_move: Optional[
|
|
145
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
146
|
-
] = None,
|
|
147
|
-
on_mouse_out: Optional[
|
|
148
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
149
|
-
] = None,
|
|
150
|
-
on_mouse_over: Optional[
|
|
151
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
152
|
-
] = None,
|
|
153
|
-
on_mouse_up: Optional[
|
|
154
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
155
|
-
] = None,
|
|
156
|
-
on_scroll: Optional[
|
|
157
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
158
|
-
] = None,
|
|
159
|
-
on_unmount: Optional[
|
|
160
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
161
|
-
] = None,
|
|
162
|
-
**props,
|
|
163
|
-
) -> "WrapItem":
|
|
164
|
-
"""Create the component.
|
|
165
|
-
|
|
166
|
-
Args:
|
|
167
|
-
*children: The children of the component.
|
|
168
|
-
style: The style of the component.
|
|
169
|
-
key: A unique key for the component.
|
|
170
|
-
id: The id for the component.
|
|
171
|
-
class_name: The class name for the component.
|
|
172
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
173
|
-
custom_attrs: custom attribute
|
|
174
|
-
**props: The props of the component.
|
|
175
|
-
|
|
176
|
-
Returns:
|
|
177
|
-
The component.
|
|
178
|
-
"""
|
|
179
|
-
...
|