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
@@ -8,8 +8,9 @@ from typing import Any, Callable, Dict, Literal, Optional, Union, overload
8
8
  from reflex.components.core.breakpoints import Breakpoints
9
9
  from reflex.components.el import elements
10
10
  from reflex.event import EventHandler, EventSpec
11
+ from reflex.ivars.base import ImmutableVar
11
12
  from reflex.style import Style
12
- from reflex.vars.base import Var
13
+ from reflex.vars import Var
13
14
 
14
15
  from ..base import (
15
16
  RadixLoadingProp,
@@ -27,171 +28,181 @@ class IconButton(elements.Button, RadixLoadingProp, RadixThemesComponent):
27
28
  as_child: Optional[Union[Var[bool], bool]] = None,
28
29
  size: Optional[
29
30
  Union[
30
- Breakpoints[str, Literal["1", "2", "3", "4"]],
31
- Literal["1", "2", "3", "4"],
32
31
  Var[
33
32
  Union[
34
33
  Breakpoints[str, Literal["1", "2", "3", "4"]],
35
34
  Literal["1", "2", "3", "4"],
36
35
  ]
37
36
  ],
37
+ Literal["1", "2", "3", "4"],
38
+ Breakpoints[str, Literal["1", "2", "3", "4"]],
38
39
  ]
39
40
  ] = None,
40
41
  variant: Optional[
41
42
  Union[
42
- Literal["classic", "ghost", "outline", "soft", "solid", "surface"],
43
- Var[Literal["classic", "ghost", "outline", "soft", "solid", "surface"]],
43
+ Var[Literal["classic", "solid", "soft", "surface", "outline", "ghost"]],
44
+ Literal["classic", "solid", "soft", "surface", "outline", "ghost"],
44
45
  ]
45
46
  ] = None,
46
47
  color_scheme: Optional[
47
48
  Union[
48
- Literal[
49
- "amber",
50
- "blue",
51
- "bronze",
52
- "brown",
53
- "crimson",
54
- "cyan",
55
- "gold",
56
- "grass",
57
- "gray",
58
- "green",
59
- "indigo",
60
- "iris",
61
- "jade",
62
- "lime",
63
- "mint",
64
- "orange",
65
- "pink",
66
- "plum",
67
- "purple",
68
- "red",
69
- "ruby",
70
- "sky",
71
- "teal",
72
- "tomato",
73
- "violet",
74
- "yellow",
75
- ],
76
49
  Var[
77
50
  Literal[
78
- "amber",
79
- "blue",
80
- "bronze",
81
- "brown",
51
+ "tomato",
52
+ "red",
53
+ "ruby",
82
54
  "crimson",
83
- "cyan",
84
- "gold",
85
- "grass",
86
- "gray",
87
- "green",
88
- "indigo",
89
- "iris",
90
- "jade",
91
- "lime",
92
- "mint",
93
- "orange",
94
55
  "pink",
95
56
  "plum",
96
57
  "purple",
97
- "red",
98
- "ruby",
99
- "sky",
100
- "teal",
101
- "tomato",
102
58
  "violet",
59
+ "iris",
60
+ "indigo",
61
+ "blue",
62
+ "cyan",
63
+ "teal",
64
+ "jade",
65
+ "green",
66
+ "grass",
67
+ "brown",
68
+ "orange",
69
+ "sky",
70
+ "mint",
71
+ "lime",
103
72
  "yellow",
73
+ "amber",
74
+ "gold",
75
+ "bronze",
76
+ "gray",
104
77
  ]
105
78
  ],
79
+ Literal[
80
+ "tomato",
81
+ "red",
82
+ "ruby",
83
+ "crimson",
84
+ "pink",
85
+ "plum",
86
+ "purple",
87
+ "violet",
88
+ "iris",
89
+ "indigo",
90
+ "blue",
91
+ "cyan",
92
+ "teal",
93
+ "jade",
94
+ "green",
95
+ "grass",
96
+ "brown",
97
+ "orange",
98
+ "sky",
99
+ "mint",
100
+ "lime",
101
+ "yellow",
102
+ "amber",
103
+ "gold",
104
+ "bronze",
105
+ "gray",
106
+ ],
106
107
  ]
107
108
  ] = None,
108
109
  high_contrast: Optional[Union[Var[bool], bool]] = None,
109
110
  radius: Optional[
110
111
  Union[
111
- Literal["full", "large", "medium", "none", "small"],
112
- Var[Literal["full", "large", "medium", "none", "small"]],
112
+ Var[Literal["none", "small", "medium", "large", "full"]],
113
+ Literal["none", "small", "medium", "large", "full"],
113
114
  ]
114
115
  ] = None,
115
- auto_focus: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
116
+ auto_focus: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
116
117
  disabled: Optional[Union[Var[bool], bool]] = None,
117
- form: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
118
- form_action: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
118
+ form: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
119
+ form_action: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
119
120
  form_enc_type: Optional[
120
- Union[Var[Union[bool, int, str]], bool, int, str]
121
+ Union[Var[Union[bool, int, str]], str, int, bool]
121
122
  ] = None,
122
- form_method: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
123
+ form_method: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
123
124
  form_no_validate: Optional[
124
- Union[Var[Union[bool, int, str]], bool, int, str]
125
+ Union[Var[Union[bool, int, str]], str, int, bool]
125
126
  ] = None,
126
- form_target: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
127
- name: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
128
- type: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
129
- value: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
130
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
127
+ form_target: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
128
+ name: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
129
+ type: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
130
+ value: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
131
+ access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
131
132
  auto_capitalize: Optional[
132
- Union[Var[Union[bool, int, str]], bool, int, str]
133
+ Union[Var[Union[bool, int, str]], str, int, bool]
133
134
  ] = None,
134
135
  content_editable: Optional[
135
- Union[Var[Union[bool, int, str]], bool, int, str]
136
+ Union[Var[Union[bool, int, str]], str, int, bool]
136
137
  ] = None,
137
138
  context_menu: Optional[
138
- Union[Var[Union[bool, int, str]], bool, int, str]
139
+ Union[Var[Union[bool, int, str]], str, int, bool]
139
140
  ] = None,
140
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
141
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
141
+ dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
142
+ draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
142
143
  enter_key_hint: Optional[
143
- Union[Var[Union[bool, int, str]], bool, int, str]
144
- ] = None,
145
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
146
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
147
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
148
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
149
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
150
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
151
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
152
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
153
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
144
+ Union[Var[Union[bool, int, str]], str, int, bool]
145
+ ] = None,
146
+ hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
147
+ input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
148
+ item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
149
+ lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
150
+ role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
151
+ slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
152
+ spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
153
+ tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
154
+ title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
154
155
  loading: Optional[Union[Var[bool], bool]] = None,
