reflex 0.5.5a2__py3-none-any.whl → 0.5.6__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 (264) hide show
  1. reflex/.templates/jinja/web/pages/_app.js.jinja2 +0 -1
  2. reflex/.templates/jinja/web/utils/context.js.jinja2 +2 -0
  3. reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +20 -2
  4. reflex/.templates/web/utils/helpers/paste.js +59 -0
  5. reflex/__init__.py +9 -1
  6. reflex/__init__.pyi +89 -87
  7. reflex/app.py +64 -126
  8. reflex/app_mixins/__init__.py +5 -0
  9. reflex/app_mixins/lifespan.py +57 -0
  10. reflex/app_mixins/middleware.py +93 -0
  11. reflex/app_mixins/mixin.py +14 -0
  12. reflex/compiler/compiler.py +6 -1
  13. reflex/components/__init__.pyi +0 -2
  14. reflex/components/base/__init__.pyi +1 -3
  15. reflex/components/base/app_wrap.pyi +21 -22
  16. reflex/components/base/body.pyi +21 -20
  17. reflex/components/base/document.pyi +85 -85
  18. reflex/components/base/fragment.pyi +21 -20
  19. reflex/components/base/head.pyi +37 -36
  20. reflex/components/base/link.pyi +37 -37
  21. reflex/components/base/meta.pyi +69 -70
  22. reflex/components/base/script.py +6 -2
  23. reflex/components/base/script.pyi +31 -27
  24. reflex/components/chakra/base.pyi +54 -56
  25. reflex/components/chakra/datadisplay/badge.pyi +21 -21
  26. reflex/components/chakra/datadisplay/code.pyi +21 -20
  27. reflex/components/chakra/datadisplay/divider.pyi +21 -22
  28. reflex/components/chakra/datadisplay/keyboard_key.pyi +21 -20
  29. reflex/components/chakra/datadisplay/list.pyi +69 -71
  30. reflex/components/chakra/datadisplay/stat.pyi +101 -102
  31. reflex/components/chakra/datadisplay/table.pyi +149 -153
  32. reflex/components/chakra/datadisplay/tag.pyi +85 -89
  33. reflex/components/chakra/disclosure/accordion.pyi +87 -93
  34. reflex/components/chakra/disclosure/tabs.pyi +85 -90
  35. reflex/components/chakra/disclosure/transition.pyi +104 -105
  36. reflex/components/chakra/disclosure/visuallyhidden.pyi +21 -20
  37. reflex/components/chakra/feedback/alert.pyi +69 -70
  38. reflex/components/chakra/feedback/circularprogress.pyi +38 -40
  39. reflex/components/chakra/feedback/progress.pyi +22 -23
  40. reflex/components/chakra/feedback/skeleton.pyi +53 -53
  41. reflex/components/chakra/feedback/spinner.pyi +21 -21
  42. reflex/components/chakra/forms/button.pyi +37 -42
  43. reflex/components/chakra/forms/checkbox.pyi +38 -39
  44. reflex/components/chakra/forms/colormodeswitch.pyi +72 -71
  45. reflex/components/chakra/forms/date_picker.pyi +24 -24
  46. reflex/components/chakra/forms/date_time_picker.pyi +24 -24
  47. reflex/components/chakra/forms/editable.pyi +73 -74
  48. reflex/components/chakra/forms/email.pyi +24 -24
  49. reflex/components/chakra/forms/form.pyi +112 -141
  50. reflex/components/chakra/forms/iconbutton.pyi +21 -22
  51. reflex/components/chakra/forms/input.pyi +104 -111
  52. reflex/components/chakra/forms/numberinput.pyi +87 -91
  53. reflex/components/chakra/forms/password.pyi +24 -24
  54. reflex/components/chakra/forms/pininput.pyi +39 -45
  55. reflex/components/chakra/forms/radio.pyi +38 -43
  56. reflex/components/chakra/forms/rangeslider.pyi +72 -76
  57. reflex/components/chakra/forms/select.pyi +39 -44
  58. reflex/components/chakra/forms/slider.pyi +88 -91
  59. reflex/components/chakra/forms/switch.pyi +22 -23
  60. reflex/components/chakra/forms/textarea.pyi +24 -27
  61. reflex/components/chakra/forms/time_picker.pyi +24 -24
  62. reflex/components/chakra/layout/aspect_ratio.pyi +21 -21
  63. reflex/components/chakra/layout/box.pyi +21 -22
  64. reflex/components/chakra/layout/card.pyi +69 -73
  65. reflex/components/chakra/layout/center.pyi +53 -52
  66. reflex/components/chakra/layout/container.pyi +21 -21
  67. reflex/components/chakra/layout/flex.pyi +23 -26
  68. reflex/components/chakra/layout/grid.pyi +53 -54
  69. reflex/components/chakra/layout/spacer.pyi +21 -20
  70. reflex/components/chakra/layout/stack.pyi +62 -60
  71. reflex/components/chakra/layout/wrap.pyi +37 -38
  72. reflex/components/chakra/media/avatar.pyi +54 -55
  73. reflex/components/chakra/media/icon.pyi +37 -38
  74. reflex/components/chakra/media/image.pyi +24 -26
  75. reflex/components/chakra/navigation/breadcrumb.pyi +69 -71
  76. reflex/components/chakra/navigation/link.pyi +20 -21
  77. reflex/components/chakra/navigation/linkoverlay.pyi +37 -37
  78. reflex/components/chakra/navigation/stepper.pyi +149 -151
  79. reflex/components/chakra/overlay/alertdialog.pyi +121 -124
  80. reflex/components/chakra/overlay/drawer.pyi +121 -126
  81. reflex/components/chakra/overlay/menu.pyi +135 -141
  82. reflex/components/chakra/overlay/modal.pyi +121 -124
  83. reflex/components/chakra/overlay/popover.pyi +151 -156
  84. reflex/components/chakra/overlay/tooltip.pyi +23 -24
  85. reflex/components/chakra/typography/heading.pyi +21 -21
  86. reflex/components/chakra/typography/highlight.pyi +21 -23
  87. reflex/components/chakra/typography/span.pyi +21 -21
  88. reflex/components/chakra/typography/text.pyi +21 -21
  89. reflex/components/component.py +6 -2
  90. reflex/components/core/__init__.py +2 -0
  91. reflex/components/core/__init__.pyi +9 -7
  92. reflex/components/core/banner.pyi +118 -146
  93. reflex/components/core/breakpoints.py +95 -0
  94. reflex/components/core/client_side_routing.pyi +37 -39
  95. reflex/components/core/clipboard.py +95 -0
  96. reflex/components/core/clipboard.pyi +102 -0
  97. reflex/components/core/debounce.pyi +23 -28
  98. reflex/components/core/foreach.py +3 -2
  99. reflex/components/core/html.pyi +38 -55
  100. reflex/components/core/upload.py +1 -1
  101. reflex/components/core/upload.pyi +74 -91
  102. reflex/components/datadisplay/__init__.pyi +2 -3
  103. reflex/components/datadisplay/code.py +3 -3
  104. reflex/components/datadisplay/code.pyi +22 -31
  105. reflex/components/datadisplay/dataeditor.pyi +41 -45
  106. reflex/components/el/__init__.pyi +131 -135
  107. reflex/components/el/element.pyi +21 -20
  108. reflex/components/el/elements/__init__.pyi +131 -132
  109. reflex/components/el/elements/base.pyi +38 -55
  110. reflex/components/el/elements/forms.pyi +558 -878
  111. reflex/components/el/elements/inline.pyi +941 -1403
  112. reflex/components/el/elements/media.pyi +645 -994
  113. reflex/components/el/elements/metadata.pyi +186 -268
  114. reflex/components/el/elements/other.pyi +239 -353
  115. reflex/components/el/elements/scripts.pyi +113 -171
  116. reflex/components/el/elements/sectioning.pyi +500 -739
  117. reflex/components/el/elements/tables.pyi +355 -551
  118. reflex/components/el/elements/typography.pyi +510 -760
  119. reflex/components/gridjs/datatable.pyi +38 -42
  120. reflex/components/lucide/icon.pyi +37 -38
  121. reflex/components/markdown/markdown.pyi +23 -36
  122. reflex/components/moment/moment.pyi +23 -25
  123. reflex/components/next/base.pyi +21 -20
  124. reflex/components/next/image.pyi +25 -27
  125. reflex/components/next/link.pyi +21 -21
  126. reflex/components/next/video.pyi +22 -22
  127. reflex/components/plotly/plotly.pyi +42 -45
  128. reflex/components/radix/__init__.pyi +26 -30
  129. reflex/components/radix/primitives/__init__.pyi +0 -2
  130. reflex/components/radix/primitives/accordion.pyi +119 -127
  131. reflex/components/radix/primitives/base.pyi +37 -40
  132. reflex/components/radix/primitives/drawer.pyi +175 -179
  133. reflex/components/radix/primitives/form.pyi +250 -336
  134. reflex/components/radix/primitives/progress.pyi +92 -96
  135. reflex/components/radix/primitives/slider.pyi +87 -89
  136. reflex/components/radix/themes/__init__.pyi +0 -2
  137. reflex/components/radix/themes/base.pyi +118 -121
  138. reflex/components/radix/themes/color_mode.pyi +103 -117
  139. reflex/components/radix/themes/components/__init__.pyi +12 -14
  140. reflex/components/radix/themes/components/alert_dialog.py +2 -1
  141. reflex/components/radix/themes/components/alert_dialog.pyi +150 -157
  142. reflex/components/radix/themes/components/aspect_ratio.pyi +22 -22
  143. reflex/components/radix/themes/components/avatar.py +2 -1
  144. reflex/components/radix/themes/components/avatar.pyi +32 -23
  145. reflex/components/radix/themes/components/badge.py +2 -1
  146. reflex/components/radix/themes/components/badge.pyi +50 -57
  147. reflex/components/radix/themes/components/button.py +2 -1
  148. reflex/components/radix/themes/components/button.pyi +60 -79
  149. reflex/components/radix/themes/components/callout.py +2 -1
  150. reflex/components/radix/themes/components/callout.pyi +201 -258
  151. reflex/components/radix/themes/components/card.py +2 -1
  152. reflex/components/radix/themes/components/card.pyi +48 -56
  153. reflex/components/radix/themes/components/checkbox.py +2 -1
  154. reflex/components/radix/themes/components/checkbox.pyi +68 -62
  155. reflex/components/radix/themes/components/checkbox_cards.py +8 -3
  156. reflex/components/radix/themes/components/checkbox_cards.pyi +87 -44
  157. reflex/components/radix/themes/components/checkbox_group.py +2 -1
  158. reflex/components/radix/themes/components/checkbox_group.pyi +49 -40
  159. reflex/components/radix/themes/components/context_menu.py +2 -1
  160. reflex/components/radix/themes/components/context_menu.pyi +153 -147
  161. reflex/components/radix/themes/components/data_list.py +8 -7
  162. reflex/components/radix/themes/components/data_list.pyi +116 -78
  163. reflex/components/radix/themes/components/dialog.py +2 -1
  164. reflex/components/radix/themes/components/dialog.pyi +154 -161
  165. reflex/components/radix/themes/components/dropdown_menu.py +2 -1
  166. reflex/components/radix/themes/components/dropdown_menu.pyi +169 -163
  167. reflex/components/radix/themes/components/hover_card.py +2 -1
  168. reflex/components/radix/themes/components/hover_card.pyi +97 -107
  169. reflex/components/radix/themes/components/icon_button.py +2 -1
  170. reflex/components/radix/themes/components/icon_button.pyi +59 -82
  171. reflex/components/radix/themes/components/inset.py +10 -9
  172. reflex/components/radix/themes/components/inset.pyi +109 -61
  173. reflex/components/radix/themes/components/popover.py +2 -1
  174. reflex/components/radix/themes/components/popover.pyi +105 -112
  175. reflex/components/radix/themes/components/progress.py +2 -1
  176. reflex/components/radix/themes/components/progress.pyi +32 -24
  177. reflex/components/radix/themes/components/radio.py +2 -1
  178. reflex/components/radix/themes/components/radio.pyi +32 -23
  179. reflex/components/radix/themes/components/radio_cards.py +51 -3
  180. reflex/components/radix/themes/components/radio_cards.pyi +120 -44
  181. reflex/components/radix/themes/components/radio_group.py +5 -2
  182. reflex/components/radix/themes/components/radio_group.pyi +82 -77
  183. reflex/components/radix/themes/components/scroll_area.pyi +21 -21
  184. reflex/components/radix/themes/components/segmented_control.py +2 -1
  185. reflex/components/radix/themes/components/segmented_control.pyi +52 -46
  186. reflex/components/radix/themes/components/select.py +2 -1
  187. reflex/components/radix/themes/components/select.pyi +188 -164
  188. reflex/components/radix/themes/components/separator.py +5 -2
  189. reflex/components/radix/themes/components/separator.pyi +40 -24
  190. reflex/components/radix/themes/components/skeleton.py +7 -6
  191. reflex/components/radix/themes/components/skeleton.pyi +40 -26
  192. reflex/components/radix/themes/components/slider.py +2 -1
  193. reflex/components/radix/themes/components/slider.pyi +40 -31
  194. reflex/components/radix/themes/components/spinner.py +2 -1
  195. reflex/components/radix/themes/components/spinner.pyi +31 -22
  196. reflex/components/radix/themes/components/switch.py +2 -1
  197. reflex/components/radix/themes/components/switch.pyi +33 -25
  198. reflex/components/radix/themes/components/table.py +2 -1
  199. reflex/components/radix/themes/components/table.pyi +265 -404
  200. reflex/components/radix/themes/components/tabs.py +14 -1
  201. reflex/components/radix/themes/components/tabs.pyi +113 -92
  202. reflex/components/radix/themes/components/text_area.py +3 -2
  203. reflex/components/radix/themes/components/text_area.pyi +64 -66
  204. reflex/components/radix/themes/components/text_field.py +2 -1
  205. reflex/components/radix/themes/components/text_field.pyi +116 -140
  206. reflex/components/radix/themes/components/tooltip.pyi +32 -37
  207. reflex/components/radix/themes/layout/__init__.pyi +4 -7
  208. reflex/components/radix/themes/layout/base.py +10 -9
  209. reflex/components/radix/themes/layout/base.pyi +121 -31
  210. reflex/components/radix/themes/layout/box.pyi +39 -53
  211. reflex/components/radix/themes/layout/center.pyi +89 -58
  212. reflex/components/radix/themes/layout/container.py +4 -1
  213. reflex/components/radix/themes/layout/container.pyi +51 -58
  214. reflex/components/radix/themes/layout/flex.py +6 -5
  215. reflex/components/radix/themes/layout/flex.pyi +91 -61
  216. reflex/components/radix/themes/layout/grid.py +9 -8
  217. reflex/components/radix/themes/layout/grid.pyi +116 -64
  218. reflex/components/radix/themes/layout/list.pyi +173 -233
  219. reflex/components/radix/themes/layout/section.py +4 -1
  220. reflex/components/radix/themes/layout/section.pyi +50 -57
  221. reflex/components/radix/themes/layout/spacer.pyi +89 -58
  222. reflex/components/radix/themes/layout/stack.pyi +160 -160
  223. reflex/components/radix/themes/typography/__init__.pyi +0 -2
  224. reflex/components/radix/themes/typography/blockquote.py +3 -2
  225. reflex/components/radix/themes/typography/blockquote.pyi +58 -59
  226. reflex/components/radix/themes/typography/code.py +3 -2
  227. reflex/components/radix/themes/typography/code.pyi +57 -58
  228. reflex/components/radix/themes/typography/heading.py +5 -4
  229. reflex/components/radix/themes/typography/heading.pyi +71 -60
  230. reflex/components/radix/themes/typography/link.py +4 -3
  231. reflex/components/radix/themes/typography/link.pyi +74 -82
  232. reflex/components/radix/themes/typography/text.py +5 -4
  233. reflex/components/radix/themes/typography/text.pyi +330 -364
  234. reflex/components/react_player/audio.pyi +37 -36
  235. reflex/components/react_player/react_player.pyi +37 -38
  236. reflex/components/react_player/video.pyi +37 -36
  237. reflex/components/recharts/__init__.pyi +41 -42
  238. reflex/components/recharts/cartesian.pyi +384 -400
  239. reflex/components/recharts/charts.pyi +224 -231
  240. reflex/components/recharts/general.pyi +89 -96
  241. reflex/components/recharts/polar.pyi +97 -104
  242. reflex/components/recharts/recharts.pyi +37 -37
  243. reflex/components/sonner/toast.pyi +22 -27
  244. reflex/components/suneditor/editor.pyi +53 -58
  245. reflex/config.py +6 -0
  246. reflex/constants/event.py +1 -0
  247. reflex/experimental/layout.pyi +140 -194
  248. reflex/model.py +14 -2
  249. reflex/state.py +55 -45
  250. reflex/style.py +24 -13
  251. reflex/utils/codespaces.py +94 -0
  252. reflex/utils/compat.py +21 -0
  253. reflex/utils/exceptions.py +4 -0
  254. reflex/utils/format.py +25 -4
  255. reflex/utils/prerequisites.py +0 -13
  256. reflex/utils/pyi_generator.py +88 -61
  257. reflex/utils/types.py +83 -5
  258. reflex/vars.py +62 -5
  259. reflex/vars.pyi +23 -11
  260. {reflex-0.5.5a2.dist-info → reflex-0.5.6.dist-info}/METADATA +4 -5
  261. {reflex-0.5.5a2.dist-info → reflex-0.5.6.dist-info}/RECORD +264 -255
  262. {reflex-0.5.5a2.dist-info → reflex-0.5.6.dist-info}/LICENSE +0 -0
  263. {reflex-0.5.5a2.dist-info → reflex-0.5.6.dist-info}/WHEEL +0 -0
  264. {reflex-0.5.5a2.dist-info → reflex-0.5.6.dist-info}/entry_points.txt +0 -0
