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 RadixThemesComponent
15
16
 
@@ -23,8 +24,6 @@ class Heading(elements.H1, RadixThemesComponent):
23
24
  as_: Optional[Union[Var[str], str]] = None,
24
25
  size: Optional[
25
26
  Union[
26
- Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
27
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
28
27
  Var[
29
28
  Union[
30
29
  Breakpoints[
@@ -33,171 +32,183 @@ class Heading(elements.H1, RadixThemesComponent):
33
32
  Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
34
33
  ]
35
34
  ],
35
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
36
+ Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
36
37
  ]
37
38
  ] = None,
38
39
  weight: Optional[
39
40
  Union[
40
- Breakpoints[str, Literal["bold", "light", "medium", "regular"]],
41
- Literal["bold", "light", "medium", "regular"],
42
41
  Var[
43
42
  Union[
44
- Breakpoints[str, Literal["bold", "light", "medium", "regular"]],
45
- Literal["bold", "light", "medium", "regular"],
43
+ Breakpoints[str, Literal["light", "regular", "medium", "bold"]],
44
+ Literal["light", "regular", "medium", "bold"],
46
45
  ]
47
46
  ],
47
+ Literal["light", "regular", "medium", "bold"],
48
+ Breakpoints[str, Literal["light", "regular", "medium", "bold"]],
48
49
  ]
49
50
  ] = None,
50
51
  align: Optional[
51
52
  Union[
52
- Breakpoints[str, Literal["center", "left", "right"]],
53
- Literal["center", "left", "right"],
54
53
  Var[
55
54
  Union[
56
- Breakpoints[str, Literal["center", "left", "right"]],
57
- Literal["center", "left", "right"],
55
+ Breakpoints[str, Literal["left", "center", "right"]],
56
+ Literal["left", "center", "right"],
58
57
  ]
59
58
  ],
59
+ Literal["left", "center", "right"],
60
+ Breakpoints[str, Literal["left", "center", "right"]],
60
61
  ]
61
62
  ] = None,
62
63
  trim: Optional[
63
64
  Union[
64
- Breakpoints[str, Literal["both", "end", "normal", "start"]],
65
- Literal["both", "end", "normal", "start"],
66
65
  Var[
67
66
  Union[
68
- Breakpoints[str, Literal["both", "end", "normal", "start"]],
69
- Literal["both", "end", "normal", "start"],
67
+ Breakpoints[str, Literal["normal", "start", "end", "both"]],
68
+ Literal["normal", "start", "end", "both"],
70
69
  ]
71
70
  ],
71
+ Literal["normal", "start", "end", "both"],
72
+ Breakpoints[str, Literal["normal", "start", "end", "both"]],
72
73
  ]
73
74
  ] = None,
74
75
  color_scheme: Optional[
75
76
  Union[
76
- Literal[
77
- "amber",
78
- "blue",
79
- "bronze",
80
- "brown",
81
- "crimson",
82
- "cyan",
83
- "gold",
84
- "grass",
85
- "gray",
86
- "green",
87
- "indigo",
88
- "iris",
89
- "jade",
90
- "lime",
91
- "mint",
92
- "orange",
93
- "pink",
94
- "plum",
95
- "purple",
96
- "red",
97
- "ruby",
98
- "sky",
99
- "teal",
100
- "tomato",
101
- "violet",
102
- "yellow",
103
- ],
104
77
  Var[
105
78
  Literal[
106
- "amber",
107
- "blue",
108
- "bronze",
109
- "brown",
79
+ "tomato",
80
+ "red",
81
+ "ruby",
110
82
  "crimson",
111
- "cyan",
112
- "gold",
113
- "grass",
114
- "gray",
115
- "green",
116
- "indigo",
117
- "iris",
118
- "jade",
119
- "lime",
120
- "mint",
121
- "orange",
122
83
  "pink",
123
84
  "plum",
124
85
  "purple",
125
- "red",
126
- "ruby",
127
- "sky",
128
- "teal",
129
- "tomato",
130
86
  "violet",
87
+ "iris",
88
+ "indigo",
89
+ "blue",
90
+ "cyan",
91
+ "teal",
92
+ "jade",
93
+ "green",
94
+ "grass",
95
+ "brown",
96
+ "orange",
97
+ "sky",
98
+ "mint",
99
+ "lime",
131
100
  "yellow",
101
+ "amber",
102
+ "gold",
103
+ "bronze",
104
+ "gray",
132
105
  ]
133
106
  ],
107
+ Literal[
108
+ "tomato",
109
+ "red",
110
+ "ruby",
111
+ "crimson",
112
+ "pink",
113
+ "plum",
114
+ "purple",
115
+ "violet",
116
+ "iris",
117
+ "indigo",
118
+ "blue",
119
+ "cyan",
120
+ "teal",
121
+ "jade",
122
+ "green",
123
+ "grass",
124
+ "brown",
125
+ "orange",
126
+ "sky",
127
+ "mint",
128
+ "lime",
129
+ "yellow",
130
+ "amber",
131
+ "gold",
132
+ "bronze",
133
+ "gray",
134
+ ],
134
135
  ]
135
136
  ] = None,
136
137
  high_contrast: Optional[Union[Var[bool], bool]] = None,
137
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
138
+ access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
138
139
  auto_capitalize: Optional[
139
- Union[Var[Union[bool, int, str]], bool, int, str]
140
+ Union[Var[Union[bool, int, str]], str, int, bool]
140
141
  ] = None,
141
142
  content_editable: Optional[
142
- Union[Var[Union[bool, int, str]], bool, int, str]
143
+ Union[Var[Union[bool, int, str]], str, int, bool]
143
144
  ] = None,
144
145
  context_menu: Optional[
145
- Union[Var[Union[bool, int, str]], bool, int, str]
146
+ Union[Var[Union[bool, int, str]], str, int, bool]
146
147
  ] = None,
147
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
148
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
148
+ dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
149
+ draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
149
150
  enter_key_hint: Optional[
150
- Union[Var[Union[bool, int, str]], bool, int, str]
151
- ] = None,
152
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
153
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
154
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
155
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
156
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
157
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
158
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
159
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
160
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
151
+ Union[Var[Union[bool, int, str]], str, int, bool]
152
+ ] = None,
153
+ hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
154
+ input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
155
+ item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
156
+ lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
157
+ role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
158
+ slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
159
+ spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
160
+ tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
161
+ title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
161
162
  style: Optional[Style] = None,
