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,496 +0,0 @@
1
- """Stub file for reflex/components/chakra/disclosure/tabs.py"""
2
-
3
- # ------------------- DO NOT EDIT ----------------------
4
- # This file was generated by `reflex/utils/pyi_generator.py`!
5
- # ------------------------------------------------------
6
- from typing import Any, Callable, Dict, List, Literal, Optional, Tuple, Union, overload
7
-
8
- from reflex.components.chakra import (
9
- ChakraComponent,
10
- )
11
- from reflex.event import EventHandler, EventSpec
12
- from reflex.style import Style
13
- from reflex.vars import BaseVar, Var
14
-
15
- class Tabs(ChakraComponent):
16
- @overload
17
- @classmethod
18
- def create( # type: ignore
19
- cls,
20
- *children,
21
- items: Optional[List[Tuple[str, str]]] = None,
22
- align: Optional[
23
- Union[
24
- Var[Literal["center", "end", "start"]],
25
- Literal["center", "end", "start"],
26
- ]
27
- ] = None,
28
- default_index: Optional[Union[Var[int], int]] = None,
29
- id_: Optional[Union[Var[str], str]] = None,
30
- is_fitted: Optional[Union[Var[bool], bool]] = None,
31
- is_lazy: Optional[Union[Var[bool], bool]] = None,
32
- is_manual: Optional[Union[Var[bool], bool]] = None,
33
- orientation: Optional[Union[Var[str], str]] = None,
34
- variant: Optional[
35
- Union[
36
- Var[
37
- Literal[
38
- "line",
39
- "enclosed",
40
- "enclosed-colored",
41
- "soft-rounded",
42
- "solid-rounded",
43
- "unstyled",
44
- ]
45
- ],
46
- Literal[
47
- "line",
48
- "enclosed",
49
- "enclosed-colored",
50
- "soft-rounded",
51
- "solid-rounded",
52
- "unstyled",
53
- ],
54
- ]
55
- ] = None,
56
- color_scheme: Optional[
57
- Union[
58
- Var[
59
- Literal[
60
- "none",
61
- "gray",
62
- "red",
63
- "orange",
64
- "yellow",
65
- "green",
66
- "teal",
67
- "blue",
68
- "cyan",
69
- "purple",
70
- "pink",
71
- "whiteAlpha",
72
- "blackAlpha",
73
- "linkedin",
74
- "facebook",
75
- "messenger",
76
- "whatsapp",
77
- "twitter",
78
- "telegram",
79
- ]
80
- ],
81
- Literal[
82
- "none",
83
- "gray",
84
- "red",
85
- "orange",
86
- "yellow",
87
- "green",
88
- "teal",
89
- "blue",
90
- "cyan",
91
- "purple",
92
- "pink",
93
- "whiteAlpha",
94
- "blackAlpha",
95
- "linkedin",
96
- "facebook",
97
- "messenger",
98
- "whatsapp",
99
- "twitter",
100
- "telegram",
101
- ],
102
- ]
103
- ] = None,
104
- index: Optional[Union[Var[int], int]] = None,
105
- style: Optional[Style] = None,
106
- key: Optional[Any] = None,
107
- id: Optional[Any] = None,
108
- class_name: Optional[Any] = None,
109
- autofocus: Optional[bool] = None,
110
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
111
- on_blur: Optional[
112
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
113
- ] = None,
114
- on_click: Optional[
115
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
116
- ] = None,
117
- on_context_menu: Optional[
118
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
119
- ] = None,
120
- on_double_click: Optional[
121
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
122
- ] = None,
123
- on_focus: Optional[
124
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
125
- ] = None,
126
- on_mount: Optional[
127
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
128
- ] = None,
129
- on_mouse_down: Optional[
130
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
131
- ] = None,
132
- on_mouse_enter: Optional[
133
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
134
- ] = None,
135
- on_mouse_leave: Optional[
136
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
137
- ] = None,
138
- on_mouse_move: Optional[
139
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
140
- ] = None,
141
- on_mouse_out: Optional[
142
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
143
- ] = None,
144
- on_mouse_over: Optional[
145
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
146
- ] = None,
147
- on_mouse_up: Optional[
148
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
149
- ] = None,
150
- on_scroll: Optional[
151
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
152
- ] = None,
153
- on_unmount: Optional[
154
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
155
- ] = None,
156
- **props,
157
- ) -> "Tabs":
158
- """Create a tab component.
159
-
160
- Args:
161
- *children: The children of the component.
162
- items: The items for the tabs component, a list of tuple (label, panel)
163
- align: The alignment of the tabs ("center" | "end" | "start").
164
- default_index: The initial index of the selected tab (in uncontrolled mode).
165
- id_: The id of the tab.
166
- is_fitted: If true, tabs will stretch to width of the tablist.
167
- is_lazy: Performance booster. If true, rendering of the tab panel's will be deferred until it is selected.
168
- is_manual: If true, the tabs will be manually activated and display its panel by pressing Space or Enter. If false, the tabs will be automatically activated and their panel is displayed when they receive focus.
169
- orientation: The orientation of the tab list.
170
- variant: "line" | "enclosed" | "enclosed-colored" | "soft-rounded" | "solid-rounded" | "unstyled"
171
- color_scheme: The color scheme of the tabs.
172
- index: Index of the selected tab (in controlled mode).
173
- style: The style of the component.
174
- key: A unique key for the component.
175
- id: The id for the component.
176
- class_name: The class name for the component.
177
- autofocus: Whether the component should take the focus once the page is loaded
178
- custom_attrs: custom attribute
179
- **props: The properties of the component.
180
-
181
- Returns:
182
- The tab component
183
- """
184
- ...
185
-
186
- class Tab(ChakraComponent):
187
- @overload
188
- @classmethod
189
- def create( # type: ignore
190
- cls,
191
- *children,
192
- is_disabled: Optional[Union[Var[bool], bool]] = None,
193
- is_selected: Optional[Union[Var[bool], bool]] = None,
194
- id_: Optional[Union[Var[str], str]] = None,
195
- panel_id: Optional[Union[Var[str], str]] = None,
196
- style: Optional[Style] = None,
197
- key: Optional[Any] = None,
198
- id: Optional[Any] = None,
199
- class_name: Optional[Any] = None,
200
- autofocus: Optional[bool] = None,
201
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
202
- on_blur: Optional[
203
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
204
- ] = None,
205
- on_click: Optional[
206
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
207
- ] = None,
208
- on_context_menu: Optional[
209
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
210
- ] = None,
211
- on_double_click: Optional[
212
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
213
- ] = None,
214
- on_focus: Optional[
215
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
216
- ] = None,
217
- on_mount: Optional[
218
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
219
- ] = None,
220
- on_mouse_down: Optional[
221
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
222
- ] = None,
223
- on_mouse_enter: Optional[
224
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
225
- ] = None,
226
- on_mouse_leave: Optional[
227
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
228
- ] = None,
229
- on_mouse_move: Optional[
230
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
231
- ] = None,
232
- on_mouse_out: Optional[
233
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
234
- ] = None,
235
- on_mouse_over: Optional[
236
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
237
- ] = None,
238
- on_mouse_up: Optional[
239
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
240
- ] = None,
241
- on_scroll: Optional[
242
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
243
- ] = None,
244
- on_unmount: Optional[
245
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
246
- ] = None,
247
- **props,
248
- ) -> "Tab":
249
- """Create the component.
250
-
251
- Args:
252
- *children: The children of the component.
253
- is_disabled: If true, the Tab won't be toggleable.
254
- is_selected: If true, the Tab will be selected.
255
- id_: The id of the tab.
256
- panel_id: The id of the panel.
257
- style: The style of the component.
258
- key: A unique key for the component.
259
- id: The id for the component.
260
- class_name: The class name for the component.
261
- autofocus: Whether the component should take the focus once the page is loaded
262
- custom_attrs: custom attribute
263
- **props: The props of the component.
264
-
265
- Returns:
266
- The component.
267
- """
268
- ...
269
-
270
- class TabList(ChakraComponent):
271
- @overload
272
- @classmethod
273
- def create( # type: ignore
274
- cls,
275
- *children,
276
- style: Optional[Style] = None,
277
- key: Optional[Any] = None,
278
- id: Optional[Any] = None,
279
- class_name: Optional[Any] = None,
280
- autofocus: Optional[bool] = None,
281
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
282
- on_blur: Optional[
283
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
284
- ] = None,
285
- on_click: Optional[
286
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
287
- ] = None,
288
- on_context_menu: Optional[
289
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
290
- ] = None,
291
- on_double_click: Optional[
292
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
293
- ] = None,
294
- on_focus: Optional[
295
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
296
- ] = None,
297
- on_mount: Optional[
298
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
299
- ] = None,
300
- on_mouse_down: Optional[
301
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
302
- ] = None,
303
- on_mouse_enter: Optional[
304
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
305
- ] = None,
306
- on_mouse_leave: Optional[
307
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
308
- ] = None,
309
- on_mouse_move: Optional[
310
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
311
- ] = None,
312
- on_mouse_out: Optional[
313
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
314
- ] = None,
315
- on_mouse_over: Optional[
316
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
317
- ] = None,
318
- on_mouse_up: Optional[
319
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
320
- ] = None,
321
- on_scroll: Optional[
322
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
323
- ] = None,
324
- on_unmount: Optional[
325
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
326
- ] = None,
327
- **props,
328
- ) -> "TabList":
329
- """Create the component.
330
-
331
- Args:
332
- *children: The children of the component.
333
- style: The style of the component.
334
- key: A unique key for the component.
335
- id: The id for the component.
336
- class_name: The class name for the component.
337
- autofocus: Whether the component should take the focus once the page is loaded
338
- custom_attrs: custom attribute
339
- **props: The props of the component.
340
-
341
- Returns:
342
- The component.
343
- """
344
- ...
345
-
346
- class TabPanels(ChakraComponent):
347
- @overload
348
- @classmethod
349
- def create( # type: ignore
350
- cls,
351
- *children,
352
- style: Optional[Style] = None,
353
- key: Optional[Any] = None,
354
- id: Optional[Any] = None,
355
- class_name: Optional[Any] = None,
356
- autofocus: Optional[bool] = None,
357
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
358
- on_blur: Optional[
359
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
360
- ] = None,
361
- on_click: Optional[
362
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
363
- ] = None,
364
- on_context_menu: Optional[
365
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
366
- ] = None,
367
- on_double_click: Optional[
368
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
369
- ] = None,
370
- on_focus: Optional[
371
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
372
- ] = None,
373
- on_mount: Optional[
374
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
375
- ] = None,
376
- on_mouse_down: Optional[
377
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
378
- ] = None,
379
- on_mouse_enter: Optional[
380
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
381
- ] = None,
382
- on_mouse_leave: Optional[
383
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
384
- ] = None,
385
- on_mouse_move: Optional[
386
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
387
- ] = None,
388
- on_mouse_out: Optional[
389
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
390
- ] = None,
391
- on_mouse_over: Optional[
392
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
393
- ] = None,
394
- on_mouse_up: Optional[
395
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
396
- ] = None,
397
- on_scroll: Optional[
398
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
399
- ] = None,
400
- on_unmount: Optional[
401
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
402
- ] = None,
403
- **props,
404
- ) -> "TabPanels":
405
- """Create the component.
406
-
407
- Args:
408
- *children: The children of the component.
409
- style: The style of the component.
410
- key: A unique key for the component.
411
- id: The id for the component.
412
- class_name: The class name for the component.
413
- autofocus: Whether the component should take the focus once the page is loaded
414
- custom_attrs: custom attribute
415
- **props: The props of the component.
416
-
417
- Returns:
418
- The component.
419
- """
420
- ...
421
-
422
- class TabPanel(ChakraComponent):
423
- @overload
424
- @classmethod
425
- def create( # type: ignore
426
- cls,
427
- *children,
428
- style: Optional[Style] = None,
429
- key: Optional[Any] = None,
430
- id: Optional[Any] = None,
431
- class_name: Optional[Any] = None,
432
- autofocus: Optional[bool] = None,
433
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
434
- on_blur: Optional[
435
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
436
- ] = None,
437
- on_click: Optional[
438
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
439
- ] = None,
440
- on_context_menu: Optional[
441
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
442
- ] = None,
443
- on_double_click: Optional[
444
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
445
- ] = None,
446
- on_focus: Optional[
447
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
448
- ] = None,
449
- on_mount: Optional[
450
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
451
- ] = None,
452
- on_mouse_down: Optional[
453
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
454
- ] = None,
455
- on_mouse_enter: Optional[
456
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
457
- ] = None,
458
- on_mouse_leave: Optional[
459
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
460
- ] = None,
461
- on_mouse_move: Optional[
462
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
463
- ] = None,
464
- on_mouse_out: Optional[
465
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
466
- ] = None,
467
- on_mouse_over: Optional[
468
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
469
- ] = None,
470
- on_mouse_up: Optional[
471
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
472
- ] = None,
473
- on_scroll: Optional[
474
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
475
- ] = None,
476
- on_unmount: Optional[
477
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
478
- ] = None,
479
- **props,
480
- ) -> "TabPanel":
481
- """Create the component.
482
-
483
- Args:
484
- *children: The children of the component.
485
- style: The style of the component.
486
- key: A unique key for the component.
487
- id: The id for the component.
488
- class_name: The class name for the component.
489
- autofocus: Whether the component should take the focus once the page is loaded
490
- custom_attrs: custom attribute
491
- **props: The props of the component.
492
-
493
- Returns:
494
- The component.
495
- """
496
- ...
@@ -1,73 +0,0 @@
1
- """A transition Component."""
2
-
3
- from typing import Union
4
-
5
- from reflex.components.chakra import ChakraComponent
6
- from reflex.vars import Var
7
-
8
-
9
- class Transition(ChakraComponent):
10
- """Base componemt of all transitions."""
11
-
12
- # Show the component; triggers when enter or exit states
13
- in_: Var[bool]
14
-
15
- # If true, the element will unmount when `in={false}` and animation is done
16
- unmount_on_exit: Var[bool]
17
-
18
-
19
- class Fade(Transition):
20
- """Fade component cab be used show and hide content of your app."""
21
-
22
- tag = "Fade"
23
-
24
-
25
- class ScaleFade(Transition):
26
- """Fade component can be scaled and reverse your app."""
27
-
28
- tag = "ScaleFade"
29
-
30
- # The initial scale of the element
31
- initial_scale: Var[float]
32
-
33
- # If true, the element will transition back to exit state
34
- reverse: Var[bool]
35
-
36
-
37
- class Slide(Transition):
38
- """Side can be used show content below your app."""
39
-
40
- tag = "Slide"
41
-
42
- # The direction to slide from
43
- direction: Var[str]
44
-
45
-
46
- class SlideFade(Transition):
47
- """SlideFade component."""
48
-
49
- tag = "SlideFade"
50
-
51
- # The offset on the horizontal or x axis
52
- offsetX: Var[Union[str, int]]
53
-
54
- # The offset on the vertical or y axis
55
- offsetY: Var[Union[str, int]]
56
-
57
- # If true, the element will be transitioned back to the offset when it leaves. Otherwise, it'll only fade out
58
- reverse: Var[bool]
59
-
60
-
61
- class Collapse(Transition):
62
- """Collapse component can collapse some content."""
63
-
64
- tag = "Collapse"
65
-
66
- # If true, the opacity of the content will be animated
67
- animateOpacity: Var[bool]
68
-
69
- # The height you want the content in its expanded state.
70
- endingHeight: Var[str]
71
-
72
- # The height you want the content in its collapsed state.
73
- startingHeight: Var[Union[str, int]]