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
@@ -1,28 +1,23 @@
1
1
  """Stub file for reflex/components/radix/themes/color_mode.py"""
2
+
2
3
  # ------------------- DO NOT EDIT ----------------------
3
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
4
5
  # ------------------------------------------------------
5
-
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
6
  import dataclasses
11
- from typing import Literal, get_args
7
+ from typing import Any, Callable, Dict, Literal, Optional, Union, get_args, overload
8
+
12
9
  from reflex.components.component import BaseComponent
13
- from reflex.components.core.cond import Cond, color_mode_cond, cond
10
+ from reflex.components.core.breakpoints import Breakpoints
11
+ from reflex.components.core.cond import Cond
14
12
  from reflex.components.lucide.icon import Icon
15
- from reflex.components.radix.themes.components.dropdown_menu import dropdown_menu
16
13
  from reflex.components.radix.themes.components.switch import Switch
14
+ from reflex.event import EventHandler, EventSpec
17
15
  from reflex.style import (
18
- LIGHT_COLOR_MODE,
16
+ Style,
19
17
  color_mode,
20
- resolved_color_mode,
21
- set_color_mode,
22
- toggle_color_mode,
23
18
  )
24
- from reflex.utils import console
25
19
  from reflex.vars import BaseVar, Var
20
+
26
21
  from .components.icon_button import IconButton
27
22
 
28
23
  DEFAULT_LIGHT_ICON: Icon
@@ -44,51 +39,51 @@ class ColorModeIcon(Cond):
44
39
  autofocus: Optional[bool] = None,
45
40
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
46
41
  on_blur: Optional[
47
- Union[EventHandler, EventSpec, list, function, BaseVar]
42
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
48
43
  ] = None,
49
44
  on_click: Optional[
50
- Union[EventHandler, EventSpec, list, function, BaseVar]
45
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
51
46
  ] = None,
52
47
  on_context_menu: Optional[
53
- Union[EventHandler, EventSpec, list, function, BaseVar]
48
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
54
49
  ] = None,
55
50
  on_double_click: Optional[
56
- Union[EventHandler, EventSpec, list, function, BaseVar]
51
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
57
52
  ] = None,
58
53
  on_focus: Optional[
59
- Union[EventHandler, EventSpec, list, function, BaseVar]
54
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
60
55
  ] = None,
61
56
  on_mount: Optional[
62
- Union[EventHandler, EventSpec, list, function, BaseVar]
57
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
63
58
  ] = None,
64
59
  on_mouse_down: Optional[
65
- Union[EventHandler, EventSpec, list, function, BaseVar]
60
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
66
61
  ] = None,
67
62
  on_mouse_enter: Optional[
68
- Union[EventHandler, EventSpec, list, function, BaseVar]
63
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
69
64
  ] = None,
70
65
  on_mouse_leave: Optional[
71
- Union[EventHandler, EventSpec, list, function, BaseVar]
66
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
72
67
  ] = None,
73
68
  on_mouse_move: Optional[
74
- Union[EventHandler, EventSpec, list, function, BaseVar]
69
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
75
70
  ] = None,
76
71
  on_mouse_out: Optional[
77
- Union[EventHandler, EventSpec, list, function, BaseVar]
72
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
78
73
  ] = None,
79
74
  on_mouse_over: Optional[
80
- Union[EventHandler, EventSpec, list, function, BaseVar]
75
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
81
76
  ] = None,
82
77
  on_mouse_up: Optional[
83
- Union[EventHandler, EventSpec, list, function, BaseVar]
78
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
84
79
  ] = None,
85
80
  on_scroll: Optional[
86
- Union[EventHandler, EventSpec, list, function, BaseVar]
81
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
87
82
  ] = None,
88
83
  on_unmount: Optional[
89
- Union[EventHandler, EventSpec, list, function, BaseVar]
84
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
90
85
  ] = None,
91
- **props
86
+ **props,
92
87
  ) -> "ColorModeIcon":
