reflex 0.6.0__py3-none-any.whl → 0.6.0a1__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 (253) hide show
  1. reflex/.templates/jinja/custom_components/pyproject.toml.jinja2 +2 -2
  2. reflex/.templates/jinja/web/pages/_app.js.jinja2 +1 -1
  3. reflex/.templates/jinja/web/pages/utils.js.jinja2 +2 -2
  4. reflex/.templates/web/components/reflex/chakra_color_mode_provider.js +36 -0
  5. reflex/.templates/web/utils/state.js +1 -3
  6. reflex/__init__.py +2 -8
  7. reflex/__init__.pyi +1 -2
  8. reflex/app.py +2 -4
  9. reflex/app_module_for_backend.py +1 -1
  10. reflex/base.py +1 -1
  11. reflex/compiler/compiler.py +2 -2
  12. reflex/compiler/utils.py +3 -3
  13. reflex/components/base/app_wrap.py +2 -2
  14. reflex/components/base/app_wrap.pyi +27 -17
  15. reflex/components/base/bare.py +5 -4
  16. reflex/components/base/body.pyi +27 -17
  17. reflex/components/base/document.pyi +131 -81
  18. reflex/components/base/error_boundary.py +7 -6
  19. reflex/components/base/error_boundary.pyi +33 -20
  20. reflex/components/base/fragment.pyi +27 -17
  21. reflex/components/base/head.pyi +53 -33
  22. reflex/components/base/link.py +1 -1
  23. reflex/components/base/link.pyi +54 -33
  24. reflex/components/base/meta.pyi +105 -65
  25. reflex/components/base/script.py +2 -1
  26. reflex/components/base/script.pyi +38 -21
  27. reflex/components/component.py +47 -53
  28. reflex/components/core/banner.py +27 -23
  29. reflex/components/core/banner.pyi +171 -134
  30. reflex/components/core/client_side_routing.py +3 -2
  31. reflex/components/core/client_side_routing.pyi +54 -33
  32. reflex/components/core/clipboard.py +1 -2
  33. reflex/components/core/clipboard.pyi +33 -20
  34. reflex/components/core/cond.py +5 -5
  35. reflex/components/core/debounce.py +5 -5
  36. reflex/components/core/debounce.pyi +33 -20
  37. reflex/components/core/foreach.py +4 -3
  38. reflex/components/core/html.py +1 -1
  39. reflex/components/core/html.pyi +46 -35
  40. reflex/components/core/match.py +17 -17
  41. reflex/components/core/upload.py +23 -17
  42. reflex/components/core/upload.pyi +124 -78
  43. reflex/components/datadisplay/code.py +10 -9
  44. reflex/components/datadisplay/code.pyi +409 -299
  45. reflex/components/datadisplay/dataeditor.py +10 -8
  46. reflex/components/datadisplay/dataeditor.pyi +53 -40
  47. reflex/components/el/element.pyi +27 -17
  48. reflex/components/el/elements/base.py +1 -1
  49. reflex/components/el/elements/base.pyi +45 -34
  50. reflex/components/el/elements/forms.py +16 -16
  51. reflex/components/el/elements/forms.pyi +707 -554
  52. reflex/components/el/elements/inline.py +1 -1
  53. reflex/components/el/elements/inline.pyi +1218 -937
  54. reflex/components/el/elements/media.py +1 -1
  55. reflex/components/el/elements/media.pyi +997 -786
  56. reflex/components/el/elements/metadata.py +6 -3
  57. reflex/components/el/elements/metadata.pyi +242 -181
  58. reflex/components/el/elements/other.py +1 -1
  59. reflex/components/el/elements/other.pyi +306 -235
  60. reflex/components/el/elements/scripts.py +1 -1
  61. reflex/components/el/elements/scripts.pyi +140 -109
  62. reflex/components/el/elements/sectioning.py +2 -0
  63. reflex/components/el/elements/sectioning.pyi +647 -496
  64. reflex/components/el/elements/tables.py +1 -1
  65. reflex/components/el/elements/tables.pyi +452 -351
  66. reflex/components/el/elements/typography.py +1 -1
  67. reflex/components/el/elements/typography.pyi +657 -506
  68. reflex/components/gridjs/datatable.py +9 -6
  69. reflex/components/gridjs/datatable.pyi +56 -35
  70. reflex/components/lucide/icon.py +1 -1
  71. reflex/components/lucide/icon.pyi +54 -33
  72. reflex/components/markdown/markdown.py +31 -26
  73. reflex/components/markdown/markdown.pyi +37 -27
  74. reflex/components/moment/moment.py +12 -13
  75. reflex/components/moment/moment.pyi +35 -23
  76. reflex/components/next/base.pyi +27 -17
  77. reflex/components/next/image.py +1 -1
  78. reflex/components/next/image.pyi +37 -22
  79. reflex/components/next/link.py +1 -1
  80. reflex/components/next/link.pyi +28 -17
  81. reflex/components/next/video.py +1 -1
  82. reflex/components/next/video.pyi +28 -17
  83. reflex/components/plotly/plotly.py +13 -12
  84. reflex/components/plotly/plotly.pyi +54 -39
  85. reflex/components/props.py +1 -1
  86. reflex/components/radix/__init__.pyi +0 -1
  87. reflex/components/radix/primitives/__init__.pyi +0 -1
  88. reflex/components/radix/primitives/accordion.py +4 -4
  89. reflex/components/radix/primitives/accordion.pyi +495 -424
  90. reflex/components/radix/primitives/base.py +1 -1
  91. reflex/components/radix/primitives/base.pyi +54 -33
  92. reflex/components/radix/primitives/drawer.py +1 -1
  93. reflex/components/radix/primitives/drawer.pyi +273 -172
  94. reflex/components/radix/primitives/form.py +1 -1
  95. reflex/components/radix/primitives/form.pyi +364 -257
  96. reflex/components/radix/primitives/progress.py +1 -1
  97. reflex/components/radix/primitives/progress.pyi +282 -231
  98. reflex/components/radix/primitives/slider.py +1 -1
  99. reflex/components/radix/primitives/slider.pyi +138 -87
  100. reflex/components/radix/themes/base.py +24 -3
  101. reflex/components/radix/themes/base.pyi +250 -178
  102. reflex/components/radix/themes/color_mode.py +5 -5
  103. reflex/components/radix/themes/color_mode.pyi +220 -187
  104. reflex/components/radix/themes/components/alert_dialog.py +1 -1
  105. reflex/components/radix/themes/components/alert_dialog.pyi +207 -136
  106. reflex/components/radix/themes/components/aspect_ratio.py +1 -1
  107. reflex/components/radix/themes/components/aspect_ratio.pyi +28 -17
  108. reflex/components/radix/themes/components/avatar.py +1 -1
  109. reflex/components/radix/themes/components/avatar.pyi +81 -70
  110. reflex/components/radix/themes/components/badge.py +1 -1
  111. reflex/components/radix/themes/components/badge.pyi +99 -88
  112. reflex/components/radix/themes/components/button.py +1 -1
  113. reflex/components/radix/themes/components/button.pyi +109 -98
  114. reflex/components/radix/themes/components/callout.py +1 -1
  115. reflex/components/radix/themes/components/callout.pyi +373 -322
  116. reflex/components/radix/themes/components/card.py +1 -1
  117. reflex/components/radix/themes/components/card.pyi +49 -38
  118. reflex/components/radix/themes/components/checkbox.py +2 -1
  119. reflex/components/radix/themes/components/checkbox.pyi +245 -208
  120. reflex/components/radix/themes/components/checkbox_cards.py +1 -1
  121. reflex/components/radix/themes/components/checkbox_cards.pyi +115 -94
  122. reflex/components/radix/themes/components/checkbox_group.py +1 -1
  123. reflex/components/radix/themes/components/checkbox_group.pyi +107 -86
  124. reflex/components/radix/themes/components/context_menu.py +1 -1
  125. reflex/components/radix/themes/components/context_menu.pyi +319 -238
  126. reflex/components/radix/themes/components/data_list.py +1 -1
  127. reflex/components/radix/themes/components/data_list.pyi +171 -130
  128. reflex/components/radix/themes/components/dialog.py +1 -1
  129. reflex/components/radix/themes/components/dialog.pyi +210 -139
  130. reflex/components/radix/themes/components/dropdown_menu.py +1 -1
  131. reflex/components/radix/themes/components/dropdown_menu.pyi +332 -249
  132. reflex/components/radix/themes/components/hover_card.py +1 -1
  133. reflex/components/radix/themes/components/hover_card.pyi +131 -90
  134. reflex/components/radix/themes/components/icon_button.py +3 -2
  135. reflex/components/radix/themes/components/icon_button.pyi +109 -98
  136. reflex/components/radix/themes/components/inset.py +1 -1
  137. reflex/components/radix/themes/components/inset.pyi +58 -47
  138. reflex/components/radix/themes/components/popover.py +1 -1
  139. reflex/components/radix/themes/components/popover.pyi +136 -95
  140. reflex/components/radix/themes/components/progress.py +1 -1
  141. reflex/components/radix/themes/components/progress.pyi +82 -71
  142. reflex/components/radix/themes/components/radio.py +1 -1
  143. reflex/components/radix/themes/components/radio.pyi +80 -69
  144. reflex/components/radix/themes/components/radio_cards.py +1 -1
  145. reflex/components/radix/themes/components/radio_cards.pyi +119 -98
  146. reflex/components/radix/themes/components/radio_group.py +11 -8
  147. reflex/components/radix/themes/components/radio_group.pyi +271 -228
  148. reflex/components/radix/themes/components/scroll_area.py +1 -1
  149. reflex/components/radix/themes/components/scroll_area.pyi +32 -21
  150. reflex/components/radix/themes/components/segmented_control.py +1 -1
  151. reflex/components/radix/themes/components/segmented_control.pyi +113 -90
  152. reflex/components/radix/themes/components/select.py +3 -2
  153. reflex/components/radix/themes/components/select.pyi +471 -374
  154. reflex/components/radix/themes/components/separator.py +2 -1
  155. reflex/components/radix/themes/components/separator.pyi +80 -69
  156. reflex/components/radix/themes/components/skeleton.py +1 -1
  157. reflex/components/radix/themes/components/skeleton.pyi +34 -23
  158. reflex/components/radix/themes/components/slider.py +3 -2
  159. reflex/components/radix/themes/components/slider.pyi +88 -75
  160. reflex/components/radix/themes/components/spinner.py +1 -1
  161. reflex/components/radix/themes/components/spinner.pyi +30 -19
  162. reflex/components/radix/themes/components/switch.py +1 -1
  163. reflex/components/radix/themes/components/switch.pyi +84 -71
  164. reflex/components/radix/themes/components/table.py +1 -1
  165. reflex/components/radix/themes/components/table.pyi +332 -261
  166. reflex/components/radix/themes/components/tabs.py +1 -1
  167. reflex/components/radix/themes/components/tabs.pyi +194 -139
  168. reflex/components/radix/themes/components/text_area.py +1 -1
  169. reflex/components/radix/themes/components/text_area.pyi +111 -96
  170. reflex/components/radix/themes/components/text_field.py +1 -1
  171. reflex/components/radix/themes/components/text_field.pyi +286 -247
  172. reflex/components/radix/themes/components/tooltip.py +1 -1
  173. reflex/components/radix/themes/components/tooltip.pyi +37 -26
  174. reflex/components/radix/themes/layout/__init__.pyi +0 -1
  175. reflex/components/radix/themes/layout/base.py +1 -1
  176. reflex/components/radix/themes/layout/base.pyi +67 -56
  177. reflex/components/radix/themes/layout/box.pyi +45 -34
  178. reflex/components/radix/themes/layout/center.pyi +67 -56
  179. reflex/components/radix/themes/layout/container.py +2 -1
  180. reflex/components/radix/themes/layout/container.pyi +47 -36
  181. reflex/components/radix/themes/layout/flex.py +1 -1
  182. reflex/components/radix/themes/layout/flex.pyi +67 -56
  183. reflex/components/radix/themes/layout/grid.py +1 -1
  184. reflex/components/radix/themes/layout/grid.pyi +75 -64
  185. reflex/components/radix/themes/layout/list.py +6 -5
  186. reflex/components/radix/themes/layout/list.pyi +244 -193
  187. reflex/components/radix/themes/layout/section.py +2 -1
  188. reflex/components/radix/themes/layout/section.pyi +47 -36
  189. reflex/components/radix/themes/layout/spacer.pyi +67 -56
  190. reflex/components/radix/themes/layout/stack.py +1 -1
  191. reflex/components/radix/themes/layout/stack.pyi +159 -128
  192. reflex/components/radix/themes/typography/blockquote.py +1 -1
  193. reflex/components/radix/themes/typography/blockquote.pyi +100 -89
  194. reflex/components/radix/themes/typography/code.py +1 -1
  195. reflex/components/radix/themes/typography/code.pyi +101 -90
  196. reflex/components/radix/themes/typography/heading.py +1 -1
  197. reflex/components/radix/themes/typography/heading.pyi +107 -96
  198. reflex/components/radix/themes/typography/link.py +1 -1
  199. reflex/components/radix/themes/typography/link.pyi +113 -102
  200. reflex/components/radix/themes/typography/text.py +1 -1
  201. reflex/components/radix/themes/typography/text.pyi +572 -501
  202. reflex/components/react_player/audio.pyi +60 -33
  203. reflex/components/react_player/react_player.py +1 -1
  204. reflex/components/react_player/react_player.pyi +60 -33
  205. reflex/components/react_player/video.pyi +60 -33
  206. reflex/components/recharts/cartesian.py +3 -2
  207. reflex/components/recharts/cartesian.pyi +861 -678
  208. reflex/components/recharts/charts.py +5 -4
  209. reflex/components/recharts/charts.pyi +357 -252
  210. reflex/components/recharts/general.py +2 -1
  211. reflex/components/recharts/general.pyi +231 -180
  212. reflex/components/recharts/polar.py +5 -4
  213. reflex/components/recharts/polar.pyi +181 -144
  214. reflex/components/recharts/recharts.pyi +53 -33
  215. reflex/components/sonner/toast.py +17 -16
  216. reflex/components/sonner/toast.pyi +47 -36
  217. reflex/components/suneditor/editor.py +3 -2
  218. reflex/components/suneditor/editor.pyi +78 -55
  219. reflex/components/tags/cond_tag.py +4 -6
  220. reflex/components/tags/iter_tag.py +16 -28
  221. reflex/components/tags/match_tag.py +4 -6
  222. reflex/components/tags/tag.py +23 -40
  223. reflex/custom_components/custom_components.py +1 -3
  224. reflex/event.py +65 -113
  225. reflex/experimental/client_state.py +24 -25
  226. reflex/experimental/hooks.py +16 -16
  227. reflex/experimental/layout.py +5 -5
  228. reflex/experimental/layout.pyi +187 -136
  229. reflex/{vars → ivars}/__init__.py +2 -6
  230. reflex/{vars → ivars}/base.py +216 -599
  231. reflex/{vars → ivars}/function.py +19 -15
  232. reflex/{vars → ivars}/number.py +20 -41
  233. reflex/{vars → ivars}/object.py +30 -28
  234. reflex/{vars → ivars}/sequence.py +50 -53
  235. reflex/middleware/hydrate_middleware.py +0 -2
  236. reflex/middleware/middleware.py +3 -3
  237. reflex/state.py +82 -148
  238. reflex/style.py +22 -21
  239. reflex/utils/exceptions.py +0 -20
  240. reflex/utils/format.py +34 -54
  241. reflex/utils/imports.py +73 -16
  242. reflex/utils/prerequisites.py +15 -35
  243. reflex/utils/pyi_generator.py +8 -13
  244. reflex/utils/serializers.py +22 -12
  245. reflex/utils/telemetry.py +2 -3
  246. reflex/utils/types.py +5 -10
  247. reflex/vars.py +501 -0
  248. {reflex-0.6.0.dist-info → reflex-0.6.0a1.dist-info}/METADATA +5 -4
  249. reflex-0.6.0a1.dist-info/RECORD +384 -0
  250. reflex-0.6.0.dist-info/RECORD +0 -382
  251. {reflex-0.6.0.dist-info → reflex-0.6.0a1.dist-info}/LICENSE +0 -0
  252. {reflex-0.6.0.dist-info → reflex-0.6.0a1.dist-info}/WHEEL +0 -0
  253. {reflex-0.6.0.dist-info → reflex-0.6.0a1.dist-info}/entry_points.txt +0 -0
