reflex 0.3.7a1__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 (324) 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/config.py +1 -1
  283. reflex/constants/installer.py +1 -0
  284. reflex/constants/style.py +1 -1
  285. reflex/event.py +1 -1
  286. reflex/reflex.py +14 -12
  287. reflex/state.py +14 -0
  288. reflex/style.py +1 -1
  289. reflex/testing.py +59 -9
  290. reflex/utils/build.py +7 -1
  291. reflex/utils/exceptions.py +6 -0
  292. reflex/utils/exec.py +2 -2
  293. reflex/utils/export.py +1 -1
  294. reflex/utils/format.py +41 -4
  295. reflex/utils/prerequisites.py +56 -11
  296. reflex/utils/processes.py +8 -1
  297. reflex/utils/types.py +2 -2
  298. reflex/vars.py +25 -1
  299. {reflex-0.3.7a1.dist-info → reflex-0.3.8.dist-info}/METADATA +8 -2
  300. reflex-0.3.8.dist-info/RECORD +492 -0
  301. reflex/components/graphing/__init__.py +0 -5
  302. reflex/components/libs/__init__.py +0 -31
  303. reflex/components/media/audio.py +0 -8
  304. reflex/components/media/image.pyi +0 -123
  305. reflex/components/media/video.py +0 -8
  306. reflex-0.3.7a1.dist-info/RECORD +0 -470
  307. /reflex/components/{layout → base}/fragment.py +0 -0
  308. /reflex/components/{libs/chakra.py → chakra/base.py} +0 -0
  309. /reflex/components/{disclosure → chakra/disclosure}/__init__.py +0 -0
  310. /reflex/components/{feedback → chakra/feedback}/__init__.py +0 -0
  311. /reflex/components/{forms → chakra/forms}/multiselect.py +0 -0
  312. /reflex/components/{datadisplay → gridjs}/datatable.py +0 -0
  313. /reflex/components/{datadisplay → moment}/moment.py +0 -0
  314. /reflex/components/{navigation/nextlink.py → next/link.py} +0 -0
  315. /reflex/components/{graphing → plotly}/plotly.py +0 -0
  316. /reflex/components/{graphing/recharts → recharts}/__init__.py +0 -0
  317. /reflex/components/{graphing/recharts → recharts}/cartesian.py +0 -0
  318. /reflex/components/{graphing/recharts → recharts}/general.py +0 -0
  319. /reflex/components/{graphing/recharts → recharts}/polar.py +0 -0
  320. /reflex/components/{graphing/recharts → recharts}/recharts.py +0 -0
  321. /reflex/components/{forms → suneditor}/editor.py +0 -0
  322. {reflex-0.3.7a1.dist-info → reflex-0.3.8.dist-info}/LICENSE +0 -0
  323. {reflex-0.3.7a1.dist-info → reflex-0.3.8.dist-info}/WHEEL +0 -0
  324. {reflex-0.3.7a1.dist-info → reflex-0.3.8.dist-info}/entry_points.txt +0 -0
