reflex 0.7.7a2__py3-none-any.whl → 0.7.8__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 (185) hide show
  1. reflex/.templates/web/utils/state.js +26 -16
  2. reflex/admin.py +1 -1
  3. reflex/app.py +6 -17
  4. reflex/app_mixins/lifespan.py +1 -1
  5. reflex/base.py +2 -2
  6. reflex/compiler/compiler.py +8 -7
  7. reflex/compiler/utils.py +6 -5
  8. reflex/components/base/app_wrap.pyi +18 -17
  9. reflex/components/base/bare.py +2 -1
  10. reflex/components/base/body.pyi +18 -17
  11. reflex/components/base/document.pyi +82 -81
  12. reflex/components/base/error_boundary.pyi +19 -18
  13. reflex/components/base/fragment.pyi +18 -17
  14. reflex/components/base/head.pyi +34 -33
  15. reflex/components/base/link.pyi +34 -33
  16. reflex/components/base/meta.pyi +66 -65
  17. reflex/components/base/script.pyi +21 -20
  18. reflex/components/base/strict_mode.pyi +18 -17
  19. reflex/components/component.py +20 -36
  20. reflex/components/core/auto_scroll.pyi +18 -17
  21. reflex/components/core/banner.pyi +98 -97
  22. reflex/components/core/breakpoints.py +1 -1
  23. reflex/components/core/client_side_routing.pyi +34 -33
  24. reflex/components/core/clipboard.py +1 -1
  25. reflex/components/core/clipboard.pyi +19 -18
  26. reflex/components/core/cond.py +2 -2
  27. reflex/components/core/debounce.py +3 -3
  28. reflex/components/core/debounce.pyi +20 -19
  29. reflex/components/core/foreach.py +2 -1
  30. reflex/components/core/html.pyi +18 -17
  31. reflex/components/core/match.py +2 -2
  32. reflex/components/core/sticky.pyi +66 -65
  33. reflex/components/core/upload.py +7 -10
  34. reflex/components/core/upload.pyi +86 -85
  35. reflex/components/datadisplay/code.pyi +34 -33
  36. reflex/components/datadisplay/dataeditor.py +3 -2
  37. reflex/components/datadisplay/dataeditor.pyi +35 -68
  38. reflex/components/datadisplay/shiki_code_block.pyi +50 -49
  39. reflex/components/el/element.pyi +18 -17
  40. reflex/components/el/elements/base.pyi +18 -17
  41. reflex/components/el/elements/forms.py +2 -1
  42. reflex/components/el/elements/forms.pyi +290 -332
  43. reflex/components/el/elements/inline.pyi +450 -449
  44. reflex/components/el/elements/media.pyi +402 -401
  45. reflex/components/el/elements/metadata.pyi +98 -97
  46. reflex/components/el/elements/other.pyi +114 -113
  47. reflex/components/el/elements/scripts.pyi +50 -49
  48. reflex/components/el/elements/sectioning.pyi +242 -241
  49. reflex/components/el/elements/tables.pyi +162 -161
  50. reflex/components/el/elements/typography.pyi +242 -241
  51. reflex/components/gridjs/datatable.py +3 -2
  52. reflex/components/gridjs/datatable.pyi +35 -34
  53. reflex/components/lucide/icon.pyi +50 -49
  54. reflex/components/markdown/markdown.py +2 -1
  55. reflex/components/markdown/markdown.pyi +18 -17
  56. reflex/components/moment/moment.pyi +19 -18
  57. reflex/components/next/base.pyi +18 -17
  58. reflex/components/next/image.pyi +20 -19
  59. reflex/components/next/link.pyi +18 -17
  60. reflex/components/next/video.pyi +18 -17
  61. reflex/components/plotly/plotly.py +3 -3
  62. reflex/components/plotly/plotly.pyi +326 -325
  63. reflex/components/radix/primitives/accordion.py +2 -1
  64. reflex/components/radix/primitives/accordion.pyi +115 -114
  65. reflex/components/radix/primitives/base.pyi +34 -33
  66. reflex/components/radix/primitives/drawer.py +2 -1
  67. reflex/components/radix/primitives/drawer.pyi +187 -186
  68. reflex/components/radix/primitives/form.pyi +168 -182
  69. reflex/components/radix/primitives/progress.pyi +82 -81
  70. reflex/components/radix/primitives/slider.py +2 -1
  71. reflex/components/radix/primitives/slider.pyi +84 -83
  72. reflex/components/radix/themes/base.pyi +130 -129
  73. reflex/components/radix/themes/color_mode.pyi +51 -50
  74. reflex/components/radix/themes/components/alert_dialog.pyi +118 -117
  75. reflex/components/radix/themes/components/aspect_ratio.pyi +18 -17
  76. reflex/components/radix/themes/components/avatar.pyi +18 -17
  77. reflex/components/radix/themes/components/badge.pyi +18 -17
  78. reflex/components/radix/themes/components/button.pyi +18 -17
  79. reflex/components/radix/themes/components/callout.pyi +82 -81
  80. reflex/components/radix/themes/components/card.pyi +18 -17
  81. reflex/components/radix/themes/components/checkbox.pyi +53 -52
  82. reflex/components/radix/themes/components/checkbox_cards.pyi +34 -33
  83. reflex/components/radix/themes/components/checkbox_group.py +2 -1
  84. reflex/components/radix/themes/components/checkbox_group.pyi +34 -33
  85. reflex/components/radix/themes/components/context_menu.pyi +225 -224
  86. reflex/components/radix/themes/components/data_list.pyi +66 -65
  87. reflex/components/radix/themes/components/dialog.pyi +121 -120
  88. reflex/components/radix/themes/components/dropdown_menu.pyi +142 -141
  89. reflex/components/radix/themes/components/hover_card.pyi +68 -67
  90. reflex/components/radix/themes/components/icon_button.pyi +18 -17
  91. reflex/components/radix/themes/components/inset.pyi +18 -17
  92. reflex/components/radix/themes/components/popover.pyi +73 -72
  93. reflex/components/radix/themes/components/progress.pyi +18 -17
  94. reflex/components/radix/themes/components/radio.pyi +18 -17
  95. reflex/components/radix/themes/components/radio_cards.pyi +35 -34
  96. reflex/components/radix/themes/components/radio_group.py +2 -1
  97. reflex/components/radix/themes/components/radio_group.pyi +67 -66
  98. reflex/components/radix/themes/components/scroll_area.pyi +18 -17
  99. reflex/components/radix/themes/components/segmented_control.py +2 -1
  100. reflex/components/radix/themes/components/segmented_control.pyi +35 -34
  101. reflex/components/radix/themes/components/select.py +2 -1
  102. reflex/components/radix/themes/components/select.pyi +155 -154
  103. reflex/components/radix/themes/components/separator.pyi +18 -17
  104. reflex/components/radix/themes/components/skeleton.pyi +18 -17
  105. reflex/components/radix/themes/components/slider.py +2 -1
  106. reflex/components/radix/themes/components/slider.pyi +20 -31
  107. reflex/components/radix/themes/components/spinner.pyi +18 -17
  108. reflex/components/radix/themes/components/switch.pyi +19 -18
  109. reflex/components/radix/themes/components/table.pyi +114 -113
  110. reflex/components/radix/themes/components/tabs.pyi +84 -83
  111. reflex/components/radix/themes/components/text_area.pyi +21 -24
  112. reflex/components/radix/themes/components/text_field.pyi +56 -63
  113. reflex/components/radix/themes/components/tooltip.py +2 -2
  114. reflex/components/radix/themes/components/tooltip.pyi +21 -20
  115. reflex/components/radix/themes/layout/base.pyi +18 -17
  116. reflex/components/radix/themes/layout/box.pyi +18 -17
  117. reflex/components/radix/themes/layout/center.pyi +18 -17
  118. reflex/components/radix/themes/layout/container.pyi +18 -17
  119. reflex/components/radix/themes/layout/flex.pyi +18 -17
  120. reflex/components/radix/themes/layout/grid.pyi +18 -17
  121. reflex/components/radix/themes/layout/list.py +2 -1
  122. reflex/components/radix/themes/layout/list.pyi +82 -81
  123. reflex/components/radix/themes/layout/section.pyi +18 -17
  124. reflex/components/radix/themes/layout/spacer.pyi +18 -17
  125. reflex/components/radix/themes/layout/stack.pyi +50 -49
  126. reflex/components/radix/themes/typography/blockquote.pyi +18 -17
  127. reflex/components/radix/themes/typography/code.pyi +18 -17
  128. reflex/components/radix/themes/typography/heading.pyi +18 -17
  129. reflex/components/radix/themes/typography/link.pyi +18 -17
  130. reflex/components/radix/themes/typography/text.pyi +114 -113
  131. reflex/components/react_player/audio.pyi +34 -36
  132. reflex/components/react_player/react_player.pyi +34 -33
  133. reflex/components/react_player/video.pyi +34 -36
  134. reflex/components/recharts/cartesian.py +7 -6
  135. reflex/components/recharts/cartesian.pyi +302 -301
  136. reflex/components/recharts/charts.py +2 -1
  137. reflex/components/recharts/charts.pyi +177 -176
  138. reflex/components/recharts/general.py +3 -2
  139. reflex/components/recharts/general.pyi +99 -98
  140. reflex/components/recharts/polar.py +9 -8
  141. reflex/components/recharts/polar.pyi +62 -61
  142. reflex/components/recharts/recharts.pyi +34 -33
  143. reflex/components/sonner/toast.pyi +19 -18
  144. reflex/components/suneditor/editor.py +22 -24
  145. reflex/components/suneditor/editor.pyi +27 -28
  146. reflex/components/tags/cond_tag.py +3 -3
  147. reflex/components/tags/iter_tag.py +2 -1
  148. reflex/components/tags/tag.py +3 -2
  149. reflex/config.py +27 -17
  150. reflex/constants/installer.py +4 -4
  151. reflex/constants/route.py +2 -3
  152. reflex/constants/utils.py +4 -3
  153. reflex/event.py +56 -28
  154. reflex/experimental/client_state.py +3 -2
  155. reflex/experimental/layout.pyi +84 -83
  156. reflex/istate/data.py +1 -1
  157. reflex/istate/storage.py +2 -2
  158. reflex/model.py +3 -3
  159. reflex/page.py +3 -2
  160. reflex/state.py +56 -57
  161. reflex/style.py +3 -2
  162. reflex/testing.py +12 -21
  163. reflex/utils/codespaces.py +14 -15
  164. reflex/utils/decorator.py +2 -1
  165. reflex/utils/exec.py +1 -1
  166. reflex/utils/format.py +2 -2
  167. reflex/utils/imports.py +6 -8
  168. reflex/utils/misc.py +2 -1
  169. reflex/utils/net.py +2 -1
  170. reflex/utils/prerequisites.py +12 -5
  171. reflex/utils/processes.py +6 -5
  172. reflex/utils/pyi_generator.py +6 -5
  173. reflex/utils/serializers.py +13 -25
  174. reflex/utils/types.py +34 -46
  175. reflex/vars/base.py +60 -56
  176. reflex/vars/dep_tracking.py +4 -4
  177. reflex/vars/function.py +13 -36
  178. reflex/vars/number.py +5 -17
  179. reflex/vars/object.py +9 -16
  180. reflex/vars/sequence.py +11 -23
  181. {reflex-0.7.7a2.dist-info → reflex-0.7.8.dist-info}/METADATA +1 -1
  182. {reflex-0.7.7a2.dist-info → reflex-0.7.8.dist-info}/RECORD +185 -185
  183. {reflex-0.7.7a2.dist-info → reflex-0.7.8.dist-info}/WHEEL +0 -0
  184. {reflex-0.7.7a2.dist-info → reflex-0.7.8.dist-info}/entry_points.txt +0 -0
  185. {reflex-0.7.7a2.dist-info → reflex-0.7.8.dist-info}/licenses/LICENSE +0 -0
