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
@@ -3,19 +3,6 @@
3
3
  # This file was generated by `reflex/utils/pyi_generator.py`!
4
4
  # ------------------------------------------------------
5
5
 
6
- from .forms import button as button
7
- from .forms import fieldset as fieldset
8
- from .forms import form as form
9
- from .forms import input as input
10
- from .forms import label as label
11
- from .forms import legend as legend
12
- from .forms import meter as meter
13
- from .forms import optgroup as optgroup
14
- from .forms import option as option
15
- from .forms import output as output
16
- from .forms import progress as progress
17
- from .forms import select as select
18
- from .forms import textarea as textarea
19
6
  from .forms import Button as Button
20
7
  from .forms import Fieldset as Fieldset
21
8
  from .forms import Form as Form
@@ -29,34 +16,19 @@ from .forms import Output as Output
29
16
  from .forms import Progress as Progress
30
17
  from .forms import Select as Select
31
18
  from .forms import Textarea as Textarea
32
- from .inline import a as a
33
- from .inline import abbr as abbr
34
- from .inline import b as b
35
- from .inline import bdi as bdi
36
- from .inline import bdo as bdo
37
- from .inline import br as br
38
- from .inline import cite as cite
39
- from .inline import code as code
40
- from .inline import data as data
41
- from .inline import dfn as dfn
42
- from .inline import em as em
43
- from .inline import i as i
44
- from .inline import kbd as kbd
45
- from .inline import mark as mark
46
- from .inline import q as q
47
- from .inline import rp as rp
48
- from .inline import rt as rt
49
- from .inline import ruby as ruby
50
- from .inline import s as s
51
- from .inline import samp as samp
52
- from .inline import small as small
53
- from .inline import span as span
54
- from .inline import strong as strong
55
- from .inline import sub as sub
56
- from .inline import sup as sup
57
- from .inline import time as time
58
- from .inline import u as u
59
- from .inline import wbr as wbr
19
+ from .forms import button as button
20
+ from .forms import fieldset as fieldset
21
+ from .forms import form as form
22
+ from .forms import input as input
23
+ from .forms import label as label
24
+ from .forms import legend as legend
25
+ from .forms import meter as meter
26
+ from .forms import optgroup as optgroup
27
+ from .forms import option as option
28
+ from .forms import output as output
29
+ from .forms import progress as progress
30
+ from .forms import select as select
31
+ from .forms import textarea as textarea
60
32
  from .inline import A as A
61
33
  from .inline import Abbr as Abbr
62
34
  from .inline import B as B
@@ -85,78 +57,120 @@ from .inline import Sup as Sup
85
57
  from .inline import Time as Time
86
58
  from .inline import U as U
87
59
  from .inline import Wbr as Wbr
88
- from .media import area as area
89
- from .media import audio as audio
90
- from .media import img as img
91
- from .media import image as image
92
- from .media import map as map
93
- from .media import track as track
94
- from .media import video as video
95
- from .media import embed as embed
96
- from .media import iframe as iframe
97
- from .media import object as object
98
- from .media import picture as picture
99
- from .media import portal as portal
100
- from .media import source as source
101
- from .media import svg as svg
102
- from .media import defs as defs
103
- from .media import lineargradient as lineargradient
104
- from .media import stop as stop
105
- from .media import path as path
60
+ from .inline import a as a
61
+ from .inline import abbr as abbr
62
+ from .inline import b as b
63
+ from .inline import bdi as bdi
64
+ from .inline import bdo as bdo
65
+ from .inline import br as br
66
+ from .inline import cite as cite
67
+ from .inline import code as code
68
+ from .inline import data as data
69
+ from .inline import dfn as dfn
70
+ from .inline import em as em
71
+ from .inline import i as i
72
+ from .inline import kbd as kbd
73
+ from .inline import mark as mark
74
+ from .inline import q as q
75
+ from .inline import rp as rp
76
+ from .inline import rt as rt
77
+ from .inline import ruby as ruby
78
+ from .inline import s as s
79
+ from .inline import samp as samp
80
+ from .inline import small as small
81
+ from .inline import span as span
82
+ from .inline import strong as strong
83
+ from .inline import sub as sub
84
+ from .inline import sup as sup
85
+ from .inline import time as time
86
+ from .inline import u as u
87
+ from .inline import wbr as wbr
106
88
  from .media import Area as Area
107
89
  from .media import Audio as Audio