155
156
  style: Optional[Style] = None,
156
157
  key: Optional[Any] = None,
157
158
  id: Optional[Any] = None,
158
159
  class_name: Optional[Any] = None,
159
160
  autofocus: Optional[bool] = None,
160
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
161
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
162
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
161
+ custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
162
+ on_blur: Optional[
163
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
164
+ ] = None,
165
+ on_click: Optional[
166
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
167
+ ] = None,
163
168
  on_context_menu: Optional[
164
- Union[EventHandler, EventSpec, list, Callable, Var]
169
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
165
170
  ] = None,
166
171
  on_double_click: Optional[
167
- Union[EventHandler, EventSpec, list, Callable, Var]
172
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
173
+ ] = None,
174
+ on_focus: Optional[
175
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
176
+ ] = None,
177
+ on_mount: Optional[
178
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
168
179
  ] = None,
169
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
170
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
171
180
  on_mouse_down: Optional[
172
- Union[EventHandler, EventSpec, list, Callable, Var]
181
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
173
182
  ] = None,
174
183
  on_mouse_enter: Optional[
175
- Union[EventHandler, EventSpec, list, Callable, Var]
184
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
176
185
  ] = None,
177
186
  on_mouse_leave: Optional[
178
- Union[EventHandler, EventSpec, list, Callable, Var]
187
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
179
188
  ] = None,
180
189
  on_mouse_move: Optional[
181
- Union[EventHandler, EventSpec, list, Callable, Var]
190
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
182
191
  ] = None,
183
192
  on_mouse_out: Optional[
184
- Union[EventHandler, EventSpec, list, Callable, Var]
193
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
185
194
  ] = None,
186
195
  on_mouse_over: Optional[
187
- Union[EventHandler, EventSpec, list, Callable, Var]
196
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
188
197
  ] = None,