@@ -4,6 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  from typing import Literal
6
6
 
7
+ from reflex.components.core.breakpoints import Responsive
7
8
  from reflex.components.el import elements
8
9
  from reflex.vars import Var
9
10
 
@@ -18,7 +19,9 @@ class Section(elements.Section, RadixThemesComponent):
18
19
  tag = "Section"
19
20
 
20
21
  # The size of the section: "1" - "3" (default "2")
21
- size: Var[LiteralSectionSize] = Var.create_safe("2", _var_is_string=True)
22
+ size: Var[Responsive[LiteralSectionSize]] = Var.create_safe(
23
+ "2", _var_is_string=True
24
+ )
22
25
 
23
26
 
24
27
  section = Section.create
@@ -1,15 +1,16 @@
1
1
  """Stub file for reflex/components/radix/themes/layout/section.py"""
2
+
2
3
  # ------------------- DO NOT EDIT ----------------------
3
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
4
5
  # ------------------------------------------------------
6
+ from typing import Any, Callable, Dict, Literal, Optional, Union, overload
5
7
 
6
- from typing import Any, Dict, Literal, Optional, Union, overload
7
- from reflex.vars import Var, BaseVar, ComputedVar
8
- from reflex.event import EventChain, EventHandler, EventSpec
9
- from reflex.style import Style
10
- from typing import Literal
8
+ from reflex.components.core.breakpoints import Breakpoints
11
9
  from reflex.components.el import elements
