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,101 +0,0 @@
|
|
|
1
|
-
"""Stub file for reflex/components/chakra/feedback/progress.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 Progress(ChakraComponent):
|
|
14
|
-
@overload
|
|
15
|
-
@classmethod
|
|
16
|
-
def create( # type: ignore
|
|
17
|
-
cls,
|
|
18
|
-
*children,
|
|
19
|
-
has_stripe: Optional[Union[Var[bool], bool]] = None,
|
|
20
|
-
is_animated: Optional[Union[Var[bool], bool]] = None,
|
|
21
|
-
is_indeterminate: Optional[Union[Var[bool], bool]] = None,
|
|
22
|
-
max_: Optional[Union[Var[int], int]] = None,
|
|
23
|
-
min_: Optional[Union[Var[int], int]] = None,
|
|
24
|
-
value: Optional[Union[Var[Union[float, int]], int, float]] = None,
|
|
25
|
-
color_scheme: Optional[Union[Var[str], str]] = None,
|
|
26
|
-
style: Optional[Style] = None,
|
|
27
|
-
key: Optional[Any] = None,
|
|
28
|
-
id: Optional[Any] = None,
|
|
29
|
-
class_name: Optional[Any] = None,
|
|
30
|
-
autofocus: Optional[bool] = None,
|
|
31
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
32
|
-
on_blur: Optional[
|
|
33
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
34
|
-
] = None,
|
|
35
|
-
on_click: Optional[
|
|
36
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
37
|
-
] = None,
|
|
38
|
-
on_context_menu: Optional[
|
|
39
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
40
|
-
] = None,
|
|
41
|
-
on_double_click: Optional[
|
|
42
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
43
|
-
] = None,
|
|
44
|
-
on_focus: Optional[
|
|
45
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
46
|
-
] = None,
|
|
47
|
-
on_mount: Optional[
|
|
48
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
49
|
-
] = None,
|
|
50
|
-
on_mouse_down: Optional[
|
|
51
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
52
|
-
] = None,
|
|
53
|
-
on_mouse_enter: Optional[
|
|
54
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
55
|
-
] = None,
|
|
56
|
-
on_mouse_leave: Optional[
|
|
57
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
58
|
-
] = None,
|
|
59
|
-
on_mouse_move: Optional[
|
|
60
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
61
|
-
] = None,
|
|
62
|
-
on_mouse_out: Optional[
|
|
63
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
64
|
-
] = None,
|
|
65
|
-
on_mouse_over: Optional[
|
|
66
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
67
|
-
] = None,
|
|
68
|
-
on_mouse_up: Optional[
|
|
69
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
70
|
-
] = None,
|
|
71
|
-
on_scroll: Optional[
|
|
72
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
73
|
-
] = None,
|
|
74
|
-
on_unmount: Optional[
|
|
75
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
76
|
-
] = None,
|
|
77
|
-
**props,
|
|
78
|
-
) -> "Progress":
|
|
79
|
-
"""Create the component.
|
|
80
|
-
|
|
81
|
-
Args:
|
|
82
|
-
*children: The children of the component.
|
|
83
|
-
has_stripe: If true, the progress bar will show stripe
|
|
84
|
-
is_animated: If true, and has_stripe is true, the stripes will be animated
|
|
85
|
-
is_indeterminate: If true, the progress will be indeterminate and the value prop will be ignored
|
|
86
|
-
max_: The maximum value of the progress
|
|
87
|
-
min_: The minimum value of the progress
|
|
88
|
-
value: The value of the progress indicator. If undefined the progress bar will be in indeterminate state
|
|
89
|
-
color_scheme: The color scheme of the progress bar.
|
|
90
|
-
style: The style of the component.
|
|
91
|
-
key: A unique key for the component.
|
|
92
|
-
id: The id for the component.
|
|
93
|
-
class_name: The class name for the component.
|
|
94
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
95
|
-
custom_attrs: custom attribute
|
|
96
|
-
**props: The props of the component.
|
|
97
|
-
|
|
98
|
-
Returns:
|
|
99
|
-
The component.
|
|
100
|
-
"""
|
|
101
|
-
...
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"""Container to stack elements with spacing."""
|
|
2
|
-
|
|
3
|
-
from reflex.components.chakra import ChakraComponent
|
|
4
|
-
from reflex.vars import Var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class Skeleton(ChakraComponent):
|
|
8
|
-
"""Skeleton is used to display the loading state of some components. You can use it as a standalone component. Or to wrap another component to take the same height and width."""
|
|
9
|
-
|
|
10
|
-
tag = "Skeleton"
|
|
11
|
-
|
|
12
|
-
# The color at the animation end
|
|
13
|
-
end_color: Var[str]
|
|
14
|
-
|
|
15
|
-
# The fadeIn duration in seconds
|
|
16
|
-
fade_duration: Var[float]
|
|
17
|
-
|
|
18
|
-
# If true, it'll render its children with a nice fade transition
|
|
19
|
-
is_loaded: Var[bool]
|
|
20
|
-
|
|
21
|
-
# The animation speed in seconds
|
|
22
|
-
speed: Var[float]
|
|
23
|
-
|
|
24
|
-
# The color at the animation start
|
|
25
|
-
start_color: Var[str]
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class SkeletonCircle(ChakraComponent):
|
|
29
|
-
"""SkeletonCircle is used to display the loading state of some components."""
|
|
30
|
-
|
|
31
|
-
tag = "SkeletonCircle"
|
|
32
|
-
|
|
33
|
-
# The color at the animation end
|
|
34
|
-
end_color: Var[str]
|
|
35
|
-
|
|
36
|
-
# The fadeIn duration in seconds
|
|
37
|
-
fade_duration: Var[float]
|
|
38
|
-
|
|
39
|
-
# If true, it'll render its children with a nice fade transition
|
|
40
|
-
is_loaded: Var[bool]
|
|
41
|
-
|
|
42
|
-
# The animation speed in seconds
|
|
43
|
-
speed: Var[float]
|
|
44
|
-
|
|
45
|
-
# The color at the animation start
|
|
46
|
-
start_color: Var[str]
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
class SkeletonText(ChakraComponent):
|
|
50
|
-
"""SkeletonText is used to display the loading state of some components."""
|
|
51
|
-
|
|
52
|
-
tag = "SkeletonText"
|
|
53
|
-
|
|
54
|
-
# The color at the animation end
|
|
55
|
-
end_color: Var[str]
|
|
56
|
-
|
|
57
|
-
# The fadeIn duration in seconds
|
|
58
|
-
fade_duration: Var[float]
|
|
59
|
-
|
|
60
|
-
# If true, it'll render its children with a nice fade transition
|
|
61
|
-
is_loaded: Var[bool]
|
|
62
|
-
|
|
63
|
-
# The animation speed in seconds
|
|
64
|
-
speed: Var[float]
|
|
65
|
-
|
|
66
|
-
# The color at the animation start
|
|
67
|
-
start_color: Var[str]
|
|
68
|
-
|
|
69
|
-
# Number is lines of text.
|
|
70
|
-
no_of_lines: Var[int]
|
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
"""Stub file for reflex/components/chakra/feedback/skeleton.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 Skeleton(ChakraComponent):
|
|
14
|
-
@overload
|
|
15
|
-
@classmethod
|
|
16
|
-
def create( # type: ignore
|
|
17
|
-
cls,
|
|
18
|
-
*children,
|
|
19
|
-
end_color: Optional[Union[Var[str], str]] = None,
|
|
20
|
-
fade_duration: Optional[Union[Var[float], float]] = None,
|
|
21
|
-
is_loaded: Optional[Union[Var[bool], bool]] = None,
|
|
22
|
-
speed: Optional[Union[Var[float], float]] = None,
|
|
23
|
-
start_color: Optional[Union[Var[str], str]] = None,
|
|
24
|
-
style: Optional[Style] = None,
|
|
25
|
-
key: Optional[Any] = None,
|
|
26
|
-
id: Optional[Any] = None,
|
|
27
|
-
class_name: Optional[Any] = None,
|
|
28
|
-
autofocus: Optional[bool] = None,
|
|
29
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
30
|
-
on_blur: Optional[
|
|
31
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
32
|
-
] = None,
|
|
33
|
-
on_click: Optional[
|
|
34
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
35
|
-
] = None,
|
|
36
|
-
on_context_menu: Optional[
|
|
37
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
38
|
-
] = None,
|
|
39
|
-
on_double_click: Optional[
|
|
40
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
41
|
-
] = None,
|
|
42
|
-
on_focus: Optional[
|
|
43
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
44
|
-
] = None,
|
|
45
|
-
on_mount: Optional[
|
|
46
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
47
|
-
] = None,
|
|
48
|
-
on_mouse_down: Optional[
|
|
49
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
50
|
-
] = None,
|
|
51
|
-
on_mouse_enter: Optional[
|
|
52
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
53
|
-
] = None,
|
|
54
|
-
on_mouse_leave: Optional[
|
|
55
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
56
|
-
] = None,
|
|
57
|
-
on_mouse_move: Optional[
|
|
58
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
59
|
-
] = None,
|
|
60
|
-
on_mouse_out: Optional[
|
|
61
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
62
|
-
] = None,
|
|
63
|
-
on_mouse_over: Optional[
|
|
64
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
65
|
-
] = None,
|
|
66
|
-
on_mouse_up: Optional[
|
|
67
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
68
|
-
] = None,
|
|
69
|
-
on_scroll: Optional[
|
|
70
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
71
|
-
] = None,
|
|
72
|
-
on_unmount: Optional[
|
|
73
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
74
|
-
] = None,
|
|
75
|
-
**props,
|
|
76
|
-
) -> "Skeleton":
|
|
77
|
-
"""Create the component.
|
|
78
|
-
|
|
79
|
-
Args:
|
|
80
|
-
*children: The children of the component.
|
|
81
|
-
end_color: The color at the animation end
|
|
82
|
-
fade_duration: The fadeIn duration in seconds
|
|
83
|
-
is_loaded: If true, it'll render its children with a nice fade transition
|
|
84
|
-
speed: The animation speed in seconds
|
|
85
|
-
start_color: The color at the animation start
|
|
86
|
-
style: The style of the component.
|
|
87
|
-
key: A unique key for the component.
|
|
88
|
-
id: The id for the component.
|
|
89
|
-
class_name: The class name for the component.
|
|
90
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
91
|
-
custom_attrs: custom attribute
|
|
92
|
-
**props: The props of the component.
|
|
93
|
-
|
|
94
|
-
Returns:
|
|
95
|
-
The component.
|
|
96
|
-
"""
|
|
97
|
-
...
|
|
98
|
-
|
|
99
|
-
class SkeletonCircle(ChakraComponent):
|
|
100
|
-
@overload
|
|
101
|
-
@classmethod
|
|
102
|
-
def create( # type: ignore
|
|
103
|
-
cls,
|
|
104
|
-
*children,
|
|
105
|
-
end_color: Optional[Union[Var[str], str]] = None,
|
|
106
|
-
fade_duration: Optional[Union[Var[float], float]] = None,
|
|
107
|
-
is_loaded: Optional[Union[Var[bool], bool]] = None,
|
|
108
|
-
speed: Optional[Union[Var[float], float]] = None,
|
|
109
|
-
start_color: Optional[Union[Var[str], str]] = None,
|
|
110
|
-
style: Optional[Style] = None,
|
|
111
|
-
key: Optional[Any] = None,
|
|
112
|
-
id: Optional[Any] = None,
|
|
113
|
-
class_name: Optional[Any] = None,
|
|
114
|
-
autofocus: Optional[bool] = None,
|
|
115
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
116
|
-
on_blur: Optional[
|
|
117
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
118
|
-
] = None,
|
|
119
|
-
on_click: Optional[
|
|
120
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
121
|
-
] = None,
|
|
122
|
-
on_context_menu: Optional[
|
|
123
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
124
|
-
] = None,
|
|
125
|
-
on_double_click: Optional[
|
|
126
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
127
|
-
] = None,
|
|
128
|
-
on_focus: Optional[
|
|
129
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
130
|
-
] = None,
|
|
131
|
-
on_mount: Optional[
|
|
132
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
133
|
-
] = None,
|
|
134
|
-
on_mouse_down: Optional[
|
|
135
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
136
|
-
] = None,
|
|
137
|
-
on_mouse_enter: Optional[
|
|
138
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
139
|
-
] = None,
|
|
140
|
-
on_mouse_leave: Optional[
|
|
141
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
142
|
-
] = None,
|
|
143
|
-
on_mouse_move: Optional[
|
|
144
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
145
|
-
] = None,
|
|
146
|
-
on_mouse_out: Optional[
|
|
147
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
148
|
-
] = None,
|
|
149
|
-
on_mouse_over: Optional[
|
|
150
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
151
|
-
] = None,
|
|
152
|
-
on_mouse_up: Optional[
|
|
153
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
154
|
-
] = None,
|
|
155
|
-
on_scroll: Optional[
|
|
156
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
157
|
-
] = None,
|
|
158
|
-
on_unmount: Optional[
|
|
159
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
160
|
-
] = None,
|
|
161
|
-
**props,
|
|
162
|
-
) -> "SkeletonCircle":
|
|
163
|
-
"""Create the component.
|
|
164
|
-
|
|
165
|
-
Args:
|
|
166
|
-
*children: The children of the component.
|
|
167
|
-
end_color: The color at the animation end
|
|
168
|
-
fade_duration: The fadeIn duration in seconds
|
|
169
|
-
is_loaded: If true, it'll render its children with a nice fade transition
|
|
170
|
-
speed: The animation speed in seconds
|
|
171
|
-
start_color: The color at the animation start
|
|
172
|
-
style: The style of the component.
|
|
173
|
-
key: A unique key for the component.
|
|
174
|
-
id: The id for the component.
|
|
175
|
-
class_name: The class name for the component.
|
|
176
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
177
|
-
custom_attrs: custom attribute
|
|
178
|
-
**props: The props of the component.
|
|
179
|
-
|
|
180
|
-
Returns:
|
|
181
|
-
The component.
|
|
182
|
-
"""
|
|
183
|
-
...
|
|
184
|
-
|
|
185
|
-
class SkeletonText(ChakraComponent):
|
|
186
|
-
@overload
|
|
187
|
-
@classmethod
|
|
188
|
-
def create( # type: ignore
|
|
189
|
-
cls,
|
|
190
|
-
*children,
|
|
191
|
-
end_color: Optional[Union[Var[str], str]] = None,
|
|
192
|
-
fade_duration: Optional[Union[Var[float], float]] = None,
|
|
193
|
-
is_loaded: Optional[Union[Var[bool], bool]] = None,
|
|
194
|
-
speed: Optional[Union[Var[float], float]] = None,
|
|
195
|
-
start_color: Optional[Union[Var[str], str]] = None,
|
|
196
|
-
no_of_lines: Optional[Union[Var[int], int]] = None,
|
|
197
|
-
style: Optional[Style] = None,
|
|
198
|
-
key: Optional[Any] = None,
|
|
199
|
-
id: Optional[Any] = None,
|
|
200
|
-
class_name: Optional[Any] = None,
|
|
201
|
-
autofocus: Optional[bool] = None,
|
|
202
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
203
|
-
on_blur: Optional[
|
|
204
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
205
|
-
] = None,
|
|
206
|
-
on_click: Optional[
|
|
207
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
208
|
-
] = None,
|
|
209
|
-
on_context_menu: Optional[
|
|
210
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
211
|
-
] = None,
|
|
212
|
-
on_double_click: Optional[
|
|
213
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
214
|
-
] = None,
|
|
215
|
-
on_focus: Optional[
|
|
216
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
217
|
-
] = None,
|
|
218
|
-
on_mount: Optional[
|
|
219
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
220
|
-
] = None,
|
|
221
|
-
on_mouse_down: Optional[
|
|
222
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
223
|
-
] = None,
|
|
224
|
-
on_mouse_enter: Optional[
|
|
225
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
226
|
-
] = None,
|
|
227
|
-
on_mouse_leave: Optional[
|
|
228
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
229
|
-
] = None,
|
|
230
|
-
on_mouse_move: Optional[
|
|
231
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
232
|
-
] = None,
|
|
233
|
-
on_mouse_out: Optional[
|
|
234
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
235
|
-
] = None,
|
|
236
|
-
on_mouse_over: Optional[
|
|
237
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
238
|
-
] = None,
|
|
239
|
-
on_mouse_up: Optional[
|
|
240
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
241
|
-
] = None,
|
|
242
|
-
on_scroll: Optional[
|
|
243
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
244
|
-
] = None,
|
|
245
|
-
on_unmount: Optional[
|
|
246
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
247
|
-
] = None,
|
|
248
|
-
**props,
|
|
249
|
-
) -> "SkeletonText":
|
|
250
|
-
"""Create the component.
|
|
251
|
-
|
|
252
|
-
Args:
|
|
253
|
-
*children: The children of the component.
|
|
254
|
-
end_color: The color at the animation end
|
|
255
|
-
fade_duration: The fadeIn duration in seconds
|
|
256
|
-
is_loaded: If true, it'll render its children with a nice fade transition
|
|
257
|
-
speed: The animation speed in seconds
|
|
258
|
-
start_color: The color at the animation start
|
|
259
|
-
no_of_lines: Number is lines of text.
|
|
260
|
-
style: The style of the component.
|
|
261
|
-
key: A unique key for the component.
|
|
262
|
-
id: The id for the component.
|
|
263
|
-
class_name: The class name for the component.
|
|
264
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
265
|
-
custom_attrs: custom attribute
|
|
266
|
-
**props: The props of the component.
|
|
267
|
-
|
|
268
|
-
Returns:
|
|
269
|
-
The component.
|
|
270
|
-
"""
|
|
271
|
-
...
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"""Container to stack elements with spacing."""
|
|
2
|
-
|
|
3
|
-
from reflex.components.chakra import ChakraComponent, LiteralSpinnerSize
|
|
4
|
-
from reflex.vars import Var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class Spinner(ChakraComponent):
|
|
8
|
-
"""The component that spins."""
|
|
9
|
-
|
|
10
|
-
tag = "Spinner"
|
|
11
|
-
|
|
12
|
-
# The color of the empty area in the spinner
|
|
13
|
-
empty_color: Var[str]
|
|
14
|
-
|
|
15
|
-
# For accessibility, it is important to add a fallback loading text. This text will be visible to screen readers.
|
|
16
|
-
label: Var[str]
|
|
17
|
-
|
|
18
|
-
# The speed of the spinner must be as a string and in seconds '1s'. Default is '0.45s'.
|
|
19
|
-
speed: Var[str]
|
|
20
|
-
|
|
21
|
-
# The thickness of the spinner.
|
|
22
|
-
thickness: Var[int]
|
|
23
|
-
|
|
24
|
-
# "xs" | "sm" | "md" | "lg" | "xl"
|
|
25
|
-
size: Var[LiteralSpinnerSize]
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"""Stub file for reflex/components/chakra/feedback/spinner.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, 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 Spinner(ChakraComponent):
|
|
14
|
-
@overload
|
|
15
|
-
@classmethod
|
|
16
|
-
def create( # type: ignore
|
|
17
|
-
cls,
|
|
18
|
-
*children,
|
|
19
|
-
empty_color: Optional[Union[Var[str], str]] = None,
|
|
20
|
-
label: Optional[Union[Var[str], str]] = None,
|
|
21
|
-
speed: Optional[Union[Var[str], str]] = None,
|
|
22
|
-
thickness: Optional[Union[Var[int], int]] = None,
|
|
23
|
-
size: Optional[
|
|
24
|
-
Union[
|
|
25
|
-
Var[Literal["sm", "md", "lg", "xs", "xl"]],
|
|
26
|
-
Literal["sm", "md", "lg", "xs", "xl"],
|
|
27
|
-
]
|
|
28
|
-
] = None,
|
|
29
|
-
style: Optional[Style] = None,
|
|
30
|
-
key: Optional[Any] = None,
|
|
31
|
-
id: Optional[Any] = None,
|
|
32
|
-
class_name: Optional[Any] = None,
|
|
33
|
-
autofocus: Optional[bool] = None,
|
|
34
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
35
|
-
on_blur: Optional[
|
|
36
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
37
|
-
] = None,
|
|
38
|
-
on_click: Optional[
|
|
39
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
40
|
-
] = None,
|
|
41
|
-
on_context_menu: Optional[
|
|
42
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
43
|
-
] = None,
|
|
44
|
-
on_double_click: Optional[
|
|
45
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
46
|
-
] = None,
|
|
47
|
-
on_focus: Optional[
|
|
48
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
49
|
-
] = None,
|
|
50
|
-
on_mount: Optional[
|
|
51
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
52
|
-
] = None,
|
|
53
|
-
on_mouse_down: Optional[
|
|
54
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
55
|
-
] = None,
|
|
56
|
-
on_mouse_enter: Optional[
|
|
57
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
58
|
-
] = None,
|
|
59
|
-
on_mouse_leave: Optional[
|
|
60
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
61
|
-
] = None,
|
|
62
|
-
on_mouse_move: Optional[
|
|
63
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
64
|
-
] = None,
|
|
65
|
-
on_mouse_out: Optional[
|
|
66
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
67
|
-
] = None,
|
|
68
|
-
on_mouse_over: Optional[
|
|
69
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
70
|
-
] = None,
|
|
71
|
-
on_mouse_up: Optional[
|
|
72
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
73
|
-
] = None,
|
|
74
|
-
on_scroll: Optional[
|
|
75
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
76
|
-
] = None,
|
|
77
|
-
on_unmount: Optional[
|
|
78
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
79
|
-
] = None,
|
|
80
|
-
**props,
|
|
81
|
-
) -> "Spinner":
|
|
82
|
-
"""Create the component.
|
|
83
|
-
|
|
84
|
-
Args:
|
|
85
|
-
*children: The children of the component.
|
|
86
|
-
empty_color: The color of the empty area in the spinner
|
|
87
|
-
label: For accessibility, it is important to add a fallback loading text. This text will be visible to screen readers.
|
|
88
|
-
speed: The speed of the spinner must be as a string and in seconds '1s'. Default is '0.45s'.
|
|
89
|
-
thickness: The thickness of the spinner.
|
|
90
|
-
size: "xs" | "sm" | "md" | "lg" | "xl"
|
|
91
|
-
style: The style of the component.
|
|
92
|
-
key: A unique key for the component.
|
|
93
|
-
id: The id for the component.
|
|
94
|
-
class_name: The class name for the component.
|
|
95
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
96
|
-
custom_attrs: custom attribute
|
|
97
|
-
**props: The props of the component.
|
|
98
|
-
|
|
99
|
-
Returns:
|
|
100
|
-
The component.
|
|
101
|
-
"""
|
|
102
|
-
...
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"""Convenience functions to define core components."""
|
|
2
|
-
|
|
3
|
-
from .button import Button, ButtonGroup
|
|
4
|
-
from .checkbox import Checkbox, CheckboxGroup
|
|
5
|
-
from .colormodeswitch import (
|
|
6
|
-
ColorModeButton,
|
|
7
|
-
ColorModeIcon,
|
|
8
|
-
ColorModeScript,
|
|
9
|
-
ColorModeSwitch,
|
|
10
|
-
)
|
|
11
|
-
from .date_picker import DatePicker
|
|
12
|
-
from .date_time_picker import DateTimePicker
|
|
13
|
-
from .editable import Editable, EditableInput, EditablePreview, EditableTextarea
|
|
14
|
-
from .email import Email
|
|
15
|
-
from .form import Form, FormControl, FormErrorMessage, FormHelperText, FormLabel
|
|
16
|
-
from .iconbutton import IconButton
|
|
17
|
-
from .input import (
|
|
18
|
-
Input,
|
|
19
|
-
InputGroup,
|
|
20
|
-
InputLeftAddon,
|
|
21
|
-
InputLeftElement,
|
|
22
|
-
InputRightAddon,
|
|
23
|
-
InputRightElement,
|
|
24
|
-
)
|
|
25
|
-
from .multiselect import Option as MultiSelectOption
|
|
26
|
-
from .multiselect import Select as MultiSelect
|
|
27
|
-
from .numberinput import (
|
|
28
|
-
NumberDecrementStepper,
|
|
29
|
-
NumberIncrementStepper,
|
|
30
|
-
NumberInput,
|
|
31
|
-
NumberInputField,
|
|
32
|
-
NumberInputStepper,
|
|
33
|
-
)
|
|
34
|
-
from .password import Password
|
|
35
|
-
from .pininput import PinInput, PinInputField
|
|
36
|
-
from .radio import Radio, RadioGroup
|
|
37
|
-
from .rangeslider import (
|
|
38
|
-
RangeSlider,
|
|
39
|
-
RangeSliderFilledTrack,
|
|
40
|
-
RangeSliderThumb,
|
|
41
|
-
RangeSliderTrack,
|
|
42
|
-
)
|
|
43
|
-
from .select import Option, Select
|
|
44
|
-
from .slider import Slider, SliderFilledTrack, SliderMark, SliderThumb, SliderTrack
|
|
45
|
-
from .switch import Switch
|
|
46
|
-
from .textarea import TextArea
|
|
47
|
-
from .time_picker import TimePicker
|
|
48
|
-
|
|
49
|
-
__all__ = [f for f in dir() if f[0].isupper()] # type: ignore
|