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,379 +0,0 @@
|
|
|
1
|
-
"""Stub file for reflex/components/chakra/layout/card.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 (
|
|
9
|
-
ChakraComponent,
|
|
10
|
-
)
|
|
11
|
-
from reflex.components.component import Component
|
|
12
|
-
from reflex.event import EventHandler, EventSpec
|
|
13
|
-
from reflex.style import Style
|
|
14
|
-
from reflex.vars import BaseVar, Var
|
|
15
|
-
|
|
16
|
-
class CardHeader(ChakraComponent):
|
|
17
|
-
@overload
|
|
18
|
-
@classmethod
|
|
19
|
-
def create( # type: ignore
|
|
20
|
-
cls,
|
|
21
|
-
*children,
|
|
22
|
-
style: Optional[Style] = None,
|
|
23
|
-
key: Optional[Any] = None,
|
|
24
|
-
id: Optional[Any] = None,
|
|
25
|
-
class_name: Optional[Any] = None,
|
|
26
|
-
autofocus: Optional[bool] = None,
|
|
27
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
28
|
-
on_blur: Optional[
|
|
29
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
30
|
-
] = None,
|
|
31
|
-
on_click: Optional[
|
|
32
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
33
|
-
] = None,
|
|
34
|
-
on_context_menu: Optional[
|
|
35
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
36
|
-
] = None,
|
|
37
|
-
on_double_click: Optional[
|
|
38
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
39
|
-
] = None,
|
|
40
|
-
on_focus: Optional[
|
|
41
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
42
|
-
] = None,
|
|
43
|
-
on_mount: Optional[
|
|
44
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
45
|
-
] = None,
|
|
46
|
-
on_mouse_down: Optional[
|
|
47
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
48
|
-
] = None,
|
|
49
|
-
on_mouse_enter: Optional[
|
|
50
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
51
|
-
] = None,
|
|
52
|
-
on_mouse_leave: Optional[
|
|
53
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
54
|
-
] = None,
|
|
55
|
-
on_mouse_move: Optional[
|
|
56
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
57
|
-
] = None,
|
|
58
|
-
on_mouse_out: Optional[
|
|
59
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
60
|
-
] = None,
|
|
61
|
-
on_mouse_over: Optional[
|
|
62
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
63
|
-
] = None,
|
|
64
|
-
on_mouse_up: Optional[
|
|
65
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
66
|
-
] = None,
|
|
67
|
-
on_scroll: Optional[
|
|
68
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
69
|
-
] = None,
|
|
70
|
-
on_unmount: Optional[
|
|
71
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
72
|
-
] = None,
|
|
73
|
-
**props,
|
|
74
|
-
) -> "CardHeader":
|
|
75
|
-
"""Create the component.
|
|
76
|
-
|
|
77
|
-
Args:
|
|
78
|
-
*children: The children of the component.
|
|
79
|
-
style: The style of the component.
|
|
80
|
-
key: A unique key for the component.
|
|
81
|
-
id: The id for the component.
|
|
82
|
-
class_name: The class name for the component.
|
|
83
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
84
|
-
custom_attrs: custom attribute
|
|
85
|
-
**props: The props of the component.
|
|
86
|
-
|
|
87
|
-
Returns:
|
|
88
|
-
The component.
|
|
89
|
-
"""
|
|
90
|
-
...
|
|
91
|
-
|
|
92
|
-
class CardBody(ChakraComponent):
|
|
93
|
-
@overload
|
|
94
|
-
@classmethod
|
|
95
|
-
def create( # type: ignore
|
|
96
|
-
cls,
|
|
97
|
-
*children,
|
|
98
|
-
style: Optional[Style] = None,
|
|
99
|
-
key: Optional[Any] = None,
|
|
100
|
-
id: Optional[Any] = None,
|
|
101
|
-
class_name: Optional[Any] = None,
|
|
102
|
-
autofocus: Optional[bool] = None,
|
|
103
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
104
|
-
on_blur: Optional[
|
|
105
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
106
|
-
] = None,
|
|
107
|
-
on_click: Optional[
|
|
108
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
109
|
-
] = None,
|
|
110
|
-
on_context_menu: Optional[
|
|
111
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
112
|
-
] = None,
|
|
113
|
-
on_double_click: Optional[
|
|
114
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
115
|
-
] = None,
|
|
116
|
-
on_focus: Optional[
|
|
117
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
118
|
-
] = None,
|
|
119
|
-
on_mount: Optional[
|
|
120
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
121
|
-
] = None,
|
|
122
|
-
on_mouse_down: Optional[
|
|
123
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
124
|
-
] = None,
|
|
125
|
-
on_mouse_enter: Optional[
|
|
126
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
127
|
-
] = None,
|
|
128
|
-
on_mouse_leave: Optional[
|
|
129
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
130
|
-
] = None,
|
|
131
|
-
on_mouse_move: Optional[
|
|
132
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
133
|
-
] = None,
|
|
134
|
-
on_mouse_out: Optional[
|
|
135
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
136
|
-
] = None,
|
|
137
|
-
on_mouse_over: Optional[
|
|
138
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
139
|
-
] = None,
|
|
140
|
-
on_mouse_up: Optional[
|
|
141
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
142
|
-
] = None,
|
|
143
|
-
on_scroll: Optional[
|
|
144
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
145
|
-
] = None,
|
|
146
|
-
on_unmount: Optional[
|
|
147
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
148
|
-
] = None,
|
|
149
|
-
**props,
|
|
150
|
-
) -> "CardBody":
|
|
151
|
-
"""Create the component.
|
|
152
|
-
|
|
153
|
-
Args:
|
|
154
|
-
*children: The children of the component.
|
|
155
|
-
style: The style of the component.
|
|
156
|
-
key: A unique key for the component.
|
|
157
|
-
id: The id for the component.
|
|
158
|
-
class_name: The class name for the component.
|
|
159
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
160
|
-
custom_attrs: custom attribute
|
|
161
|
-
**props: The props of the component.
|
|
162
|
-
|
|
163
|
-
Returns:
|
|
164
|
-
The component.
|
|
165
|
-
"""
|
|
166
|
-
...
|
|
167
|
-
|
|
168
|
-
class CardFooter(ChakraComponent):
|
|
169
|
-
@overload
|
|
170
|
-
@classmethod
|
|
171
|
-
def create( # type: ignore
|
|
172
|
-
cls,
|
|
173
|
-
*children,
|
|
174
|
-
style: Optional[Style] = None,
|
|
175
|
-
key: Optional[Any] = None,
|
|
176
|
-
id: Optional[Any] = None,
|
|
177
|
-
class_name: Optional[Any] = None,
|
|
178
|
-
autofocus: Optional[bool] = None,
|
|
179
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
180
|
-
on_blur: Optional[
|
|
181
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
182
|
-
] = None,
|
|
183
|
-
on_click: Optional[
|
|
184
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
185
|
-
] = None,
|
|
186
|
-
on_context_menu: Optional[
|
|
187
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
188
|
-
] = None,
|
|
189
|
-
on_double_click: Optional[
|
|
190
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
191
|
-
] = None,
|
|
192
|
-
on_focus: Optional[
|
|
193
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
194
|
-
] = None,
|
|
195
|
-
on_mount: Optional[
|
|
196
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
197
|
-
] = None,
|
|
198
|
-
on_mouse_down: Optional[
|
|
199
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
200
|
-
] = None,
|
|
201
|
-
on_mouse_enter: Optional[
|
|
202
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
203
|
-
] = None,
|
|
204
|
-
on_mouse_leave: Optional[
|
|
205
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
206
|
-
] = None,
|
|
207
|
-
on_mouse_move: Optional[
|
|
208
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
209
|
-
] = None,
|
|
210
|
-
on_mouse_out: Optional[
|
|
211
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
212
|
-
] = None,
|
|
213
|
-
on_mouse_over: Optional[
|
|
214
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
215
|
-
] = None,
|
|
216
|
-
on_mouse_up: Optional[
|
|
217
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
218
|
-
] = None,
|
|
219
|
-
on_scroll: Optional[
|
|
220
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
221
|
-
] = None,
|
|
222
|
-
on_unmount: Optional[
|
|
223
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
224
|
-
] = None,
|
|
225
|
-
**props,
|
|
226
|
-
) -> "CardFooter":
|
|
227
|
-
"""Create the component.
|
|
228
|
-
|
|
229
|
-
Args:
|
|
230
|
-
*children: The children of the component.
|
|
231
|
-
style: The style of the component.
|
|
232
|
-
key: A unique key for the component.
|
|
233
|
-
id: The id for the component.
|
|
234
|
-
class_name: The class name for the component.
|
|
235
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
236
|
-
custom_attrs: custom attribute
|
|
237
|
-
**props: The props of the component.
|
|
238
|
-
|
|
239
|
-
Returns:
|
|
240
|
-
The component.
|
|
241
|
-
"""
|
|
242
|
-
...
|
|
243
|
-
|
|
244
|
-
class Card(ChakraComponent):
|
|
245
|
-
@overload
|
|
246
|
-
@classmethod
|
|
247
|
-
def create( # type: ignore
|
|
248
|
-
cls,
|
|
249
|
-
*children,
|
|
250
|
-
header: Optional[Component] = None,
|
|
251
|
-
footer: Optional[Component] = None,
|
|
252
|
-
align: Optional[Union[Var[str], str]] = None,
|
|
253
|
-
direction: Optional[Union[Var[str], str]] = None,
|
|
254
|
-
justify: Optional[Union[Var[str], str]] = None,
|
|
255
|
-
color_scheme: Optional[
|
|
256
|
-
Union[
|
|
257
|
-
Var[
|
|
258
|
-
Literal[
|
|
259
|
-
"none",
|
|
260
|
-
"gray",
|
|
261
|
-
"red",
|
|
262
|
-
"orange",
|
|
263
|
-
"yellow",
|
|
264
|
-
"green",
|
|
265
|
-
"teal",
|
|
266
|
-
"blue",
|
|
267
|
-
"cyan",
|
|
268
|
-
"purple",
|
|
269
|
-
"pink",
|
|
270
|
-
"whiteAlpha",
|
|
271
|
-
"blackAlpha",
|
|
272
|
-
"linkedin",
|
|
273
|
-
"facebook",
|
|
274
|
-
"messenger",
|
|
275
|
-
"whatsapp",
|
|
276
|
-
"twitter",
|
|
277
|
-
"telegram",
|
|
278
|
-
]
|
|
279
|
-
],
|
|
280
|
-
Literal[
|
|
281
|
-
"none",
|
|
282
|
-
"gray",
|
|
283
|
-
"red",
|
|
284
|
-
"orange",
|
|
285
|
-
"yellow",
|
|
286
|
-
"green",
|
|
287
|
-
"teal",
|
|
288
|
-
"blue",
|
|
289
|
-
"cyan",
|
|
290
|
-
"purple",
|
|
291
|
-
"pink",
|
|
292
|
-
"whiteAlpha",
|
|
293
|
-
"blackAlpha",
|
|
294
|
-
"linkedin",
|
|
295
|
-
"facebook",
|
|
296
|
-
"messenger",
|
|
297
|
-
"whatsapp",
|
|
298
|
-
"twitter",
|
|
299
|
-
"telegram",
|
|
300
|
-
],
|
|
301
|
-
]
|
|
302
|
-
] = None,
|
|
303
|
-
size: Optional[
|
|
304
|
-
Union[Var[Literal["sm", "md", "lg"]], Literal["sm", "md", "lg"]]
|
|
305
|
-
] = None,
|
|
306
|
-
variant: Optional[
|
|
307
|
-
Union[
|
|
308
|
-
Var[Literal["outline", "filled", "elevated", "unstyled"]],
|
|
309
|
-
Literal["outline", "filled", "elevated", "unstyled"],
|
|
310
|
-
]
|
|
311
|
-
] = None,
|
|
312
|
-
style: Optional[Style] = None,
|
|
313
|
-
key: Optional[Any] = None,
|
|
314
|
-
id: Optional[Any] = None,
|
|
315
|
-
class_name: Optional[Any] = None,
|
|
316
|
-
autofocus: Optional[bool] = None,
|
|
317
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
318
|
-
on_blur: Optional[
|
|
319
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
320
|
-
] = None,
|
|
321
|
-
on_click: Optional[
|
|
322
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
323
|
-
] = None,
|
|
324
|
-
on_context_menu: Optional[
|
|
325
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
326
|
-
] = None,
|
|
327
|
-
on_double_click: Optional[
|
|
328
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
329
|
-
] = None,
|
|
330
|
-
on_focus: Optional[
|
|
331
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
332
|
-
] = None,
|
|
333
|
-
on_mount: Optional[
|
|
334
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
335
|
-
] = None,
|
|
336
|
-
on_mouse_down: Optional[
|
|
337
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
338
|
-
] = None,
|
|
339
|
-
on_mouse_enter: Optional[
|
|
340
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
341
|
-
] = None,
|
|
342
|
-
on_mouse_leave: Optional[
|
|
343
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
344
|
-
] = None,
|
|
345
|
-
on_mouse_move: Optional[
|
|
346
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
347
|
-
] = None,
|
|
348
|
-
on_mouse_out: Optional[
|
|
349
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
350
|
-
] = None,
|
|
351
|
-
on_mouse_over: Optional[
|
|
352
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
353
|
-
] = None,
|
|
354
|
-
on_mouse_up: Optional[
|
|
355
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
356
|
-
] = None,
|
|
357
|
-
on_scroll: Optional[
|
|
358
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
359
|
-
] = None,
|
|
360
|
-
on_unmount: Optional[
|
|
361
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
362
|
-
] = None,
|
|
363
|
-
**props,
|
|
364
|
-
) -> "Card":
|
|
365
|
-
"""Creates a Chakra Card with a body and optionally header and/or footer, and returns it.
|
|
366
|
-
If header, body or footer are not already instances of Chead, Cbody or Cfoot respectively,
|
|
367
|
-
they will be wrapped as such for layout purposes. If you want to modify their props,
|
|
368
|
-
e.g. padding_left, you should wrap them yourself.
|
|
369
|
-
|
|
370
|
-
Args:
|
|
371
|
-
body (Component): The main content of the Card that will be created.
|
|
372
|
-
header (Optional[Component]): The header of the Card.
|
|
373
|
-
footer (Optional[Component]): The footer of the Card.
|
|
374
|
-
props: The properties to be passed to the component.
|
|
375
|
-
|
|
376
|
-
Returns:
|
|
377
|
-
The `create()` method returns a Card object.
|
|
378
|
-
"""
|
|
379
|
-
...
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"""A box that centers its contents."""
|
|
2
|
-
|
|
3
|
-
from reflex.components.chakra import ChakraComponent
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class Center(ChakraComponent):
|
|
7
|
-
"""A box that centers its contents."""
|
|
8
|
-
|
|
9
|
-
tag = "Center"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class Square(ChakraComponent):
|
|
13
|
-
"""A centered square container."""
|
|
14
|
-
|
|
15
|
-
tag = "Square"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
class Circle(ChakraComponent):
|
|
19
|
-
"""A square container with round border-radius."""
|
|
20
|
-
|
|
21
|
-
tag = "Circle"
|
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
"""Stub file for reflex/components/chakra/layout/center.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 Center(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
|
-
) -> "Center":
|
|
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
|
-
...
|
|
88
|
-
|
|
89
|
-
class Square(ChakraComponent):
|
|
90
|
-
@overload
|
|
91
|
-
@classmethod
|
|
92
|
-
def create( # type: ignore
|
|
93
|
-
cls,
|
|
94
|
-
*children,
|
|
95
|
-
style: Optional[Style] = None,
|
|
96
|
-
key: Optional[Any] = None,
|
|
97
|
-
id: Optional[Any] = None,
|
|
98
|
-
class_name: Optional[Any] = None,
|
|
99
|
-
autofocus: Optional[bool] = None,
|
|
100
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
101
|
-
on_blur: Optional[
|
|
102
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
103
|
-
] = None,
|
|
104
|
-
on_click: Optional[
|
|
105
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
106
|
-
] = None,
|
|
107
|
-
on_context_menu: Optional[
|
|
108
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
109
|
-
] = None,
|
|
110
|
-
on_double_click: Optional[
|
|
111
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
112
|
-
] = None,
|
|
113
|
-
on_focus: Optional[
|
|
114
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
115
|
-
] = None,
|
|
116
|
-
on_mount: Optional[
|
|
117
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
118
|
-
] = None,
|
|
119
|
-
on_mouse_down: Optional[
|
|
120
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
121
|
-
] = None,
|
|
122
|
-
on_mouse_enter: Optional[
|
|
123
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
124
|
-
] = None,
|
|
125
|
-
on_mouse_leave: Optional[
|
|
126
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
127
|
-
] = None,
|
|
128
|
-
on_mouse_move: Optional[
|
|
129
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
130
|
-
] = None,
|
|
131
|
-
on_mouse_out: Optional[
|
|
132
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
133
|
-
] = None,
|
|
134
|
-
on_mouse_over: Optional[
|
|
135
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
136
|
-
] = None,
|
|
137
|
-
on_mouse_up: Optional[
|
|
138
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
139
|
-
] = None,
|
|
140
|
-
on_scroll: Optional[
|
|
141
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
142
|
-
] = None,
|
|
143
|
-
on_unmount: Optional[
|
|
144
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
145
|
-
] = None,
|
|
146
|
-
**props,
|
|
147
|
-
) -> "Square":
|
|
148
|
-
"""Create the component.
|
|
149
|
-
|
|
150
|
-
Args:
|
|
151
|
-
*children: The children of the component.
|
|
152
|
-
style: The style of the component.
|
|
153
|
-
key: A unique key for the component.
|
|
154
|
-
id: The id for the component.
|
|
155
|
-
class_name: The class name for the component.
|
|
156
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
157
|
-
custom_attrs: custom attribute
|
|
158
|
-
**props: The props of the component.
|
|
159
|
-
|
|
160
|
-
Returns:
|
|
161
|
-
The component.
|
|
162
|
-
"""
|
|
163
|
-
...
|
|
164
|
-
|
|
165
|
-
class Circle(ChakraComponent):
|
|
166
|
-
@overload
|
|
167
|
-
@classmethod
|
|
168
|
-
def create( # type: ignore
|
|
169
|
-
cls,
|
|
170
|
-
*children,
|
|
171
|
-
style: Optional[Style] = None,
|
|
172
|
-
key: Optional[Any] = None,
|
|
173
|
-
id: Optional[Any] = None,
|
|
174
|
-
class_name: Optional[Any] = None,
|
|
175
|
-
autofocus: Optional[bool] = None,
|
|
176
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
177
|
-
on_blur: Optional[
|
|
178
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
179
|
-
] = None,
|
|
180
|
-
on_click: Optional[
|
|
181
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
182
|
-
] = None,
|
|
183
|
-
on_context_menu: Optional[
|
|
184
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
185
|
-
] = None,
|
|
186
|
-
on_double_click: Optional[
|
|
187
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
188
|
-
] = None,
|
|
189
|
-
on_focus: Optional[
|
|
190
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
191
|
-
] = None,
|
|
192
|
-
on_mount: Optional[
|
|
193
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
194
|
-
] = None,
|
|
195
|
-
on_mouse_down: Optional[
|
|
196
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
197
|
-
] = None,
|
|
198
|
-
on_mouse_enter: Optional[
|
|
199
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
200
|
-
] = None,
|
|
201
|
-
on_mouse_leave: Optional[
|
|
202
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
203
|
-
] = None,
|
|
204
|
-
on_mouse_move: Optional[
|
|
205
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
206
|
-
] = None,
|
|
207
|
-
on_mouse_out: Optional[
|
|
208
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
209
|
-
] = None,
|
|
210
|
-
on_mouse_over: Optional[
|
|
211
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
212
|
-
] = None,
|
|
213
|
-
on_mouse_up: Optional[
|
|
214
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
215
|
-
] = None,
|
|
216
|
-
on_scroll: Optional[
|
|
217
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
218
|
-
] = None,
|
|
219
|
-
on_unmount: Optional[
|
|
220
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
221
|
-
] = None,
|
|
222
|
-
**props,
|
|
223
|
-
) -> "Circle":
|
|
224
|
-
"""Create the component.
|
|
225
|
-
|
|
226
|
-
Args:
|
|
227
|
-
*children: The children of the component.
|
|
228
|
-
style: The style of the component.
|
|
229
|
-
key: A unique key for the component.
|
|
230
|
-
id: The id for the component.
|
|
231
|
-
class_name: The class name for the component.
|
|
232
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
233
|
-
custom_attrs: custom attribute
|
|
234
|
-
**props: The props of the component.
|
|
235
|
-
|
|
236
|
-
Returns:
|
|
237
|
-
The component.
|
|
238
|
-
"""
|
|
239
|
-
...
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"""A flexbox container."""
|
|
2
|
-
|
|
3
|
-
from reflex.components.chakra import ChakraComponent
|
|
4
|
-
from reflex.vars import Var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class Container(ChakraComponent):
|
|
8
|
-
"""A flexbox container that centers its children and sets a max width."""
|
|
9
|
-
|
|
10
|
-
tag = "Container"
|
|
11
|
-
|
|
12
|
-
# If true, container will center its children regardless of their width.
|
|
13
|
-
center_content: Var[bool]
|