@@ -3,7 +3,8 @@
3
3
  from typing import Literal
4
4
 
5
5
  from reflex.components.core.breakpoints import Responsive
6
- from reflex.vars.base import LiteralVar, Var
6
+ from reflex.ivars.base import LiteralVar
7
+ from reflex.vars import Var
7
8
 
8
9
  from ..base import (
9
10
  LiteralAccentColor,
@@ -7,8 +7,9 @@ from typing import Any, Callable, Dict, Literal, Optional, Union, overload
7
7
 
8
8
  from reflex.components.core.breakpoints import Breakpoints
9
9
  from reflex.event import EventHandler, EventSpec
10
+ from reflex.ivars.base import ImmutableVar
10
11
  from reflex.style import Style
11
- from reflex.vars.base import Var
12
+ from reflex.vars import Var
12
13
 
13
14
  from ..base import RadixThemesComponent
14
15
 
@@ -22,88 +23,88 @@ class Separator(RadixThemesComponent):
22
23
  *children,
23
24
  size: Optional[
24
25
  Union[
25
- Breakpoints[str, Literal["1", "2", "3", "4"]],
26
- Literal["1", "2", "3", "4"],
27
26
  Var[
28
27
  Union[
29
28
  Breakpoints[str, Literal["1", "2", "3", "4"]],
30
29
  Literal["1", "2", "3", "4"],
31
30
  ]
32
31
  ],
32
+ Literal["1", "2", "3", "4"],
33
+ Breakpoints[str, Literal["1", "2", "3", "4"]],
33
34
  ]
34
35
  ] = None,
35
36
  color_scheme: Optional[
36
37
  Union[
37
- Literal[
38
- "amber",
39
- "blue",
40
- "bronze",
41
- "brown",
42
- "crimson",
43
- "cyan",
44
- "gold",
45
- "grass",
46
- "gray",
47
- "green",
48
- "indigo",
49
- "iris",
50
- "jade",
51
- "lime",
52
- "mint",
53
- "orange",
54
- "pink",
55
- "plum",
56
- "purple",
57
- "red",
58
- "ruby",
59
- "sky",
60
- "teal",
61
- "tomato",
62
- "violet",
63
- "yellow",
64
- ],
65
38
  Var[
66
39
  Literal[
67
- "amber",
68
- "blue",
69
- "bronze",
70
- "brown",
40
+ "tomato",
41
+ "red",
42
+ "ruby",
71
43
  "crimson",
72
- "cyan",
73
- "gold",
74
- "grass",
75
- "gray",
76
- "green",
77
- "indigo",
78
- "iris",
79
- "jade",
80
- "lime",
81
- "mint",
82
- "orange",
83
44
  "pink",
84
45
  "plum",
85
46
  "purple",
86
- "red",
87
- "ruby",
88
- "sky",
89
- "teal",
90
- "tomato",
91
47
  "violet",
48
+ "iris",
49
+ "indigo",
50
+ "blue",
51
+ "cyan",
52
+ "teal",
53
+ "jade",
54
+ "green",
55
+ "grass",
56
+ "brown",
57
+ "orange",
58
+ "sky",
59
+ "mint",
60
+ "lime",
92
61
  "yellow",
62
+ "amber",
63
+ "gold",
64
+ "bronze",
65
+ "gray",
93
66
  ]
94
67
  ],
68
+ Literal[
69
+ "tomato",
70
+ "red",
71
+ "ruby",
72
+ "crimson",
73
+ "pink",
74
+ "plum",
75
+ "purple",
76
+ "violet",
77
+ "iris",
78
+ "indigo",
79
+ "blue",
80
+ "cyan",
81
+ "teal",
82
+ "jade",
83
+ "green",
84
+ "grass",
85
+ "brown",
86
+ "orange",
87
+ "sky",
88
+ "mint",
89
+ "lime",
90
+ "yellow",
91
+ "amber",
92
+ "gold",
93
+ "bronze",
94
+ "gray",
95
+ ],
95
96
  ]
96
97
  ] = None,
97
98
  orientation: Optional[
98
99
  Union[
99
- Breakpoints[str, Literal["horizontal", "vertical"]],
100
- Literal["horizontal", "vertical"],
101
100
  Var[
102
101
  Union[
103
102
  Breakpoints[str, Literal["horizontal", "vertical"]],
104
103
  Literal["horizontal", "vertical"],
105
104
  ]
106
105
  ],
106
+ Literal["horizontal", "vertical"],
107
+ Breakpoints[str, Literal["horizontal", "vertical"]],
107
108
  ]
108
109
  ] = None,
109
110
  decorative: Optional[Union[Var[bool], bool]] = None,
@@ -112,41 +113,51 @@ class Separator(RadixThemesComponent):
112
113
  id: Optional[Any] = None,
113
114
  class_name: Optional[Any] = None,
114
115
  autofocus: Optional[bool] = None,
115
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
116
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
117
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
116
+ custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
117
+ on_blur: Optional[
118
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
119
+ ] = None,
120
+ on_click: Optional[
121
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
122
+ ] = None,
118
123
  on_context_menu: Optional[
119
- Union[EventHandler, EventSpec, list, Callable, Var]
124
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
120
125
  ] = None,
121
126
  on_double_click: Optional[
122
- Union[EventHandler, EventSpec, list, Callable, Var]
127
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
128
+ ] = None,
129
+ on_focus: Optional[
130
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
131
+ ] = None,
132
+ on_mount: Optional[
133
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
123
134
  ] = None,
124
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
125
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
126
135
  on_mouse_down: Optional[
127
- Union[EventHandler, EventSpec, list, Callable, Var]
136
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
128
137
  ] = None,
129
138
  on_mouse_enter: Optional[
130
- Union[EventHandler, EventSpec, list, Callable, Var]
139
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
131
140
  ] = None,
132
141
  on_mouse_leave: Optional[
133
- Union[EventHandler, EventSpec, list, Callable, Var]
142
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
134
143
  ] = None,
135
144
  on_mouse_move: Optional[
136
- Union[EventHandler, EventSpec, list, Callable, Var]
145
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
137
146
  ] = None,
138
147
  on_mouse_out: Optional[
139
- Union[EventHandler, EventSpec, list, Callable, Var]
148
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
140
149
  ] = None,
141
150
  on_mouse_over: Optional[
142
- Union[EventHandler, EventSpec, list, Callable, Var]
151
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
143
152
  ] = None,
144
153
  on_mouse_up: Optional[
145
- Union[EventHandler, EventSpec, list, Callable, Var]
154
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
155
+ ] = None,
156
+ on_scroll: Optional[
157
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
146
158
  ] = None,
147
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
148
159
  on_unmount: Optional[
149
- Union[EventHandler, EventSpec, list, Callable, Var]
160
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
150
161
  ] = None,
151
162
  **props,
152
163
  ) -> "Separator":