189
198
  on_mouse_up: Optional[
190
- Union[EventHandler, EventSpec, list, Callable, Var]
199
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
200
+ ] = None,
201
+ on_scroll: Optional[
202
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
191
203
  ] = None,
192
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
193
204
  on_unmount: Optional[
194
- Union[EventHandler, EventSpec, list, Callable, Var]
205
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
195
206
  ] = None,
196
207
  **props,
197
208
  ) -> "IconButton":
@@ -4,7 +4,7 @@ from typing import Literal, Union
4
4
 
5
5
  from reflex.components.core.breakpoints import Responsive
6
6
  from reflex.components.el import elements
7
- from reflex.vars.base import Var
7
+ from reflex.vars import Var
8
8
 
9
9
  from ..base import (
10
10
  RadixThemesComponent,
@@ -8,8 +8,9 @@ from typing import Any, Callable, Dict, Literal, Optional, Union, overload
8
8
  from reflex.components.core.breakpoints import Breakpoints
9
9
  from reflex.components.el import elements
10
10
  from reflex.event import EventHandler, EventSpec
11
+ from reflex.ivars.base import ImmutableVar
11
12
  from reflex.style import Style
12
- from reflex.vars.base import Var
13
+ from reflex.vars import Var
13
14
 
14
15
  from ..base import RadixThemesComponent
15
16
 
@@ -23,150 +24,160 @@ class Inset(elements.Div, RadixThemesComponent):
23
24
  *children,
24
25
  side: Optional[
25
26
  Union[
26
- Breakpoints[str, Literal["bottom", "left", "right", "top", "x", "y"]],
27
- Literal["bottom", "left", "right", "top", "x", "y"],
28
27
  Var[
29
28
  Union[
30
29
  Breakpoints[
31
- str, Literal["bottom", "left", "right", "top", "x", "y"]
30
+ str, Literal["x", "y", "top", "bottom", "right", "left"]
32
31
  ],
33
- Literal["bottom", "left", "right", "top", "x", "y"],
32
+ Literal["x", "y", "top", "bottom", "right", "left"],
34
33
  ]
35
34
  ],
35
+ Literal["x", "y", "top", "bottom", "right", "left"],
36
+ Breakpoints[str, Literal["x", "y", "top", "bottom", "right", "left"]],
36
37
  ]
37
38
  ] = None,
38
39
  clip: Optional[
39
40
  Union[
40
- Breakpoints[str, Literal["border-box", "padding-box"]],
41
- Literal["border-box", "padding-box"],
42
41
  Var[
43
42
  Union[
44
43
  Breakpoints[str, Literal["border-box", "padding-box"]],
45
44
  Literal["border-box", "padding-box"],
46
45
  ]
47
46
  ],
47
+ Literal["border-box", "padding-box"],
48
+ Breakpoints[str, Literal["border-box", "padding-box"]],
48
49
  ]
49
50
  ] = None,
50
51
  p: Optional[
51
52
  Union[
52
- Breakpoints[str, Union[int, str]],
53
53
  Var[Union[Breakpoints[str, Union[int, str]], int, str]],
54
54
  int,
55
55
  str,
56
+ Breakpoints[str, Union[int, str]],
56
57
  ]
57
58
  ] = None,
58
59
  px: Optional[
59
60
  Union[
60
- Breakpoints[str, Union[int, str]],
61
61
  Var[Union[Breakpoints[str, Union[int, str]], int, str]],
62
62
  int,
63
63
  str,
64
+ Breakpoints[str, Union[int, str]],
64
65
  ]
65
66
  ] = None,
66
67
  py: Optional[
67
68
  Union[
68
- Breakpoints[str, Union[int, str]],
69
69
  Var[Union[Breakpoints[str, Union[int, str]], int, str]],
70
70
  int,
71
71
  str,
72
+ Breakpoints[str, Union[int, str]],
72
73
  ]
73
74
  ] = None,
74
75
  pt: Optional[
75
76
  Union[
76
- Breakpoints[str, Union[int, str]],
77
77
  Var[Union[Breakpoints[str, Union[int, str]], int, str]],
78
78
  int,
79
79
  str,
80
+ Breakpoints[str, Union[int, str]],
80
81
  ]
81
82
  ] = None,
82
83
  pr: Optional[
83
84
  Union[
84
- Breakpoints[str, Union[int, str]],
85
85
  Var[Union[Breakpoints[str, Union[int, str]], int, str]],
86
86
  int,
87
87
  str,
88
+ Breakpoints[str, Union[int, str]],
88
89
  ]
89
90
  ] = None,
90
91
  pb: Optional[
91
92
  Union[
92
- Breakpoints[str, Union[int, str]],
93
93
  Var[Union[Breakpoints[str, Union[int, str]], int, str]],
94
94
  int,
95
95
  str,
96
+ Breakpoints[str, Union[int, str]],
96
97
  ]
97
98
  ] = None,
98
99
  pl: Optional[
99
100
  Union[
100
- Breakpoints[str, Union[int, str]],
101
101
  Var[Union[Breakpoints[str, Union[int, str]], int, str]],
102
102
  int,
103
103
  str,
104
+ Breakpoints[str, Union[int, str]],
104
105
  ]
105
106
  ] = None,
106
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
107
+ access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
107
108
  auto_capitalize: Optional[
108
- Union[Var[Union[bool, int, str]], bool, int, str]
109
+ Union[Var[Union[bool, int, str]], str, int, bool]
109
110
  ] = None,
110
111
  content_editable: Optional[
111
- Union[Var[Union[bool, int, str]], bool, int, str]
112
+ Union[Var[Union[bool, int, str]], str, int, bool]
112
113
  ] = None,
113
114
  context_menu: Optional[
114
- Union[Var[Union[bool, int, str]], bool, int, str]
115
+ Union[Var[Union[bool, int, str]], str, int, bool]
115
116
  ] = None,
116
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
117
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
117
+ dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
118
+ draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
118
119
  enter_key_hint: Optional[
119
- Union[Var[Union[bool, int, str]], bool, int, str]
120
- ] = None,
121
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
122
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
123
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
124
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
125
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
126
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
127
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
128
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
129
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
120
+ Union[Var[Union[bool, int, str]], str, int, bool]
121
+ ] = None,
122
+ hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
123
+ input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
124
+ item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
125
+ lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
126
+ role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
127
+ slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
128
+ spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
129
+ tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
130
+ title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
130
131
  style: Optional[Style] = None,