108
- from .media import Img as Img
109
- from .media import Map as Map
110
- from .media import Track as Track
111
- from .media import Video as Video
90
+ from .media import Defs as Defs
112
91
  from .media import Embed as Embed
113
92
  from .media import Iframe as Iframe
93
+ from .media import Img as Img
94
+ from .media import Lineargradient as Lineargradient
95
+ from .media import Map as Map
114
96
  from .media import Object as Object
97
+ from .media import Path as Path
115
98
  from .media import Picture as Picture
116
99
  from .media import Portal as Portal
117
100
  from .media import Source as Source
118
- from .media import Svg as Svg
119
- from .media import Defs as Defs
120
- from .media import Lineargradient as Lineargradient
121
101
  from .media import Stop as Stop
122
- from .media import Path as Path
123
- from .metadata import base as base
124
- from .metadata import head as head
125
- from .metadata import link as link
126
- from .metadata import meta as meta
127
- from .metadata import title as title
128
- from .metadata import style as style
102
+ from .media import Svg as Svg
103
+ from .media import Track as Track
104
+ from .media import Video as Video
105
+ from .media import area as area
106
+ from .media import audio as audio
107
+ from .media import defs as defs
108
+ from .media import embed as embed
109
+ from .media import iframe as iframe
110
+ from .media import image as image
111
+ from .media import img as img
112
+ from .media import lineargradient as lineargradient
113
+ from .media import map as map
114
+ from .media import object as object
115
+ from .media import path as path
116
+ from .media import picture as picture
117
+ from .media import portal as portal
118
+ from .media import source as source
119
+ from .media import stop as stop
120
+ from .media import svg as svg
121
+ from .media import track as track
122
+ from .media import video as video
129
123
  from .metadata import Base as Base
130
124
  from .metadata import Head as Head
131
125
  from .metadata import Link as Link
132
126
  from .metadata import Meta as Meta
133
- from .metadata import Title as Title
134
127
  from .metadata import Style as Style
135
- from .other import details as details
136
- from .other import dialog as dialog
137
- from .other import summary as summary
138
- from .other import slot as slot
139
- from .other import template as template
140
- from .other import math as math
141
- from .other import html as html
128
+ from .metadata import Title as Title
129
+ from .metadata import base as base
130
+ from .metadata import head as head
131
+ from .metadata import link as link
132
+ from .metadata import meta as meta
133
+ from .metadata import style as style
134
+ from .metadata import title as title
142
135
  from .other import Details as Details
143
136
  from .other import Dialog as Dialog
144
- from .other import Summary as Summary
137
+ from .other import Html as Html
138
+ from .other import Math as Math
145
139
  from .other import Slot as Slot
140
+ from .other import Summary as Summary
146
141
  from .other import Template as Template
147
- from .other import Math as Math
148
- from .other import Html as Html
149
- from .scripts import canvas as canvas
150
- from .scripts import noscript as noscript
151
- from .scripts import script as script
142
+ from .other import details as details
143
+ from .other import dialog as dialog
144
+ from .other import html as html
145
+ from .other import math as math
146
+ from .other import slot as slot
147
+ from .other import summary as summary
148
+ from .other import template as template
152
149
  from .scripts import Canvas as Canvas
153
150
  from .scripts import Noscript as Noscript
154
151
  from .scripts import Script as Script
152
+ from .scripts import canvas as canvas
153
+ from .scripts import noscript as noscript
154
+ from .scripts import script as script
155
+ from .sectioning import H1 as H1
156
+ from .sectioning import H2 as H2
157
+ from .sectioning import H3 as H3
158
+ from .sectioning import H4 as H4
159
+ from .sectioning import H5 as H5
160
+ from .sectioning import H6 as H6
161
+ from .sectioning import Address as Address
162
+ from .sectioning import Article as Article
163
+ from .sectioning import Aside as Aside
164
+ from .sectioning import Body as Body
165
+ from .sectioning import Footer as Footer
166
+ from .sectioning import Header as Header
167
+ from .sectioning import Main as Main
168
+ from .sectioning import Nav as Nav
169
+ from .sectioning import Section as Section
155
170
  from .sectioning import address as address
156
171
  from .sectioning import article as article
157
172
  from .sectioning import aside as aside
158
173
  from .sectioning import body as body
159
- from .sectioning import header as header
160
174
  from .sectioning import footer as footer
161
175
  from .sectioning import h1 as h1
162
176
  from .sectioning import h2 as h2
