reflex 0.5.5a1__py3-none-any.whl → 0.5.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of reflex might be problematic. Click here for more details.

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