12
- from reflex.vars import Var
10
+ from reflex.event import EventHandler, EventSpec
11
+ from reflex.style import Style
12
+ from reflex.vars import BaseVar, Var
13
+
13
14
  from ..base import RadixThemesComponent
14
15
 
15
16
  LiteralSectionSize = Literal["1", "2", "3"]
@@ -21,48 +22,40 @@ class Section(elements.Section, RadixThemesComponent):
21
22
  cls,
22
23
  *children,
23
24
  size: Optional[
24
- Union[Var[Literal["1", "2", "3"]], Literal["1", "2", "3"]]
25
- ] = None,
26
- access_key: Optional[
27
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
28
- ] = None,
25
+ Union[
26
+ Var[
27
+ Union[
28
+ Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
29
+ ]
30
+ ],
31
+ Literal["1", "2", "3"],
32
+ Breakpoints[str, Literal["1", "2", "3"]],
33
+ ]
34
+ ] = None,
35
+ access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
29
36
  auto_capitalize: Optional[
30
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
37
+ Union[Var[Union[bool, int, str]], str, int, bool]
31
38
  ] = None,
32
39
  content_editable: Optional[
33
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
40
+ Union[Var[Union[bool, int, str]], str, int, bool]
34
41
  ] = None,
35
42
  context_menu: Optional[
36
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
37
- ] = None,
38
- dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
39
- draggable: Optional[
40
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
43
+ Union[Var[Union[bool, int, str]], str, int, bool]
41
44
  ] = None,