@@ -164,73 +178,58 @@ from .sectioning import h3 as h3
164
178
  from .sectioning import h4 as h4
165
179
  from .sectioning import h5 as h5
166
180
  from .sectioning import h6 as h6
181
+ from .sectioning import header as header
167
182
  from .sectioning import main as main
168
183
  from .sectioning import nav as nav
169
184
  from .sectioning import section as section
170
- from .sectioning import Address as Address
171
- from .sectioning import Article as Article
172
- from .sectioning import Aside as Aside
173
- from .sectioning import Body as Body
174
- from .sectioning import Header as Header
175
- from .sectioning import Footer as Footer
176
- from .sectioning import H1 as H1
177
- from .sectioning import H2 as H2
178
- from .sectioning import H3 as H3
179
- from .sectioning import H4 as H4
180
- from .sectioning import H5 as H5
181
- from .sectioning import H6 as H6
182
- from .sectioning import Main as Main
183
- from .sectioning import Nav as Nav
184
- from .sectioning import Section as Section
185
- from .tables import caption as caption
186
- from .tables import col as col
187
- from .tables import colgroup as colgroup
188
- from .tables import table as table
189
- from .tables import td as td
190
- from .tables import tfoot as tfoot
191
- from .tables import th as th
192
- from .tables import thead as thead
193
- from .tables import tr as tr
194
- from .tables import tbody as tbody
195
185
  from .tables import Caption as Caption
196
186
  from .tables import Col as Col
197
187
  from .tables import Colgroup as Colgroup
198
188
  from .tables import Table as Table
189
+ from .tables import Tbody as Tbody
199
190
  from .tables import Td as Td
200
191
  from .tables import Tfoot as Tfoot
201
192
  from .tables import Th as Th
202
193
  from .tables import Thead as Thead
203
194
  from .tables import Tr as Tr
204
- from .tables import Tbody as Tbody
205
- from .typography import blockquote as blockquote
206
- from .typography import dd as dd
207
- from .typography import div as div
208
- from .typography import dl as dl
209
- from .typography import dt as dt
210
- from .typography import figcaption as figcaption
211
- from .typography import hr as hr
212
- from .typography import ol as ol
213
- from .typography import li as li
214
- from .typography import p as p
215
- from .typography import pre as pre
216
- from .typography import ul as ul
217
- from .typography import ins as ins
218
- from .typography import del_ as del_
219
- from .typography import Del as Del
195
+ from .tables import caption as caption
196
+ from .tables import col as col
197
+ from .tables import colgroup as colgroup
198
+ from .tables import table as table
199
+ from .tables import tbody as tbody
200
+ from .tables import td as td
201
+ from .tables import tfoot as tfoot
202
+ from .tables import th as th
203
+ from .tables import thead as thead
204
+ from .tables import tr as tr
220
205
  from .typography import Blockquote as Blockquote
221
206
  from .typography import Dd as Dd
207
+ from .typography import Del as Del
222
208
  from .typography import Div as Div
223
209
  from .typography import Dl as Dl
224
210
  from .typography import Dt as Dt
225
211
  from .typography import Figcaption as Figcaption
226
212
  from .typography import Hr as Hr
227
- from .typography import Ol as Ol
213
+ from .typography import Ins as Ins
228
214
  from .typography import Li as Li
215
+ from .typography import Ol as Ol
229
216
  from .typography import P as P
230
217
  from .typography import Pre as Pre
231
218
  from .typography import Ul as Ul
232
- from .typography import Ins as Ins
233
- from reflex.utils import lazy_loader
219
+ from .typography import blockquote as blockquote
220
+ from .typography import dd as dd
221
+ from .typography import del_ as del_
222
+ from .typography import div as div
223
+ from .typography import dl as dl
224
+ from .typography import dt as dt
225
+ from .typography import figcaption as figcaption
226
+ from .typography import hr as hr
227
+ from .typography import ins as ins
228
+ from .typography import li as li
229
+ from .typography import ol as ol
230
+ from .typography import p as p
231
+ from .typography import pre as pre
232
+ from .typography import ul as ul
234
233
 