@@ -18,33 +18,8 @@ class Heading(el.H1, CommonMarginProps, RadixThemesComponent):
18
18
  def create( # type: ignore
19
19
  cls,
20
20
  *children,
21
- as_child: Optional[Union[Var[bool], bool]] = None,
22
- as_: Optional[Union[Var[str], str]] = None,
23
- size: Optional[
24
- Union[
25
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
26
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
27
- ]
28
- ] = None,
29
- weight: Optional[
30
- Union[
31
- Var[Literal["light", "regular", "medium", "bold"]],
32
- Literal["light", "regular", "medium", "bold"],
33
- ]
34
- ] = None,
35
- align: Optional[
36
- Union[
37
- Var[Literal["left", "center", "right"]],
38
- Literal["left", "center", "right"],
39
- ]
40
- ] = None,
41
- trim: Optional[
42
- Union[
43
- Var[Literal["normal", "start", "end", "both"]],
44
- Literal["normal", "start", "end", "both"],
45
- ]
46
- ] = None,
47
- color: Optional[
21
+ color: Optional[Union[Var[str], str]] = None,
22
+ color_scheme: Optional[
48
23
  Union[
49
24
  Var[
50
25
  Literal[
@@ -106,6 +81,32 @@ class Heading(el.H1, CommonMarginProps, RadixThemesComponent):
106
81
  ],
107
82
  ]
108
83
  ] = None,
84
+ as_child: Optional[Union[Var[bool], bool]] = None,
85
+ as_: Optional[Union[Var[str], str]] = None,
86
+ size: Optional[
87
+ Union[
88
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
89
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
90
+ ]
91
+ ] = None,
92
+ weight: Optional[
93
+ Union[
94
+ Var[Literal["light", "regular", "medium", "bold"]],
95
+ Literal["light", "regular", "medium", "bold"],
96
+ ]
97
+ ] = None,
98
+ align: Optional[
99
+ Union[
100
+ Var[Literal["left", "center", "right"]],
101
+ Literal["left", "center", "right"],
102
+ ]
103
+ ] = None,
104
+ trim: Optional[
105
+ Union[
106
+ Var[Literal["normal", "start", "end", "both"]],
107
+ Literal["normal", "start", "end", "both"],
108
+ ]
109
+ ] = None,
109
110
  high_contrast: Optional[Union[Var[bool], bool]] = None,
110
111
  access_key: Optional[
111
112
  Union[Var[Union[str, int, bool]], Union[str, int, bool]]
@@ -252,13 +253,14 @@ class Heading(el.H1, CommonMarginProps, RadixThemesComponent):
252
253
 
253
254
  Args:
254
255
  *children: Child components.
256
+ color: map to CSS default color property.
257
+ color_scheme: map to radix color property.
255
258
  as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
256
259
  as_: Change the default rendered element into a semantically appropriate alternative (cannot be used with asChild)
257
260
  size: Text size: "1" - "9"
258
261
  weight: Thickness of text: "light" | "regular" | "medium" | "bold"
259
262
  align: Alignment of text in element: "left" | "center" | "right"
260
263
  trim: Removes the leading trim space: "normal" | "start" | "end" | "both"
261
- color: Overrides the accent color inherited from the Theme.
262
264
  high_contrast: Whether to render the text with higher contrast color
263
265
  access_key: Provides a hint for generating a keyboard shortcut for the current element.
264
266
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
@@ -18,6 +18,69 @@ class Kbd(el.Kbd, CommonMarginProps, RadixThemesComponent):
18
18
  def create( # type: ignore
19
19
  cls,
20
20
  *children,
21
+ color: Optional[Union[Var[str], str]] = None,
22
+ color_scheme: Optional[
23
+ Union[
24
+ Var[
25
+ Literal[
26
+ "tomato",
27
+ "red",
28
+ "ruby",
29
+ "crimson",
30
+ "pink",
31
+ "plum",
32
+ "purple",
33
+ "violet",
34
+ "iris",
35
+ "indigo",
36
+ "blue",
37
+ "cyan",
38
+ "teal",
39
+ "jade",
40
+ "green",
41
+ "grass",
42
+ "brown",
43
+ "orange",
44
+ "sky",
45
+ "mint",
46
+ "lime",
47
+ "yellow",
48
+ "amber",
49
+ "gold",
50
+ "bronze",
51
+ "gray",
52
+ ]
53
+ ],
54
+ Literal[
55
+ "tomato",
56
+ "red",
57
+ "ruby",
58
+ "crimson",
59
+ "pink",
60
+ "plum",
61
+ "purple",
62
+ "violet",
63
+ "iris",
64
+ "indigo",
65
+ "blue",
66
+ "cyan",
67
+ "teal",
68
+ "jade",
69
+ "green",
70
+ "grass",
71
+ "brown",
72
+ "orange",
73
+ "sky",
74
+ "mint",
75
+ "lime",
76
+ "yellow",
77
+ "amber",
78
+ "gold",
79
+ "bronze",
80
+ "gray",
81
+ ],
82
+ ]
83
+ ] = None,
21
84
  size: Optional[
22
85
  Union[
23
86
  Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
@@ -169,6 +232,8 @@ class Kbd(el.Kbd, CommonMarginProps, RadixThemesComponent):
169
232
 
170
233
  Args:
171
234
  *children: Child components.
235
+ color: map to CSS default color property.
236
+ color_scheme: map to radix color property.
172
237
  size: Text size: "1" - "9"
173
238
  access_key: Provides a hint for generating a keyboard shortcut for the current element.
174
239
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
@@ -6,6 +6,7 @@ from __future__ import annotations
6
6
 
7
7
  from typing import Literal
8
8
 
9
+ from reflex.components.el.elements.inline import A
9
10
  from reflex.vars import Var
10
11
 
11
12
  from ..base import (
@@ -22,7 +23,7 @@ from .base import (
22
23
  LiteralLinkUnderline = Literal["auto", "hover", "always"]
23
24
 
24
25
 
25
- class Link(CommonMarginProps, RadixThemesComponent):
26
+ class Link(CommonMarginProps, RadixThemesComponent, A):
26
27
  """A semantic element for navigation between pages."""
27
28
 
28
29
  tag = "Link"
@@ -8,44 +8,21 @@ from reflex.vars import Var, BaseVar, ComputedVar
8
8
  from reflex.event import EventChain, EventHandler, EventSpec
9
9
  from reflex.style import Style
10
10
  from typing import Literal
11
+ from reflex.components.el.elements.inline import A
11
12
  from reflex.vars import Var
12
13
  from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent
13
14
  from .base import LiteralTextSize, LiteralTextTrim, LiteralTextWeight
14
15
 
15
16
  LiteralLinkUnderline = Literal["auto", "hover", "always"]
16
17
 
17
- class Link(CommonMarginProps, RadixThemesComponent):
18
+ class Link(CommonMarginProps, RadixThemesComponent, A):
18
19
  @overload
19
20
  @classmethod
20
21
  def create( # type: ignore
21
22
  cls,
22
23
  *children,
23
- as_child: Optional[Union[Var[bool], bool]] = None,
24
- size: Optional[
25
- Union[
26
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
27
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
28
- ]
29
- ] = None,
30
- weight: Optional[
31
- Union[
32
- Var[Literal["light", "regular", "medium", "bold"]],
33
- Literal["light", "regular", "medium", "bold"],
34
- ]
35
- ] = None,
36
- trim: Optional[
37
- Union[
38
- Var[Literal["normal", "start", "end", "both"]],
39
- Literal["normal", "start", "end", "both"],
40
- ]
41
- ] = None,
42
- underline: Optional[
43
- Union[
44
- Var[Literal["auto", "hover", "always"]],
45
- Literal["auto", "hover", "always"],
46
- ]
47
- ] = None,
48
- color: Optional[
24
+ color: Optional[Union[Var[str], str]] = None,
25
+ color_scheme: Optional[
49
26
  Union[
50
27
  Var[
51
28
  Literal[
@@ -107,6 +84,31 @@ class Link(CommonMarginProps, RadixThemesComponent):
107
84
  ],
108
85
  ]
109
86
  ] = None,
87
+ as_child: Optional[Union[Var[bool], bool]] = None,
88
+ size: Optional[
89
+ Union[
90
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
91
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
92
+ ]
93
+ ] = None,
94
+ weight: Optional[
95
+ Union[
96
+ Var[Literal["light", "regular", "medium", "bold"]],
97
+ Literal["light", "regular", "medium", "bold"],
98
+ ]
99
+ ] = None,
100
+ trim: Optional[
101
+ Union[
102
+ Var[Literal["normal", "start", "end", "both"]],
103
+ Literal["normal", "start", "end", "both"],
104
+ ]
105
+ ] = None,
106
+ underline: Optional[
107
+ Union[
108
+ Var[Literal["auto", "hover", "always"]],
109
+ Literal["auto", "hover", "always"],
110
+ ]
111
+ ] = None,
110
112
  high_contrast: Optional[Union[Var[bool], bool]] = None,
111
113
  m: Optional[
112
114
  Union[
@@ -150,6 +152,70 @@ class Link(CommonMarginProps, RadixThemesComponent):
150
152
  Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
151
153
  ]
152
154
  ] = None,
155
+ download: Optional[
156
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
157
+ ] = None,
158
+ href: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
159
+ href_lang: Optional[
160
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
161
+ ] = None,
162
+ media: Optional[
163
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
164
+ ] = None,
165
+ ping: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
166
+ referrer_policy: Optional[
167
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
168
+ ] = None,
169
+ rel: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
170
+ shape: Optional[
171
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
172
+ ] = None,
173
+ target: Optional[
174
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
175
+ ] = None,
176
+ access_key: Optional[
177
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
178
+ ] = None,
179
+ auto_capitalize: Optional[
180
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
181
+ ] = None,
182
+ content_editable: Optional[
183
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
184
+ ] = None,
185
+ context_menu: Optional[
186
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
187
+ ] = None,
188
+ dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
189
+ draggable: Optional[
190
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
191
+ ] = None,
192
+ enter_key_hint: Optional[
193
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
194
+ ] = None,
195
+ hidden: Optional[
196
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
197
+ ] = None,
198
+ input_mode: Optional[
199
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
200
+ ] = None,
201
+ item_prop: Optional[
202
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
203
+ ] = None,
204
+ lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
205
+ role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
206
+ slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
207
+ spell_check: Optional[
208
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
209
+ ] = None,
210
+ tab_index: Optional[
211
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
212
+ ] = None,
213
+ title: Optional[
214
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
215
+ ] = None,
216
+ translate: Optional[
217
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
218
+ ] = None,
153
219
  style: Optional[Style] = None,
154
220
  key: Optional[Any] = None,
155
221
  id: Optional[Any] = None,
@@ -210,12 +276,13 @@ class Link(CommonMarginProps, RadixThemesComponent):
210
276
 
211
277
  Args:
212
278
  *children: Child components.
279
+ color: map to CSS default color property.
280
+ color_scheme: map to radix color property.
213
281
  as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
214
282
  size: Text size: "1" - "9"
215
283
  weight: Thickness of text: "light" | "regular" | "medium" | "bold"
216
284
  trim: Removes the leading trim space: "normal" | "start" | "end" | "both"
217
285
  underline: Sets the visibility of the underline affordance: "auto" | "hover" | "always"
218
- color: Overrides the accent color inherited from the Theme.
219
286
  high_contrast: Whether to render the text with higher contrast color
220
287
  m: Margin: "0" - "9"
221
288
  mx: Margin horizontal: "0" - "9"
@@ -224,6 +291,32 @@ class Link(CommonMarginProps, RadixThemesComponent):
224
291
  mr: Margin right: "0" - "9"
225
292
  mb: Margin bottom: "0" - "9"
226
293
  ml: Margin left: "0" - "9"
294
+ download: Specifies that the target (the file specified in the href attribute) will be downloaded when a user clicks on the hyperlink.
295
+ href: Specifies the URL of the page the link goes to
296
+ href_lang: Specifies the language of the linked document
297
+ media: Specifies what media/device the linked document is optimized for
298
+ ping: Specifies which referrer is sent when fetching the resource
299
+ referrer_policy: Specifies the relationship between the current document and the linked document
300
+ rel: Specifies the relationship between the linked document and the current document
301
+ shape: Specifies the shape of the area
302
+ target: Specifies where to open the linked document
303
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
304
+ auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
305
+ content_editable: Indicates whether the element's content is editable.
306
+ context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
307
+ dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
308
+ draggable: Defines whether the element can be dragged.
309
+ enter_key_hint: Hints what media types the media element is able to play.
310
+ hidden: Defines whether the element is hidden.
311
+ input_mode: Defines the type of the element.
312
+ item_prop: Defines the name of the element for metadata purposes.
313
+ lang: Defines the language used in the element.
314
+ role: Defines the role of the element.
315
+ slot: Assigns a slot in a shadow DOM shadow tree to an element.
316
+ spell_check: Defines whether the element may be checked for spelling errors.
317
+ tab_index: Defines the position of the current element in the tabbing order.
318
+ title: Defines a tooltip for the element.
319
+ translate: Specifies whether the content of an element should be translated or not.
227
320
  style: The style of the component.
228
321
  key: A unique key for the component.
229
322
  id: The id for the component.
@@ -16,6 +16,69 @@ class Quote(el.Q, CommonMarginProps, RadixThemesComponent):
16
16
  def create( # type: ignore
17
17
  cls,
18
18
  *children,
19
+ color: Optional[Union[Var[str], str]] = None,
20
+ color_scheme: Optional[
21
+ Union[
22
+ Var[
23
+ Literal[
24
+ "tomato",
25
+ "red",
26
+ "ruby",
27
+ "crimson",
28
+ "pink",
29
+ "plum",
30
+ "purple",
31
+ "violet",
32
+ "iris",
33
+ "indigo",
34
+ "blue",
35
+ "cyan",
36
+ "teal",
37
+ "jade",
38
+ "green",
39
+ "grass",
40
+ "brown",
41
+ "orange",
42
+ "sky",
43
+ "mint",
44
+ "lime",
45
+ "yellow",
46
+ "amber",
47
+ "gold",
48
+ "bronze",
49
+ "gray",
50
+ ]
51
+ ],
52
+ Literal[
53
+ "tomato",
54
+ "red",
55
+ "ruby",
56
+ "crimson",
57
+ "pink",
58
+ "plum",
59
+ "purple",
60
+ "violet",
61
+ "iris",
62
+ "indigo",
63
+ "blue",
64
+ "cyan",
65
+ "teal",
66
+ "jade",
67
+ "green",
68
+ "grass",
69
+ "brown",
70
+ "orange",
71
+ "sky",
72
+ "mint",
73
+ "lime",
74
+ "yellow",
75
+ "amber",
76
+ "gold",
77
+ "bronze",
78
+ "gray",
79
+ ],
80
+ ]
81
+ ] = None,
19
82
  cite: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
20
83
  access_key: Optional[
21
84
  Union[Var[Union[str, int, bool]], Union[str, int, bool]]
@@ -162,6 +225,9 @@ class Quote(el.Q, CommonMarginProps, RadixThemesComponent):
162
225
 
163
226
  Args:
164
227
  *children: Child components.
228
+ color: map to CSS default color property.
229
+ color_scheme: map to radix color property.
230
+ cite: Specifies the source URL of the quote.
165
231
  access_key: Provides a hint for generating a keyboard shortcut for the current element.
166
232
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
167
233
  content_editable: Indicates whether the element's content is editable.
@@ -16,6 +16,69 @@ class Strong(el.Strong, CommonMarginProps, RadixThemesComponent):
16
16
  def create( # type: ignore
17
17
  cls,
18
18
  *children,
19
+ color: Optional[Union[Var[str], str]] = None,
20
+ color_scheme: Optional[
21
+ Union[
22
+ Var[
23
+ Literal[
24
+ "tomato",
25
+ "red",
26
+ "ruby",
27
+ "crimson",
28
+ "pink",
29
+ "plum",
30
+ "purple",
31
+ "violet",
32
+ "iris",
33
+ "indigo",
34
+ "blue",
35
+ "cyan",
36
+ "teal",
37
+ "jade",
38
+ "green",
39
+ "grass",
40
+ "brown",
41
+ "orange",
42
+ "sky",
43
+ "mint",
44
+ "lime",
45
+ "yellow",
46
+ "amber",
47
+ "gold",
48
+ "bronze",
49
+ "gray",
50
+ ]
51
+ ],
52
+ Literal[
53
+ "tomato",
54
+ "red",
55
+ "ruby",
56
+ "crimson",
57
+ "pink",
58
+ "plum",
59
+ "purple",
60
+ "violet",
61
+ "iris",
62
+ "indigo",
63
+ "blue",
64
+ "cyan",
65
+ "teal",
66
+ "jade",
67
+ "green",
68
+ "grass",
69
+ "brown",
70
+ "orange",
71
+ "sky",
72
+ "mint",
73
+ "lime",
74
+ "yellow",
75
+ "amber",
76
+ "gold",
77
+ "bronze",
78
+ "gray",
79
+ ],
80
+ ]
81
+ ] = None,
19
82
  access_key: Optional[
20
83
  Union[Var[Union[str, int, bool]], Union[str, int, bool]]
21
84
  ] = None,
@@ -161,6 +224,8 @@ class Strong(el.Strong, CommonMarginProps, RadixThemesComponent):
161
224
 
162
225
  Args:
163
226
  *children: Child components.
227
+ color: map to CSS default color property.
228
+ color_scheme: map to radix color property.
164
229
  access_key: Provides a hint for generating a keyboard shortcut for the current element.
165
230
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
166
231
  content_editable: Indicates whether the element's content is editable.
@@ -18,33 +18,8 @@ class Text(el.Span, CommonMarginProps, RadixThemesComponent):
18
18
  def create( # type: ignore
19
19
  cls,
20
20
  *children,
21
- as_child: Optional[Union[Var[bool], bool]] = None,
22
- as_: Optional[Union[Var[str], str]] = None,
23
- size: Optional[
24
- Union[
25
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
26
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
27
- ]
28
- ] = None,
29
- weight: Optional[
30
- Union[
31
- Var[Literal["light", "regular", "medium", "bold"]],
32
- Literal["light", "regular", "medium", "bold"],
33
- ]
34
- ] = None,
35
- align: Optional[
36
- Union[
37
- Var[Literal["left", "center", "right"]],
38
- Literal["left", "center", "right"],
39
- ]
40
- ] = None,
41
- trim: Optional[
42
- Union[
43
- Var[Literal["normal", "start", "end", "both"]],
44
- Literal["normal", "start", "end", "both"],
45
- ]
46
- ] = None,
47
- color: Optional[
21
+ color: Optional[Union[Var[str], str]] = None,
22
+ color_scheme: Optional[
48
23
  Union[
49
24
  Var[
50
25
  Literal[
@@ -106,6 +81,32 @@ class Text(el.Span, CommonMarginProps, RadixThemesComponent):
106
81
  ],
107
82
  ]
108
83
  ] = None,
84
+ as_child: Optional[Union[Var[bool], bool]] = None,
85
+ as_: Optional[Union[Var[str], str]] = None,
86
+ size: Optional[
87
+ Union[
88
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
89
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
90
+ ]
91
+ ] = None,
92
+ weight: Optional[
93
+ Union[
94
+ Var[Literal["light", "regular", "medium", "bold"]],
95
+ Literal["light", "regular", "medium", "bold"],
96
+ ]
97
+ ] = None,
98
+ align: Optional[
99
+ Union[
100
+ Var[Literal["left", "center", "right"]],
101
+ Literal["left", "center", "right"],
102
+ ]
103
+ ] = None,
104
+ trim: Optional[
105
+ Union[
106
+ Var[Literal["normal", "start", "end", "both"]],
107
+ Literal["normal", "start", "end", "both"],
108
+ ]
109
+ ] = None,
109
110
  high_contrast: Optional[Union[Var[bool], bool]] = None,
110
111
  access_key: Optional[
111
112
  Union[Var[Union[str, int, bool]], Union[str, int, bool]]
@@ -252,13 +253,14 @@ class Text(el.Span, CommonMarginProps, RadixThemesComponent):
252
253
 
253
254
  Args:
254
255
  *children: Child components.
256
+ color: map to CSS default color property.
257
+ color_scheme: map to radix color property.
255
258
  as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
256
259
  as_: Change the default rendered element into a semantically appropriate alternative (cannot be used with asChild)
257
260
  size: Text size: "1" - "9"
258
261
  weight: Thickness of text: "light" | "regular" | "medium" | "bold"
259
262
  align: Alignment of text in element: "left" | "center" | "right"
260
263
  trim: Removes the leading trim space: "normal" | "start" | "end" | "both"
261
- color: Overrides the accent color inherited from the Theme.
262
264
  high_contrast: Whether to render the text with higher contrast color
263
265
  access_key: Provides a hint for generating a keyboard shortcut for the current element.
264
266
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
@@ -0,0 +1,7 @@
1
+ """React Player component for audio and video."""
2
+
3
+ from .audio import Audio
4
+ from .video import Video
5
+
6
+ audio = Audio.create
7
+ video = Video.create
@@ -0,0 +1,8 @@
1
+ """A audio component."""
2
+ from reflex.components.react_player.react_player import ReactPlayer
3
+
4
+
5
+ class Audio(ReactPlayer):
6
+ """Audio component share with Video component."""
7
+
8
+ pass
@@ -1,4 +1,4 @@
1
- """Stub file for reflex/components/media/audio.py"""
1
+ """Stub file for reflex/components/react_player/audio.py"""
2
2
  # ------------------- DO NOT EDIT ----------------------
3
3
  # This file was generated by `scripts/pyi_generator.py`!
4
4
  # ------------------------------------------------------
@@ -7,9 +7,9 @@ from typing import Any, Dict, Literal, Optional, Union, overload
7
7
  from reflex.vars import Var, BaseVar, ComputedVar
8
8
  from reflex.event import EventChain, EventHandler, EventSpec
9
9
  from reflex.style import Style
10
- from reflex.components.libs.react_player import ReactPlayerComponent
10
+ from reflex.components.react_player.react_player import ReactPlayer
11
11
 
12
- class Audio(ReactPlayerComponent):
12
+ class Audio(ReactPlayer):
13
13
  pass
14
14
 
15
15
  @overload
@@ -6,7 +6,7 @@ from reflex.components.component import NoSSRComponent
6
6
  from reflex.vars import Var
7
7
 
8
8
 
9
- class ReactPlayerComponent(NoSSRComponent):
9
+ class ReactPlayer(NoSSRComponent):
10
10
  """Using react-player and not implement all props and callback yet.
11
11
  reference: https://github.com/cookpete/react-player.
12
12
  """