45
+ dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
46
+ draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
42
47
  enter_key_hint: Optional[
43
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
44
- ] = None,
45
- hidden: Optional[
46
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
47
- ] = None,
48
- input_mode: Optional[
49
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
50
- ] = None,
51
- item_prop: Optional[
52
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
53
- ] = None,
54
- lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
55
- role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
56
- slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
57
- spell_check: Optional[
58
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
59
- ] = None,
60
- tab_index: Optional[
61
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
62
- ] = None,
63
- title: Optional[
64
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
65
- ] = None,
48
+ Union[Var[Union[bool, int, str]], str, int, bool]
49
+ ] = None,
50
+ hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
51
+ input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
52
+ item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
53
+ lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
54
+ role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
55
+ slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
56
+ spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
57
+ tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
58
+ title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
66
59
  style: Optional[Style] = None,
67
60
  key: Optional[Any] = None,
68
61
  id: Optional[Any] = None,
@@ -70,51 +63,51 @@ class Section(elements.Section, RadixThemesComponent):
70
63
  autofocus: Optional[bool] = None,
71
64
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
72
65
  on_blur: Optional[
73
- Union[EventHandler, EventSpec, list, function, BaseVar]
66
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
74
67
  ] = None,
75
68
  on_click: Optional[
76
- Union[EventHandler, EventSpec, list, function, BaseVar]
69
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
77
70
  ] = None,