@@ -1,7 +1,7 @@
1
1
  """Skeleton theme from Radix components."""
2
2
 
3
3
  from reflex.components.core.breakpoints import Responsive
4
- from reflex.vars.base import Var
4
+ from reflex.vars import Var
5
5
 
6
6
  from ..base import RadixLoadingProp, RadixThemesComponent
7
7
 
@@ -7,8 +7,9 @@ from typing import Any, Callable, Dict, Optional, Union, overload
7
7
 
8
8
  from reflex.components.core.breakpoints import Breakpoints
9
9
  from reflex.event import EventHandler, EventSpec
10
+ from reflex.ivars.base import ImmutableVar
10
11
  from reflex.style import Style
11
- from reflex.vars.base import Var
12
+ from reflex.vars import Var
12
13
 
13
14
  from ..base import RadixLoadingProp, RadixThemesComponent
14
15
 
@@ -19,22 +20,22 @@ class Skeleton(RadixLoadingProp, RadixThemesComponent):
19
20
  cls,
20
21
  *children,
21
22
  width: Optional[
22
- Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
23
+ Union[Var[Union[Breakpoints[str, str], str]], str, Breakpoints[str, str]]
23
24
  ] = None,
24
25
  min_width: Optional[
25
- Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
26
+ Union[Var[Union[Breakpoints[str, str], str]], str, Breakpoints[str, str]]
26
27
  ] = None,