235
234
  _MAPPING = {
236
235
  "forms": [
@@ -1,15 +1,14 @@
1
1
  """Stub file for reflex/components/el/elements/base.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, 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 Union
11
8
  from reflex.components.el.element import Element
12
- from reflex.vars import Var as Var
9
+ from reflex.event import EventHandler, EventSpec
10
+ from reflex.style import Style
11
+ from reflex.vars import BaseVar, Var
13
12
 
14
13
  class BaseHTML(Element):
15
14
  @overload
@@ -17,46 +16,30 @@ class BaseHTML(Element):
17
16
  def create( # type: ignore
18
17
  cls,
19
18
  *children,
20
- access_key: Optional[
21
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
22
- ] = None,
19
+ access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
23
20
  auto_capitalize: Optional[
24
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
21
+ Union[Var[Union[bool, int, str]], str, int, bool]
25
22
  ] = None,
26
23
  content_editable: Optional[
27
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
24
+ Union[Var[Union[bool, int, str]], str, int, bool]
28
25
  ] = None,
29
26
  context_menu: Optional[
30
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
31
- ] = None,
32
- dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
33
- draggable: Optional[
34
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
27
+ Union[Var[Union[bool, int, str]], str, int, bool]
35
28
  ] = None,
29
+ dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
30
+ draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
36
31
  enter_key_hint: Optional[
37
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
38
- ] = None,
39
- hidden: Optional[
40
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
41
- ] = None,
42
- input_mode: Optional[
43
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
44
- ] = None,
45
- item_prop: Optional[
46
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
47
- ] = None,
48
- lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
49
- role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
50
- slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
51
- spell_check: Optional[
52
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
53
- ] = None,
54
- tab_index: Optional[
55
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
56
- ] = None,
57
- title: Optional[
58
- Union[Var[Union[str, int, bool]], Union[str, int, bool]]
59
- ] = None,
32
+ Union[Var[Union[bool, int, str]], str, int, bool]
33
+ ] = None,
34
+ hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
35
+ input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
36
+ item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
37
+ lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
38
+ role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
39
+ slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
40
+ spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
41
+ tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
42
+ title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
60
43
  style: Optional[Style] = None,
61
44
  key: Optional[Any] = None,
62
45
  id: Optional[Any] = None,
@@ -64,51 +47,51 @@ class BaseHTML(Element):
64
47
  autofocus: Optional[bool] = None,
65
48
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
66
49
  on_blur: Optional[
67
- Union[EventHandler, EventSpec, list, function, BaseVar]
50
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
68
51
  ] = None,
69
52
  on_click: Optional[
70
- Union[EventHandler, EventSpec, list, function, BaseVar]
53
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
71
54
  ] = None,
72
55
  on_context_menu: Optional[
73
- Union[EventHandler, EventSpec, list, function, BaseVar]
56
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
74
57
  ] = None,
75
58
  on_double_click: Optional[
76
- Union[EventHandler, EventSpec, list, function, BaseVar]
59
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
77
60
  ] = None,
78
61
  on_focus: Optional[
79
- Union[EventHandler, EventSpec, list, function, BaseVar]
62
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
80
63
  ] = None,
81
64
  on_mount: Optional[
82
- Union[EventHandler, EventSpec, list, function, BaseVar]
65
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
83
66
  ] = None,
84
67
  on_mouse_down: Optional[
85
- Union[EventHandler, EventSpec, list, function, BaseVar]
68
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
86
69
  ] = None,
87
70
  on_mouse_enter: Optional[
88
- Union[EventHandler, EventSpec, list, function, BaseVar]
71
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
89
72
  ] = None,
90
73
  on_mouse_leave: Optional[
91
- Union[EventHandler, EventSpec, list, function, BaseVar]
74
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
92
75
  ] = None,
93
76
  on_mouse_move: Optional[
94
- Union[EventHandler, EventSpec, list, function, BaseVar]
77
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
95
78
  ] = None,
96
79
  on_mouse_out: Optional[
97
- Union[EventHandler, EventSpec, list, function, BaseVar]
80
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
98
81
  ] = None,
99
82
  on_mouse_over: Optional[
100
- Union[EventHandler, EventSpec, list, function, BaseVar]
83
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
101
84
  ] = None,
102
85
  on_mouse_up: Optional[
103
- Union[EventHandler, EventSpec, list, function, BaseVar]
86
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
104
87
  ] = None,
105
88
  on_scroll: Optional[
106
- Union[EventHandler, EventSpec, list, function, BaseVar]
89
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
107
90
  ] = None,
108
91
  on_unmount: Optional[
109
- Union[EventHandler, EventSpec, list, function, BaseVar]
92
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
110
93
  ] = None,
111
- **props
94
+ **props,
112
95
  ) -> "BaseHTML":
113
96
  """Create the component.
114
97