78
71
  on_context_menu: Optional[
79
- Union[EventHandler, EventSpec, list, function, BaseVar]
72
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
80
73
  ] = None,
81
74
  on_double_click: Optional[
82
- Union[EventHandler, EventSpec, list, function, BaseVar]
75
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
83
76
  ] = None,
84
77
  on_focus: Optional[
85
- Union[EventHandler, EventSpec, list, function, BaseVar]
78
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
86
79
  ] = None,
87
80
  on_mount: Optional[
88
- Union[EventHandler, EventSpec, list, function, BaseVar]
81
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
89
82
  ] = None,
90
83
  on_mouse_down: Optional[
91
- Union[EventHandler, EventSpec, list, function, BaseVar]
84
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
92
85
  ] = None,
93
86
  on_mouse_enter: Optional[
94
- Union[EventHandler, EventSpec, list, function, BaseVar]
87
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
95
88
  ] = None,
96
89
  on_mouse_leave: Optional[
97
- Union[EventHandler, EventSpec, list, function, BaseVar]
90
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
98
91
  ] = None,
99
92
  on_mouse_move: Optional[
100
- Union[EventHandler, EventSpec, list, function, BaseVar]
93
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
101
94
  ] = None,
102
95
  on_mouse_out: Optional[
103
- Union[EventHandler, EventSpec, list, function, BaseVar]
96
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
104
97
  ] = None,