27
28
  max_width: Optional[
28
- Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
29
+ Union[Var[Union[Breakpoints[str, str], str]], str, Breakpoints[str, str]]
29
30
  ] = None,
30
31
  height: Optional[
31
- Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
32
+ Union[Var[Union[Breakpoints[str, str], str]], str, Breakpoints[str, str]]
32
33
  ] = None,
33
34
  min_height: Optional[
34
- Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
35
+ Union[Var[Union[Breakpoints[str, str], str]], str, Breakpoints[str, str]]
35
36
  ] = None,
36
37
  max_height: Optional[
37
- Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
38
+ Union[Var[Union[Breakpoints[str, str], str]], str, Breakpoints[str, str]]
38
39
  ] = None,
39
40
  loading: Optional[Union[Var[bool], bool]] = None,
40
41
  style: Optional[Style] = None,
@@ -42,41 +43,51 @@ class Skeleton(RadixLoadingProp, RadixThemesComponent):
42
43
  id: Optional[Any] = None,
43
44
  class_name: Optional[Any] = None,
44
45
  autofocus: Optional[bool] = None,
45
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
46
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
47
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
46
+ custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
47
+ on_blur: Optional[
48
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
49
+ ] = None,
50
+ on_click: Optional[
51
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
52
+ ] = None,
48
53
  on_context_menu: Optional[
49
- Union[EventHandler, EventSpec, list, Callable, Var]
54
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
50
55
  ] = None,
