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

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

Potentially problematic release.


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

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