reflex 0.5.9.dev1__py3-none-any.whl → 0.5.10a1__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/prerequisites.py +16 -115
- 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.10a1.dist-info}/METADATA +2 -1
- {reflex-0.5.9.dev1.dist-info → reflex-0.5.10a1.dist-info}/RECORD +26 -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.10a1.dist-info}/LICENSE +0 -0
- {reflex-0.5.9.dev1.dist-info → reflex-0.5.10a1.dist-info}/WHEEL +0 -0
- {reflex-0.5.9.dev1.dist-info → reflex-0.5.10a1.dist-info}/entry_points.txt +0 -0
|
@@ -1,509 +0,0 @@
|
|
|
1
|
-
"""Stub file for reflex/components/chakra/disclosure/transition.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 Transition(ChakraComponent):
|
|
14
|
-
@overload
|
|
15
|
-
@classmethod
|
|
16
|
-
def create( # type: ignore
|
|
17
|
-
cls,
|
|
18
|
-
*children,
|
|
19
|
-
in_: Optional[Union[Var[bool], bool]] = None,
|
|
20
|
-
unmount_on_exit: Optional[Union[Var[bool], bool]] = None,
|
|
21
|
-
style: Optional[Style] = None,
|
|
22
|
-
key: Optional[Any] = None,
|
|
23
|
-
id: Optional[Any] = None,
|
|
24
|
-
class_name: Optional[Any] = None,
|
|
25
|
-
autofocus: Optional[bool] = None,
|
|
26
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
27
|
-
on_blur: Optional[
|
|
28
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
29
|
-
] = None,
|
|
30
|
-
on_click: Optional[
|
|
31
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
32
|
-
] = None,
|
|
33
|
-
on_context_menu: Optional[
|
|
34
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
35
|
-
] = None,
|
|
36
|
-
on_double_click: Optional[
|
|
37
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
38
|
-
] = None,
|
|
39
|
-
on_focus: Optional[
|
|
40
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
41
|
-
] = None,
|
|
42
|
-
on_mount: Optional[
|
|
43
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
44
|
-
] = None,
|
|
45
|
-
on_mouse_down: Optional[
|
|
46
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
47
|
-
] = None,
|
|
48
|
-
on_mouse_enter: Optional[
|
|
49
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
50
|
-
] = None,
|
|
51
|
-
on_mouse_leave: Optional[
|
|
52
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
53
|
-
] = None,
|
|
54
|
-
on_mouse_move: Optional[
|
|
55
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
56
|
-
] = None,
|
|
57
|
-
on_mouse_out: Optional[
|
|
58
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
59
|
-
] = None,
|
|
60
|
-
on_mouse_over: Optional[
|
|
61
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
62
|
-
] = None,
|
|
63
|
-
on_mouse_up: Optional[
|
|
64
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
65
|
-
] = None,
|
|
66
|
-
on_scroll: Optional[
|
|
67
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
68
|
-
] = None,
|
|
69
|
-
on_unmount: Optional[
|
|
70
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
71
|
-
] = None,
|
|
72
|
-
**props,
|
|
73
|
-
) -> "Transition":
|
|
74
|
-
"""Create the component.
|
|
75
|
-
|
|
76
|
-
Args:
|
|
77
|
-
*children: The children of the component.
|
|
78
|
-
in_: Show the component; triggers when enter or exit states
|
|
79
|
-
unmount_on_exit: If true, the element will unmount when `in={false}` and animation is done
|
|
80
|
-
style: The style of the component.
|
|
81
|
-
key: A unique key for the component.
|
|
82
|
-
id: The id for the component.
|
|
83
|
-
class_name: The class name for the component.
|
|
84
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
85
|
-
custom_attrs: custom attribute
|
|
86
|
-
**props: The props of the component.
|
|
87
|
-
|
|
88
|
-
Returns:
|
|
89
|
-
The component.
|
|
90
|
-
"""
|
|
91
|
-
...
|
|
92
|
-
|
|
93
|
-
class Fade(Transition):
|
|
94
|
-
@overload
|
|
95
|
-
@classmethod
|
|
96
|
-
def create( # type: ignore
|
|
97
|
-
cls,
|
|
98
|
-
*children,
|
|
99
|
-
in_: Optional[Union[Var[bool], bool]] = None,
|
|
100
|
-
unmount_on_exit: Optional[Union[Var[bool], bool]] = None,
|
|
101
|
-
style: Optional[Style] = None,
|
|
102
|
-
key: Optional[Any] = None,
|
|
103
|
-
id: Optional[Any] = None,
|
|
104
|
-
class_name: Optional[Any] = None,
|
|
105
|
-
autofocus: Optional[bool] = None,
|
|
106
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
107
|
-
on_blur: Optional[
|
|
108
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
109
|
-
] = None,
|
|
110
|
-
on_click: Optional[
|
|
111
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
112
|
-
] = None,
|
|
113
|
-
on_context_menu: Optional[
|
|
114
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
115
|
-
] = None,
|
|
116
|
-
on_double_click: Optional[
|
|
117
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
118
|
-
] = None,
|
|
119
|
-
on_focus: Optional[
|
|
120
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
121
|
-
] = None,
|
|
122
|
-
on_mount: Optional[
|
|
123
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
124
|
-
] = None,
|
|
125
|
-
on_mouse_down: Optional[
|
|
126
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
127
|
-
] = None,
|
|
128
|
-
on_mouse_enter: Optional[
|
|
129
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
130
|
-
] = None,
|
|
131
|
-
on_mouse_leave: Optional[
|
|
132
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
133
|
-
] = None,
|
|
134
|
-
on_mouse_move: Optional[
|
|
135
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
136
|
-
] = None,
|
|
137
|
-
on_mouse_out: Optional[
|
|
138
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
139
|
-
] = None,
|
|
140
|
-
on_mouse_over: Optional[
|
|
141
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
142
|
-
] = None,
|
|
143
|
-
on_mouse_up: Optional[
|
|
144
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
145
|
-
] = None,
|
|
146
|
-
on_scroll: Optional[
|
|
147
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
148
|
-
] = None,
|
|
149
|
-
on_unmount: Optional[
|
|
150
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
151
|
-
] = None,
|
|
152
|
-
**props,
|
|
153
|
-
) -> "Fade":
|
|
154
|
-
"""Create the component.
|
|
155
|
-
|
|
156
|
-
Args:
|
|
157
|
-
*children: The children of the component.
|
|
158
|
-
in_: Show the component; triggers when enter or exit states
|
|
159
|
-
unmount_on_exit: If true, the element will unmount when `in={false}` and animation is done
|
|
160
|
-
style: The style of the component.
|
|
161
|
-
key: A unique key for the component.
|
|
162
|
-
id: The id for the component.
|
|
163
|
-
class_name: The class name for the component.
|
|
164
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
165
|
-
custom_attrs: custom attribute
|
|
166
|
-
**props: The props of the component.
|
|
167
|
-
|
|
168
|
-
Returns:
|
|
169
|
-
The component.
|
|
170
|
-
"""
|
|
171
|
-
...
|
|
172
|
-
|
|
173
|
-
class ScaleFade(Transition):
|
|
174
|
-
@overload
|
|
175
|
-
@classmethod
|
|
176
|
-
def create( # type: ignore
|
|
177
|
-
cls,
|
|
178
|
-
*children,
|
|
179
|
-
initial_scale: Optional[Union[Var[float], float]] = None,
|
|
180
|
-
reverse: Optional[Union[Var[bool], bool]] = None,
|
|
181
|
-
in_: Optional[Union[Var[bool], bool]] = None,
|
|
182
|
-
unmount_on_exit: Optional[Union[Var[bool], bool]] = None,
|
|
183
|
-
style: Optional[Style] = None,
|
|
184
|
-
key: Optional[Any] = None,
|
|
185
|
-
id: Optional[Any] = None,
|
|
186
|
-
class_name: Optional[Any] = None,
|
|
187
|
-
autofocus: Optional[bool] = None,
|
|
188
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
189
|
-
on_blur: Optional[
|
|
190
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
191
|
-
] = None,
|
|
192
|
-
on_click: Optional[
|
|
193
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
194
|
-
] = None,
|
|
195
|
-
on_context_menu: Optional[
|
|
196
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
197
|
-
] = None,
|
|
198
|
-
on_double_click: Optional[
|
|
199
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
200
|
-
] = None,
|
|
201
|
-
on_focus: Optional[
|
|
202
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
203
|
-
] = None,
|
|
204
|
-
on_mount: Optional[
|
|
205
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
206
|
-
] = None,
|
|
207
|
-
on_mouse_down: Optional[
|
|
208
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
209
|
-
] = None,
|
|
210
|
-
on_mouse_enter: Optional[
|
|
211
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
212
|
-
] = None,
|
|
213
|
-
on_mouse_leave: Optional[
|
|
214
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
215
|
-
] = None,
|
|
216
|
-
on_mouse_move: Optional[
|
|
217
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
218
|
-
] = None,
|
|
219
|
-
on_mouse_out: Optional[
|
|
220
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
221
|
-
] = None,
|
|
222
|
-
on_mouse_over: Optional[
|
|
223
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
224
|
-
] = None,
|
|
225
|
-
on_mouse_up: Optional[
|
|
226
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
227
|
-
] = None,
|
|
228
|
-
on_scroll: Optional[
|
|
229
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
230
|
-
] = None,
|
|
231
|
-
on_unmount: Optional[
|
|
232
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
233
|
-
] = None,
|
|
234
|
-
**props,
|
|
235
|
-
) -> "ScaleFade":
|
|
236
|
-
"""Create the component.
|
|
237
|
-
|
|
238
|
-
Args:
|
|
239
|
-
*children: The children of the component.
|
|
240
|
-
initial_scale: The initial scale of the element
|
|
241
|
-
reverse: If true, the element will transition back to exit state
|
|
242
|
-
in_: Show the component; triggers when enter or exit states
|
|
243
|
-
unmount_on_exit: If true, the element will unmount when `in={false}` and animation is done
|
|
244
|
-
style: The style of the component.
|
|
245
|
-
key: A unique key for the component.
|
|
246
|
-
id: The id for the component.
|
|
247
|
-
class_name: The class name for the component.
|
|
248
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
249
|
-
custom_attrs: custom attribute
|
|
250
|
-
**props: The props of the component.
|
|
251
|
-
|
|
252
|
-
Returns:
|
|
253
|
-
The component.
|
|
254
|
-
"""
|
|
255
|
-
...
|
|
256
|
-
|
|
257
|
-
class Slide(Transition):
|
|
258
|
-
@overload
|
|
259
|
-
@classmethod
|
|
260
|
-
def create( # type: ignore
|
|
261
|
-
cls,
|
|
262
|
-
*children,
|
|
263
|
-
direction: Optional[Union[Var[str], str]] = None,
|
|
264
|
-
in_: Optional[Union[Var[bool], bool]] = None,
|
|
265
|
-
unmount_on_exit: Optional[Union[Var[bool], bool]] = None,
|
|
266
|
-
style: Optional[Style] = None,
|
|
267
|
-
key: Optional[Any] = None,
|
|
268
|
-
id: Optional[Any] = None,
|
|
269
|
-
class_name: Optional[Any] = None,
|
|
270
|
-
autofocus: Optional[bool] = None,
|
|
271
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
272
|
-
on_blur: Optional[
|
|
273
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
274
|
-
] = None,
|
|
275
|
-
on_click: Optional[
|
|
276
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
277
|
-
] = None,
|
|
278
|
-
on_context_menu: Optional[
|
|
279
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
280
|
-
] = None,
|
|
281
|
-
on_double_click: Optional[
|
|
282
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
283
|
-
] = None,
|
|
284
|
-
on_focus: Optional[
|
|
285
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
286
|
-
] = None,
|
|
287
|
-
on_mount: Optional[
|
|
288
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
289
|
-
] = None,
|
|
290
|
-
on_mouse_down: Optional[
|
|
291
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
292
|
-
] = None,
|
|
293
|
-
on_mouse_enter: Optional[
|
|
294
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
295
|
-
] = None,
|
|
296
|
-
on_mouse_leave: Optional[
|
|
297
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
298
|
-
] = None,
|
|
299
|
-
on_mouse_move: Optional[
|
|
300
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
301
|
-
] = None,
|
|
302
|
-
on_mouse_out: Optional[
|
|
303
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
304
|
-
] = None,
|
|
305
|
-
on_mouse_over: Optional[
|
|
306
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
307
|
-
] = None,
|
|
308
|
-
on_mouse_up: Optional[
|
|
309
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
310
|
-
] = None,
|
|
311
|
-
on_scroll: Optional[
|
|
312
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
313
|
-
] = None,
|
|
314
|
-
on_unmount: Optional[
|
|
315
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
316
|
-
] = None,
|
|
317
|
-
**props,
|
|
318
|
-
) -> "Slide":
|
|
319
|
-
"""Create the component.
|
|
320
|
-
|
|
321
|
-
Args:
|
|
322
|
-
*children: The children of the component.
|
|
323
|
-
direction: The direction to slide from
|
|
324
|
-
in_: Show the component; triggers when enter or exit states
|
|
325
|
-
unmount_on_exit: If true, the element will unmount when `in={false}` and animation is done
|
|
326
|
-
style: The style of the component.
|
|
327
|
-
key: A unique key for the component.
|
|
328
|
-
id: The id for the component.
|
|
329
|
-
class_name: The class name for the component.
|
|
330
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
331
|
-
custom_attrs: custom attribute
|
|
332
|
-
**props: The props of the component.
|
|
333
|
-
|
|
334
|
-
Returns:
|
|
335
|
-
The component.
|
|
336
|
-
"""
|
|
337
|
-
...
|
|
338
|
-
|
|
339
|
-
class SlideFade(Transition):
|
|
340
|
-
@overload
|
|
341
|
-
@classmethod
|
|
342
|
-
def create( # type: ignore
|
|
343
|
-
cls,
|
|
344
|
-
*children,
|
|
345
|
-
offsetX: Optional[Union[Var[Union[int, str]], str, int]] = None,
|
|
346
|
-
offsetY: Optional[Union[Var[Union[int, str]], str, int]] = None,
|
|
347
|
-
reverse: Optional[Union[Var[bool], bool]] = None,
|
|
348
|
-
in_: Optional[Union[Var[bool], bool]] = None,
|
|
349
|
-
unmount_on_exit: Optional[Union[Var[bool], bool]] = None,
|
|
350
|
-
style: Optional[Style] = None,
|
|
351
|
-
key: Optional[Any] = None,
|
|
352
|
-
id: Optional[Any] = None,
|
|
353
|
-
class_name: Optional[Any] = None,
|
|
354
|
-
autofocus: Optional[bool] = None,
|
|
355
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
356
|
-
on_blur: Optional[
|
|
357
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
358
|
-
] = None,
|
|
359
|
-
on_click: Optional[
|
|
360
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
361
|
-
] = None,
|
|
362
|
-
on_context_menu: Optional[
|
|
363
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
364
|
-
] = None,
|
|
365
|
-
on_double_click: Optional[
|
|
366
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
367
|
-
] = None,
|
|
368
|
-
on_focus: Optional[
|
|
369
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
370
|
-
] = None,
|
|
371
|
-
on_mount: Optional[
|
|
372
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
373
|
-
] = None,
|
|
374
|
-
on_mouse_down: Optional[
|
|
375
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
376
|
-
] = None,
|
|
377
|
-
on_mouse_enter: Optional[
|
|
378
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
379
|
-
] = None,
|
|
380
|
-
on_mouse_leave: Optional[
|
|
381
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
382
|
-
] = None,
|
|
383
|
-
on_mouse_move: Optional[
|
|
384
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
385
|
-
] = None,
|
|
386
|
-
on_mouse_out: Optional[
|
|
387
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
388
|
-
] = None,
|
|
389
|
-
on_mouse_over: Optional[
|
|
390
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
391
|
-
] = None,
|
|
392
|
-
on_mouse_up: Optional[
|
|
393
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
394
|
-
] = None,
|
|
395
|
-
on_scroll: Optional[
|
|
396
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
397
|
-
] = None,
|
|
398
|
-
on_unmount: Optional[
|
|
399
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
400
|
-
] = None,
|
|
401
|
-
**props,
|
|
402
|
-
) -> "SlideFade":
|
|
403
|
-
"""Create the component.
|
|
404
|
-
|
|
405
|
-
Args:
|
|
406
|
-
*children: The children of the component.
|
|
407
|
-
offsetX: The offset on the horizontal or x axis
|
|
408
|
-
offsetY: The offset on the vertical or y axis
|
|
409
|
-
reverse: If true, the element will be transitioned back to the offset when it leaves. Otherwise, it'll only fade out
|
|
410
|
-
in_: Show the component; triggers when enter or exit states
|
|
411
|
-
unmount_on_exit: If true, the element will unmount when `in={false}` and animation is done
|
|
412
|
-
style: The style of the component.
|
|
413
|
-
key: A unique key for the component.
|
|
414
|
-
id: The id for the component.
|
|
415
|
-
class_name: The class name for the component.
|
|
416
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
417
|
-
custom_attrs: custom attribute
|
|
418
|
-
**props: The props of the component.
|
|
419
|
-
|
|
420
|
-
Returns:
|
|
421
|
-
The component.
|
|
422
|
-
"""
|
|
423
|
-
...
|
|
424
|
-
|
|
425
|
-
class Collapse(Transition):
|
|
426
|
-
@overload
|
|
427
|
-
@classmethod
|
|
428
|
-
def create( # type: ignore
|
|
429
|
-
cls,
|
|
430
|
-
*children,
|
|
431
|
-
animateOpacity: Optional[Union[Var[bool], bool]] = None,
|
|
432
|
-
endingHeight: Optional[Union[Var[str], str]] = None,
|
|
433
|
-
startingHeight: Optional[Union[Var[Union[int, str]], str, int]] = None,
|
|
434
|
-
in_: Optional[Union[Var[bool], bool]] = None,
|
|
435
|
-
unmount_on_exit: Optional[Union[Var[bool], bool]] = None,
|
|
436
|
-
style: Optional[Style] = None,
|
|
437
|
-
key: Optional[Any] = None,
|
|
438
|
-
id: Optional[Any] = None,
|
|
439
|
-
class_name: Optional[Any] = None,
|
|
440
|
-
autofocus: Optional[bool] = None,
|
|
441
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
442
|
-
on_blur: Optional[
|
|
443
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
444
|
-
] = None,
|
|
445
|
-
on_click: Optional[
|
|
446
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
447
|
-
] = None,
|
|
448
|
-
on_context_menu: Optional[
|
|
449
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
450
|
-
] = None,
|
|
451
|
-
on_double_click: Optional[
|
|
452
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
453
|
-
] = None,
|
|
454
|
-
on_focus: Optional[
|
|
455
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
456
|
-
] = None,
|
|
457
|
-
on_mount: Optional[
|
|
458
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
459
|
-
] = None,
|
|
460
|
-
on_mouse_down: Optional[
|
|
461
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
462
|
-
] = None,
|
|
463
|
-
on_mouse_enter: Optional[
|
|
464
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
465
|
-
] = None,
|
|
466
|
-
on_mouse_leave: Optional[
|
|
467
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
468
|
-
] = None,
|
|
469
|
-
on_mouse_move: Optional[
|
|
470
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
471
|
-
] = None,
|
|
472
|
-
on_mouse_out: Optional[
|
|
473
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
474
|
-
] = None,
|
|
475
|
-
on_mouse_over: Optional[
|
|
476
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
477
|
-
] = None,
|
|
478
|
-
on_mouse_up: Optional[
|
|
479
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
480
|
-
] = None,
|
|
481
|
-
on_scroll: Optional[
|
|
482
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
483
|
-
] = None,
|
|
484
|
-
on_unmount: Optional[
|
|
485
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
486
|
-
] = None,
|
|
487
|
-
**props,
|
|
488
|
-
) -> "Collapse":
|
|
489
|
-
"""Create the component.
|
|
490
|
-
|
|
491
|
-
Args:
|
|
492
|
-
*children: The children of the component.
|
|
493
|
-
animateOpacity: If true, the opacity of the content will be animated
|
|
494
|
-
endingHeight: The height you want the content in its expanded state.
|
|
495
|
-
startingHeight: The height you want the content in its collapsed state.
|
|
496
|
-
in_: Show the component; triggers when enter or exit states
|
|
497
|
-
unmount_on_exit: If true, the element will unmount when `in={false}` and animation is done
|
|
498
|
-
style: The style of the component.
|
|
499
|
-
key: A unique key for the component.
|
|
500
|
-
id: The id for the component.
|
|
501
|
-
class_name: The class name for the component.
|
|
502
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
503
|
-
custom_attrs: custom attribute
|
|
504
|
-
**props: The props of the component.
|
|
505
|
-
|
|
506
|
-
Returns:
|
|
507
|
-
The component.
|
|
508
|
-
"""
|
|
509
|
-
...
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"""A component to display visually hidden text."""
|
|
2
|
-
|
|
3
|
-
from reflex.components.chakra import ChakraComponent
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class VisuallyHidden(ChakraComponent):
|
|
7
|
-
"""A component that visually hides content while still allowing it to be read by screen readers."""
|
|
8
|
-
|
|
9
|
-
tag = "VisuallyHidden"
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"""Stub file for reflex/components/chakra/disclosure/visuallyhidden.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 VisuallyHidden(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
|
-
) -> "VisuallyHidden":
|
|
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,7 +0,0 @@
|
|
|
1
|
-
"""Convenience functions to define core components."""
|
|
2
|
-
|
|
3
|
-
from .alert import Alert, AlertDescription, AlertIcon, AlertTitle
|
|
4
|
-
from .circularprogress import CircularProgress, CircularProgressLabel
|
|
5
|
-
from .progress import Progress
|
|
6
|
-
from .skeleton import Skeleton, SkeletonCircle, SkeletonText
|
|
7
|
-
from .spinner import Spinner
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"""Alert components."""
|
|
2
|
-
|
|
3
|
-
from reflex.components.chakra import (
|
|
4
|
-
ChakraComponent,
|
|
5
|
-
LiteralAlertVariant,
|
|
6
|
-
LiteralStatus,
|
|
7
|
-
)
|
|
8
|
-
from reflex.components.component import Component
|
|
9
|
-
from reflex.vars import Var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class Alert(ChakraComponent):
|
|
13
|
-
"""An alert feedback box."""
|
|
14
|
-
|
|
15
|
-
tag = "Alert"
|
|
16
|
-
|
|
17
|
-
# The status of the alert ("success" | "info" | "warning" | "error")
|
|
18
|
-
status: Var[LiteralStatus]
|
|
19
|
-
|
|
20
|
-
# "subtle" | "left-accent" | "top-accent" | "solid"
|
|
21
|
-
variant: Var[LiteralAlertVariant]
|
|
22
|
-
|
|
23
|
-
@classmethod
|
|
24
|
-
def create(
|
|
25
|
-
cls, *children, icon=True, title="Alert title", desc=None, **props
|
|
26
|
-
) -> Component:
|
|
27
|
-
"""Create an alert component.
|
|
28
|
-
|
|
29
|
-
Args:
|
|
30
|
-
*children: The children of the component.
|
|
31
|
-
icon: The icon of the alert.
|
|
32
|
-
title: The title of the alert.
|
|
33
|
-
desc: The description of the alert
|
|
34
|
-
**props: The properties of the component.
|
|
35
|
-
|
|
36
|
-
Returns:
|
|
37
|
-
The alert component.
|
|
38
|
-
"""
|
|
39
|
-
if len(children) == 0:
|
|
40
|
-
children = []
|
|
41
|
-
|
|
42
|
-
if icon:
|
|
43
|
-
children.append(AlertIcon.create())
|
|
44
|
-
|
|
45
|
-
children.append(AlertTitle.create(title))
|
|
46
|
-
|
|
47
|
-
if desc:
|
|
48
|
-
children.append(AlertDescription.create(desc))
|
|
49
|
-
|
|
50
|
-
return super().create(*children, **props)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
class AlertIcon(ChakraComponent):
|
|
54
|
-
"""An icon displayed in the alert."""
|
|
55
|
-
|
|
56
|
-
tag = "AlertIcon"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
class AlertTitle(ChakraComponent):
|
|
60
|
-
"""The title of the alert."""
|
|
61
|
-
|
|
62
|
-
tag = "AlertTitle"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
class AlertDescription(ChakraComponent):
|
|
66
|
-
"""AlertDescription composes the Box component."""
|
|
67
|
-
|
|
68
|
-
tag = "AlertDescription"
|