93
88
  """Create an icon component based on color_mode.
94
89
 
@@ -123,7 +118,16 @@ class ColorModeIconButton(IconButton):
123
118
  allow_system: Optional[bool] = False,
124
119
  as_child: Optional[Union[Var[bool], bool]] = None,
125
120
  size: Optional[
126
- Union[Var[Literal["1", "2", "3", "4"]], Literal["1", "2", "3", "4"]]
121
+ Union[
122
+ Var[
123
+ Union[
124
+ Breakpoints[str, Literal["1", "2", "3", "4"]],
125
+ Literal["1", "2", "3", "4"],
126
+ ]
127
+ ],
128
+ Literal["1", "2", "3", "4"],
129
+ Breakpoints[str, Literal["1", "2", "3", "4"]],
130
+ ]
127
131
  ] = None,
128
132
  variant: Optional[
129
133
  Union[
@@ -200,71 +204,45 @@ class ColorModeIconButton(IconButton):
200
204
  Literal["none", "small", "medium", "large", "full"],
201
205
  ]
202
206
  ] = None,
203
- auto_focus: Optional[
204
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
205
- ] = None,
207
+ auto_focus: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
206
208
  disabled: Optional[Union[Var[bool], bool]] = None,
207
- form: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
208
- form_action: Optional[
209
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
210
- ] = None,
209
+ form: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
210
+ form_action: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
211
211
  form_enc_type: Optional[
212
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
213
- ] = None,
214
- form_method: Optional[
215
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
212
+ Union[Var[Union[bool, int, str]], str, int, bool]
216
213
  ] = None,
214
+ form_method: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
217
215
  form_no_validate: Optional[
218
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
219
- ] = None,
220
- form_target: Optional[
221
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
222
- ] = None,
223
- name: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
224
- type: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
225
- value: Optional[
226
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
227
- ] = None,
228
- access_key: Optional[
229
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
216
+ Union[Var[Union[bool, int, str]], str, int, bool]
230
217
  ] = None,
218
+ form_target: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
219
+ name: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
220
+ type: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
221
+ value: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
222
+ access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
231
223
  auto_capitalize: Optional[
232
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
224
+ Union[Var[Union[bool, int, str]], str, int, bool]
233
225
  ] = None,
234
226
  content_editable: Optional[
235
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
227
+ Union[Var[Union[bool, int, str]], str, int, bool]
236
228
  ] = None,
237
229
  context_menu: Optional[
238
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
239
- ] = None,
240
- dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
241
- draggable: Optional[
242
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
230
+ Union[Var[Union[bool, int, str]], str, int, bool]
243
231
  ] = None,
232
+ dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
233
+ draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
244
234
  enter_key_hint: Optional[
245
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
246
- ] = None,
247
- hidden: Optional[
248
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
249
- ] = None,
250
- input_mode: Optional[
251
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
252
- ] = None,
253
- item_prop: Optional[
254
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
255
- ] = None,
256
- lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
257
- role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
258
- slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
259
- spell_check: Optional[
260
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
261
- ] = None,
262
- tab_index: Optional[
263
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
264
- ] = None,
265
- title: Optional[
266
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
267
- ] = None,
235
+ Union[Var[Union[bool, int, str]], str, int, bool]
236
+ ] = None,
237
+ hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
238
+ input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
239
+ item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
240
+ lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
241
+ role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
242
+ slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
243
+ spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
244
+ tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
245
+ title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
268
246
  loading: Optional[Union[Var[bool], bool]] = None,
269
247
  style: Optional[Style] = None,
270
248
  key: Optional[Any] = None,
@@ -273,51 +251,51 @@ class ColorModeIconButton(IconButton):
273
251
  autofocus: Optional[bool] = None,
274
252
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
275
253
  on_blur: Optional[
276
- Union[EventHandler, EventSpec, list, function, BaseVar]
254
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
277
255
  ] = None,
278
256
  on_click: Optional[
279
- Union[EventHandler, EventSpec, list, function, BaseVar]
257
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
280
258
  ] = None,
281
259
  on_context_menu: Optional[
282
- Union[EventHandler, EventSpec, list, function, BaseVar]
260
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
283
261
  ] = None,
284
262
  on_double_click: Optional[
285
- Union[EventHandler, EventSpec, list, function, BaseVar]
263
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
286
264
  ] = None,
287
265
  on_focus: Optional[
288
- Union[EventHandler, EventSpec, list, function, BaseVar]
266
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
289
267
  ] = None,
290
268
  on_mount: Optional[
291
- Union[EventHandler, EventSpec, list, function, BaseVar]
269
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
292
270
  ] = None,
293
271
  on_mouse_down: Optional[
294
- Union[EventHandler, EventSpec, list, function, BaseVar]
272
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
295
273
  ] = None,
296
274
  on_mouse_enter: Optional[
297
- Union[EventHandler, EventSpec, list, function, BaseVar]
275
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
298
276
  ] = None,
299
277
  on_mouse_leave: Optional[
300
- Union[EventHandler, EventSpec, list, function, BaseVar]
278
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
301
279
  ] = None,
302
280
  on_mouse_move: Optional[
303
- Union[EventHandler, EventSpec, list, function, BaseVar]
281
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
304
282
  ] = None,
305
283
  on_mouse_out: Optional[
306
- Union[EventHandler, EventSpec, list, function, BaseVar]
284
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
307
285
  ] = None,
308
286
  on_mouse_over: Optional[
309
- Union[EventHandler, EventSpec, list, function, BaseVar]
287
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
310
288
  ] = None,
311
289
  on_mouse_up: Optional[
312
- Union[EventHandler, EventSpec, list, function, BaseVar]
290
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
313
291
  ] = None,
314
292
  on_scroll: Optional[
315
- Union[EventHandler, EventSpec, list, function, BaseVar]
293
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
316
294
  ] = None,
317
295
  on_unmount: Optional[
318
- Union[EventHandler, EventSpec, list, function, BaseVar]
296
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
319
297
  ] = None,
320
- **props
298
+ **props,
321
299
  ) -> "ColorModeIconButton":
322
300
  """Create a icon button component that calls toggle_color_mode on click.