105
98
  on_mouse_over: Optional[
106
- Union[EventHandler, EventSpec, list, function, BaseVar]
99
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
107
100
  ] = None,
108
101
  on_mouse_up: Optional[
109
- Union[EventHandler, EventSpec, list, function, BaseVar]
102
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
110
103
  ] = None,
111
104
  on_scroll: Optional[
112
- Union[EventHandler, EventSpec, list, function, BaseVar]
105
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
113
106
  ] = None,
114
107
  on_unmount: Optional[
115
- Union[EventHandler, EventSpec, list, function, BaseVar]
108
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
116
109
  ] = None,
117
- **props
110
+ **props,
118
111
  ) -> "Section":
119
112
  """Create a new component instance.
120
113
 
@@ -1,13 +1,15 @@
1
1
  """Stub file for reflex/components/radix/themes/layout/spacer.py"""
2
+
2
3
  # ------------------- DO NOT EDIT ----------------------
3
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
4
5
  # ------------------------------------------------------
6
+ from typing import Any, Callable, Dict, Literal, Optional, Union, overload
5
7
 
6
- from typing import Any, Dict, Literal, Optional, Union, overload
7
- from reflex.vars import Var, BaseVar, ComputedVar
8
- from reflex.event import EventChain, EventHandler, EventSpec
8
+ from reflex.components.core.breakpoints import Breakpoints
9
+ from reflex.event import EventHandler, EventSpec
9
10
  from reflex.style import Style
10
- from typing import Any
11
+ from reflex.vars import BaseVar, Var
12
+
11
13
  from .flex import Flex
12
14
 
13
15
  class Spacer(Flex):
@@ -20,74 +22,103 @@ class Spacer(Flex):
20
22
  as_child: Optional[Union[Var[bool], bool]] = None,
21
23
  direction: Optional[
22
24
  Union[
23
- Var[Literal["row", "column", "row-reverse", "column-reverse"]],
25
+ Var[
26
+ Union[
27
+ Breakpoints[
28
+ str,
29
+ Literal["row", "column", "row-reverse", "column-reverse"],
30
+ ],
31
+ Literal["row", "column", "row-reverse", "column-reverse"],
32
+ ]
33
+ ],
24
34
  Literal["row", "column", "row-reverse", "column-reverse"],
35
+ Breakpoints[
36
+ str, Literal["row", "column", "row-reverse", "column-reverse"]
37
+ ],
25
38
  ]
26
39
  ] = None,
27
40
  align: Optional[
28
41
  Union[
29
- Var[Literal["start", "center", "end", "baseline", "stretch"]],
42
+ Var[
43
+ Union[
44
+ Breakpoints[
45
+ str,
46
+ Literal["start", "center", "end", "baseline", "stretch"],
47
+ ],
48
+ Literal["start", "center", "end", "baseline", "stretch"],
49
+ ]
50
+ ],
30
51
  Literal["start", "center", "end", "baseline", "stretch"],
52
+ Breakpoints[
53
+ str, Literal["start", "center", "end", "baseline", "stretch"]
54
+ ],
31
55
  ]
32
56
  ] = None,
33
57
  justify: Optional[
34
58
  Union[
35
- Var[Literal["start", "center", "end", "between"]],
59
+ Var[
60
+ Union[
61
+ Breakpoints[str, Literal["start", "center", "end", "between"]],
62
+ Literal["start", "center", "end", "between"],
63
+ ]
64
+ ],
36
65
  Literal["start", "center", "end", "between"],
66
+ Breakpoints[str, Literal["start", "center", "end", "between"]],
37
67
  ]
38
68
  ] = None,
39
69
  wrap: Optional[
40
70
  Union[
41
- Var[Literal["nowrap", "wrap", "wrap-reverse"]],
71
+ Var[
72
+ Union[
73
+ Breakpoints[str, Literal["nowrap", "wrap", "wrap-reverse"]],
74
+ Literal["nowrap", "wrap", "wrap-reverse"],
75
+ ]
76
+ ],
42
77
  Literal["nowrap", "wrap", "wrap-reverse"],
78
+ Breakpoints[str, Literal["nowrap", "wrap", "wrap-reverse"]],
43
79
  ]
44
80
  ] = None,
45
81
  spacing: Optional[
46
82
  Union[
47
- Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
83
+ Var[
84
+ Union[
85
+ Breakpoints[
86
+ str,
87
+ Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
88
+ ],
89
+ Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
90
+ ]
91
+ ],
48
92
  Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
93
+ Breakpoints[
94
+ str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
95
+ ],
49
96
  ]
50
97
  ] = None,
51
- access_key: Optional[
52
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
53
- ] = None,
98
+ access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
54
99
  auto_capitalize: Optional[
55
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
100
+ Union[Var[Union[bool, int, str]], str, int, bool]
56
101
  ] = None,
57
102
  content_editable: Optional[
58
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
103
+ Union[Var[Union[bool, int, str]], str, int, bool]
59
104
  ] = None,
60
105
  context_menu: Optional[
61
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
62
- ] = None,
63
- dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
64
- draggable: Optional[
65
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
106
+ Union[Var[Union[bool, int, str]], str, int, bool]
66
107
  ] = None,
108
+ dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
109
+ draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
67
110
  enter_key_hint: Optional[
68
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
69
- ] = None,
70
- hidden: Optional[
71
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
72
- ] = None,
73
- input_mode: Optional[
74
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
75
- ] = None,
76
- item_prop: Optional[
77
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
78
- ] = None,
79
- lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
80
- role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
81
- slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
82
- spell_check: Optional[
83
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
84
- ] = None,
85
- tab_index: Optional[
86
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
87
- ] = None,
88
- title: Optional[
89
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
90
- ] = None,
111
+ Union[Var[Union[bool, int, str]], str, int, bool]
112
+ ] = None,
113
+ hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
114
+ input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
115
+ item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
116
+ lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
117
+ role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
118
+ slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
119
+ spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
120
+ tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
121
+ title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
91
122
  style: Optional[Style] = None,
92
123
  key: Optional[Any] = None,
93
124
  id: Optional[Any] = None,
@@ -95,51 +126,51 @@ class Spacer(Flex):
95
126
  autofocus: Optional[bool] = None,
96
127
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
97
128
  on_blur: Optional[
98
- Union[EventHandler, EventSpec, list, function, BaseVar]
129
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
99
130
  ] = None,
100
131
  on_click: Optional[
101
- Union[EventHandler, EventSpec, list, function, BaseVar]
132
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
102
133
  ] = None,
103
134
  on_context_menu: Optional[
104
- Union[EventHandler, EventSpec, list, function, BaseVar]
135
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
105
136
  ] = None,
106
137
  on_double_click: Optional[
107
- Union[EventHandler, EventSpec, list, function, BaseVar]
138
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
108
139
  ] = None,
109
140
  on_focus: Optional[
110
- Union[EventHandler, EventSpec, list, function, BaseVar]
141
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
111
142
  ] = None,
112
143
  on_mount: Optional[
113
- Union[EventHandler, EventSpec, list, function, BaseVar]
144
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
114
145
  ] = None,
115
146
  on_mouse_down: Optional[
116
- Union[EventHandler, EventSpec, list, function, BaseVar]
147
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
117
148
  ] = None,
118
149
  on_mouse_enter: Optional[
119
- Union[EventHandler, EventSpec, list, function, BaseVar]
150
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
120
151
  ] = None,
121
152
  on_mouse_leave: Optional[
122
- Union[EventHandler, EventSpec, list, function, BaseVar]
153
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
123
154
  ] = None,
124
155
  on_mouse_move: Optional[
125
- Union[EventHandler, EventSpec, list, function, BaseVar]
156
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
126
157
  ] = None,
127
158
  on_mouse_out: Optional[
128
- Union[EventHandler, EventSpec, list, function, BaseVar]
159
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
129
160
  ] = None,
130
161
  on_mouse_over: Optional[
131
- Union[EventHandler, EventSpec, list, function, BaseVar]
162
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
132
163
  ] = None,
133
164
  on_mouse_up: Optional[
134
- Union[EventHandler, EventSpec, list, function, BaseVar]
165
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
135
166
  ] = None,
136
167
  on_scroll: Optional[
137
- Union[EventHandler, EventSpec, list, function, BaseVar]
168
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
138
169
  ] = None,
139
170
  on_unmount: Optional[
140
- Union[EventHandler, EventSpec, list, function, BaseVar]
171
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
141
172
  ] = None,
142
- **props
173
+ **props,
143
174
  ) -> "Spacer":
144
175
  """Create a new component instance.
145
176