@@ -3,7 +3,8 @@
3
3
  # ------------------- DO NOT EDIT ----------------------
4
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
5
5
  # ------------------------------------------------------
6
- from typing import Any, Literal, Mapping, Optional, Sequence, overload
6
+ from collections.abc import Mapping, Sequence
7
+ from typing import Any, Literal, overload
7
8
 
8
9
  from reflex.components.component import MemoizationLeaf
9
10
  from reflex.components.core.breakpoints import Breakpoints
@@ -35,24 +36,24 @@ class ResponsiveContainer(Recharts, MemoizationLeaf):
35
36
  class_name: Any | None = None,
36
37
  autofocus: bool | None = None,
37
38
  custom_attrs: dict[str, Var | Any] | None = None,
38
- on_blur: Optional[EventType[()]] = None,
39
- on_click: Optional[EventType[()]] = None,
40
- on_context_menu: Optional[EventType[()]] = None,
41
- on_double_click: Optional[EventType[()]] = None,
42
- on_focus: Optional[EventType[()]] = None,
43
- on_mount: Optional[EventType[()]] = None,
44
- on_mouse_down: Optional[EventType[()]] = None,
45
- on_mouse_enter: Optional[EventType[()]] = None,
46
- on_mouse_leave: Optional[EventType[()]] = None,
47
- on_mouse_move: Optional[EventType[()]] = None,
48
- on_mouse_out: Optional[EventType[()]] = None,
49
- on_mouse_over: Optional[EventType[()]] = None,
50
- on_mouse_up: Optional[EventType[()]] = None,
51
- on_resize: Optional[EventType[()]] = None,
52
- on_scroll: Optional[EventType[()]] = None,
53
- on_unmount: Optional[EventType[()]] = None,
39
+ on_blur: EventType[()] | None = None,
40
+ on_click: EventType[()] | None = None,
41
+ on_context_menu: EventType[()] | None = None,
42
+ on_double_click: EventType[()] | None = None,
43
+ on_focus: EventType[()] | None = None,
44
+ on_mount: EventType[()] | None = None,
45
+ on_mouse_down: EventType[()] | None = None,
46
+ on_mouse_enter: EventType[()] | None = None,
47
+ on_mouse_leave: EventType[()] | None = None,
48
+ on_mouse_move: EventType[()] | None = None,
49
+ on_mouse_out: EventType[()] | None = None,
50
+ on_mouse_over: EventType[()] | None = None,
51
+ on_mouse_up: EventType[()] | None = None,
52
+ on_resize: EventType[()] | None = None,
53
+ on_scroll: EventType[()] | None = None,
54
+ on_unmount: EventType[()] | None = None,
54
55
  **props,
