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.

Files changed (170) hide show
  1. reflex/.templates/web/utils/client_side_routing.js +6 -1
  2. reflex/__init__.py +21 -2
  3. reflex/__init__.pyi +0 -1
  4. reflex/app.py +1 -1
  5. reflex/components/__init__.py +0 -1
  6. reflex/components/__init__.pyi +0 -1
  7. reflex/components/markdown/markdown.py +1 -1
  8. reflex/components/recharts/cartesian.py +3 -0
  9. reflex/components/recharts/cartesian.pyi +2 -0
  10. reflex/components/sonner/toast.py +27 -1
  11. reflex/components/sonner/toast.pyi +5 -0
  12. reflex/constants/base.py +2 -0
  13. reflex/constants/installer.py +2 -0
  14. reflex/experimental/hooks.py +1 -1
  15. reflex/reflex.py +0 -15
  16. reflex/state.py +22 -22
  17. reflex/testing.py +8 -3
  18. reflex/utils/net.py +43 -0
  19. reflex/utils/prerequisites.py +27 -126
  20. reflex/utils/registry.py +48 -0
  21. reflex/utils/types.py +1 -1
  22. reflex/vars.py +4 -2
  23. {reflex-0.5.9.dev1.dist-info → reflex-0.5.10.dist-info}/METADATA +2 -1
  24. {reflex-0.5.9.dev1.dist-info → reflex-0.5.10.dist-info}/RECORD +27 -168
  25. reflex/components/chakra/__init__.py +0 -204
  26. reflex/components/chakra/base.py +0 -210
  27. reflex/components/chakra/base.pyi +0 -319
  28. reflex/components/chakra/datadisplay/__init__.py +0 -10
  29. reflex/components/chakra/datadisplay/badge.py +0 -16
  30. reflex/components/chakra/datadisplay/badge.pyi +0 -96
  31. reflex/components/chakra/datadisplay/code.py +0 -11
  32. reflex/components/chakra/datadisplay/code.pyi +0 -87
  33. reflex/components/chakra/datadisplay/divider.py +0 -20
  34. reflex/components/chakra/datadisplay/divider.pyi +0 -100
  35. reflex/components/chakra/datadisplay/keyboard_key.py +0 -9
  36. reflex/components/chakra/datadisplay/keyboard_key.pyi +0 -87
  37. reflex/components/chakra/datadisplay/list.py +0 -60
  38. reflex/components/chakra/datadisplay/list.pyi +0 -339
  39. reflex/components/chakra/datadisplay/stat.py +0 -80
  40. reflex/components/chakra/datadisplay/stat.pyi +0 -477
  41. reflex/components/chakra/datadisplay/table.py +0 -305
  42. reflex/components/chakra/datadisplay/table.pyi +0 -737
  43. reflex/components/chakra/datadisplay/tag.py +0 -85
  44. reflex/components/chakra/datadisplay/tag.pyi +0 -433
  45. reflex/components/chakra/disclosure/__init__.py +0 -14
  46. reflex/components/chakra/disclosure/accordion.py +0 -110
  47. reflex/components/chakra/disclosure/accordion.pyi +0 -411
  48. reflex/components/chakra/disclosure/tabs.py +0 -117
  49. reflex/components/chakra/disclosure/tabs.pyi +0 -496
  50. reflex/components/chakra/disclosure/transition.py +0 -73
  51. reflex/components/chakra/disclosure/transition.pyi +0 -509
  52. reflex/components/chakra/disclosure/visuallyhidden.py +0 -9
  53. reflex/components/chakra/disclosure/visuallyhidden.pyi +0 -87
  54. reflex/components/chakra/feedback/__init__.py +0 -7
  55. reflex/components/chakra/feedback/alert.py +0 -68
  56. reflex/components/chakra/feedback/alert.pyi +0 -335
  57. reflex/components/chakra/feedback/circularprogress.py +0 -68
  58. reflex/components/chakra/feedback/circularprogress.pyi +0 -185
  59. reflex/components/chakra/feedback/progress.py +0 -33
  60. reflex/components/chakra/feedback/progress.pyi +0 -101
  61. reflex/components/chakra/feedback/skeleton.py +0 -70
  62. reflex/components/chakra/feedback/skeleton.pyi +0 -271
  63. reflex/components/chakra/feedback/spinner.py +0 -25
  64. reflex/components/chakra/feedback/spinner.pyi +0 -102
  65. reflex/components/chakra/forms/__init__.py +0 -49
  66. reflex/components/chakra/forms/button.py +0 -83
  67. reflex/components/chakra/forms/button.pyi +0 -262
  68. reflex/components/chakra/forms/checkbox.py +0 -77
  69. reflex/components/chakra/forms/checkbox.pyi +0 -247
  70. reflex/components/chakra/forms/colormodeswitch.py +0 -104
  71. reflex/components/chakra/forms/colormodeswitch.pyi +0 -473
  72. reflex/components/chakra/forms/date_picker.py +0 -11
  73. reflex/components/chakra/forms/date_picker.pyi +0 -129
  74. reflex/components/chakra/forms/date_time_picker.py +0 -11
  75. reflex/components/chakra/forms/date_time_picker.pyi +0 -129
  76. reflex/components/chakra/forms/editable.py +0 -67
  77. reflex/components/chakra/forms/editable.pyi +0 -343
  78. reflex/components/chakra/forms/email.py +0 -11
  79. reflex/components/chakra/forms/email.pyi +0 -129
  80. reflex/components/chakra/forms/form.py +0 -103
  81. reflex/components/chakra/forms/form.pyi +0 -484
  82. reflex/components/chakra/forms/iconbutton.py +0 -38
  83. reflex/components/chakra/forms/iconbutton.pyi +0 -108
  84. reflex/components/chakra/forms/input.py +0 -130
  85. reflex/components/chakra/forms/input.pyi +0 -566
  86. reflex/components/chakra/forms/multiselect.py +0 -355
  87. reflex/components/chakra/forms/numberinput.py +0 -128
  88. reflex/components/chakra/forms/numberinput.pyi +0 -442
  89. reflex/components/chakra/forms/password.py +0 -11
  90. reflex/components/chakra/forms/password.pyi +0 -129
  91. reflex/components/chakra/forms/pininput.py +0 -201
  92. reflex/components/chakra/forms/pininput.pyi +0 -215
  93. reflex/components/chakra/forms/radio.py +0 -101
  94. reflex/components/chakra/forms/radio.pyi +0 -197
  95. reflex/components/chakra/forms/rangeslider.py +0 -149
  96. reflex/components/chakra/forms/rangeslider.pyi +0 -354
  97. reflex/components/chakra/forms/select.py +0 -103
  98. reflex/components/chakra/forms/select.pyi +0 -204
  99. reflex/components/chakra/forms/slider.py +0 -130
  100. reflex/components/chakra/forms/slider.pyi +0 -449
  101. reflex/components/chakra/forms/switch.py +0 -49
  102. reflex/components/chakra/forms/switch.pyi +0 -159
  103. reflex/components/chakra/forms/textarea.py +0 -79
  104. reflex/components/chakra/forms/textarea.pyi +0 -123
  105. reflex/components/chakra/forms/time_picker.py +0 -11
  106. reflex/components/chakra/forms/time_picker.pyi +0 -129
  107. reflex/components/chakra/layout/__init__.py +0 -14
  108. reflex/components/chakra/layout/aspect_ratio.py +0 -13
  109. reflex/components/chakra/layout/aspect_ratio.pyi +0 -89
  110. reflex/components/chakra/layout/box.py +0 -31
  111. reflex/components/chakra/layout/box.pyi +0 -93
  112. reflex/components/chakra/layout/card.py +0 -100
  113. reflex/components/chakra/layout/card.pyi +0 -379
  114. reflex/components/chakra/layout/center.py +0 -21
  115. reflex/components/chakra/layout/center.pyi +0 -239
  116. reflex/components/chakra/layout/container.py +0 -13
  117. reflex/components/chakra/layout/container.pyi +0 -89
  118. reflex/components/chakra/layout/flex.py +0 -33
  119. reflex/components/chakra/layout/flex.pyi +0 -101
  120. reflex/components/chakra/layout/grid.py +0 -125
  121. reflex/components/chakra/layout/grid.pyi +0 -293
  122. reflex/components/chakra/layout/spacer.py +0 -9
  123. reflex/components/chakra/layout/spacer.pyi +0 -87
  124. reflex/components/chakra/layout/stack.py +0 -48
  125. reflex/components/chakra/layout/stack.pyi +0 -305
  126. reflex/components/chakra/layout/wrap.py +0 -57
  127. reflex/components/chakra/layout/wrap.pyi +0 -179
  128. reflex/components/chakra/media/__init__.py +0 -7
  129. reflex/components/chakra/media/avatar.py +0 -58
  130. reflex/components/chakra/media/avatar.pyi +0 -267
  131. reflex/components/chakra/media/icon.py +0 -111
  132. reflex/components/chakra/media/icon.pyi +0 -171
  133. reflex/components/chakra/media/image.py +0 -74
  134. reflex/components/chakra/media/image.pyi +0 -118
  135. reflex/components/chakra/navigation/__init__.py +0 -18
  136. reflex/components/chakra/navigation/breadcrumb.py +0 -98
  137. reflex/components/chakra/navigation/breadcrumb.pyi +0 -351
  138. reflex/components/chakra/navigation/link.py +0 -62
  139. reflex/components/chakra/navigation/link.pyi +0 -105
  140. reflex/components/chakra/navigation/linkoverlay.py +0 -22
  141. reflex/components/chakra/navigation/linkoverlay.pyi +0 -167
  142. reflex/components/chakra/navigation/stepper.py +0 -113
  143. reflex/components/chakra/navigation/stepper.pyi +0 -762
  144. reflex/components/chakra/overlay/__init__.py +0 -50
  145. reflex/components/chakra/overlay/alertdialog.py +0 -153
  146. reflex/components/chakra/overlay/alertdialog.pyi +0 -612
  147. reflex/components/chakra/overlay/drawer.py +0 -168
  148. reflex/components/chakra/overlay/drawer.pyi +0 -652
  149. reflex/components/chakra/overlay/menu.py +0 -225
  150. reflex/components/chakra/overlay/menu.pyi +0 -708
  151. reflex/components/chakra/overlay/modal.py +0 -166
  152. reflex/components/chakra/overlay/modal.pyi +0 -600
  153. reflex/components/chakra/overlay/popover.py +0 -183
  154. reflex/components/chakra/overlay/popover.pyi +0 -757
  155. reflex/components/chakra/overlay/tooltip.py +0 -70
  156. reflex/components/chakra/overlay/tooltip.pyi +0 -129
  157. reflex/components/chakra/typography/__init__.py +0 -10
  158. reflex/components/chakra/typography/heading.py +0 -16
  159. reflex/components/chakra/typography/heading.pyi +0 -96
  160. reflex/components/chakra/typography/highlight.py +0 -23
  161. reflex/components/chakra/typography/highlight.pyi +0 -91
  162. reflex/components/chakra/typography/span.py +0 -15
  163. reflex/components/chakra/typography/span.pyi +0 -89
  164. reflex/components/chakra/typography/text.py +0 -18
  165. reflex/components/chakra/typography/text.pyi +0 -91
  166. reflex/components/media/__init__.py +0 -1
  167. reflex/components/media/icon.py +0 -3
  168. {reflex-0.5.9.dev1.dist-info → reflex-0.5.10.dist-info}/LICENSE +0 -0
  169. {reflex-0.5.9.dev1.dist-info → reflex-0.5.10.dist-info}/WHEEL +0 -0
  170. {reflex-0.5.9.dev1.dist-info → reflex-0.5.10.dist-info}/entry_points.txt +0 -0