131
132
  key: Optional[Any] = None,
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_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_click: Optional[
141
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
142
+ ] = None,
138
143
  on_context_menu: Optional[
139
- Union[EventHandler, EventSpec, list, Callable, Var]
144
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
140
145
  ] = None,
141
146
  on_double_click: Optional[
142
- Union[EventHandler, EventSpec, list, Callable, Var]
147
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
148
+ ] = None,
149
+ on_focus: Optional[
150
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
151
+ ] = None,
152
+ on_mount: Optional[
153
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
143
154
  ] = None,
144
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
145
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
146
155
  on_mouse_down: Optional[
147
- Union[EventHandler, EventSpec, list, Callable, Var]
156
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
148
157
  ] = None,
149
158
  on_mouse_enter: Optional[
150
- Union[EventHandler, EventSpec, list, Callable, Var]
159
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
151
160
  ] = None,
152
161
  on_mouse_leave: Optional[
153
- Union[EventHandler, EventSpec, list, Callable, Var]
162
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
154
163
  ] = None,
155
164
  on_mouse_move: Optional[
156
- Union[EventHandler, EventSpec, list, Callable, Var]
165
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
157
166
  ] = None,
158
167
  on_mouse_out: Optional[
159
- Union[EventHandler, EventSpec, list, Callable, Var]
168
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
160
169
  ] = None,
161
170
  on_mouse_over: Optional[
162
- Union[EventHandler, EventSpec, list, Callable, Var]
171
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
163
172
  ] = None,
164
173
  on_mouse_up: Optional[
165
- Union[EventHandler, EventSpec, list, Callable, Var]
174
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
175
+ ] = None,
176
+ on_scroll: Optional[
177
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
166
178
  ] = None,
167
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
168
179
  on_unmount: Optional[
169
- Union[EventHandler, EventSpec, list, Callable, Var]
180
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
170
181
  ] = None,
171
182
  **props,
172
183
  ) -> "Inset":
@@ -6,7 +6,7 @@ from reflex.components.component import ComponentNamespace
6
6
  from reflex.components.core.breakpoints import Responsive
7
7
  from reflex.components.el import elements
8
8
  from reflex.event import EventHandler
9
- from reflex.vars.base import Var
9
+ from reflex.vars import Var
10
10
 
11
11
  from ..base import (
12
12
  RadixThemesComponent,