55
- ) -> "ResponsiveContainer":
56
+ ) -> ResponsiveContainer:
56
57
  """Create a new memoization leaf component.
57
58
 
58
59
  Args:
@@ -136,23 +137,23 @@ class Legend(Recharts):
136
137
  class_name: Any | None = None,
137
138
  autofocus: bool | None = None,
138
139
  custom_attrs: dict[str, Var | Any] | None = None,
139
- on_blur: Optional[EventType[()]] = None,
140
- on_click: Optional[EventType[()]] = None,
141
- on_context_menu: Optional[EventType[()]] = None,
142
- on_double_click: Optional[EventType[()]] = None,
143
- on_focus: Optional[EventType[()]] = None,
144
- on_mount: Optional[EventType[()]] = None,
145
- on_mouse_down: Optional[EventType[()]] = None,
146
- on_mouse_enter: Optional[EventType[()]] = None,
147
- on_mouse_leave: Optional[EventType[()]] = None,
148
- on_mouse_move: Optional[EventType[()]] = None,
149
- on_mouse_out: Optional[EventType[()]] = None,
150
- on_mouse_over: Optional[EventType[()]] = None,
151
- on_mouse_up: Optional[EventType[()]] = None,
152
- on_scroll: Optional[EventType[()]] = None,
153
- on_unmount: Optional[EventType[()]] = None,
140
+ on_blur: EventType[()] | None = None,
141
+ on_click: EventType[()] | None = None,
142
+ on_context_menu: EventType[()] | None = None,
143
+ on_double_click: EventType[()] | None = None,
144
+ on_focus: EventType[()] | None = None,
145
+ on_mount: EventType[()] | None = None,
146
+ on_mouse_down: EventType[()] | None = None,
147
+ on_mouse_enter: EventType[()] | None = None,
148
+ on_mouse_leave: EventType[()] | None = None,
149
+ on_mouse_move: EventType[()] | None = None,
150
+ on_mouse_out: EventType[()] | None = None,
151
+ on_mouse_over: EventType[()] | None = None,
152
+ on_mouse_up: EventType[()] | None = None,
153
+ on_scroll: EventType[()] | None = None,
154
+ on_unmount: EventType[()] | None = None,
154
155
  **props,
155
- ) -> "Legend":
156
+ ) -> Legend:
156
157
  """Create the component.
157
158
 
158
159
  Args:
@@ -225,23 +226,23 @@ class GraphingTooltip(Recharts):
225
226
  class_name: Any | None = None,
226
227
  autofocus: bool | None = None,
227
228
  custom_attrs: dict[str, Var | Any] | None = None,