@@ -1,335 +0,0 @@
1
- """Stub file for reflex/components/chakra/feedback/alert.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 Alert(ChakraComponent):
14
- @overload
15
- @classmethod
16
- def create( # type: ignore
17
- cls,
18
- *children,
19
- icon=True,
20
- title="Alert title",
21
- desc=None,
22
- status: Optional[
23
- Union[
24
- Var[Literal["success", "info", "warning", "error"]],
25
- Literal["success", "info", "warning", "error"],
26
- ]
27
- ] = None,
28
- variant: Optional[
29
- Union[
30
- Var[Literal["subtle", "left-accent", "top-accent", "solid"]],
31
- Literal["subtle", "left-accent", "top-accent", "solid"],
32
- ]
33
- ] = None,
34
- style: Optional[Style] = None,
35
- key: Optional[Any] = None,
36
- id: Optional[Any] = None,
37
- class_name: Optional[Any] = None,
38
- autofocus: Optional[bool] = None,
39
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
40
- on_blur: Optional[
41
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
42
- ] = None,
43
- on_click: Optional[
44
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
45
- ] = None,
46
- on_context_menu: Optional[
47
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
48
- ] = None,
49
- on_double_click: Optional[
50
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
51
- ] = None,
52
- on_focus: Optional[
53
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
54
- ] = None,
55
- on_mount: Optional[
56
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
57
- ] = None,
58
- on_mouse_down: Optional[
59
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
60
- ] = None,
61
- on_mouse_enter: Optional[
62
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
63
- ] = None,
64
- on_mouse_leave: Optional[
65
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
66
- ] = None,
67
- on_mouse_move: Optional[
68
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
69
- ] = None,
70
- on_mouse_out: Optional[
71
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
72
- ] = None,
73
- on_mouse_over: Optional[
74
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
75
- ] = None,
76
- on_mouse_up: Optional[
77
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
78
- ] = None,
79
- on_scroll: Optional[
80
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
81
- ] = None,
82
- on_unmount: Optional[
83
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
84
- ] = None,
85
- **props,
86
- ) -> "Alert":
87
- """Create an alert component.
88
-
89
- Args:
90
- *children: The children of the component.
91
- icon: The icon of the alert.
92
- title: The title of the alert.
93
- desc: The description of the alert
94
- status: The status of the alert ("success" | "info" | "warning" | "error")
95
- variant: "subtle" | "left-accent" | "top-accent" | "solid"
96
- style: The style of the component.
97
- key: A unique key for the component.
98
- id: The id for the component.
99
- class_name: The class name for the component.
100
- autofocus: Whether the component should take the focus once the page is loaded
101
- custom_attrs: custom attribute
102
- **props: The properties of the component.
103
-
104
- Returns:
105
- The alert component.
106
- """
107
- ...
108
-
109
- class AlertIcon(ChakraComponent):
110
- @overload
111
- @classmethod
112
- def create( # type: ignore
113
- cls,
114
- *children,
115
- style: Optional[Style] = None,
116
- key: Optional[Any] = None,
117
- id: Optional[Any] = None,
118
- class_name: Optional[Any] = None,
119
- autofocus: Optional[bool] = None,
120
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
121
- on_blur: Optional[
122
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
123
- ] = None,
124
- on_click: Optional[
125
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
126
- ] = None,
127
- on_context_menu: Optional[
128
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
129
- ] = None,
130
- on_double_click: Optional[
131
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
132
- ] = None,
133
- on_focus: Optional[
134
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
135
- ] = None,
136
- on_mount: Optional[
137
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
138
- ] = None,
139
- on_mouse_down: Optional[
140
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
141
- ] = None,
142
- on_mouse_enter: Optional[
143
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
144
- ] = None,
145
- on_mouse_leave: Optional[
146
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
147
- ] = None,
148
- on_mouse_move: Optional[
149
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
150
- ] = None,
151
- on_mouse_out: Optional[
152
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
153
- ] = None,
154
- on_mouse_over: Optional[
155
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
156
- ] = None,
157
- on_mouse_up: Optional[
158
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
159
- ] = None,
160
- on_scroll: Optional[
161
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
162
- ] = None,
163
- on_unmount: Optional[
164
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
165
- ] = None,
166
- **props,
167
- ) -> "AlertIcon":
168
- """Create the component.
169
-
170
- Args:
171
- *children: The children of the component.
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 AlertTitle(ChakraComponent):
186
- @overload
187
- @classmethod
188
- def create( # type: ignore
189
- cls,
190
- *children,
191
- style: Optional[Style] = None,
192
- key: Optional[Any] = None,
193
- id: Optional[Any] = None,
194
- class_name: Optional[Any] = None,
195
- autofocus: Optional[bool] = None,
196
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
197
- on_blur: Optional[
198
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
199
- ] = None,
200
- on_click: Optional[
201
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
202
- ] = None,
203
- on_context_menu: Optional[
204
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
205
- ] = None,
206
- on_double_click: Optional[
207
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
208
- ] = None,
209
- on_focus: Optional[
210
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
211
- ] = None,
212
- on_mount: Optional[
213
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
214
- ] = None,
215
- on_mouse_down: Optional[
216
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
217
- ] = None,
218
- on_mouse_enter: Optional[
219
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
220
- ] = None,
221
- on_mouse_leave: Optional[
222
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
223
- ] = None,
224
- on_mouse_move: Optional[
225
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
226
- ] = None,
227
- on_mouse_out: Optional[
228
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
229
- ] = None,
230
- on_mouse_over: Optional[
231
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
232
- ] = None,
233
- on_mouse_up: Optional[
234
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
235
- ] = None,
236
- on_scroll: Optional[
237
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
238
- ] = None,
239
- on_unmount: Optional[
240
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
241
- ] = None,
242
- **props,
243
- ) -> "AlertTitle":
244
- """Create the component.
245
-
246
- Args:
247
- *children: The children of the component.
248
- style: The style of the component.
249
- key: A unique key for the component.
250
- id: The id for the component.
251
- class_name: The class name for the component.
252
- autofocus: Whether the component should take the focus once the page is loaded
253
- custom_attrs: custom attribute
254
- **props: The props of the component.
255
-
256
- Returns:
257
- The component.
258
- """
259
- ...
260
-
261
- class AlertDescription(ChakraComponent):
262
- @overload
263
- @classmethod
264
- def create( # type: ignore
265
- cls,
266
- *children,
267
- style: Optional[Style] = None,
268
- key: Optional[Any] = None,
269
- id: Optional[Any] = None,
270
- class_name: Optional[Any] = None,
271
- autofocus: Optional[bool] = None,
272
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
273
- on_blur: Optional[
274
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
275
- ] = None,
276
- on_click: Optional[
277
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
278
- ] = None,
279
- on_context_menu: Optional[
280
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
281
- ] = None,
282
- on_double_click: Optional[
283
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
284
- ] = None,
285
- on_focus: Optional[
286
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
287
- ] = None,
288
- on_mount: Optional[
289
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
290
- ] = None,
291
- on_mouse_down: Optional[
292
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
293
- ] = None,
294
- on_mouse_enter: Optional[
295
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
296
- ] = None,
297
- on_mouse_leave: Optional[
298
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
299
- ] = None,
300
- on_mouse_move: Optional[
301
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
302
- ] = None,
303
- on_mouse_out: Optional[
304
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
305
- ] = None,
306
- on_mouse_over: Optional[
307
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
308
- ] = None,
309
- on_mouse_up: Optional[
310
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
311
- ] = None,
312
- on_scroll: Optional[
313
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
314
- ] = None,
315
- on_unmount: Optional[
316
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
317
- ] = None,
318
- **props,
319
- ) -> "AlertDescription":
320
- """Create the component.
321
-
322
- Args:
323
- *children: The children of the component.
324
- style: The style of the component.
325
- key: A unique key for the component.
326
- id: The id for the component.
327
- class_name: The class name for the component.
328
- autofocus: Whether the component should take the focus once the page is loaded
329
- custom_attrs: custom attribute
330
- **props: The props of the component.
331
-
332
- Returns:
333
- The component.
334
- """
335
- ...
@@ -1,68 +0,0 @@
1
- """Container to stack elements with spacing."""
2
-
3
- from typing import Union
4
-
5
- from reflex.components.chakra import ChakraComponent
6
- from reflex.components.component import Component
7
- from reflex.vars import Var
8
-
9
-
10
- class CircularProgress(ChakraComponent):
11
- """The CircularProgress component is used to indicate the progress for determinate and indeterminate processes."""
12
-
13
- tag = "CircularProgress"
14
-
15
- # If true, the cap of the progress indicator will be rounded.
16
- cap_is_round: Var[bool]
17
-
18
- # If true, the progress will be indeterminate and the value prop will be ignored
19
- is_indeterminate: Var[bool]
20
-
21
- # Maximum value defining 100% progress made (must be higher than 'min')
22
- max_: Var[int]
23
-
24
- # Minimum value defining 'no progress' (must be lower than 'max')
25
- min_: Var[int]
26
-
27
- # This defines the stroke width of the svg circle.
28
- thickness: Var[Union[str, int]]
29
-
30
- # The color name of the progress track. Use a color key in the theme object
31
- track_color: Var[str]
32
-
33
- # Current progress (must be between min/max).
34
- value: Var[int]
35
-
36
- # The desired valueText to use in place of the value.
37
- value_text: Var[str]
38
-
39
- # The color name of the progress bar
40
- color: Var[str]
41
-
42
- # The size of the circular progress
43
- size: Var[str]
44
-
45
- @classmethod
46
- def create(cls, *children, label=None, **props) -> Component:
47
- """Create a circular progress component.
48
-
49
- Args:
50
- *children: the children of the component.
51
- label: A label to add in the circular progress. Defaults to None.
52
- **props: the props of the component.
53
-
54
- Returns:
55
- The circular progress component.
56
- """
57
- if len(children) == 0:
58
- children = []
59
-
60
- if label is not None:
61
- children.append(CircularProgressLabel.create(label))
62
- return super().create(*children, **props)
63
-
64
-
65
- class CircularProgressLabel(ChakraComponent):
66
- """Label of CircularProcess."""
67
-
68
- tag = "CircularProgressLabel"
@@ -1,185 +0,0 @@
1
- """Stub file for reflex/components/chakra/feedback/circularprogress.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 CircularProgress(ChakraComponent):
14
- @overload
15
- @classmethod
16
- def create( # type: ignore
17
- cls,
18
- *children,
19
- label=None,
20
- cap_is_round: 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
- thickness: Optional[Union[Var[Union[int, str]], str, int]] = None,
25
- track_color: Optional[Union[Var[str], str]] = None,
26
- value: Optional[Union[Var[int], int]] = None,
27
- value_text: Optional[Union[Var[str], str]] = None,
28
- color: Optional[Union[Var[str], str]] = None,
29
- size: Optional[Union[Var[str], str]] = None,
30
- style: Optional[Style] = None,
31
- key: Optional[Any] = None,
32
- id: Optional[Any] = None,
33
- class_name: Optional[Any] = None,
34
- autofocus: Optional[bool] = None,
35
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
36
- on_blur: Optional[
37
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
38
- ] = None,
39
- on_click: Optional[
40
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
41
- ] = None,
42
- on_context_menu: Optional[
43
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
44
- ] = None,
45
- on_double_click: Optional[
46
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
47
- ] = None,
48
- on_focus: Optional[
49
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
50
- ] = None,
51
- on_mount: Optional[
52
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
53
- ] = None,
54
- on_mouse_down: Optional[
55
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
56
- ] = None,
57
- on_mouse_enter: Optional[
58
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
59
- ] = None,
60
- on_mouse_leave: Optional[
61
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
62
- ] = None,
63
- on_mouse_move: Optional[
64
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
65
- ] = None,
66
- on_mouse_out: Optional[
67
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
68
- ] = None,
69
- on_mouse_over: Optional[
70
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
71
- ] = None,
72
- on_mouse_up: Optional[
73
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
74
- ] = None,
75
- on_scroll: Optional[
76
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
77
- ] = None,
78
- on_unmount: Optional[
79
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
80
- ] = None,
81
- **props,
82
- ) -> "CircularProgress":
83
- """Create a circular progress component.
84
-
85
- Args:
86
- *children: the children of the component.
87
- label: A label to add in the circular progress. Defaults to None.
88
- cap_is_round: If true, the cap of the progress indicator will be rounded.
89
- is_indeterminate: If true, the progress will be indeterminate and the value prop will be ignored
90
- max_: Maximum value defining 100% progress made (must be higher than 'min')
91
- min_: Minimum value defining 'no progress' (must be lower than 'max')
92
- thickness: This defines the stroke width of the svg circle.
93
- track_color: The color name of the progress track. Use a color key in the theme object
94
- value: Current progress (must be between min/max).
95
- value_text: The desired valueText to use in place of the value.
96
- color: The color name of the progress bar
97
- size: The size of the circular progress
98
- style: The style of the component.
99
- key: A unique key for the component.
100
- id: The id for the component.
101
- class_name: The class name for the component.
102
- autofocus: Whether the component should take the focus once the page is loaded
103
- custom_attrs: custom attribute
104
- **props: the props of the component.
105
-
106
- Returns:
107
- The circular progress component.
108
- """
109
- ...
110
-
111
- class CircularProgressLabel(ChakraComponent):
112
- @overload
113
- @classmethod
114
- def create( # type: ignore
115
- cls,
116
- *children,
117
- style: Optional[Style] = None,
118
- key: Optional[Any] = None,
119
- id: Optional[Any] = None,
120
- class_name: Optional[Any] = None,
121
- autofocus: Optional[bool] = None,
122
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
123
- on_blur: Optional[
124
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
125
- ] = None,
126
- on_click: Optional[
127
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
128
- ] = None,
129
- on_context_menu: Optional[
130
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
131
- ] = None,
132
- on_double_click: Optional[
133
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
134
- ] = None,
135
- on_focus: Optional[
136
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
137
- ] = None,
138
- on_mount: Optional[
139
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
140
- ] = None,
141
- on_mouse_down: Optional[
142
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
143
- ] = None,
144
- on_mouse_enter: Optional[
145
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
146
- ] = None,
147
- on_mouse_leave: Optional[
148
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
149
- ] = None,
150
- on_mouse_move: Optional[
151
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
152
- ] = None,
153
- on_mouse_out: Optional[
154
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
155
- ] = None,
156
- on_mouse_over: Optional[
157
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
158
- ] = None,
159
- on_mouse_up: Optional[
160
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
161
- ] = None,
162
- on_scroll: Optional[
163
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
164
- ] = None,
165
- on_unmount: Optional[
166
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
167
- ] = None,
168
- **props,
169
- ) -> "CircularProgressLabel":
170
- """Create the component.
171
-
172
- Args:
173
- *children: The children of the component.
174
- style: The style of the component.
175
- key: A unique key for the component.
176
- id: The id for the component.
177
- class_name: The class name for the component.
178
- autofocus: Whether the component should take the focus once the page is loaded
179
- custom_attrs: custom attribute
180
- **props: The props of the component.
181
-
182
- Returns:
183
- The component.
184
- """
185
- ...
@@ -1,33 +0,0 @@
1
- """Container to stack elements with spacing."""
2
-
3
- from typing import Union
4
-
5
- from reflex.components.chakra import ChakraComponent
6
- from reflex.vars import Var
7
-
8
-
9
- class Progress(ChakraComponent):
10
- """A bar to display progress."""
11
-
12
- tag = "Progress"
13
-
14
- # If true, the progress bar will show stripe
15
- has_stripe: Var[bool]
16
-
17
- # If true, and has_stripe is true, the stripes will be animated
18
- is_animated: Var[bool]
19
-
20
- # If true, the progress will be indeterminate and the value prop will be ignored
21
- is_indeterminate: Var[bool]
22
-
23
- # The maximum value of the progress
24
- max_: Var[int]
25
-
26
- # The minimum value of the progress
27
- min_: Var[int]
28
-
29
- # The value of the progress indicator. If undefined the progress bar will be in indeterminate state
30
- value: Var[Union[int, float]]
31
-
32
- # The color scheme of the progress bar.
33
- color_scheme: Var[str]