51
56
  on_double_click: Optional[
52
- Union[EventHandler, EventSpec, list, Callable, Var]
57
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
58
+ ] = None,
59
+ on_focus: Optional[
60
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
61
+ ] = None,
62
+ on_mount: Optional[
63
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
53
64
  ] = None,
54
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
55
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
56
65
  on_mouse_down: Optional[
57
- Union[EventHandler, EventSpec, list, Callable, Var]
66
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
58
67
  ] = None,
59
68
  on_mouse_enter: Optional[
60
- Union[EventHandler, EventSpec, list, Callable, Var]
69
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
61
70
  ] = None,
62
71
  on_mouse_leave: Optional[
63
- Union[EventHandler, EventSpec, list, Callable, Var]
72
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
64
73
  ] = None,
65
74
  on_mouse_move: Optional[
66
- Union[EventHandler, EventSpec, list, Callable, Var]
75
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
67
76
  ] = None,
68
77
  on_mouse_out: Optional[
69
- Union[EventHandler, EventSpec, list, Callable, Var]
78
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
70
79
  ] = None,
71
80
  on_mouse_over: Optional[
72
- Union[EventHandler, EventSpec, list, Callable, Var]
81
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
73
82
  ] = None,
74
83
  on_mouse_up: Optional[
75
- Union[EventHandler, EventSpec, list, Callable, Var]
84
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
85
+ ] = None,
86
+ on_scroll: Optional[
87
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
76
88
  ] = None,