228
- on_blur: Optional[EventType[()]] = None,
229
- on_click: Optional[EventType[()]] = None,
230
- on_context_menu: Optional[EventType[()]] = None,
231
- on_double_click: Optional[EventType[()]] = None,
232
- on_focus: Optional[EventType[()]] = None,
233
- on_mount: Optional[EventType[()]] = None,
234
- on_mouse_down: Optional[EventType[()]] = None,
235
- on_mouse_enter: Optional[EventType[()]] = None,
236
- on_mouse_leave: Optional[EventType[()]] = None,
237
- on_mouse_move: Optional[EventType[()]] = None,
238
- on_mouse_out: Optional[EventType[()]] = None,
239
- on_mouse_over: Optional[EventType[()]] = None,
240
- on_mouse_up: Optional[EventType[()]] = None,
241
- on_scroll: Optional[EventType[()]] = None,
242
- on_unmount: Optional[EventType[()]] = None,
229
+ on_blur: EventType[()] | None = None,
230
+ on_click: EventType[()] | None = None,
231
+ on_context_menu: EventType[()] | None = None,
232
+ on_double_click: EventType[()] | None = None,
233
+ on_focus: EventType[()] | None = None,
234
+ on_mount: EventType[()] | None = None,
235
+ on_mouse_down: EventType[()] | None = None,
236
+ on_mouse_enter: EventType[()] | None = None,
237
+ on_mouse_leave: EventType[()] | None = None,
238
+ on_mouse_move: EventType[()] | None = None,
239
+ on_mouse_out: EventType[()] | None = None,
240
+ on_mouse_over: EventType[()] | None = None,
241
+ on_mouse_up: EventType[()] | None = None,
242
+ on_scroll: EventType[()] | None = None,
243
+ on_unmount: EventType[()] | None = None,
243
244
  **props,
244
- ) -> "GraphingTooltip":
245
+ ) -> GraphingTooltip:
245
246
  """Create the component.
246
247
 
247
248
  Args:
@@ -337,23 +338,23 @@ class Label(Recharts):
337
338
  class_name: Any | None = None,
338
339
  autofocus: bool | None = None,
339
340
  custom_attrs: dict[str, Var | Any] | None = None,
340
- on_blur: Optional[EventType[()]] = None,
341
- on_click: Optional[EventType[()]] = None,
342
- on_context_menu: Optional[EventType[()]] = None,
343
- on_double_click: Optional[EventType[()]] = None,
344
- on_focus: Optional[EventType[()]] = None,
345
- on_mount: Optional[EventType[()]] = None,
346
- on_mouse_down: Optional[EventType[()]] = None,
347
- on_mouse_enter: Optional[EventType[()]] = None,
348
- on_mouse_leave: Optional[EventType[()]] = None,
349
- on_mouse_move: Optional[EventType[()]] = None,
350
- on_mouse_out: Optional[EventType[()]] = None,
351
- on_mouse_over: Optional[EventType[()]] = None,
352
- on_mouse_up: Optional[EventType[()]] = None,
353
- on_scroll: Optional[EventType[()]] = None,
354
- on_unmount: Optional[EventType[()]] = None,
341
+ on_blur: EventType[()] | None = None,
342
+ on_click: EventType[()] | None = None,
343
+ on_context_menu: EventType[()] | None = None,
344
+ on_double_click: EventType[()] | None = None,
345
+ on_focus: EventType[()] | None = None,
346
+ on_mount: EventType[()] | None = None,
347
+ on_mouse_down: EventType[()] | None = None,
348
+ on_mouse_enter: EventType[()] | None = None,
349
+ on_mouse_leave: EventType[()] | None = None,
350
+ on_mouse_move: EventType[()] | None = None,
351
+ on_mouse_out: EventType[()] | None = None,
352
+ on_mouse_over: EventType[()] | None = None,
353
+ on_mouse_up: EventType[()] | None = None,
354
+ on_scroll: EventType[()] | None = None,
355
+ on_unmount: EventType[()] | None = None,
355
356
  **props,
356
- ) -> "Label":
357
+ ) -> Label:
357
358
  """Create the component.
358
359
 
359
360
  Args:
@@ -438,23 +439,23 @@ class LabelList(Recharts):
438
439
  class_name: Any | None = None,
439
440
  autofocus: bool | None = None,
440
441
  custom_attrs: dict[str, Var | Any] | None = None,
441
- on_blur: Optional[EventType[()]] = None,
442
- on_click: Optional[EventType[()]] = None,
443
- on_context_menu: Optional[EventType[()]] = None,
444
- on_double_click: Optional[EventType[()]] = None,
445
- on_focus: Optional[EventType[()]] = None,
446
- on_mount: Optional[EventType[()]] = None,
447
- on_mouse_down: Optional[EventType[()]] = None,
448
- on_mouse_enter: Optional[EventType[()]] = None,
449
- on_mouse_leave: Optional[EventType[()]] = None,
450
- on_mouse_move: Optional[EventType[()]] = None,
451
- on_mouse_out: Optional[EventType[()]] = None,
452
- on_mouse_over: Optional[EventType[()]] = None,
453
- on_mouse_up: Optional[EventType[()]] = None,
454
- on_scroll: Optional[EventType[()]] = None,
455
- on_unmount: Optional[EventType[()]] = None,
442
+ on_blur: EventType[()] | None = None,
443
+ on_click: EventType[()] | None = None,
444
+ on_context_menu: EventType[()] | None = None,
445
+ on_double_click: EventType[()] | None = None,
446
+ on_focus: EventType[()] | None = None,
447
+ on_mount: EventType[()] | None = None,
448
+ on_mouse_down: EventType[()] | None = None,
449
+ on_mouse_enter: EventType[()] | None = None,
450
+ on_mouse_leave: EventType[()] | None = None,
451
+ on_mouse_move: EventType[()] | None = None,
452
+ on_mouse_out: EventType[()] | None = None,
453
+ on_mouse_over: EventType[()] | None = None,
454
+ on_mouse_up: EventType[()] | None = None,
455
+ on_scroll: EventType[()] | None = None,
456
+ on_unmount: EventType[()] | None = None,
456
457
  **props,