162
163
  key: Optional[Any] = None,
163
164
  id: Optional[Any] = None,
164
165
  class_name: Optional[Any] = None,
165
166
  autofocus: Optional[bool] = None,
166
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
167
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
168
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
167
+ custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
168
+ on_blur: Optional[
169
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
170
+ ] = None,
171
+ on_click: Optional[
172
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
173
+ ] = None,
169
174
  on_context_menu: Optional[
170
- Union[EventHandler, EventSpec, list, Callable, Var]
175
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
171
176
  ] = None,
172
177
  on_double_click: Optional[
173
- Union[EventHandler, EventSpec, list, Callable, Var]
178
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
179
+ ] = None,
180
+ on_focus: Optional[
181
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
182
+ ] = None,
183
+ on_mount: Optional[
184
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
174
185
  ] = None,
175
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
176
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
177
186
  on_mouse_down: Optional[
178
- Union[EventHandler, EventSpec, list, Callable, Var]
187
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
179
188
  ] = None,
180
189
  on_mouse_enter: Optional[
181
- Union[EventHandler, EventSpec, list, Callable, Var]
190
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
182
191
  ] = None,
183
192
  on_mouse_leave: Optional[
184
- Union[EventHandler, EventSpec, list, Callable, Var]
193
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
185
194
  ] = None,
186
195
  on_mouse_move: Optional[
187
- Union[EventHandler, EventSpec, list, Callable, Var]
196
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
188
197
  ] = None,
189
198
  on_mouse_out: Optional[
190
- Union[EventHandler, EventSpec, list, Callable, Var]
199
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
191
200
  ] = None,
192
201
  on_mouse_over: Optional[
193
- Union[EventHandler, EventSpec, list, Callable, Var]
202
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
194
203
  ] = None,
195
204
  on_mouse_up: Optional[
196
- Union[EventHandler, EventSpec, list, Callable, Var]
205
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
206
+ ] = None,
207
+ on_scroll: Optional[
208
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
197
209
  ] = None,
198
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
199
210
  on_unmount: Optional[
200
- Union[EventHandler, EventSpec, list, Callable, Var]
211
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
201
212
  ] = None,
202
213
  **props,
203
214
  ) -> "Heading":
@@ -14,7 +14,7 @@ from reflex.components.core.cond import cond
14
14
  from reflex.components.el.elements.inline import A
15
15
  from reflex.components.next.link import NextLink
16
16
  from reflex.utils.imports import ImportDict
17
- from reflex.vars.base import Var
17
+ from reflex.vars import Var
18
18
 