77
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
78
89
  on_unmount: Optional[
79
- Union[EventHandler, EventSpec, list, Callable, Var]
90
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
80
91
  ] = None,
81
92
  **props,
82
93
  ) -> "Skeleton":
@@ -5,7 +5,8 @@ from typing import List, Literal, Optional, Union
5
5
  from reflex.components.component import Component
6
6
  from reflex.components.core.breakpoints import Responsive
7
7
  from reflex.event import EventHandler
8
- from reflex.vars.base import Var
8
+ from reflex.ivars.base import ImmutableVar
9
+ from reflex.vars import Var
9
10
 
10
11
  from ..base import (
11
12
  LiteralAccentColor,
@@ -88,7 +89,7 @@ class Slider(RadixThemesComponent):
88
89
  """
89
90
  default_value = props.pop("default_value", [50])
90
91
 
91
- if isinstance(default_value, Var):
92
+ if isinstance(default_value, ImmutableVar):
92
93
  if issubclass(default_value._var_type, (int, float)):
93
94
  default_value = [default_value]
94
95
 
@@ -7,8 +7,9 @@ from typing import Any, Callable, Dict, List, Literal, Optional, Union, overload
7
7
 
8
8
  from reflex.components.core.breakpoints import Breakpoints
9
9
  from reflex.event import EventHandler, EventSpec
10
+ from reflex.ivars.base import ImmutableVar
10
11
  from reflex.style import Style
11
- from reflex.vars.base import Var
12
+ from reflex.vars import Var
12
13
 
13
14
  from ..base import RadixThemesComponent
14
15
 
@@ -22,99 +23,99 @@ class Slider(RadixThemesComponent):
22
23
  as_child: Optional[Union[Var[bool], bool]] = None,
23
24
  size: Optional[
24
25
  Union[
25
- Breakpoints[str, Literal["1", "2", "3"]],
26
- Literal["1", "2", "3"],
27
26
  Var[
28
27
  Union[
29
28
  Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
30
29
  ]
31
30
  ],
31
+ Literal["1", "2", "3"],
32
+ Breakpoints[str, Literal["1", "2", "3"]],
32
33
  ]
33
34
  ] = None,
34
35
  variant: Optional[
35
36
  Union[
36
- Literal["classic", "soft", "surface"],
37
- Var[Literal["classic", "soft", "surface"]],
37
+ Var[Literal["classic", "surface", "soft"]],
38
+ Literal["classic", "surface", "soft"],
38
39
  ]
39
40
  ] = None,
40
41
  color_scheme: Optional[
41
42
  Union[
42
- Literal[
43
- "amber",
44
- "blue",
45
- "bronze",
46
- "brown",
47
- "crimson",
48
- "cyan",
49
- "gold",
50
- "grass",
51
- "gray",
52
- "green",
53
- "indigo",
54
- "iris",
55
- "jade",
56
- "lime",
57
- "mint",
58
- "orange",
59
- "pink",
60
- "plum",
61
- "purple",
62
- "red",
63
- "ruby",
64
- "sky",
65
- "teal",
66
- "tomato",
67
- "violet",
68
- "yellow",
69
- ],
70
43
  Var[
71
44
  Literal[
72
- "amber",
73
- "blue",
74
- "bronze",
75
- "brown",
45
+ "tomato",
46
+ "red",
47
+ "ruby",
76
48
  "crimson",
77
- "cyan",
78
- "gold",
79
- "grass",
80
- "gray",
81
- "green",
82
- "indigo",
83
- "iris",
84
- "jade",
85
- "lime",
86
- "mint",
87
- "orange",
88
49
  "pink",
89
50
  "plum",
90
51
  "purple",
91
- "red",
92
- "ruby",
93
- "sky",
94
- "teal",
95
- "tomato",
96
52
  "violet",
53
+ "iris",
54
+ "indigo",
55
+ "blue",
56
+ "cyan",
57
+ "teal",
58
+ "jade",
59
+ "green",
60
+ "grass",
61
+ "brown",
62
+ "orange",
63
+ "sky",
64
+ "mint",
65
+ "lime",
97
66
  "yellow",
67
+ "amber",
68
+ "gold",
69
+ "bronze",
70
+ "gray",
98
71
  ]
99
72
  ],
73
+ Literal[
74
+ "tomato",
75
+ "red",
76
+ "ruby",
77
+ "crimson",
78
+ "pink",
79
+ "plum",
80
+ "purple",
81
+ "violet",
82
+ "iris",
83
+ "indigo",
84
+ "blue",
85
+ "cyan",
86
+ "teal",
87
+ "jade",
88
+ "green",
89
+ "grass",
90
+ "brown",
91
+ "orange",
92
+ "sky",
93
+ "mint",
94
+ "lime",
95
+ "yellow",
96
+ "amber",
97
+ "gold",
98
+ "bronze",
99
+ "gray",
100
+ ],
100
101
  ]
101
102
  ] = None,
102
103
  high_contrast: Optional[Union[Var[bool], bool]] = None,
103
104
  radius: Optional[
104
105
  Union[
105
- Literal["full", "none", "small"], Var[Literal["full", "none", "small"]]
106
+ Var[Literal["none", "small", "full"]], Literal["none", "small", "full"]
106
107
  ]
107
108
  ] = None,
108
109
  default_value: Optional[
109
110
  Union[
110
- List[Union[float, int]],
111
111
  Var[Union[List[Union[float, int]], float, int]],
112
+ List[Union[float, int]],
112
113
  float,
113
114
  int,
114
115
  ]
115
116
  ] = None,
116
117
  value: Optional[
117
- Union[List[Union[float, int]], Var[List[Union[float, int]]]]
118
+ Union[Var[List[Union[float, int]]], List[Union[float, int]]]
118
119
  ] = None,
119
120
  name: Optional[Union[Var[str], str]] = None,
120
121
  min: Optional[Union[Var[Union[float, int]], float, int]] = None,
@@ -123,8 +124,8 @@ class Slider(RadixThemesComponent):
123
124
  disabled: Optional[Union[Var[bool], bool]] = None,
124
125
  orientation: Optional[
125
126
  Union[
126
- Literal["horizontal", "vertical"],
127
127
  Var[Literal["horizontal", "vertical"]],
128
+ Literal["horizontal", "vertical"],
128
129
  ]
129
130
  ] = None,
130
131
  style: Optional[Style] = None,
@@ -132,45 +133,57 @@ class Slider(RadixThemesComponent):
132
133
  id: Optional[Any] = None,
133
134
  class_name: Optional[Any] = None,
134
135
  autofocus: Optional[bool] = None,
135
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
136
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
137
- on_change: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
138
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
136
+ custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
137
+ on_blur: Optional[
138
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
139
+ ] = None,
140
+ on_change: Optional[
141
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
142
+ ] = None,
143
+ on_click: Optional[
144
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
145
+ ] = None,
139
146
  on_context_menu: Optional[
140
- Union[EventHandler, EventSpec, list, Callable, Var]
147
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
141
148
  ] = None,
142
149
  on_double_click: Optional[
143
- Union[EventHandler, EventSpec, list, Callable, Var]
150
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
151
+ ] = None,
152
+ on_focus: Optional[
153
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
154
+ ] = None,
155
+ on_mount: Optional[
156
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
144
157
  ] = None,
145
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
146
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
147
158
  on_mouse_down: Optional[
148
- Union[EventHandler, EventSpec, list, Callable, Var]
159
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
149
160
  ] = None,
150
161
  on_mouse_enter: Optional[
151
- Union[EventHandler, EventSpec, list, Callable, Var]
162
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
152
163
  ] = None,
153
164
  on_mouse_leave: Optional[
154
- Union[EventHandler, EventSpec, list, Callable, Var]
165
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
155
166
  ] = None,
156
167
  on_mouse_move: Optional[
157
- Union[EventHandler, EventSpec, list, Callable, Var]
168
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
158
169
  ] = None,
159
170
  on_mouse_out: Optional[
160
- Union[EventHandler, EventSpec, list, Callable, Var]
171
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
161
172
  ] = None,
162
173
  on_mouse_over: Optional[
163
- Union[EventHandler, EventSpec, list, Callable, Var]
174
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
164
175
  ] = None,
165
176
  on_mouse_up: Optional[
166
- Union[EventHandler, EventSpec, list, Callable, Var]
177
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
178
+ ] = None,
179
+ on_scroll: Optional[
180
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
167
181
  ] = None,
168
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
169
182
  on_unmount: Optional[
170
- Union[EventHandler, EventSpec, list, Callable, Var]
183
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
171
184
  ] = None,
172
185
  on_value_commit: Optional[
173
- Union[EventHandler, EventSpec, list, Callable, Var]
186
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
174
187
  ] = None,
175
188
  **props,
176
189
  ) -> "Slider":
@@ -3,7 +3,7 @@
3
3
  from typing import Literal
4
4
 
5
5
  from reflex.components.core.breakpoints import Responsive
6
- from reflex.vars.base import Var
6
+ from reflex.vars import Var
7
7
 
8
8
  from ..base import (
9
9
  RadixLoadingProp,