457
- ) -> "LabelList":
458
+ ) -> LabelList:
458
459
  """Create the component.
459
460
 
460
461
  Args:
@@ -495,23 +496,23 @@ class Cell(Recharts):
495
496
  class_name: Any | None = None,
496
497
  autofocus: bool | None = None,
497
498
  custom_attrs: dict[str, Var | Any] | None = None,
498
- on_blur: Optional[EventType[()]] = None,
499
- on_click: Optional[EventType[()]] = None,
500
- on_context_menu: Optional[EventType[()]] = None,
501
- on_double_click: Optional[EventType[()]] = None,
502
- on_focus: Optional[EventType[()]] = None,
503
- on_mount: Optional[EventType[()]] = None,
504
- on_mouse_down: Optional[EventType[()]] = None,
505
- on_mouse_enter: Optional[EventType[()]] = None,
506
- on_mouse_leave: Optional[EventType[()]] = None,
507
- on_mouse_move: Optional[EventType[()]] = None,
508
- on_mouse_out: Optional[EventType[()]] = None,
509
- on_mouse_over: Optional[EventType[()]] = None,
510
- on_mouse_up: Optional[EventType[()]] = None,
511
- on_scroll: Optional[EventType[()]] = None,
512
- on_unmount: Optional[EventType[()]] = None,
499
+ on_blur: EventType[()] | None = None,
500
+ on_click: EventType[()] | None = None,
501
+ on_context_menu: EventType[()] | None = None,
502
+ on_double_click: EventType[()] | None = None,
503
+ on_focus: EventType[()] | None = None,
504
+ on_mount: EventType[()] | None = None,
505
+ on_mouse_down: EventType[()] | None = None,
506
+ on_mouse_enter: EventType[()] | None = None,
507
+ on_mouse_leave: EventType[()] | None = None,
508
+ on_mouse_move: EventType[()] | None = None,
509
+ on_mouse_out: EventType[()] | None = None,
510
+ on_mouse_over: EventType[()] | None = None,
511
+ on_mouse_up: EventType[()] | None = None,
512
+ on_scroll: EventType[()] | None = None,
513
+ on_unmount: EventType[()] | None = None,
513
514
  **props,
514
- ) -> "Cell":
515
+ ) -> Cell:
515
516
  """Create the component.
516
517
 
517
518
  Args:
@@ -2,7 +2,8 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Any, ClassVar, Sequence, Union
5
+ from collections.abc import Sequence
6
+ from typing import Any, ClassVar
6
7
 
7
8
  from reflex.constants import EventTriggers
8
9
  from reflex.constants.colors import Color
@@ -189,10 +190,10 @@ class RadialBar(Recharts):
189
190
  legend_type: Var[LiteralLegendType]
190
191
 
191
192
  # If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
192
- label: Var[Union[bool, dict[str, Any]]]
193
+ label: Var[bool | dict[str, Any]]
193
194
 
194
195
  # If false set, background sector will not be drawn. Default: False
195
- background: Var[Union[bool, dict[str, Any]]]
196
+ background: Var[bool | dict[str, Any]]
196
197
 
197
198
  # If set false, animation of radial bars will be disabled. Default: True
198
199
  is_animation_active: Var[bool]
@@ -247,16 +248,16 @@ class PolarAngleAxis(Recharts):
247
248
  radius: Var[int | str]
248
249
 
249
250
  # If false set, axis line will not be drawn. If true set, axis line will be drawn which have the props calculated internally. If object set, axis line will be drawn which have the props mergered by the internal calculated props and the option. Default: True
250
- axis_line: Var[Union[bool, dict[str, Any]]]
251
+ axis_line: Var[bool | dict[str, Any]]
251
252
 
252
253
  # The type of axis line. Default: "polygon"
253
254
  axis_line_type: Var[LiteralGridType]
254
255
 
255
256
  # If false set, tick lines will not be drawn. If true set, tick lines will be drawn which have the props calculated internally. If object set, tick lines will be drawn which have the props mergered by the internal calculated props and the option. Default: False
256
- tick_line: Var[Union[bool, dict[str, Any]]] = LiteralVar.create(False)
257
+ tick_line: Var[bool | dict[str, Any]] = LiteralVar.create(False)
257
258
 
258
259
  # If false set, ticks will not be drawn. If true set, ticks will be drawn which have the props calculated internally. If object set, ticks will be drawn which have the props mergered by the internal calculated props and the option. Default: True
259
- tick: Var[Union[bool, dict[str, Any]]]
260
+ tick: Var[bool | dict[str, Any]]
260
261
 
261
262
  # The array of every tick's value and angle.
262
263
  ticks: Var[Sequence[dict[str, Any]]]
@@ -362,10 +363,10 @@ class PolarRadiusAxis(Recharts):
362
363
  orientation: Var[LiteralOrientationLeftRightMiddle]
363
364
 
364
365
  # If false set, axis line will not be drawn. If true set, axis line will be drawn which have the props calculated internally. If object set, axis line will be drawn which have the props mergered by the internal calculated props and the option. Default: True
365
- axis_line: Var[Union[bool, dict[str, Any]]]
366
+ axis_line: Var[bool | dict[str, Any]]
366
367
 
367
368
  # If false set, ticks will not be drawn. If true set, ticks will be drawn which have the props calculated internally. If object set, ticks will be drawn which have the props mergered by the internal calculated props and the option. Default: True
368
- tick: Var[Union[bool, dict[str, Any]]]
369
+ tick: Var[bool | dict[str, Any]]
369
370
 
