reflex 0.3.7__py3-none-any.whl → 0.3.8__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 (322) hide show
  1. reflex/.templates/apps/blank/code/blank.py +0 -1
  2. reflex/.templates/apps/demo/code/demo.py +0 -1
  3. reflex/.templates/apps/sidebar/code/sidebar.py +6 -2
  4. reflex/.templates/jinja/web/pages/_app.js.jinja2 +4 -1
  5. reflex/.templates/jinja/web/pages/base_page.js.jinja2 +4 -1
  6. reflex/.templates/jinja/web/pages/utils.js.jinja2 +24 -0
  7. reflex/.templates/jinja/web/tailwind.config.js.jinja2 +4 -1
  8. reflex/.templates/web/utils/helpers/dataeditor.js +56 -54
  9. reflex/__init__.py +4 -2
  10. reflex/__init__.pyi +6 -2
  11. reflex/app.py +43 -9
  12. reflex/app.pyi +2 -1
  13. reflex/app_module_for_backend.py +13 -0
  14. reflex/compiler/compiler.py +19 -0
  15. reflex/components/__init__.py +9 -232
  16. reflex/components/base/__init__.py +5 -1
  17. reflex/components/base/app_wrap.py +1 -1
  18. reflex/components/base/app_wrap.pyi +1 -1
  19. reflex/components/base/document.py +0 -8
  20. reflex/components/base/document.pyi +0 -80
  21. reflex/components/{layout → base}/fragment.pyi +1 -1
  22. reflex/components/chakra/__init__.py +202 -19
  23. reflex/components/{libs/chakra.pyi → chakra/base.pyi} +1 -1
  24. reflex/components/chakra/datadisplay/__init__.py +12 -0
  25. reflex/components/{datadisplay → chakra/datadisplay}/badge.py +1 -1
  26. reflex/components/{datadisplay → chakra/datadisplay}/badge.pyi +2 -2
  27. reflex/components/{datadisplay → chakra/datadisplay}/code.py +5 -5
  28. reflex/components/{datadisplay → chakra/datadisplay}/code.pyi +5 -5
  29. reflex/components/{datadisplay → chakra/datadisplay}/divider.py +4 -2
  30. reflex/components/{datadisplay → chakra/datadisplay}/divider.pyi +5 -3
  31. reflex/components/{datadisplay → chakra/datadisplay}/keyboard_key.py +1 -1
  32. reflex/components/{datadisplay → chakra/datadisplay}/keyboard_key.pyi +2 -2
  33. reflex/components/{datadisplay → chakra/datadisplay}/list.py +3 -3
  34. reflex/components/{datadisplay → chakra/datadisplay}/list.pyi +4 -4
  35. reflex/components/{datadisplay → chakra/datadisplay}/stat.py +1 -1
  36. reflex/components/{datadisplay → chakra/datadisplay}/stat.pyi +2 -2
  37. reflex/components/{datadisplay → chakra/datadisplay}/table.py +2 -2
  38. reflex/components/{datadisplay → chakra/datadisplay}/table.pyi +3 -3
  39. reflex/components/{datadisplay → chakra/datadisplay}/tag.py +2 -2
  40. reflex/components/{datadisplay → chakra/datadisplay}/tag.pyi +3 -3
  41. reflex/components/{disclosure → chakra/disclosure}/accordion.py +1 -1
  42. reflex/components/{disclosure → chakra/disclosure}/accordion.pyi +2 -2
  43. reflex/components/{disclosure → chakra/disclosure}/tabs.py +2 -2
  44. reflex/components/{disclosure → chakra/disclosure}/tabs.pyi +3 -3
  45. reflex/components/{disclosure → chakra/disclosure}/transition.py +1 -1
  46. reflex/components/{disclosure → chakra/disclosure}/transition.pyi +2 -2
  47. reflex/components/{disclosure → chakra/disclosure}/visuallyhidden.py +1 -1
  48. reflex/components/{disclosure → chakra/disclosure}/visuallyhidden.pyi +2 -2
  49. reflex/components/{feedback → chakra/feedback}/alert.py +2 -2
  50. reflex/components/{feedback → chakra/feedback}/alert.pyi +2 -6
  51. reflex/components/{feedback → chakra/feedback}/circularprogress.py +1 -1
  52. reflex/components/{feedback → chakra/feedback}/circularprogress.pyi +2 -2
  53. reflex/components/{feedback → chakra/feedback}/progress.py +1 -1
  54. reflex/components/{feedback → chakra/feedback}/progress.pyi +2 -2
  55. reflex/components/{feedback → chakra/feedback}/skeleton.py +1 -1
  56. reflex/components/{feedback → chakra/feedback}/skeleton.pyi +2 -2
  57. reflex/components/{feedback → chakra/feedback}/spinner.py +1 -1
  58. reflex/components/{feedback → chakra/feedback}/spinner.pyi +2 -2
  59. reflex/components/{forms → chakra/forms}/__init__.py +2 -11
  60. reflex/components/{forms → chakra/forms}/button.py +3 -1
  61. reflex/components/{forms → chakra/forms}/button.pyi +2 -2
  62. reflex/components/{forms → chakra/forms}/checkbox.py +1 -1
  63. reflex/components/{forms → chakra/forms}/checkbox.pyi +2 -6
  64. reflex/components/{forms → chakra/forms}/colormodeswitch.py +10 -2
  65. reflex/components/{forms → chakra/forms}/colormodeswitch.pyi +83 -3
  66. reflex/components/{forms → chakra/forms}/date_picker.py +1 -1
  67. reflex/components/{forms → chakra/forms}/date_picker.pyi +2 -2
  68. reflex/components/{forms → chakra/forms}/date_time_picker.py +1 -1
  69. reflex/components/{forms → chakra/forms}/date_time_picker.pyi +2 -2
  70. reflex/components/{forms → chakra/forms}/editable.py +1 -1
  71. reflex/components/{forms → chakra/forms}/editable.pyi +2 -2
  72. reflex/components/{forms → chakra/forms}/email.py +1 -1
  73. reflex/components/{forms → chakra/forms}/email.pyi +2 -2
  74. reflex/components/{forms → chakra/forms}/form.py +1 -1
  75. reflex/components/{forms → chakra/forms}/form.pyi +2 -2
  76. reflex/components/{forms → chakra/forms}/iconbutton.py +1 -1
  77. reflex/components/{forms → chakra/forms}/iconbutton.pyi +2 -2
  78. reflex/components/{forms → chakra/forms}/input.py +5 -4
  79. reflex/components/{forms → chakra/forms}/input.pyi +59 -5
  80. reflex/components/{forms → chakra/forms}/numberinput.py +6 -2
  81. reflex/components/{forms → chakra/forms}/numberinput.pyi +10 -2
  82. reflex/components/{forms → chakra/forms}/password.py +1 -1
  83. reflex/components/{forms → chakra/forms}/password.pyi +2 -2
  84. reflex/components/{forms → chakra/forms}/pininput.py +1 -1
  85. reflex/components/{forms → chakra/forms}/pininput.pyi +2 -2
  86. reflex/components/{forms → chakra/forms}/radio.py +3 -3
  87. reflex/components/{forms → chakra/forms}/radio.pyi +4 -4
  88. reflex/components/{forms → chakra/forms}/rangeslider.py +1 -1
  89. reflex/components/{forms → chakra/forms}/rangeslider.pyi +2 -2
  90. reflex/components/{forms → chakra/forms}/select.py +3 -3
  91. reflex/components/{forms → chakra/forms}/select.pyi +4 -4
  92. reflex/components/{forms → chakra/forms}/slider.py +4 -3
  93. reflex/components/{forms → chakra/forms}/slider.pyi +5 -4
  94. reflex/components/{forms → chakra/forms}/switch.py +1 -1
  95. reflex/components/{forms → chakra/forms}/switch.pyi +2 -2
  96. reflex/components/{forms → chakra/forms}/textarea.py +2 -2
  97. reflex/components/{forms → chakra/forms}/textarea.pyi +3 -3
  98. reflex/components/chakra/forms/time_picker.py +11 -0
  99. reflex/components/chakra/forms/time_picker.pyi +129 -0
  100. reflex/components/{layout → chakra/layout}/__init__.py +1 -20
  101. reflex/components/{layout → chakra/layout}/aspect_ratio.py +1 -1
  102. reflex/components/{layout → chakra/layout}/aspect_ratio.pyi +2 -2
  103. reflex/components/{layout → chakra/layout}/box.py +1 -1
  104. reflex/components/{layout → chakra/layout}/box.pyi +2 -2
  105. reflex/components/{layout → chakra/layout}/card.py +2 -2
  106. reflex/components/{layout → chakra/layout}/card.pyi +3 -3
  107. reflex/components/{layout → chakra/layout}/center.py +1 -1
  108. reflex/components/{layout → chakra/layout}/center.pyi +2 -2
  109. reflex/components/{layout → chakra/layout}/container.py +1 -1
  110. reflex/components/{layout → chakra/layout}/container.pyi +2 -2
  111. reflex/components/{layout → chakra/layout}/flex.py +1 -1
  112. reflex/components/{layout → chakra/layout}/flex.pyi +2 -2
  113. reflex/components/{layout → chakra/layout}/grid.py +1 -1
  114. reflex/components/{layout → chakra/layout}/grid.pyi +2 -2
  115. reflex/components/{layout → chakra/layout}/html.py +1 -1
  116. reflex/components/{layout → chakra/layout}/html.pyi +2 -2
  117. reflex/components/{layout → chakra/layout}/spacer.py +1 -1
  118. reflex/components/{layout → chakra/layout}/spacer.pyi +2 -2
  119. reflex/components/{layout → chakra/layout}/stack.py +1 -1
  120. reflex/components/{layout → chakra/layout}/stack.pyi +2 -2
  121. reflex/components/{layout → chakra/layout}/wrap.py +1 -1
  122. reflex/components/{layout → chakra/layout}/wrap.pyi +2 -2
  123. reflex/components/chakra/media/__init__.py +7 -0
  124. reflex/components/{media → chakra/media}/avatar.py +1 -1
  125. reflex/components/{media → chakra/media}/avatar.pyi +2 -2
  126. reflex/components/chakra/media/icon.py +110 -0
  127. reflex/components/{media → chakra/media}/icon.pyi +2 -2
  128. reflex/components/chakra/media/image.py +1 -1
  129. reflex/components/chakra/media/image.pyi +1 -1
  130. reflex/components/{navigation → chakra/navigation}/__init__.py +0 -1
  131. reflex/components/{navigation → chakra/navigation}/breadcrumb.py +3 -3
  132. reflex/components/{navigation → chakra/navigation}/breadcrumb.pyi +4 -4
  133. reflex/components/{navigation → chakra/navigation}/link.py +2 -2
  134. reflex/components/{navigation → chakra/navigation}/link.pyi +3 -3
  135. reflex/components/{navigation → chakra/navigation}/linkoverlay.py +1 -1
  136. reflex/components/{navigation → chakra/navigation}/linkoverlay.pyi +2 -2
  137. reflex/components/{navigation → chakra/navigation}/stepper.py +1 -1
  138. reflex/components/{navigation → chakra/navigation}/stepper.pyi +2 -2
  139. reflex/components/{overlay → chakra/overlay}/__init__.py +0 -1
  140. reflex/components/{overlay → chakra/overlay}/alertdialog.py +2 -2
  141. reflex/components/{overlay → chakra/overlay}/alertdialog.pyi +3 -3
  142. reflex/components/{overlay → chakra/overlay}/drawer.py +3 -3
  143. reflex/components/{overlay → chakra/overlay}/drawer.pyi +4 -4
  144. reflex/components/{overlay → chakra/overlay}/menu.py +4 -6
  145. reflex/components/{overlay → chakra/overlay}/menu.pyi +4 -4
  146. reflex/components/{overlay → chakra/overlay}/modal.py +2 -2
  147. reflex/components/{overlay → chakra/overlay}/modal.pyi +3 -3
  148. reflex/components/{overlay → chakra/overlay}/popover.py +2 -2
  149. reflex/components/{overlay → chakra/overlay}/popover.pyi +3 -3
  150. reflex/components/{overlay → chakra/overlay}/tooltip.py +1 -1
  151. reflex/components/{overlay → chakra/overlay}/tooltip.pyi +2 -2
  152. reflex/components/{typography → chakra/typography}/__init__.py +0 -1
  153. reflex/components/{typography → chakra/typography}/heading.py +1 -1
  154. reflex/components/{typography → chakra/typography}/heading.pyi +2 -2
  155. reflex/components/{typography → chakra/typography}/highlight.py +1 -1
  156. reflex/components/{typography → chakra/typography}/highlight.pyi +2 -2
  157. reflex/components/{typography → chakra/typography}/span.py +1 -1
  158. reflex/components/{typography → chakra/typography}/span.pyi +2 -2
  159. reflex/components/{typography → chakra/typography}/text.py +1 -1
  160. reflex/components/{typography → chakra/typography}/text.pyi +2 -2
  161. reflex/components/component.py +7 -8
  162. reflex/components/core/__init__.py +22 -0
  163. reflex/components/{overlay → core}/banner.py +4 -3
  164. reflex/components/{overlay → core}/banner.pyi +5 -4
  165. reflex/components/{navigation → core}/client_side_routing.py +1 -1
  166. reflex/components/{navigation → core}/client_side_routing.pyi +2 -2
  167. reflex/components/{layout → core}/cond.py +1 -1
  168. reflex/components/{forms → core}/debounce.py +1 -1
  169. reflex/components/{forms → core}/debounce.pyi +2 -2
  170. reflex/components/{layout → core}/foreach.py +18 -2
  171. reflex/components/core/match.py +257 -0
  172. reflex/components/{layout → core}/responsive.py +1 -1
  173. reflex/components/{forms → core}/upload.py +2 -2
  174. reflex/components/{forms → core}/upload.pyi +3 -3
  175. reflex/components/datadisplay/__init__.py +4 -13
  176. reflex/components/el/elements/inline.py +4 -0
  177. reflex/components/el/elements/inline.pyi +3 -0
  178. reflex/components/gridjs/__init__.py +5 -0
  179. reflex/components/{datadisplay → gridjs}/datatable.pyi +1 -1
  180. reflex/components/literals.py +27 -0
  181. reflex/components/markdown/__init__.py +5 -0
  182. reflex/components/{typography → markdown}/markdown.py +16 -6
  183. reflex/components/{typography → markdown}/markdown.pyi +10 -5
  184. reflex/components/media/__init__.py +1 -8
  185. reflex/components/media/icon.py +2 -110
  186. reflex/components/moment/__init__.py +5 -0
  187. reflex/components/{datadisplay → moment}/moment.pyi +1 -1
  188. reflex/components/next/__init__.py +2 -0
  189. reflex/components/{navigation/nextlink.pyi → next/link.pyi} +1 -1
  190. reflex/components/plotly/__init__.py +5 -0
  191. reflex/components/{graphing → plotly}/plotly.pyi +1 -1
  192. reflex/components/radix/primitives/__init__.py +12 -1
  193. reflex/components/radix/primitives/accordion.py +33 -68
  194. reflex/components/radix/primitives/accordion.pyi +6 -89
  195. reflex/components/radix/primitives/base.py +27 -0
  196. reflex/components/radix/primitives/base.pyi +95 -0
  197. reflex/components/radix/primitives/form.py +267 -0
  198. reflex/components/radix/primitives/form.pyi +740 -0
  199. reflex/components/radix/primitives/progress.py +84 -0
  200. reflex/components/radix/primitives/progress.pyi +268 -0
  201. reflex/components/radix/primitives/slider.py +179 -0
  202. reflex/components/radix/primitives/slider.pyi +452 -0
  203. reflex/components/radix/themes/base.py +43 -31
  204. reflex/components/radix/themes/base.pyi +223 -29
  205. reflex/components/radix/themes/components/__init__.py +18 -3
  206. reflex/components/radix/themes/components/alertdialog.py +27 -6
  207. reflex/components/radix/themes/components/alertdialog.pyi +713 -2
  208. reflex/components/radix/themes/components/aspectratio.py +1 -1
  209. reflex/components/radix/themes/components/aspectratio.pyi +67 -2
  210. reflex/components/radix/themes/components/avatar.py +0 -3
  211. reflex/components/radix/themes/components/avatar.pyi +13 -13
  212. reflex/components/radix/themes/components/badge.py +1 -4
  213. reflex/components/radix/themes/components/badge.pyi +11 -11
  214. reflex/components/radix/themes/components/button.py +1 -1
  215. reflex/components/radix/themes/components/button.pyi +15 -11
  216. reflex/components/radix/themes/components/callout.pyi +144 -12
  217. reflex/components/radix/themes/components/card.py +1 -1
  218. reflex/components/radix/themes/components/card.pyi +68 -1
  219. reflex/components/radix/themes/components/checkbox.pyi +14 -12
  220. reflex/components/radix/themes/components/contextmenu.pyi +402 -8
  221. reflex/components/radix/themes/components/dialog.py +6 -0
  222. reflex/components/radix/themes/components/dialog.pyi +518 -0
  223. reflex/components/radix/themes/components/dropdownmenu.pyi +337 -8
  224. reflex/components/radix/themes/components/hovercard.pyi +195 -0
  225. reflex/components/radix/themes/components/iconbutton.pyi +14 -12
  226. reflex/components/radix/themes/components/icons.py +2 -2
  227. reflex/components/radix/themes/components/inset.pyi +65 -0
  228. reflex/components/radix/themes/components/popover.pyi +260 -0
  229. reflex/components/radix/themes/components/radiogroup.py +1 -1
  230. reflex/components/radix/themes/components/radiogroup.pyi +78 -9
  231. reflex/components/radix/themes/components/scrollarea.pyi +65 -0
  232. reflex/components/radix/themes/components/select.pyi +342 -13
  233. reflex/components/radix/themes/components/separator.pyi +7 -5
  234. reflex/components/radix/themes/components/slider.py +4 -4
  235. reflex/components/radix/themes/components/slider.pyi +17 -13
  236. reflex/components/radix/themes/components/switch.pyi +20 -18
  237. reflex/components/radix/themes/components/table.py +1 -1
  238. reflex/components/radix/themes/components/table.pyi +458 -1
  239. reflex/components/radix/themes/components/tabs.py +4 -4
  240. reflex/components/radix/themes/components/tabs.pyi +263 -3
  241. reflex/components/radix/themes/components/textarea.py +1 -1
  242. reflex/components/radix/themes/components/textarea.pyi +1 -1
  243. reflex/components/radix/themes/components/textfield.py +1 -1
  244. reflex/components/radix/themes/components/textfield.pyi +18 -14
  245. reflex/components/radix/themes/components/tooltip.py +15 -0
  246. reflex/components/radix/themes/components/tooltip.pyi +205 -0
  247. reflex/components/radix/themes/layout/base.pyi +65 -0
  248. reflex/components/radix/themes/layout/box.pyi +65 -0
  249. reflex/components/radix/themes/layout/container.pyi +65 -0
  250. reflex/components/radix/themes/layout/flex.pyi +65 -0
  251. reflex/components/radix/themes/layout/grid.pyi +65 -0
  252. reflex/components/radix/themes/layout/section.pyi +65 -0
  253. reflex/components/radix/themes/typography/blockquote.pyi +16 -14
  254. reflex/components/radix/themes/typography/code.pyi +22 -20
  255. reflex/components/radix/themes/typography/em.pyi +65 -0
  256. reflex/components/radix/themes/typography/heading.pyi +30 -28
  257. reflex/components/radix/themes/typography/kbd.pyi +65 -0
  258. reflex/components/radix/themes/typography/link.py +2 -1
  259. reflex/components/radix/themes/typography/link.pyi +121 -28
  260. reflex/components/radix/themes/typography/quote.pyi +66 -0
  261. reflex/components/radix/themes/typography/strong.pyi +65 -0
  262. reflex/components/radix/themes/typography/text.pyi +30 -28
  263. reflex/components/react_player/__init__.py +7 -0
  264. reflex/components/react_player/audio.py +8 -0
  265. reflex/components/{media → react_player}/audio.pyi +3 -3
  266. reflex/components/{libs → react_player}/react_player.py +1 -1
  267. reflex/components/{libs → react_player}/react_player.pyi +3 -3
  268. reflex/components/react_player/video.py +8 -0
  269. reflex/components/{media → react_player}/video.pyi +3 -3
  270. reflex/components/{graphing/recharts → recharts}/cartesian.pyi +1 -1
  271. reflex/components/{graphing/recharts → recharts}/charts.py +1 -1
  272. reflex/components/{graphing/recharts → recharts}/charts.pyi +2 -2
  273. reflex/components/{graphing/recharts → recharts}/general.pyi +1 -1
  274. reflex/components/{graphing/recharts → recharts}/polar.pyi +1 -1
  275. reflex/components/{graphing/recharts → recharts}/recharts.pyi +1 -1
  276. reflex/components/suneditor/__init__.py +5 -0
  277. reflex/components/{forms → suneditor}/editor.pyi +1 -1
  278. reflex/components/tags/__init__.py +1 -0
  279. reflex/components/tags/iter_tag.py +3 -3
  280. reflex/components/tags/match_tag.py +19 -0
  281. reflex/constants/base.py +2 -0
  282. reflex/constants/installer.py +1 -0
  283. reflex/constants/style.py +1 -1
  284. reflex/event.py +1 -1
  285. reflex/reflex.py +14 -12
  286. reflex/state.py +14 -0
  287. reflex/style.py +1 -1
  288. reflex/testing.py +59 -9
  289. reflex/utils/build.py +7 -1
  290. reflex/utils/exceptions.py +6 -0
  291. reflex/utils/exec.py +2 -2
  292. reflex/utils/export.py +1 -1
  293. reflex/utils/format.py +41 -4
  294. reflex/utils/prerequisites.py +37 -6
  295. reflex/utils/types.py +2 -2
  296. reflex/vars.py +25 -1
  297. {reflex-0.3.7.dist-info → reflex-0.3.8.dist-info}/METADATA +7 -2
  298. reflex-0.3.8.dist-info/RECORD +492 -0
  299. reflex/components/graphing/__init__.py +0 -5
  300. reflex/components/libs/__init__.py +0 -31
  301. reflex/components/media/audio.py +0 -8
  302. reflex/components/media/image.pyi +0 -123
  303. reflex/components/media/video.py +0 -8
  304. reflex-0.3.7.dist-info/RECORD +0 -470
  305. /reflex/components/{layout → base}/fragment.py +0 -0
  306. /reflex/components/{libs/chakra.py → chakra/base.py} +0 -0
  307. /reflex/components/{disclosure → chakra/disclosure}/__init__.py +0 -0
  308. /reflex/components/{feedback → chakra/feedback}/__init__.py +0 -0
  309. /reflex/components/{forms → chakra/forms}/multiselect.py +0 -0
  310. /reflex/components/{datadisplay → gridjs}/datatable.py +0 -0
  311. /reflex/components/{datadisplay → moment}/moment.py +0 -0
  312. /reflex/components/{navigation/nextlink.py → next/link.py} +0 -0
  313. /reflex/components/{graphing → plotly}/plotly.py +0 -0
  314. /reflex/components/{graphing/recharts → recharts}/__init__.py +0 -0
  315. /reflex/components/{graphing/recharts → recharts}/cartesian.py +0 -0
  316. /reflex/components/{graphing/recharts → recharts}/general.py +0 -0
  317. /reflex/components/{graphing/recharts → recharts}/polar.py +0 -0
  318. /reflex/components/{graphing/recharts → recharts}/recharts.py +0 -0
  319. /reflex/components/{forms → suneditor}/editor.py +0 -0
  320. {reflex-0.3.7.dist-info → reflex-0.3.8.dist-info}/LICENSE +0 -0
  321. {reflex-0.3.7.dist-info → reflex-0.3.8.dist-info}/WHEEL +0 -0
  322. {reflex-0.3.7.dist-info → reflex-0.3.8.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,740 @@
1
+ """Stub file for reflex/components/radix/primitives/form.py"""
2
+ # ------------------- DO NOT EDIT ----------------------
3
+ # This file was generated by `scripts/pyi_generator.py`!
4
+ # ------------------------------------------------------
5
+
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 hashlib import md5
11
+ from typing import Any, Dict, Iterator, Literal
12
+ from jinja2 import Environment
13
+ from reflex.components.component import Component
14
+ from reflex.components.tags.tag import Tag
15
+ from reflex.constants.base import Dirs
16
+ from reflex.constants.event import EventTriggers
17
+ from reflex.event import EventChain
18
+ from reflex.utils import imports
19
+ from reflex.utils.format import format_event_chain, to_camel_case
20
+ from reflex.vars import BaseVar, Var
21
+ from .base import RadixPrimitiveComponent
22
+
23
+ FORM_DATA = Var.create("form_data")
24
+ HANDLE_SUBMIT_JS_JINJA2 = Environment().from_string(
25
+ "\n const handleSubmit_{{ handle_submit_unique_name }} = useCallback((ev) => {\n const $form = ev.target\n ev.preventDefault()\n const {{ form_data }} = {...Object.fromEntries(new FormData($form).entries()), ...{{ field_ref_mapping }}}\n\n {{ on_submit_event_chain }}\n\n if ({{ reset_on_submit }}) {\n $form.reset()\n }\n })\n "
26
+ )
27
+
28
+ class FormComponent(RadixPrimitiveComponent):
29
+ @overload
30
+ @classmethod
31
+ def create( # type: ignore
32
+ cls,
33
+ *children,
34
+ as_child: Optional[Union[Var[bool], bool]] = None,
35
+ style: Optional[Style] = None,
36
+ key: Optional[Any] = None,
37
+ id: Optional[Any] = None,
38
+ class_name: Optional[Any] = None,
39
+ autofocus: Optional[bool] = None,
40
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
41
+ on_blur: Optional[
42
+ Union[EventHandler, EventSpec, list, function, BaseVar]
43
+ ] = None,
44
+ on_click: Optional[
45
+ Union[EventHandler, EventSpec, list, function, BaseVar]
46
+ ] = None,
47
+ on_context_menu: Optional[
48
+ Union[EventHandler, EventSpec, list, function, BaseVar]
49
+ ] = None,
50
+ on_double_click: Optional[
51
+ Union[EventHandler, EventSpec, list, function, BaseVar]
52
+ ] = None,
53
+ on_focus: Optional[
54
+ Union[EventHandler, EventSpec, list, function, BaseVar]
55
+ ] = None,
56
+ on_mount: Optional[
57
+ Union[EventHandler, EventSpec, list, function, BaseVar]
58
+ ] = None,
59
+ on_mouse_down: Optional[
60
+ Union[EventHandler, EventSpec, list, function, BaseVar]
61
+ ] = None,
62
+ on_mouse_enter: Optional[
63
+ Union[EventHandler, EventSpec, list, function, BaseVar]
64
+ ] = None,
65
+ on_mouse_leave: Optional[
66
+ Union[EventHandler, EventSpec, list, function, BaseVar]
67
+ ] = None,
68
+ on_mouse_move: Optional[
69
+ Union[EventHandler, EventSpec, list, function, BaseVar]
70
+ ] = None,
71
+ on_mouse_out: Optional[
72
+ Union[EventHandler, EventSpec, list, function, BaseVar]
73
+ ] = None,
74
+ on_mouse_over: Optional[
75
+ Union[EventHandler, EventSpec, list, function, BaseVar]
76
+ ] = None,
77
+ on_mouse_up: Optional[
78
+ Union[EventHandler, EventSpec, list, function, BaseVar]
79
+ ] = None,
80
+ on_scroll: Optional[
81
+ Union[EventHandler, EventSpec, list, function, BaseVar]
82
+ ] = None,
83
+ on_unmount: Optional[
84
+ Union[EventHandler, EventSpec, list, function, BaseVar]
85
+ ] = None,
86
+ **props
87
+ ) -> "FormComponent":
88
+ """Create the component.
89
+
90
+ Args:
91
+ *children: The children of the component.
92
+ as_child: Change the default rendered element for the one passed as a child.
93
+ style: The style of the component.
94
+ key: A unique key for the component.
95
+ id: The id for the component.
96
+ class_name: The class name for the component.
97
+ autofocus: Whether the component should take the focus once the page is loaded
98
+ custom_attrs: custom attribute
99
+ **props: The props of the component.
100
+
101
+ Returns:
102
+ The component.
103
+
104
+ Raises:
105
+ TypeError: If an invalid child is passed.
106
+ """
107
+ ...
108
+
109
+ class FormRoot(FormComponent):
110
+ def get_event_triggers(self) -> Dict[str, Any]: ...
111
+ @overload
112
+ @classmethod
113
+ def create( # type: ignore
114
+ cls,
115
+ *children,
116
+ reset_on_submit: Optional[Union[Var[bool], bool]] = None,
117
+ handle_submit_unique_name: Optional[Union[Var[str], str]] = None,
118
+ as_child: Optional[Union[Var[bool], bool]] = None,
119
+ style: Optional[Style] = None,
120
+ key: Optional[Any] = None,
121
+ id: Optional[Any] = None,
122
+ class_name: Optional[Any] = None,
123
+ autofocus: Optional[bool] = None,
124
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
125
+ on_blur: Optional[
126
+ Union[EventHandler, EventSpec, list, function, BaseVar]
127
+ ] = None,
128
+ on_clear_server_errors: Optional[
129
+ Union[EventHandler, EventSpec, list, function, BaseVar]
130
+ ] = None,
131
+ on_click: Optional[
132
+ Union[EventHandler, EventSpec, list, function, BaseVar]
133
+ ] = None,
134
+ on_context_menu: Optional[
135
+ Union[EventHandler, EventSpec, list, function, BaseVar]
136
+ ] = None,
137
+ on_double_click: Optional[
138
+ Union[EventHandler, EventSpec, list, function, BaseVar]
139
+ ] = None,
140
+ on_focus: Optional[
141
+ Union[EventHandler, EventSpec, list, function, BaseVar]
142
+ ] = None,
143
+ on_mount: Optional[
144
+ Union[EventHandler, EventSpec, list, function, BaseVar]
145
+ ] = None,
146
+ on_mouse_down: Optional[
147
+ Union[EventHandler, EventSpec, list, function, BaseVar]
148
+ ] = None,
149
+ on_mouse_enter: Optional[
150
+ Union[EventHandler, EventSpec, list, function, BaseVar]
151
+ ] = None,
152
+ on_mouse_leave: Optional[
153
+ Union[EventHandler, EventSpec, list, function, BaseVar]
154
+ ] = None,
155
+ on_mouse_move: Optional[
156
+ Union[EventHandler, EventSpec, list, function, BaseVar]
157
+ ] = None,
158
+ on_mouse_out: Optional[
159
+ Union[EventHandler, EventSpec, list, function, BaseVar]
160
+ ] = None,
161
+ on_mouse_over: Optional[
162
+ Union[EventHandler, EventSpec, list, function, BaseVar]
163
+ ] = None,
164
+ on_mouse_up: Optional[
165
+ Union[EventHandler, EventSpec, list, function, BaseVar]
166
+ ] = None,
167
+ on_scroll: Optional[
168
+ Union[EventHandler, EventSpec, list, function, BaseVar]
169
+ ] = None,
170
+ on_submit: Optional[
171
+ Union[EventHandler, EventSpec, list, function, BaseVar]
172
+ ] = None,
173
+ on_unmount: Optional[
174
+ Union[EventHandler, EventSpec, list, function, BaseVar]
175
+ ] = None,
176
+ **props
177
+ ) -> "FormRoot":
178
+ """Create a form component.
179
+
180
+ Args:
181
+ *children: The children of the form.
182
+ reset_on_submit: If true, the form will be cleared after submit.
183
+ handle_submit_unique_name: The name used to make this form's submit handler function unique
184
+ as_child: Change the default rendered element for the one passed as a child.
185
+ style: The style of the component.
186
+ key: A unique key for the component.
187
+ id: The id for the component.
188
+ class_name: The class name for the component.
189
+ autofocus: Whether the component should take the focus once the page is loaded
190
+ custom_attrs: custom attribute
191
+ **props: The properties of the form.
192
+
193
+ Returns:
194
+ The form component.
195
+ """
196
+ ...
197
+
198
+ class FormField(FormComponent):
199
+ @overload
200
+ @classmethod
201
+ def create( # type: ignore
202
+ cls,
203
+ *children,
204
+ name: Optional[Union[Var[str], str]] = None,
205
+ server_invalid: Optional[Union[Var[bool], bool]] = None,
206
+ as_child: Optional[Union[Var[bool], bool]] = None,
207
+ style: Optional[Style] = None,
208
+ key: Optional[Any] = None,
209
+ id: Optional[Any] = None,
210
+ class_name: Optional[Any] = None,
211
+ autofocus: Optional[bool] = None,
212
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
213
+ on_blur: Optional[
214
+ Union[EventHandler, EventSpec, list, function, BaseVar]
215
+ ] = None,
216
+ on_click: Optional[
217
+ Union[EventHandler, EventSpec, list, function, BaseVar]
218
+ ] = None,
219
+ on_context_menu: Optional[
220
+ Union[EventHandler, EventSpec, list, function, BaseVar]
221
+ ] = None,
222
+ on_double_click: Optional[
223
+ Union[EventHandler, EventSpec, list, function, BaseVar]
224
+ ] = None,
225
+ on_focus: Optional[
226
+ Union[EventHandler, EventSpec, list, function, BaseVar]
227
+ ] = None,
228
+ on_mount: Optional[
229
+ Union[EventHandler, EventSpec, list, function, BaseVar]
230
+ ] = None,
231
+ on_mouse_down: Optional[
232
+ Union[EventHandler, EventSpec, list, function, BaseVar]
233
+ ] = None,
234
+ on_mouse_enter: Optional[
235
+ Union[EventHandler, EventSpec, list, function, BaseVar]
236
+ ] = None,
237
+ on_mouse_leave: Optional[
238
+ Union[EventHandler, EventSpec, list, function, BaseVar]
239
+ ] = None,
240
+ on_mouse_move: Optional[
241
+ Union[EventHandler, EventSpec, list, function, BaseVar]
242
+ ] = None,
243
+ on_mouse_out: Optional[
244
+ Union[EventHandler, EventSpec, list, function, BaseVar]
245
+ ] = None,
246
+ on_mouse_over: Optional[
247
+ Union[EventHandler, EventSpec, list, function, BaseVar]
248
+ ] = None,
249
+ on_mouse_up: Optional[
250
+ Union[EventHandler, EventSpec, list, function, BaseVar]
251
+ ] = None,
252
+ on_scroll: Optional[
253
+ Union[EventHandler, EventSpec, list, function, BaseVar]
254
+ ] = None,
255
+ on_unmount: Optional[
256
+ Union[EventHandler, EventSpec, list, function, BaseVar]
257
+ ] = None,
258
+ **props
259
+ ) -> "FormField":
260
+ """Create the component.
261
+
262
+ Args:
263
+ *children: The children of the component.
264
+ as_child: Change the default rendered element for the one passed as a child.
265
+ style: The style of the component.
266
+ key: A unique key for the component.
267
+ id: The id for the component.
268
+ class_name: The class name for the component.
269
+ autofocus: Whether the component should take the focus once the page is loaded
270
+ custom_attrs: custom attribute
271
+ **props: The props of the component.
272
+
273
+ Returns:
274
+ The component.
275
+
276
+ Raises:
277
+ TypeError: If an invalid child is passed.
278
+ """
279
+ ...
280
+
281
+ class FormLabel(FormComponent):
282
+ @overload
283
+ @classmethod
284
+ def create( # type: ignore
285
+ cls,
286
+ *children,
287
+ as_child: Optional[Union[Var[bool], bool]] = None,
288
+ style: Optional[Style] = None,
289
+ key: Optional[Any] = None,
290
+ id: Optional[Any] = None,
291
+ class_name: Optional[Any] = None,
292
+ autofocus: Optional[bool] = None,
293
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
294
+ on_blur: Optional[
295
+ Union[EventHandler, EventSpec, list, function, BaseVar]
296
+ ] = None,
297
+ on_click: Optional[
298
+ Union[EventHandler, EventSpec, list, function, BaseVar]
299
+ ] = None,
300
+ on_context_menu: Optional[
301
+ Union[EventHandler, EventSpec, list, function, BaseVar]
302
+ ] = None,
303
+ on_double_click: Optional[
304
+ Union[EventHandler, EventSpec, list, function, BaseVar]
305
+ ] = None,
306
+ on_focus: Optional[
307
+ Union[EventHandler, EventSpec, list, function, BaseVar]
308
+ ] = None,
309
+ on_mount: Optional[
310
+ Union[EventHandler, EventSpec, list, function, BaseVar]
311
+ ] = None,
312
+ on_mouse_down: Optional[
313
+ Union[EventHandler, EventSpec, list, function, BaseVar]
314
+ ] = None,
315
+ on_mouse_enter: Optional[
316
+ Union[EventHandler, EventSpec, list, function, BaseVar]
317
+ ] = None,
318
+ on_mouse_leave: Optional[
319
+ Union[EventHandler, EventSpec, list, function, BaseVar]
320
+ ] = None,
321
+ on_mouse_move: Optional[
322
+ Union[EventHandler, EventSpec, list, function, BaseVar]
323
+ ] = None,
324
+ on_mouse_out: Optional[
325
+ Union[EventHandler, EventSpec, list, function, BaseVar]
326
+ ] = None,
327
+ on_mouse_over: Optional[
328
+ Union[EventHandler, EventSpec, list, function, BaseVar]
329
+ ] = None,
330
+ on_mouse_up: Optional[
331
+ Union[EventHandler, EventSpec, list, function, BaseVar]
332
+ ] = None,
333
+ on_scroll: Optional[
334
+ Union[EventHandler, EventSpec, list, function, BaseVar]
335
+ ] = None,
336
+ on_unmount: Optional[
337
+ Union[EventHandler, EventSpec, list, function, BaseVar]
338
+ ] = None,
339
+ **props
340
+ ) -> "FormLabel":
341
+ """Create the component.
342
+
343
+ Args:
344
+ *children: The children of the component.
345
+ as_child: Change the default rendered element for the one passed as a child.
346
+ style: The style of the component.
347
+ key: A unique key for the component.
348
+ id: The id for the component.
349
+ class_name: The class name for the component.
350
+ autofocus: Whether the component should take the focus once the page is loaded
351
+ custom_attrs: custom attribute
352
+ **props: The props of the component.
353
+
354
+ Returns:
355
+ The component.
356
+
357
+ Raises:
358
+ TypeError: If an invalid child is passed.
359
+ """
360
+ ...
361
+
362
+ class FormControl(FormComponent):
363
+ @overload
364
+ @classmethod
365
+ def create( # type: ignore
366
+ cls,
367
+ *children,
368
+ as_child: Optional[Union[Var[bool], bool]] = None,
369
+ style: Optional[Style] = None,
370
+ key: Optional[Any] = None,
371
+ id: Optional[Any] = None,
372
+ class_name: Optional[Any] = None,
373
+ autofocus: Optional[bool] = None,
374
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
375
+ on_blur: Optional[
376
+ Union[EventHandler, EventSpec, list, function, BaseVar]
377
+ ] = None,
378
+ on_click: Optional[
379
+ Union[EventHandler, EventSpec, list, function, BaseVar]
380
+ ] = None,
381
+ on_context_menu: Optional[
382
+ Union[EventHandler, EventSpec, list, function, BaseVar]
383
+ ] = None,
384
+ on_double_click: Optional[
385
+ Union[EventHandler, EventSpec, list, function, BaseVar]
386
+ ] = None,
387
+ on_focus: Optional[
388
+ Union[EventHandler, EventSpec, list, function, BaseVar]
389
+ ] = None,
390
+ on_mount: Optional[
391
+ Union[EventHandler, EventSpec, list, function, BaseVar]
392
+ ] = None,
393
+ on_mouse_down: Optional[
394
+ Union[EventHandler, EventSpec, list, function, BaseVar]
395
+ ] = None,
396
+ on_mouse_enter: Optional[
397
+ Union[EventHandler, EventSpec, list, function, BaseVar]
398
+ ] = None,
399
+ on_mouse_leave: Optional[
400
+ Union[EventHandler, EventSpec, list, function, BaseVar]
401
+ ] = None,
402
+ on_mouse_move: Optional[
403
+ Union[EventHandler, EventSpec, list, function, BaseVar]
404
+ ] = None,
405
+ on_mouse_out: Optional[
406
+ Union[EventHandler, EventSpec, list, function, BaseVar]
407
+ ] = None,
408
+ on_mouse_over: Optional[
409
+ Union[EventHandler, EventSpec, list, function, BaseVar]
410
+ ] = None,
411
+ on_mouse_up: Optional[
412
+ Union[EventHandler, EventSpec, list, function, BaseVar]
413
+ ] = None,
414
+ on_scroll: Optional[
415
+ Union[EventHandler, EventSpec, list, function, BaseVar]
416
+ ] = None,
417
+ on_unmount: Optional[
418
+ Union[EventHandler, EventSpec, list, function, BaseVar]
419
+ ] = None,
420
+ **props
421
+ ) -> "FormControl":
422
+ """Create the component.
423
+
424
+ Args:
425
+ *children: The children of the component.
426
+ as_child: Change the default rendered element for the one passed as a child.
427
+ style: The style of the component.
428
+ key: A unique key for the component.
429
+ id: The id for the component.
430
+ class_name: The class name for the component.
431
+ autofocus: Whether the component should take the focus once the page is loaded
432
+ custom_attrs: custom attribute
433
+ **props: The props of the component.
434
+
435
+ Returns:
436
+ The component.
437
+
438
+ Raises:
439
+ TypeError: If an invalid child is passed.
440
+ """
441
+ ...
442
+
443
+ LiteralMatcher = Literal[
444
+ "badInput",
445
+ "patternMismatch",
446
+ "rangeOverflow",
447
+ "rangeUnderflow",
448
+ "stepMismatch",
449
+ "tooLong",
450
+ "tooShort",
451
+ "typeMismatch",
452
+ "valid",
453
+ "valueMissing",
454
+ ]
455
+
456
+ class FormMessage(FormComponent):
457
+ @overload
458
+ @classmethod
459
+ def create( # type: ignore
460
+ cls,
461
+ *children,
462
+ name: Optional[Union[Var[str], str]] = None,
463
+ match: Optional[
464
+ Union[
465
+ Var[
466
+ Literal[
467
+ "badInput",
468
+ "patternMismatch",
469
+ "rangeOverflow",
470
+ "rangeUnderflow",
471
+ "stepMismatch",
472
+ "tooLong",
473
+ "tooShort",
474
+ "typeMismatch",
475
+ "valid",
476
+ "valueMissing",
477
+ ]
478
+ ],
479
+ Literal[
480
+ "badInput",
481
+ "patternMismatch",
482
+ "rangeOverflow",
483
+ "rangeUnderflow",
484
+ "stepMismatch",
485
+ "tooLong",
486
+ "tooShort",
487
+ "typeMismatch",
488
+ "valid",
489
+ "valueMissing",
490
+ ],
491
+ ]
492
+ ] = None,
493
+ forceMatch: Optional[Union[Var[bool], bool]] = None,
494
+ as_child: Optional[Union[Var[bool], bool]] = None,
495
+ style: Optional[Style] = None,
496
+ key: Optional[Any] = None,
497
+ id: Optional[Any] = None,
498
+ class_name: Optional[Any] = None,
499
+ autofocus: Optional[bool] = None,
500
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
501
+ on_blur: Optional[
502
+ Union[EventHandler, EventSpec, list, function, BaseVar]
503
+ ] = None,
504
+ on_click: Optional[
505
+ Union[EventHandler, EventSpec, list, function, BaseVar]
506
+ ] = None,
507
+ on_context_menu: Optional[
508
+ Union[EventHandler, EventSpec, list, function, BaseVar]
509
+ ] = None,
510
+ on_double_click: Optional[
511
+ Union[EventHandler, EventSpec, list, function, BaseVar]
512
+ ] = None,
513
+ on_focus: Optional[
514
+ Union[EventHandler, EventSpec, list, function, BaseVar]
515
+ ] = None,
516
+ on_mount: Optional[
517
+ Union[EventHandler, EventSpec, list, function, BaseVar]
518
+ ] = None,
519
+ on_mouse_down: Optional[
520
+ Union[EventHandler, EventSpec, list, function, BaseVar]
521
+ ] = None,
522
+ on_mouse_enter: Optional[
523
+ Union[EventHandler, EventSpec, list, function, BaseVar]
524
+ ] = None,
525
+ on_mouse_leave: Optional[
526
+ Union[EventHandler, EventSpec, list, function, BaseVar]
527
+ ] = None,
528
+ on_mouse_move: Optional[
529
+ Union[EventHandler, EventSpec, list, function, BaseVar]
530
+ ] = None,
531
+ on_mouse_out: Optional[
532
+ Union[EventHandler, EventSpec, list, function, BaseVar]
533
+ ] = None,
534
+ on_mouse_over: Optional[
535
+ Union[EventHandler, EventSpec, list, function, BaseVar]
536
+ ] = None,
537
+ on_mouse_up: Optional[
538
+ Union[EventHandler, EventSpec, list, function, BaseVar]
539
+ ] = None,
540
+ on_scroll: Optional[
541
+ Union[EventHandler, EventSpec, list, function, BaseVar]
542
+ ] = None,
543
+ on_unmount: Optional[
544
+ Union[EventHandler, EventSpec, list, function, BaseVar]
545
+ ] = None,
546
+ **props
547
+ ) -> "FormMessage":
548
+ """Create the component.
549
+
550
+ Args:
551
+ *children: The children of the component.
552
+ name: Used to target a specific field by name when rendering outside of a Field part.
553
+ match: Used to indicate on which condition the message should be visible.
554
+ forceMatch: Forces the message to be shown. This is useful when using server-side validation.
555
+ as_child: Change the default rendered element for the one passed as a child.
556
+ style: The style of the component.
557
+ key: A unique key for the component.
558
+ id: The id for the component.
559
+ class_name: The class name for the component.
560
+ autofocus: Whether the component should take the focus once the page is loaded
561
+ custom_attrs: custom attribute
562
+ **props: The props of the component.
563
+
564
+ Returns:
565
+ The component.
566
+
567
+ Raises:
568
+ TypeError: If an invalid child is passed.
569
+ """
570
+ ...
571
+
572
+ class FormValidityState(FormComponent):
573
+ @overload
574
+ @classmethod
575
+ def create( # type: ignore
576
+ cls,
577
+ *children,
578
+ as_child: Optional[Union[Var[bool], bool]] = None,
579
+ style: Optional[Style] = None,
580
+ key: Optional[Any] = None,
581
+ id: Optional[Any] = None,
582
+ class_name: Optional[Any] = None,
583
+ autofocus: Optional[bool] = None,
584
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
585
+ on_blur: Optional[
586
+ Union[EventHandler, EventSpec, list, function, BaseVar]
587
+ ] = None,
588
+ on_click: Optional[
589
+ Union[EventHandler, EventSpec, list, function, BaseVar]
590
+ ] = None,
591
+ on_context_menu: Optional[
592
+ Union[EventHandler, EventSpec, list, function, BaseVar]
593
+ ] = None,
594
+ on_double_click: Optional[
595
+ Union[EventHandler, EventSpec, list, function, BaseVar]
596
+ ] = None,
597
+ on_focus: Optional[
598
+ Union[EventHandler, EventSpec, list, function, BaseVar]
599
+ ] = None,
600
+ on_mount: Optional[
601
+ Union[EventHandler, EventSpec, list, function, BaseVar]
602
+ ] = None,
603
+ on_mouse_down: Optional[
604
+ Union[EventHandler, EventSpec, list, function, BaseVar]
605
+ ] = None,
606
+ on_mouse_enter: Optional[
607
+ Union[EventHandler, EventSpec, list, function, BaseVar]
608
+ ] = None,
609
+ on_mouse_leave: Optional[
610
+ Union[EventHandler, EventSpec, list, function, BaseVar]
611
+ ] = None,
612
+ on_mouse_move: Optional[
613
+ Union[EventHandler, EventSpec, list, function, BaseVar]
614
+ ] = None,
615
+ on_mouse_out: Optional[
616
+ Union[EventHandler, EventSpec, list, function, BaseVar]
617
+ ] = None,
618
+ on_mouse_over: Optional[
619
+ Union[EventHandler, EventSpec, list, function, BaseVar]
620
+ ] = None,
621
+ on_mouse_up: Optional[
622
+ Union[EventHandler, EventSpec, list, function, BaseVar]
623
+ ] = None,
624
+ on_scroll: Optional[
625
+ Union[EventHandler, EventSpec, list, function, BaseVar]
626
+ ] = None,
627
+ on_unmount: Optional[
628
+ Union[EventHandler, EventSpec, list, function, BaseVar]
629
+ ] = None,
630
+ **props
631
+ ) -> "FormValidityState":
632
+ """Create the component.
633
+
634
+ Args:
635
+ *children: The children of the component.
636
+ as_child: Change the default rendered element for the one passed as a child.
637
+ style: The style of the component.
638
+ key: A unique key for the component.
639
+ id: The id for the component.
640
+ class_name: The class name for the component.
641
+ autofocus: Whether the component should take the focus once the page is loaded
642
+ custom_attrs: custom attribute
643
+ **props: The props of the component.
644
+
645
+ Returns:
646
+ The component.
647
+
648
+ Raises:
649
+ TypeError: If an invalid child is passed.
650
+ """
651
+ ...
652
+
653
+ class FormSubmit(FormComponent):
654
+ @overload
655
+ @classmethod
656
+ def create( # type: ignore
657
+ cls,
658
+ *children,
659
+ as_child: Optional[Union[Var[bool], bool]] = None,
660
+ style: Optional[Style] = None,
661
+ key: Optional[Any] = None,
662
+ id: Optional[Any] = None,
663
+ class_name: Optional[Any] = None,
664
+ autofocus: Optional[bool] = None,
665
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
666
+ on_blur: Optional[
667
+ Union[EventHandler, EventSpec, list, function, BaseVar]
668
+ ] = None,
669
+ on_click: Optional[
670
+ Union[EventHandler, EventSpec, list, function, BaseVar]
671
+ ] = None,
672
+ on_context_menu: Optional[
673
+ Union[EventHandler, EventSpec, list, function, BaseVar]
674
+ ] = None,
675
+ on_double_click: Optional[
676
+ Union[EventHandler, EventSpec, list, function, BaseVar]
677
+ ] = None,
678
+ on_focus: Optional[
679
+ Union[EventHandler, EventSpec, list, function, BaseVar]
680
+ ] = None,
681
+ on_mount: Optional[
682
+ Union[EventHandler, EventSpec, list, function, BaseVar]
683
+ ] = None,
684
+ on_mouse_down: Optional[
685
+ Union[EventHandler, EventSpec, list, function, BaseVar]
686
+ ] = None,
687
+ on_mouse_enter: Optional[
688
+ Union[EventHandler, EventSpec, list, function, BaseVar]
689
+ ] = None,
690
+ on_mouse_leave: Optional[
691
+ Union[EventHandler, EventSpec, list, function, BaseVar]
692
+ ] = None,
693
+ on_mouse_move: Optional[
694
+ Union[EventHandler, EventSpec, list, function, BaseVar]
695
+ ] = None,
696
+ on_mouse_out: Optional[
697
+ Union[EventHandler, EventSpec, list, function, BaseVar]
698
+ ] = None,
699
+ on_mouse_over: Optional[
700
+ Union[EventHandler, EventSpec, list, function, BaseVar]
701
+ ] = None,
702
+ on_mouse_up: Optional[
703
+ Union[EventHandler, EventSpec, list, function, BaseVar]
704
+ ] = None,
705
+ on_scroll: Optional[
706
+ Union[EventHandler, EventSpec, list, function, BaseVar]
707
+ ] = None,
708
+ on_unmount: Optional[
709
+ Union[EventHandler, EventSpec, list, function, BaseVar]
710
+ ] = None,
711
+ **props
712
+ ) -> "FormSubmit":
713
+ """Create the component.
714
+
715
+ Args:
716
+ *children: The children of the component.
717
+ as_child: Change the default rendered element for the one passed as a child.
718
+ style: The style of the component.
719
+ key: A unique key for the component.
720
+ id: The id for the component.
721
+ class_name: The class name for the component.
722
+ autofocus: Whether the component should take the focus once the page is loaded
723
+ custom_attrs: custom attribute
724
+ **props: The props of the component.
725
+
726
+ Returns:
727
+ The component.
728
+
729
+ Raises:
730
+ TypeError: If an invalid child is passed.
731
+ """
732
+ ...
733
+
734
+ form_root = FormRoot.create
735
+ form_field = FormField.create
736
+ form_label = FormLabel.create
737
+ form_control = FormControl.create
738
+ form_message = FormMessage.create
739
+ form_validity_state = FormValidityState.create
740
+ form_submit = FormSubmit.create