323
301
 
@@ -386,7 +364,15 @@ class ColorModeSwitch(Switch):
386
364
  name: Optional[Union[Var[str], str]] = None,
387
365
  value: Optional[Union[Var[str], str]] = None,
388
366
  size: Optional[
389
- Union[Var[Literal["1", "2", "3"]], Literal["1", "2", "3"]]
367
+ Union[
368
+ Var[
369
+ Union[
370
+ Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
371
+ ]
372
+ ],
373
+ Literal["1", "2", "3"],
374
+ Breakpoints[str, Literal["1", "2", "3"]],
375
+ ]
390
376
  ] = None,
391
377
  variant: Optional[
392
378
  Union[
@@ -469,54 +455,54 @@ class ColorModeSwitch(Switch):
469
455
  autofocus: Optional[bool] = None,
470
456
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
471
457
  on_blur: Optional[
472
- Union[EventHandler, EventSpec, list, function, BaseVar]
458
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
473
459
  ] = None,
474
460
  on_change: Optional[
475
- Union[EventHandler, EventSpec, list, function, BaseVar]
461
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
476
462
  ] = None,
477
463
  on_click: Optional[
478
- Union[EventHandler, EventSpec, list, function, BaseVar]
464
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
479
465
  ] = None,
480
466
  on_context_menu: Optional[
481
- Union[EventHandler, EventSpec, list, function, BaseVar]
467
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
482
468
  ] = None,
483
469
  on_double_click: Optional[
484
- Union[EventHandler, EventSpec, list, function, BaseVar]
470
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
485
471
  ] = None,
486
472
  on_focus: Optional[
487
- Union[EventHandler, EventSpec, list, function, BaseVar]
473
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
488
474
  ] = None,
489
475
  on_mount: Optional[
490
- Union[EventHandler, EventSpec, list, function, BaseVar]
476
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
491
477
  ] = None,
492
478
  on_mouse_down: Optional[
493
- Union[EventHandler, EventSpec, list, function, BaseVar]
479
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
494
480
  ] = None,
495
481
  on_mouse_enter: Optional[
496
- Union[EventHandler, EventSpec, list, function, BaseVar]
482
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
497
483
  ] = None,
498
484
  on_mouse_leave: Optional[
499
- Union[EventHandler, EventSpec, list, function, BaseVar]
485
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
500
486
  ] = None,
501
487
  on_mouse_move: Optional[
502
- Union[EventHandler, EventSpec, list, function, BaseVar]
488
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
503
489
  ] = None,
504
490
  on_mouse_out: Optional[
505
- Union[EventHandler, EventSpec, list, function, BaseVar]
491
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
506
492
  ] = None,
507
493
  on_mouse_over: Optional[
508
- Union[EventHandler, EventSpec, list, function, BaseVar]
494
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
509
495
  ] = None,
510
496
  on_mouse_up: Optional[
511
- Union[EventHandler, EventSpec, list, function, BaseVar]
497
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
512
498
  ] = None,
513
499
  on_scroll: Optional[
514
- Union[EventHandler, EventSpec, list, function, BaseVar]
500
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
515
501
  ] = None,
516
502
  on_unmount: Optional[
517
- Union[EventHandler, EventSpec, list, function, BaseVar]
503
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
518
504
  ] = None,
519
- **props
505
+ **props,
520
506
  ) -> "ColorModeSwitch":
521
507
  """Create a switch component bound to color_mode.
522
508
 
@@ -11,16 +11,25 @@ from .button import button as button
11
11
  from .callout import callout as callout
12
12
  from .card import card as card
13
13
  from .checkbox import checkbox as checkbox
14
+ from .checkbox_cards import checkbox_cards as checkbox_cards
15
+ from .checkbox_group import checkbox_group as checkbox_group
14
16
  from .context_menu import context_menu as context_menu
15
17
  from .data_list import data_list as data_list
16
18
  from .dialog import dialog as dialog
19
+ from .dropdown_menu import dropdown_menu as dropdown_menu
20
+ from .dropdown_menu import menu as menu
17
21
  from .hover_card import hover_card as hover_card
18
22
  from .icon_button import icon_button as icon_button
19
- from .text_field import input as input
20
23
  from .inset import inset as inset
21
24
  from .popover import popover as popover
25
+ from .radio_cards import radio_cards as radio_cards
26
+ from .radio_group import radio as radio
27
+ from .radio_group import radio_group as radio_group
22
28
  from .scroll_area import scroll_area as scroll_area
29
+ from .segmented_control import segmented_control as segmented_control
23
30
  from .select import select as select
31
+ from .separator import divider as divider
32
+ from .separator import separator as separator
24
33
  from .skeleton import skeleton as skeleton
25
34
  from .slider import slider as slider
26
35
  from .spinner import spinner as spinner
@@ -28,17 +37,6 @@ from .switch import switch as switch
28
37
  from .table import table as table
29
38
  from .tabs import tabs as tabs
30
39
  from .text_area import text_area as text_area
31
- from .tooltip import tooltip as tooltip
32
- from .segmented_control import segmented_control as segmented_control
33
- from .radio_cards import radio_cards as radio_cards
34
- from .checkbox_cards import checkbox_cards as checkbox_cards
35
- from .checkbox_group import checkbox_group as checkbox_group
40
+ from .text_field import input as input
36
41
  from .text_field import text_field as text_field
37
- from .radio_group import radio as radio
38
- from .radio_group import radio_group as radio_group
39
- from .dropdown_menu import menu as menu
40
- from .dropdown_menu import dropdown_menu as dropdown_menu
41
- from .separator import divider as divider
42
- from .separator import separator as separator
43
- from reflex import RADIX_THEMES_COMPONENTS_MAPPING
44
- from reflex.utils import lazy_loader
42
+ from .tooltip import tooltip as tooltip
@@ -3,6 +3,7 @@
3
3
  from typing import Literal
4
4
 
5
5
  from reflex.components.component import ComponentNamespace
6
+ from reflex.components.core.breakpoints import Responsive
6
7
  from reflex.components.el import elements
7
8
  from reflex.event import EventHandler
8
9
  from reflex.vars import Var
@@ -36,7 +37,7 @@ class AlertDialogContent(elements.Div, RadixThemesComponent):
36
37
  tag = "AlertDialog.Content"
37
38
 
38
39
  # The size of the content.
39
- size: Var[LiteralContentSize]
40
+ size: Var[Responsive[LiteralContentSize]]
40
41
 
41
42
  # Whether to force mount the content on open.
42
43
  force_mount: Var[bool]