370
371
  # The count of axis ticks. Not used if 'type' is 'category'. Default: 5
371
372
  tick_count: Var[int]
@@ -3,7 +3,8 @@
3
3
  # ------------------- DO NOT EDIT ----------------------
4
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
5
5
  # ------------------------------------------------------
6
- from typing import Any, Literal, Mapping, Optional, Sequence, overload
6
+ from collections.abc import Mapping, Sequence
7
+ from typing import Any, Literal, overload
7
8
 
8
9
  from reflex.components.core.breakpoints import Breakpoints
9
10
  from reflex.constants.colors import Color
@@ -82,16 +83,16 @@ class Pie(Recharts):
82
83
  class_name: Any | None = None,
83
84
  autofocus: bool | None = None,
84
85
  custom_attrs: dict[str, Var | Any] | None = None,
85
- on_animation_end: Optional[EventType[()]] = None,
86
- on_animation_start: Optional[EventType[()]] = None,
87
- on_click: Optional[EventType[()]] = None,
88
- on_mouse_enter: Optional[EventType[()]] = None,
89
- on_mouse_leave: Optional[EventType[()]] = None,
90
- on_mouse_move: Optional[EventType[()]] = None,
91
- on_mouse_out: Optional[EventType[()]] = None,
92
- on_mouse_over: Optional[EventType[()]] = None,
86
+ on_animation_end: EventType[()] | None = None,
87
+ on_animation_start: EventType[()] | None = None,
88
+ on_click: EventType[()] | None = None,
89
+ on_mouse_enter: EventType[()] | None = None,
90
+ on_mouse_leave: EventType[()] | None = None,
91
+ on_mouse_move: EventType[()] | None = None,
92
+ on_mouse_out: EventType[()] | None = None,
93
+ on_mouse_over: EventType[()] | None = None,
93
94
  **props,
94
- ) -> "Pie":
95
+ ) -> Pie:
95
96
  """Create the component.
96
97
 
97
98
  Args:
@@ -191,10 +192,10 @@ class Radar(Recharts):
191
192
  class_name: Any | None = None,
192
193
  autofocus: bool | None = None,
193
194
  custom_attrs: dict[str, Var | Any] | None = None,
194
- on_animation_end: Optional[EventType[()]] = None,
195
- on_animation_start: Optional[EventType[()]] = None,
195
+ on_animation_end: EventType[()] | None = None,
196
+ on_animation_start: EventType[()] | None = None,
196
197
  **props,
197
- ) -> "Radar":
198
+ ) -> Radar:
198
199
  """Create the component.
199
200
 
200
201
  Args:
@@ -283,16 +284,16 @@ class RadialBar(Recharts):
283
284
  class_name: Any | None = None,
284
285
  autofocus: bool | None = None,
285
286
  custom_attrs: dict[str, Var | Any] | None = None,
286
- on_animation_end: Optional[EventType[()]] = None,
287
- on_animation_start: Optional[EventType[()]] = None,
288
- on_click: Optional[EventType[()]] = None,
289
- on_mouse_enter: Optional[EventType[()]] = None,
290
- on_mouse_leave: Optional[EventType[()]] = None,
291
- on_mouse_move: Optional[EventType[()]] = None,
292
- on_mouse_out: Optional[EventType[()]] = None,
293
- on_mouse_over: Optional[EventType[()]] = None,
287
+ on_animation_end: EventType[()] | None = None,
288
+ on_animation_start: EventType[()] | None = None,
289
+ on_click: EventType[()] | None = None,
290
+ on_mouse_enter: EventType[()] | None = None,
291
+ on_mouse_leave: EventType[()] | None = None,
292
+ on_mouse_move: EventType[()] | None = None,
293
+ on_mouse_out: EventType[()] | None = None,
294
+ on_mouse_over: EventType[()] | None = None,
294
295
  **props,
295
- ) -> "RadialBar":
296
+ ) -> RadialBar:
296
297
  """Create the component.
297
298
 
298
299
  Args:
@@ -350,23 +351,23 @@ class PolarAngleAxis(Recharts):
350
351
  class_name: Any | None = None,
351
352
  autofocus: bool | None = None,
352
353
  custom_attrs: dict[str, Var | Any] | None = None,
353
- on_blur: Optional[EventType[()]] = None,
354
- on_click: Optional[EventType[()]] = None,
355
- on_context_menu: Optional[EventType[()]] = None,
356
- on_double_click: Optional[EventType[()]] = None,
357
- on_focus: Optional[EventType[()]] = None,
358
- on_mount: Optional[EventType[()]] = None,
359
- on_mouse_down: Optional[EventType[()]] = None,
360
- on_mouse_enter: Optional[EventType[()]] = None,
361
- on_mouse_leave: Optional[EventType[()]] = None,
362
- on_mouse_move: Optional[EventType[()]] = None,
363
- on_mouse_out: Optional[EventType[()]] = None,
364
- on_mouse_over: Optional[EventType[()]] = None,
365
- on_mouse_up: Optional[EventType[()]] = None,
366
- on_scroll: Optional[EventType[()]] = None,
367
- on_unmount: Optional[EventType[()]] = None,
354
+ on_blur: EventType[()] | None = None,
355
+ on_click: EventType[()] | None = None,
356
+ on_context_menu: EventType[()] | None = None,
357
+ on_double_click: EventType[()] | None = None,
358
+ on_focus: EventType[()] | None = None,
359
+ on_mount: EventType[()] | None = None,
360
+ on_mouse_down: EventType[()] | None = None,
361
+ on_mouse_enter: EventType[()] | None = None,
362
+ on_mouse_leave: EventType[()] | None = None,
363
+ on_mouse_move: EventType[()] | None = None,
364
+ on_mouse_out: EventType[()] | None = None,
365
+ on_mouse_over: EventType[()] | None = None,
366
+ on_mouse_up: EventType[()] | None = None,
367
+ on_scroll: EventType[()] | None = None,
368
+ on_unmount: EventType[()] | None = None,
368
369
  **props,
369
- ) -> "PolarAngleAxis":
370
+ ) -> PolarAngleAxis:
370
371
  """Create the component.