19
19
  from ..base import (
20
20
  LiteralAccentColor,
@@ -10,9 +10,10 @@ from reflex.components.core.breakpoints import Breakpoints
10
10
  from reflex.components.el.elements.inline import A
11
11
  from reflex.components.next.link import NextLink
12
12
  from reflex.event import EventHandler, EventSpec
13
+ from reflex.ivars.base import ImmutableVar
13
14
  from reflex.style import Style
14
15
  from reflex.utils.imports import ImportDict
15
- from reflex.vars.base import Var
16
+ from reflex.vars import Var
16
17
 
17
18
  from ..base import RadixThemesComponent
18
19
 
@@ -29,8 +30,6 @@ class Link(RadixThemesComponent, A, MemoizationLeaf):
29
30
  as_child: Optional[Union[Var[bool], bool]] = None,
30
31
  size: Optional[
31
32
  Union[
32
- Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
33
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
34
33
  Var[
35
34
  Union[
36
35
  Breakpoints[
@@ -39,177 +38,189 @@ class Link(RadixThemesComponent, A, MemoizationLeaf):
39
38
  Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
40
39
  ]
41
40
  ],
41
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
42
+ Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
42
43
  ]
43
44
  ] = None,
44
45
  weight: Optional[
45
46
  Union[
46
- Breakpoints[str, Literal["bold", "light", "medium", "regular"]],
47
- Literal["bold", "light", "medium", "regular"],
48
47
  Var[
49
48
  Union[
50
- Breakpoints[str, Literal["bold", "light", "medium", "regular"]],
51
- Literal["bold", "light", "medium", "regular"],
49
+ Breakpoints[str, Literal["light", "regular", "medium", "bold"]],
50
+ Literal["light", "regular", "medium", "bold"],
52
51
  ]
53
52
  ],
53
+ Literal["light", "regular", "medium", "bold"],
54
+ Breakpoints[str, Literal["light", "regular", "medium", "bold"]],
54
55
  ]
55
56
  ] = None,
56
57
  trim: Optional[
57
58
  Union[
58
- Breakpoints[str, Literal["both", "end", "normal", "start"]],
59
- Literal["both", "end", "normal", "start"],
60
59
  Var[
61
60
  Union[
62
- Breakpoints[str, Literal["both", "end", "normal", "start"]],
63
- Literal["both", "end", "normal", "start"],
61
+ Breakpoints[str, Literal["normal", "start", "end", "both"]],
62
+ Literal["normal", "start", "end", "both"],
64
63
  ]
65
64
  ],
65
+ Literal["normal", "start", "end", "both"],
66
+ Breakpoints[str, Literal["normal", "start", "end", "both"]],
66
67
  ]
67
68
  ] = None,
68
69
  underline: Optional[
69
70
  Union[
70
- Literal["always", "auto", "hover", "none"],
71
- Var[Literal["always", "auto", "hover", "none"]],
71
+ Var[Literal["auto", "hover", "always", "none"]],
72
+ Literal["auto", "hover", "always", "none"],
72
73
  ]
73
74
  ] = None,
74
75
  color_scheme: Optional[
75
76
  Union[
76
- Literal[
77
- "amber",
78
- "blue",
79
- "bronze",
80
- "brown",
81
- "crimson",
82
- "cyan",
83
- "gold",
84
- "grass",
85
- "gray",
86
- "green",
87
- "indigo",
88
- "iris",
89
- "jade",
90
- "lime",
91
- "mint",
92
- "orange",
93
- "pink",
94
- "plum",
95
- "purple",
96
- "red",
97
- "ruby",
98
- "sky",
99
- "teal",
100
- "tomato",
101
- "violet",
102
- "yellow",
103
- ],
104
77
  Var[
105
78
  Literal[
106
- "amber",
107
- "blue",
108
- "bronze",
109
- "brown",
79
+ "tomato",
80
+ "red",
81
+ "ruby",
110
82
  "crimson",
111
- "cyan",
112
- "gold",
113
- "grass",
114
- "gray",
115
- "green",
116
- "indigo",
117
- "iris",
118
- "jade",
119
- "lime",
120
- "mint",
121
- "orange",
122
83
  "pink",
123
84
  "plum",
124
85
  "purple",
125
- "red",
126
- "ruby",
127
- "sky",
128
- "teal",
129
- "tomato",
130
86
  "violet",
87
+ "iris",
88
+ "indigo",
89
+ "blue",
90
+ "cyan",
91
+ "teal",
92
+ "jade",
93
+ "green",
94
+ "grass",
95
+ "brown",
96
+ "orange",
97
+ "sky",
98
+ "mint",
99
+ "lime",
131
100
  "yellow",
101
+ "amber",
102
+ "gold",
103
+ "bronze",
104
+ "gray",
132
105
  ]
133
106
  ],
107
+ Literal[
108
+ "tomato",
109
+ "red",
110
+ "ruby",
111
+ "crimson",
112
+ "pink",
113
+ "plum",
114
+ "purple",
115
+ "violet",
116
+ "iris",
117
+ "indigo",
118
+ "blue",
119
+ "cyan",
120
+ "teal",
121
+ "jade",
122
+ "green",
123
+ "grass",
124
+ "brown",
125
+ "orange",
126
+ "sky",
127
+ "mint",
128
+ "lime",
129
+ "yellow",
130
+ "amber",
131
+ "gold",
132
+ "bronze",
133
+ "gray",
134
+ ],
134
135
  ]
135
136
  ] = None,
136
137
  high_contrast: Optional[Union[Var[bool], bool]] = None,
137
138
  is_external: Optional[Union[Var[bool], bool]] = None,
138
- download: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
139
- href: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
140
- href_lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
141
- media: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
142
- ping: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
139
+ download: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
140
+ href: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
141
+ href_lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
142
+ media: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
143
+ ping: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
143
144
  referrer_policy: Optional[
144
- Union[Var[Union[bool, int, str]], bool, int, str]
145
+ Union[Var[Union[bool, int, str]], str, int, bool]
145
146
  ] = None,
146
- rel: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
147
- shape: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
148
- target: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
149
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
147
+ rel: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
148
+ shape: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
149
+ target: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
150
+ access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
150
151
  auto_capitalize: Optional[
151
- Union[Var[Union[bool, int, str]], bool, int, str]
152
+ Union[Var[Union[bool, int, str]], str, int, bool]
152
153
  ] = None,
153
154
  content_editable: Optional[
154
- Union[Var[Union[bool, int, str]], bool, int, str]
155
+ Union[Var[Union[bool, int, str]], str, int, bool]
155
156
  ] = None,
156
157
  context_menu: Optional[
157
- Union[Var[Union[bool, int, str]], bool, int, str]
158
+ Union[Var[Union[bool, int, str]], str, int, bool]
158
159
  ] = None,
159
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
160
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
160
+ dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
161
+ draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
161
162
  enter_key_hint: Optional[
162
- Union[Var[Union[bool, int, str]], bool, int, str]
163
+ Union[Var[Union[bool, int, str]], str, int, bool]
163
164
  ] = None,
164
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
165
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
166
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
167
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
168
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
169
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
170
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
171
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
172
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
165
+ hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
166
+ input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
167
+ item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
168
+ lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
169
+ role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
170
+ slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
171
+ spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
172
+ tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
173
+ title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
173
174
  style: Optional[Style] = None,
174
175
  key: Optional[Any] = None,
175
176
  id: Optional[Any] = None,
176
177
  class_name: Optional[Any] = None,
177
178
  autofocus: Optional[bool] = None,
178
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
179
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
180
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
179
+ custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
180
+ on_blur: Optional[
181
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
182
+ ] = None,
183
+ on_click: Optional[
184
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
185
+ ] = None,
181
186
  on_context_menu: Optional[
182
- Union[EventHandler, EventSpec, list, Callable, Var]
187
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
183
188
  ] = None,
184
189
  on_double_click: Optional[
185
- Union[EventHandler, EventSpec, list, Callable, Var]
190
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
191
+ ] = None,
192
+ on_focus: Optional[
193
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
194
+ ] = None,
195
+ on_mount: Optional[
196
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
186
197
  ] = None,
187
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
188
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
189
198
  on_mouse_down: Optional[
190
- Union[EventHandler, EventSpec, list, Callable, Var]
199
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
191
200
  ] = None,
192
201
  on_mouse_enter: Optional[
193
- Union[EventHandler, EventSpec, list, Callable, Var]
202
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
194
203
  ] = None,
195
204
  on_mouse_leave: Optional[
196
- Union[EventHandler, EventSpec, list, Callable, Var]
205
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
197
206
  ] = None,
198
207
  on_mouse_move: Optional[
199
- Union[EventHandler, EventSpec, list, Callable, Var]
208
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
200
209
  ] = None,
201
210
  on_mouse_out: Optional[
202
- Union[EventHandler, EventSpec, list, Callable, Var]
211
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
203
212
  ] = None,
204
213
  on_mouse_over: Optional[
205
- Union[EventHandler, EventSpec, list, Callable, Var]
214
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
206
215
  ] = None,
207
216
  on_mouse_up: Optional[
208
- Union[EventHandler, EventSpec, list, Callable, Var]
217
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
218
+ ] = None,
219
+ on_scroll: Optional[
220
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
209
221
  ] = None,
210
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
211
222
  on_unmount: Optional[
212
- Union[EventHandler, EventSpec, list, Callable, Var]
223
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
213
224
  ] = None,
214
225
  **props,
215
226
  ) -> "Link":
@@ -10,7 +10,7 @@ from typing import Literal
10
10
  from reflex.components.component import ComponentNamespace
11
11
  from reflex.components.core.breakpoints import Responsive
12
12
  from reflex.components.el import elements
13
- from reflex.vars.base import Var
13
+ from reflex.vars import Var
14
14
 
15
15
  from ..base import (
16
16
  LiteralAccentColor,