371
372
 
372
373
  Args:
@@ -430,23 +431,23 @@ class PolarGrid(Recharts):
430
431
  class_name: Any | None = None,
431
432
  autofocus: bool | None = None,
432
433
  custom_attrs: dict[str, Var | Any] | None = None,
433
- on_blur: Optional[EventType[()]] = None,
434
- on_click: Optional[EventType[()]] = None,
435
- on_context_menu: Optional[EventType[()]] = None,
436
- on_double_click: Optional[EventType[()]] = None,
437
- on_focus: Optional[EventType[()]] = None,
438
- on_mount: Optional[EventType[()]] = None,
439
- on_mouse_down: Optional[EventType[()]] = None,
440
- on_mouse_enter: Optional[EventType[()]] = None,
441
- on_mouse_leave: Optional[EventType[()]] = None,
442
- on_mouse_move: Optional[EventType[()]] = None,
443
- on_mouse_out: Optional[EventType[()]] = None,
444
- on_mouse_over: Optional[EventType[()]] = None,
445
- on_mouse_up: Optional[EventType[()]] = None,
446
- on_scroll: Optional[EventType[()]] = None,
447
- on_unmount: Optional[EventType[()]] = None,
434
+ on_blur: EventType[()] | None = None,
435
+ on_click: EventType[()] | None = None,
436
+ on_context_menu: EventType[()] | None = None,
437
+ on_double_click: EventType[()] | None = None,
438
+ on_focus: EventType[()] | None = None,
439
+ on_mount: EventType[()] | None = None,
440
+ on_mouse_down: EventType[()] | None = None,
441
+ on_mouse_enter: EventType[()] | None = None,
442
+ on_mouse_leave: EventType[()] | None = None,
443
+ on_mouse_move: EventType[()] | None = None,
444
+ on_mouse_out: EventType[()] | None = None,
445
+ on_mouse_over: EventType[()] | None = None,
446
+ on_mouse_up: EventType[()] | None = None,
447
+ on_scroll: EventType[()] | None = None,
448
+ on_unmount: EventType[()] | None = None,
448
449
  **props,
449
- ) -> "PolarGrid":
450
+ ) -> PolarGrid:
450
451
  """Create the component.
451
452
 
452
453
  Args:
@@ -542,14 +543,14 @@ class PolarRadiusAxis(Recharts):
542
543
  class_name: Any | None = None,
543
544
  autofocus: bool | None = None,
544
545
  custom_attrs: dict[str, Var | Any] | None = None,
545
- on_click: Optional[EventType[()]] = None,
546
- on_mouse_enter: Optional[EventType[()]] = None,
547
- on_mouse_leave: Optional[EventType[()]] = None,
548
- on_mouse_move: Optional[EventType[()]] = None,
549
- on_mouse_out: Optional[EventType[()]] = None,
550
- on_mouse_over: Optional[EventType[()]] = None,
546
+ on_click: EventType[()] | None = None,
547
+ on_mouse_enter: EventType[()] | None = None,
548
+ on_mouse_leave: EventType[()] | None = None,
549
+ on_mouse_move: EventType[()] | None = None,
550
+ on_mouse_out: EventType[()] | None = None,
551
+ on_mouse_over: EventType[()] | None = None,
551
552
  **props,
552
- ) -> "PolarRadiusAxis":
553
+ ) -> PolarRadiusAxis:
553
554
  """Create the component.
554
555
 
555
556
  Args:
@@ -3,7 +3,8 @@
3
3
  # ------------------- DO NOT EDIT ----------------------
4
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
5
5
  # ------------------------------------------------------
6
- from typing import Any, Literal, Mapping, Optional, Sequence, overload
6
+ from collections.abc import Mapping, Sequence
7
+ from typing import Any, Literal, overload
7
8
 
8
9
  from reflex.components.component import Component, MemoizationLeaf, NoSSRComponent
9
10
  from reflex.components.core.breakpoints import Breakpoints
@@ -26,23 +27,23 @@ class Recharts(Component):
26
27
  class_name: Any | None = None,
27
28
  autofocus: bool | None = None,
28
29
  custom_attrs: dict[str, Var | Any] | None = None,
29
- on_blur: Optional[EventType[()]] = None,
30
- on_click: Optional[EventType[()]] = None,
31
- on_context_menu: Optional[EventType[()]] = None,
32
- on_double_click: Optional[EventType[()]] = None,
33
- on_focus: Optional[EventType[()]] = None,
34
- on_mount: Optional[EventType[()]] = None,
35
- on_mouse_down: Optional[EventType[()]] = None,
36
- on_mouse_enter: Optional[EventType[()]] = None,
37
- on_mouse_leave: Optional[EventType[()]] = None,
38
- on_mouse_move: Optional[EventType[()]] = None,
39
- on_mouse_out: Optional[EventType[()]] = None,
40
- on_mouse_over: Optional[EventType[()]] = None,
41
- on_mouse_up: Optional[EventType[()]] = None,
42
- on_scroll: Optional[EventType[()]] = None,
43
- on_unmount: Optional[EventType[()]] = None,
30
+ on_blur: EventType[()] | None = None,
31
+ on_click: EventType[()] | None = None,
32
+ on_context_menu: EventType[()] | None = None,
33
+ on_double_click: EventType[()] | None = None,
34
+ on_focus: EventType[()] | None = None,
35
+ on_mount: EventType[()] | None = None,
36
+ on_mouse_down: EventType[()] | None = None,
37
+ on_mouse_enter: EventType[()] | None = None,
38
+ on_mouse_leave: EventType[()] | None = None,
39
+ on_mouse_move: EventType[()] | None = None,
40
+ on_mouse_out: EventType[()] | None = None,
41
+ on_mouse_over: EventType[()] | None = None,
42
+ on_mouse_up: EventType[()] | None = None,
43
+ on_scroll: EventType[()] | None = None,
44
+ on_unmount: EventType[()] | None = None,
44
45
  **props,
45
- ) -> "Recharts":
46
+ ) -> Recharts:
46
47
  """Create the component.
47
48
 
48
49
  Args:
@@ -76,23 +77,23 @@ class RechartsCharts(NoSSRComponent, MemoizationLeaf):
76
77
  class_name: Any | None = None,
77
78
  autofocus: bool | None = None,
78
79
  custom_attrs: dict[str, Var | Any] | None = None,
79
- on_blur: Optional[EventType[()]] = None,
80
- on_click: Optional[EventType[()]] = None,
81
- on_context_menu: Optional[EventType[()]] = None,
82
- on_double_click: Optional[EventType[()]] = None,
83
- on_focus: Optional[EventType[()]] = None,
84
- on_mount: Optional[EventType[()]] = None,
85
- on_mouse_down: Optional[EventType[()]] = None,
86
- on_mouse_enter: Optional[EventType[()]] = None,
87
- on_mouse_leave: Optional[EventType[()]] = None,
88
- on_mouse_move: Optional[EventType[()]] = None,
89
- on_mouse_out: Optional[EventType[()]] = None,
90
- on_mouse_over: Optional[EventType[()]] = None,
91
- on_mouse_up: Optional[EventType[()]] = None,
92
- on_scroll: Optional[EventType[()]] = None,
93
- on_unmount: Optional[EventType[()]] = None,
80
+ on_blur: EventType[()] | None = None,
81
+ on_click: EventType[()] | None = None,
82
+ on_context_menu: EventType[()] | None = None,
83
+ on_double_click: EventType[()] | None = None,
84
+ on_focus: EventType[()] | None = None,
85
+ on_mount: EventType[()] | None = None,
86
+ on_mouse_down: EventType[()] | None = None,
87
+ on_mouse_enter: EventType[()] | None = None,
88
+ on_mouse_leave: EventType[()] | None = None,
89
+ on_mouse_move: EventType[()] | None = None,
90
+ on_mouse_out: EventType[()] | None = None,
91
+ on_mouse_over: EventType[()] | None = None,
92
+ on_mouse_up: EventType[()] | None = None,
93
+ on_scroll: EventType[()] | None = None,
94
+ on_unmount: EventType[()] | None = None,
94
95
  **props,
95
- ) -> "RechartsCharts":
96
+ ) -> RechartsCharts:
96
97
  """Create a new memoization leaf component.
97
98
 
98
99
  Args:
@@ -3,7 +3,8 @@
3
3
  # ------------------- DO NOT EDIT ----------------------
4
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
5
5
  # ------------------------------------------------------
6
- from typing import Any, Literal, Mapping, Optional, Sequence, overload
6
+ from collections.abc import Mapping, Sequence
7
+ from typing import Any, Literal, overload
7
8
 
8
9
  from reflex.base import Base
9
10
  from reflex.components.component import Component, ComponentNamespace
@@ -128,23 +129,23 @@ class Toaster(Component):
128
129
  class_name: Any | None = None,
129
130
  autofocus: bool | None = None,
130
131
  custom_attrs: dict[str, Var | Any] | None = None,
131
- on_blur: Optional[EventType[()]] = None,
132
- on_click: Optional[EventType[()]] = None,
133
- on_context_menu: Optional[EventType[()]] = None,
134
- on_double_click: Optional[EventType[()]] = None,
135
- on_focus: Optional[EventType[()]] = None,
136
- on_mount: Optional[EventType[()]] = None,
137
- on_mouse_down: Optional[EventType[()]] = None,
138
- on_mouse_enter: Optional[EventType[()]] = None,
139
- on_mouse_leave: Optional[EventType[()]] = None,
140
- on_mouse_move: Optional[EventType[()]] = None,
141
- on_mouse_out: Optional[EventType[()]] = None,
142
- on_mouse_over: Optional[EventType[()]] = None,
143
- on_mouse_up: Optional[EventType[()]] = None,
144
- on_scroll: Optional[EventType[()]] = None,
145
- on_unmount: Optional[EventType[()]] = None,
132
+ on_blur: EventType[()] | None = None,
133
+ on_click: EventType[()] | None = None,
134
+ on_context_menu: EventType[()] | None = None,
135
+ on_double_click: EventType[()] | None = None,
136
+ on_focus: EventType[()] | None = None,
137
+ on_mount: EventType[()] | None = None,
138
+ on_mouse_down: EventType[()] | None = None,
139
+ on_mouse_enter: EventType[()] | None = None,
140
+ on_mouse_leave: EventType[()] | None = None,
141
+ on_mouse_move: EventType[()] | None = None,
142
+ on_mouse_out: EventType[()] | None = None,
143
+ on_mouse_over: EventType[()] | None = None,
144
+ on_mouse_up: EventType[()] | None = None,
145
+ on_scroll: EventType[()] | None = None,
146
+ on_unmount: EventType[()] | None = None,
146
147
  **props,
147
- ) -> "Toaster":
148
+ ) -> Toaster:
148
149
  """Create a toaster component.
149
150
 
150
151
  Args:
@@ -192,7 +193,7 @@ class ToastNamespace(ComponentNamespace):
192
193
  level: str | None = None,
193
194
  fallback_to_alert: bool = False,
194
195
  **props,
195
- ) -> "EventSpec":
196
+ ) -> EventSpec:
196
197
  """Send a toast message.
197
198
 
198
199
  Args: