reflex 0.7.13a2__py3-none-any.whl → 0.7.14a1__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 (256) hide show
  1. reflex/.templates/apps/blank/code/blank.py +0 -2
  2. reflex/app.py +64 -69
  3. reflex/app_mixins/lifespan.py +2 -3
  4. reflex/app_mixins/middleware.py +1 -0
  5. reflex/app_mixins/mixin.py +0 -1
  6. reflex/assets.py +6 -3
  7. reflex/base.py +3 -2
  8. reflex/compiler/compiler.py +77 -64
  9. reflex/compiler/utils.py +8 -6
  10. reflex/components/base/app_wrap.pyi +0 -1
  11. reflex/components/base/bare.py +5 -7
  12. reflex/components/base/body.pyi +0 -1
  13. reflex/components/base/document.pyi +0 -5
  14. reflex/components/base/error_boundary.pyi +0 -1
  15. reflex/components/base/fragment.pyi +0 -1
  16. reflex/components/base/head.pyi +0 -2
  17. reflex/components/base/link.pyi +0 -2
  18. reflex/components/base/meta.py +2 -1
  19. reflex/components/base/meta.pyi +0 -4
  20. reflex/components/base/script.py +2 -1
  21. reflex/components/base/script.pyi +0 -1
  22. reflex/components/base/strict_mode.pyi +0 -1
  23. reflex/components/component.py +38 -40
  24. reflex/components/core/auto_scroll.pyi +0 -1
  25. reflex/components/core/banner.pyi +0 -6
  26. reflex/components/core/breakpoints.py +9 -11
  27. reflex/components/core/client_side_routing.pyi +0 -2
  28. reflex/components/core/clipboard.pyi +0 -1
  29. reflex/components/core/colors.py +10 -7
  30. reflex/components/core/cond.py +4 -2
  31. reflex/components/core/debounce.py +5 -3
  32. reflex/components/core/debounce.pyi +0 -1
  33. reflex/components/core/foreach.py +8 -6
  34. reflex/components/core/html.py +3 -3
  35. reflex/components/core/html.pyi +0 -1
  36. reflex/components/core/match.py +19 -17
  37. reflex/components/core/sticky.pyi +0 -4
  38. reflex/components/core/upload.pyi +0 -5
  39. reflex/components/datadisplay/code.py +1 -2
  40. reflex/components/datadisplay/code.pyi +0 -2
  41. reflex/components/datadisplay/dataeditor.py +7 -10
  42. reflex/components/datadisplay/dataeditor.pyi +0 -1
  43. reflex/components/datadisplay/logo.py +3 -4
  44. reflex/components/datadisplay/shiki_code_block.py +8 -11
  45. reflex/components/datadisplay/shiki_code_block.pyi +0 -3
  46. reflex/components/dynamic.py +2 -3
  47. reflex/components/el/__init__.pyi +2 -0
  48. reflex/components/el/element.pyi +0 -1
  49. reflex/components/el/elements/__init__.py +1 -0
  50. reflex/components/el/elements/__init__.pyi +3 -0
  51. reflex/components/el/elements/base.pyi +0 -1
  52. reflex/components/el/elements/forms.py +3 -4
  53. reflex/components/el/elements/forms.pyi +1 -18
  54. reflex/components/el/elements/inline.pyi +0 -28
  55. reflex/components/el/elements/media.py +26 -0
  56. reflex/components/el/elements/media.pyi +259 -25
  57. reflex/components/el/elements/metadata.py +0 -1
  58. reflex/components/el/elements/metadata.pyi +0 -6
  59. reflex/components/el/elements/other.pyi +0 -7
  60. reflex/components/el/elements/scripts.pyi +0 -3
  61. reflex/components/el/elements/sectioning.pyi +0 -15
  62. reflex/components/el/elements/tables.pyi +0 -10
  63. reflex/components/el/elements/typography.pyi +0 -15
  64. reflex/components/gridjs/datatable.py +10 -13
  65. reflex/components/gridjs/datatable.pyi +0 -2
  66. reflex/components/lucide/icon.py +10 -9
  67. reflex/components/lucide/icon.pyi +0 -3
  68. reflex/components/markdown/markdown.py +6 -8
  69. reflex/components/markdown/markdown.pyi +0 -1
  70. reflex/components/moment/moment.pyi +0 -1
  71. reflex/components/next/base.py +0 -2
  72. reflex/components/next/base.pyi +0 -3
  73. reflex/components/next/image.pyi +0 -1
  74. reflex/components/next/link.pyi +0 -1
  75. reflex/components/next/video.pyi +0 -1
  76. reflex/components/plotly/plotly.pyi +0 -9
  77. reflex/components/props.py +4 -3
  78. reflex/components/radix/primitives/accordion.pyi +0 -7
  79. reflex/components/radix/primitives/base.py +1 -3
  80. reflex/components/radix/primitives/base.pyi +0 -2
  81. reflex/components/radix/primitives/drawer.pyi +0 -11
  82. reflex/components/radix/primitives/form.py +4 -8
  83. reflex/components/radix/primitives/form.pyi +0 -12
  84. reflex/components/radix/primitives/progress.py +1 -1
  85. reflex/components/radix/primitives/progress.pyi +0 -5
  86. reflex/components/radix/primitives/slider.py +1 -1
  87. reflex/components/radix/primitives/slider.pyi +0 -5
  88. reflex/components/radix/themes/base.pyi +0 -8
  89. reflex/components/radix/themes/color_mode.pyi +0 -3
  90. reflex/components/radix/themes/components/alert_dialog.py +4 -2
  91. reflex/components/radix/themes/components/alert_dialog.pyi +4 -9
  92. reflex/components/radix/themes/components/aspect_ratio.py +1 -2
  93. reflex/components/radix/themes/components/aspect_ratio.pyi +1 -3
  94. reflex/components/radix/themes/components/avatar.py +5 -2
  95. reflex/components/radix/themes/components/avatar.pyi +1 -3
  96. reflex/components/radix/themes/components/badge.py +5 -2
  97. reflex/components/radix/themes/components/badge.pyi +1 -3
  98. reflex/components/radix/themes/components/button.py +2 -3
  99. reflex/components/radix/themes/components/button.pyi +1 -3
  100. reflex/components/radix/themes/components/callout.py +1 -2
  101. reflex/components/radix/themes/components/callout.pyi +1 -7
  102. reflex/components/radix/themes/components/card.py +1 -2
  103. reflex/components/radix/themes/components/card.pyi +1 -3
  104. reflex/components/radix/themes/components/checkbox.py +7 -4
  105. reflex/components/radix/themes/components/checkbox.pyi +1 -5
  106. reflex/components/radix/themes/components/checkbox_cards.py +1 -2
  107. reflex/components/radix/themes/components/checkbox_cards.pyi +1 -4
  108. reflex/components/radix/themes/components/checkbox_group.py +1 -2
  109. reflex/components/radix/themes/components/checkbox_group.pyi +1 -4
  110. reflex/components/radix/themes/components/context_menu.py +1 -1
  111. reflex/components/radix/themes/components/context_menu.pyi +1 -14
  112. reflex/components/radix/themes/components/data_list.py +1 -2
  113. reflex/components/radix/themes/components/data_list.pyi +1 -6
  114. reflex/components/radix/themes/components/dialog.py +4 -2
  115. reflex/components/radix/themes/components/dialog.pyi +4 -9
  116. reflex/components/radix/themes/components/dropdown_menu.py +5 -2
  117. reflex/components/radix/themes/components/dropdown_menu.pyi +4 -10
  118. reflex/components/radix/themes/components/hover_card.py +4 -2
  119. reflex/components/radix/themes/components/hover_card.pyi +4 -6
  120. reflex/components/radix/themes/components/icon_button.py +7 -8
  121. reflex/components/radix/themes/components/icon_button.pyi +1 -3
  122. reflex/components/radix/themes/components/inset.py +1 -2
  123. reflex/components/radix/themes/components/inset.pyi +1 -3
  124. reflex/components/radix/themes/components/popover.py +4 -2
  125. reflex/components/radix/themes/components/popover.pyi +4 -6
  126. reflex/components/radix/themes/components/progress.py +1 -2
  127. reflex/components/radix/themes/components/progress.pyi +1 -3
  128. reflex/components/radix/themes/components/radio.py +1 -2
  129. reflex/components/radix/themes/components/radio.pyi +1 -3
  130. reflex/components/radix/themes/components/radio_cards.py +1 -2
  131. reflex/components/radix/themes/components/radio_cards.pyi +1 -4
  132. reflex/components/radix/themes/components/radio_group.py +7 -5
  133. reflex/components/radix/themes/components/radio_group.pyi +1 -6
  134. reflex/components/radix/themes/components/scroll_area.py +1 -2
  135. reflex/components/radix/themes/components/scroll_area.pyi +1 -3
  136. reflex/components/radix/themes/components/segmented_control.py +1 -2
  137. reflex/components/radix/themes/components/segmented_control.pyi +1 -4
  138. reflex/components/radix/themes/components/select.py +5 -2
  139. reflex/components/radix/themes/components/select.pyi +1 -11
  140. reflex/components/radix/themes/components/separator.py +1 -2
  141. reflex/components/radix/themes/components/separator.pyi +1 -3
  142. reflex/components/radix/themes/components/skeleton.py +1 -2
  143. reflex/components/radix/themes/components/skeleton.pyi +1 -3
  144. reflex/components/radix/themes/components/slider.py +1 -2
  145. reflex/components/radix/themes/components/slider.pyi +1 -3
  146. reflex/components/radix/themes/components/spinner.py +1 -2
  147. reflex/components/radix/themes/components/spinner.pyi +1 -3
  148. reflex/components/radix/themes/components/switch.py +1 -2
  149. reflex/components/radix/themes/components/switch.pyi +1 -3
  150. reflex/components/radix/themes/components/table.py +1 -2
  151. reflex/components/radix/themes/components/table.pyi +1 -9
  152. reflex/components/radix/themes/components/tabs.py +1 -2
  153. reflex/components/radix/themes/components/tabs.pyi +1 -7
  154. reflex/components/radix/themes/components/text_area.py +5 -2
  155. reflex/components/radix/themes/components/text_area.pyi +1 -3
  156. reflex/components/radix/themes/components/text_field.py +5 -2
  157. reflex/components/radix/themes/components/text_field.pyi +1 -5
  158. reflex/components/radix/themes/components/tooltip.py +1 -2
  159. reflex/components/radix/themes/components/tooltip.pyi +1 -3
  160. reflex/components/radix/themes/layout/base.py +5 -2
  161. reflex/components/radix/themes/layout/base.pyi +5 -3
  162. reflex/components/radix/themes/layout/box.py +1 -2
  163. reflex/components/radix/themes/layout/box.pyi +1 -3
  164. reflex/components/radix/themes/layout/center.pyi +0 -1
  165. reflex/components/radix/themes/layout/container.py +1 -2
  166. reflex/components/radix/themes/layout/container.pyi +1 -3
  167. reflex/components/radix/themes/layout/flex.py +6 -2
  168. reflex/components/radix/themes/layout/flex.pyi +1 -3
  169. reflex/components/radix/themes/layout/grid.py +6 -2
  170. reflex/components/radix/themes/layout/grid.pyi +1 -3
  171. reflex/components/radix/themes/layout/list.py +2 -1
  172. reflex/components/radix/themes/layout/list.pyi +0 -5
  173. reflex/components/radix/themes/layout/section.py +1 -2
  174. reflex/components/radix/themes/layout/section.pyi +1 -3
  175. reflex/components/radix/themes/layout/spacer.pyi +0 -1
  176. reflex/components/radix/themes/layout/stack.py +1 -1
  177. reflex/components/radix/themes/layout/stack.pyi +0 -3
  178. reflex/components/radix/themes/typography/blockquote.py +1 -1
  179. reflex/components/radix/themes/typography/blockquote.pyi +1 -3
  180. reflex/components/radix/themes/typography/code.py +5 -1
  181. reflex/components/radix/themes/typography/code.pyi +1 -3
  182. reflex/components/radix/themes/typography/heading.py +1 -1
  183. reflex/components/radix/themes/typography/heading.pyi +1 -3
  184. reflex/components/radix/themes/typography/link.py +3 -2
  185. reflex/components/radix/themes/typography/link.pyi +1 -3
  186. reflex/components/radix/themes/typography/text.py +1 -1
  187. reflex/components/radix/themes/typography/text.pyi +1 -9
  188. reflex/components/react_player/audio.py +0 -2
  189. reflex/components/react_player/audio.pyi +0 -3
  190. reflex/components/react_player/react_player.pyi +0 -1
  191. reflex/components/react_player/video.py +0 -2
  192. reflex/components/react_player/video.pyi +0 -3
  193. reflex/components/recharts/__init__.py +1 -1
  194. reflex/components/recharts/__init__.pyi +1 -1
  195. reflex/components/recharts/cartesian.py +20 -25
  196. reflex/components/recharts/cartesian.pyi +20 -37
  197. reflex/components/recharts/charts.py +2 -1
  198. reflex/components/recharts/charts.pyi +0 -12
  199. reflex/components/recharts/general.pyi +0 -6
  200. reflex/components/recharts/polar.py +5 -4
  201. reflex/components/recharts/polar.pyi +4 -10
  202. reflex/components/recharts/recharts.py +12 -10
  203. reflex/components/recharts/recharts.pyi +10 -11
  204. reflex/components/sonner/toast.py +2 -2
  205. reflex/components/sonner/toast.pyi +0 -2
  206. reflex/components/suneditor/editor.py +2 -1
  207. reflex/components/suneditor/editor.pyi +0 -1
  208. reflex/components/tags/iter_tag.py +4 -2
  209. reflex/config.py +47 -35
  210. reflex/constants/base.py +3 -3
  211. reflex/constants/compiler.py +8 -6
  212. reflex/constants/installer.py +24 -15
  213. reflex/custom_components/custom_components.py +1 -2
  214. reflex/event.py +58 -60
  215. reflex/experimental/__init__.py +2 -2
  216. reflex/experimental/client_state.py +9 -4
  217. reflex/experimental/layout.pyi +0 -5
  218. reflex/istate/manager.py +15 -19
  219. reflex/istate/proxy.py +19 -12
  220. reflex/model.py +6 -4
  221. reflex/plugins/base.py +8 -0
  222. reflex/plugins/tailwind_v3.py +8 -0
  223. reflex/plugins/tailwind_v4.py +8 -0
  224. reflex/reflex.py +9 -11
  225. reflex/route.py +7 -9
  226. reflex/state.py +66 -70
  227. reflex/style.py +3 -1
  228. reflex/testing.py +46 -29
  229. reflex/utils/build.py +2 -1
  230. reflex/utils/console.py +9 -17
  231. reflex/utils/exec.py +9 -11
  232. reflex/utils/format.py +21 -24
  233. reflex/utils/imports.py +4 -3
  234. reflex/utils/lazy_loader.py +3 -3
  235. reflex/utils/misc.py +2 -1
  236. reflex/utils/net.py +2 -2
  237. reflex/utils/path_ops.py +2 -1
  238. reflex/utils/prerequisites.py +67 -38
  239. reflex/utils/processes.py +4 -6
  240. reflex/utils/pyi_generator.py +46 -41
  241. reflex/utils/redir.py +1 -1
  242. reflex/utils/serializers.py +4 -4
  243. reflex/utils/telemetry.py +42 -4
  244. reflex/utils/types.py +16 -13
  245. reflex/vars/base.py +96 -109
  246. reflex/vars/datetime.py +2 -1
  247. reflex/vars/dep_tracking.py +19 -28
  248. reflex/vars/number.py +6 -7
  249. reflex/vars/object.py +5 -6
  250. reflex/vars/sequence.py +11 -11
  251. {reflex-0.7.13a2.dist-info → reflex-0.7.14a1.dist-info}/METADATA +1 -1
  252. reflex-0.7.14a1.dist-info/RECORD +407 -0
  253. reflex-0.7.13a2.dist-info/RECORD +0 -407
  254. {reflex-0.7.13a2.dist-info → reflex-0.7.14a1.dist-info}/WHEEL +0 -0
  255. {reflex-0.7.13a2.dist-info → reflex-0.7.14a1.dist-info}/entry_points.txt +0 -0
  256. {reflex-0.7.13a2.dist-info → reflex-0.7.14a1.dist-info}/licenses/LICENSE +0 -0
@@ -145,7 +145,6 @@ class Plotly(NoSSRComponent):
145
145
  Returns:
146
146
  The Plotly component.
147
147
  """
148
- ...
149
148
 
150
149
  CREATE_PLOTLY_COMPONENT: ImportDict
151
150
 
@@ -250,7 +249,6 @@ class PlotlyBasic(Plotly):
250
249
  Returns:
251
250
  The Plotly component.
252
251
  """
253
- ...
254
252
 
255
253
  class PlotlyCartesian(Plotly):
256
254
  def add_imports(self) -> ImportDict | list[ImportDict]: ...
@@ -351,7 +349,6 @@ class PlotlyCartesian(Plotly):
351
349
  Returns:
352
350
  The Plotly component.
353
351
  """
354
- ...
355
352
 
356
353
  class PlotlyGeo(Plotly):
357
354
  def add_imports(self) -> ImportDict | list[ImportDict]: ...
@@ -452,7 +449,6 @@ class PlotlyGeo(Plotly):
452
449
  Returns:
453
450
  The Plotly component.
454
451
  """
455
- ...
456
452
 
457
453
  class PlotlyGl3d(Plotly):
458
454
  def add_imports(self) -> ImportDict | list[ImportDict]: ...
@@ -553,7 +549,6 @@ class PlotlyGl3d(Plotly):
553
549
  Returns:
554
550
  The Plotly component.
555
551
  """
556
- ...
557
552
 
558
553
  class PlotlyGl2d(Plotly):
559
554
  def add_imports(self) -> ImportDict | list[ImportDict]: ...
@@ -654,7 +649,6 @@ class PlotlyGl2d(Plotly):
654
649
  Returns:
655
650
  The Plotly component.
656
651
  """
657
- ...
658
652
 
659
653
  class PlotlyMapbox(Plotly):
660
654
  def add_imports(self) -> ImportDict | list[ImportDict]: ...
@@ -755,7 +749,6 @@ class PlotlyMapbox(Plotly):
755
749
  Returns:
756
750
  The Plotly component.
757
751
  """
758
- ...
759
752
 
760
753
  class PlotlyFinance(Plotly):
761
754
  def add_imports(self) -> ImportDict | list[ImportDict]: ...
@@ -856,7 +849,6 @@ class PlotlyFinance(Plotly):
856
849
  Returns:
857
850
  The Plotly component.
858
851
  """
859
- ...
860
852
 
861
853
  class PlotlyStrict(Plotly):
862
854
  def add_imports(self) -> ImportDict | list[ImportDict]: ...
@@ -957,4 +949,3 @@ class PlotlyStrict(Plotly):
957
949
  Returns:
958
950
  The Plotly component.
959
951
  """
960
- ...
@@ -31,6 +31,7 @@ class PropsBase(Base):
31
31
  """Convert the object to a dictionary.
32
32
 
33
33
  Keys will be converted to camelCase.
34
+ By default, None values are excluded (exclude_none=True).
34
35
 
35
36
  Args:
36
37
  *args: Arguments to pass to the parent class.
@@ -39,6 +40,7 @@ class PropsBase(Base):
39
40
  Returns:
40
41
  The object as a dictionary.
41
42
  """
43
+ kwargs.setdefault("exclude_none", True)
42
44
  return {
43
45
  format.to_camel_case(key): value
44
46
  for key, value in super().dict(*args, **kwargs).items()
@@ -64,9 +66,8 @@ class NoExtrasAllowedProps(Base):
64
66
  except ValidationError as e:
65
67
  invalid_fields = ", ".join([error["loc"][0] for error in e.errors()]) # pyright: ignore [reportCallIssue, reportArgumentType]
66
68
  supported_props_str = ", ".join(f'"{field}"' for field in self.get_fields())
67
- raise InvalidPropValueError(
68
- f"Invalid prop(s) {invalid_fields} for {component_name!r}. Supported props are {supported_props_str}"
69
- ) from None
69
+ msg = f"Invalid prop(s) {invalid_fields} for {component_name!r}. Supported props are {supported_props_str}"
70
+ raise InvalidPropValueError(msg) from None
70
71
 
71
72
  class Config: # pyright: ignore [reportIncompatibleVariableOverride]
72
73
  """Pydantic config."""
@@ -137,7 +137,6 @@ class AccordionComponent(RadixPrimitiveComponent):
137
137
  Returns:
138
138
  The component.
139
139
  """
140
- ...
141
140
 
142
141
  def on_value_change(value: Var[str | list[str]]) -> tuple[Var[str | list[str]]]: ...
143
142
 
@@ -288,7 +287,6 @@ class AccordionRoot(AccordionComponent):
288
287
  Returns:
289
288
  The component.
290
289
  """
291
- ...
292
290
 
293
291
  class AccordionItem(AccordionComponent):
294
292
  @overload
@@ -414,7 +412,6 @@ class AccordionItem(AccordionComponent):
414
412
  Returns:
415
413
  The accordion item.
416
414
  """
417
- ...
418
415
 
419
416
  def add_style(self) -> dict[str, Any] | None: ...
420
417
 
@@ -534,7 +531,6 @@ class AccordionHeader(AccordionComponent):
534
531
  Returns:
535
532
  The Accordion header Component.
536
533
  """
537
- ...
538
534
 
539
535
  def add_style(self) -> dict[str, Any] | None: ...
540
536
 
@@ -654,7 +650,6 @@ class AccordionTrigger(AccordionComponent):
654
650
  Returns:
655
651
  The Accordion trigger Component.
656
652
  """
657
- ...
658
653
 
659
654
  def add_style(self) -> dict[str, Any] | None: ...
660
655
 
@@ -710,7 +705,6 @@ class AccordionIcon(Icon):
710
705
  Returns:
711
706
  The Accordion icon Component.
712
707
  """
713
- ...
714
708
 
715
709
  class AccordionContent(AccordionComponent):
716
710
  def add_imports(self) -> dict: ...
@@ -829,7 +823,6 @@ class AccordionContent(AccordionComponent):
829
823
  Returns:
830
824
  The Accordion content Component.
831
825
  """
832
- ...
833
826
 
834
827
  def add_custom_code(self) -> list[str]: ...
835
828
  def add_style(self) -> dict[str, Any] | None: ...
@@ -21,8 +21,6 @@ class RadixPrimitiveComponentWithClassName(RadixPrimitiveComponent):
21
21
  super()
22
22
  ._render()
23
23
  .add_props(
24
- **{
25
- "class_name": f"{format.to_title_case(self.tag or '')} {self.class_name or ''}",
26
- }
24
+ class_name=f"{format.to_title_case(self.tag or '')} {self.class_name or ''}"
27
25
  )
28
26
  )
@@ -63,7 +63,6 @@ class RadixPrimitiveComponent(Component):
63
63
  Returns:
64
64
  The component.
65
65
  """
66
- ...
67
66
 
68
67
  class RadixPrimitiveComponentWithClassName(RadixPrimitiveComponent):
69
68
  @overload
@@ -117,4 +116,3 @@ class RadixPrimitiveComponentWithClassName(RadixPrimitiveComponent):
117
116
  Returns:
118
117
  The component.
119
118
  """
120
- ...
@@ -64,7 +64,6 @@ class DrawerComponent(RadixPrimitiveComponent):
64
64
  Returns:
65
65
  The component.
66
66
  """
67
- ...
68
67
 
69
68
  LiteralDirectionType = Literal["top", "bottom", "left", "right"]
70
69
 
@@ -150,7 +149,6 @@ class DrawerRoot(DrawerComponent):
150
149
  Returns:
151
150
  The component.
152
151
  """
153
- ...
154
152
 
155
153
  class DrawerTrigger(DrawerComponent):
156
154
  @overload
@@ -204,7 +202,6 @@ class DrawerTrigger(DrawerComponent):
204
202
  Returns:
205
203
  The new DrawerTrigger instance.
206
204
  """
207
- ...
208
205
 
209
206
  class DrawerPortal(DrawerComponent):
210
207
  @overload
@@ -258,7 +255,6 @@ class DrawerPortal(DrawerComponent):
258
255
  Returns:
259
256
  The component.
260
257
  """
261
- ...
262
258
 
263
259
  class DrawerContent(DrawerComponent):
264
260
  @overload
@@ -321,7 +317,6 @@ class DrawerContent(DrawerComponent):
321
317
  Returns:
322
318
  The drawer content.
323
319
  """
324
- ...
325
320
 
326
321
  class DrawerOverlay(DrawerComponent):
327
322
  @overload
@@ -375,7 +370,6 @@ class DrawerOverlay(DrawerComponent):
375
370
  Returns:
376
371
  The component.
377
372
  """
378
- ...
379
373
 
380
374
  class DrawerClose(DrawerTrigger):
381
375
  @overload
@@ -429,7 +423,6 @@ class DrawerClose(DrawerTrigger):
429
423
  Returns:
430
424
  The new DrawerTrigger instance.
431
425
  """
432
- ...
433
426
 
434
427
  class DrawerTitle(DrawerComponent):
435
428
  @overload
@@ -483,7 +476,6 @@ class DrawerTitle(DrawerComponent):
483
476
  Returns:
484
477
  The component.
485
478
  """
486
- ...
487
479
 
488
480
  class DrawerDescription(DrawerComponent):
489
481
  @overload
@@ -537,7 +529,6 @@ class DrawerDescription(DrawerComponent):
537
529
  Returns:
538
530
  The component.
539
531
  """
540
- ...
541
532
 
542
533
  class DrawerHandle(DrawerComponent):
543
534
  @overload
@@ -591,7 +582,6 @@ class DrawerHandle(DrawerComponent):
591
582
  Returns:
592
583
  The component.
593
584
  """
594
- ...
595
585
 
596
586
  class Drawer(ComponentNamespace):
597
587
  root = staticmethod(DrawerRoot.create)
@@ -683,6 +673,5 @@ class Drawer(ComponentNamespace):
683
673
  Returns:
684
674
  The component.
685
675
  """
686
- ...
687
676
 
688
677
  drawer = Drawer()
@@ -100,14 +100,12 @@ class FormControl(FormComponent):
100
100
  The form control component.
101
101
  """
102
102
  if len(children) > 1:
103
- raise ValueError(
104
- f"FormControl can only have at most one child, got {len(children)} children"
105
- )
103
+ msg = f"FormControl can only have at most one child, got {len(children)} children"
104
+ raise ValueError(msg)
106
105
  for child in children:
107
106
  if not isinstance(child, (TextFieldRoot, DebounceInput)):
108
- raise TypeError(
109
- "Only Radix TextFieldRoot and DebounceInput are allowed as children of FormControl"
110
- )
107
+ msg = "Only Radix TextFieldRoot and DebounceInput are allowed as children of FormControl"
108
+ raise TypeError(msg)
111
109
  return super().create(*children, **props)
112
110
 
113
111
 
@@ -168,8 +166,6 @@ class FormSubmit(FormComponent):
168
166
  class Form(FormRoot):
169
167
  """The Form component."""
170
168
 
171
- pass
172
-
173
169
 
174
170
  class FormNamespace(ComponentNamespace):
175
171
  """Form components."""
@@ -66,7 +66,6 @@ class FormComponent(RadixPrimitiveComponentWithClassName):
66
66
  Returns:
67
67
  The component.
68
68
  """
69
- ...
70
69
 
71
70
  class FormRoot(FormComponent, HTMLForm):
72
71
  def add_style(self) -> dict[str, Any] | None: ...
@@ -341,7 +340,6 @@ class FormRoot(FormComponent, HTMLForm):
341
340
  Returns:
342
341
  The form component.
343
342
  """
344
- ...
345
343
 
346
344
  class FormField(FormComponent):
347
345
  def add_style(self) -> dict[str, Any] | None: ...
@@ -400,7 +398,6 @@ class FormField(FormComponent):
400
398
  Returns:
401
399
  The component.
402
400
  """
403
- ...
404
401
 
405
402
  class FormLabel(FormComponent):
406
403
  def add_style(self) -> dict[str, Any] | None: ...
@@ -455,7 +452,6 @@ class FormLabel(FormComponent):
455
452
  Returns:
456
453
  The component.
457
454
  """
458
- ...
459
455
 
460
456
  class FormControl(FormComponent):
461
457
  @overload
@@ -513,7 +509,6 @@ class FormControl(FormComponent):
513
509
  Returns:
514
510
  The form control component.
515
511
  """
516
- ...
517
512
 
518
513
  LiteralMatcher = Literal[
519
514
  "badInput",
@@ -613,7 +608,6 @@ class FormMessage(FormComponent):
613
608
  Returns:
614
609
  The component.
615
610
  """
616
- ...
617
611
 
618
612
  class FormValidityState(FormComponent):
619
613
  @overload
@@ -667,7 +661,6 @@ class FormValidityState(FormComponent):
667
661
  Returns:
668
662
  The component.
669
663
  """
670
- ...
671
664
 
672
665
  class FormSubmit(FormComponent):
673
666
  @overload
@@ -721,11 +714,8 @@ class FormSubmit(FormComponent):
721
714
  Returns:
722
715
  The component.
723
716
  """
724
- ...
725
717
 
726
718
  class Form(FormRoot):
727
- pass
728
-
729
719
  @overload
730
720
  @classmethod
731
721
  def create( # type: ignore
@@ -997,7 +987,6 @@ class Form(FormRoot):
997
987
  Returns:
998
988
  The form component.
999
989
  """
1000
- ...
1001
990
 
1002
991
  class FormNamespace(ComponentNamespace):
1003
992
  root = staticmethod(FormRoot.create)
@@ -1277,6 +1266,5 @@ class FormNamespace(ComponentNamespace):
1277
1266
  Returns:
1278
1267
  The form component.
1279
1268
  """
1280
- ...
1281
1269
 
1282
1270
  form = FormNamespace()
@@ -15,7 +15,7 @@ from reflex.vars.base import Var
15
15
  class ProgressComponent(RadixPrimitiveComponentWithClassName):
16
16
  """A Progress component."""
17
17
 
18
- library = "@radix-ui/react-progress@1.1.6"
18
+ library = "@radix-ui/react-progress@1.1.7"
19
19
 
20
20
 
21
21
  class ProgressRoot(ProgressComponent):
@@ -64,7 +64,6 @@ class ProgressComponent(RadixPrimitiveComponentWithClassName):
64
64
  Returns:
65
65
  The component.
66
66
  """
67
- ...
68
67
 
69
68
  class ProgressRoot(ProgressComponent):
70
69
  def add_style(self) -> dict[str, Any] | None: ...
@@ -123,7 +122,6 @@ class ProgressRoot(ProgressComponent):
123
122
  Returns:
124
123
  The component.
125
124
  """
126
- ...
127
125
 
128
126
  class ProgressIndicator(ProgressComponent):
129
127
  def add_style(self) -> dict[str, Any] | None: ...
@@ -242,7 +240,6 @@ class ProgressIndicator(ProgressComponent):
242
240
  Returns:
243
241
  The component.
244
242
  """
245
- ...
246
243
 
247
244
  class Progress(ProgressRoot):
248
245
  @overload
@@ -363,7 +360,6 @@ class Progress(ProgressRoot):
363
360
  Returns:
364
361
  The progress bar.
365
362
  """
366
- ...
367
363
 
368
364
  class ProgressNamespace(ComponentNamespace):
369
365
  root = staticmethod(ProgressRoot.create)
@@ -485,6 +481,5 @@ class ProgressNamespace(ComponentNamespace):
485
481
  Returns:
486
482
  The progress bar.
487
483
  """
488
- ...
489
484
 
490
485
  progress = ProgressNamespace()
@@ -17,7 +17,7 @@ LiteralSliderDir = Literal["ltr", "rtl"]
17
17
  class SliderComponent(RadixPrimitiveComponentWithClassName):
18
18
  """Base class for all @radix-ui/react-slider components."""
19
19
 
20
- library = "@radix-ui/react-slider@1.3.4"
20
+ library = "@radix-ui/react-slider@1.3.5"
21
21
 
22
22
 
23
23
  def on_value_event_spec(
@@ -67,7 +67,6 @@ class SliderComponent(RadixPrimitiveComponentWithClassName):
67
67
  Returns:
68
68
  The component.
69
69
  """
70
- ...
71
70
 
72
71
  def on_value_event_spec(value: Var[list[int]]) -> tuple[Var[list[int]]]: ...
73
72
 
@@ -141,7 +140,6 @@ class SliderRoot(SliderComponent):
141
140
  Returns:
142
141
  The component.
143
142
  """
144
- ...
145
143
 
146
144
  class SliderTrack(SliderComponent):
147
145
  def add_style(self) -> dict[str, Any] | None: ...
@@ -196,7 +194,6 @@ class SliderTrack(SliderComponent):
196
194
  Returns:
197
195
  The component.
198
196
  """
199
- ...
200
197
 
201
198
  class SliderRange(SliderComponent):
202
199
  def add_style(self) -> dict[str, Any] | None: ...
@@ -251,7 +248,6 @@ class SliderRange(SliderComponent):
251
248
  Returns:
252
249
  The component.
253
250
  """
254
- ...
255
251
 
256
252
  class SliderThumb(SliderComponent):
257
253
  def add_style(self) -> dict[str, Any] | None: ...
@@ -306,7 +302,6 @@ class SliderThumb(SliderComponent):
306
302
  Returns:
307
303
  The component.
308
304
  """
309
- ...
310
305
 
311
306
  class Slider(ComponentNamespace):
312
307
  root = staticmethod(SliderRoot.create)
@@ -128,7 +128,6 @@ class CommonMarginProps(Component):
128
128
  Returns:
129
129
  The component.
130
130
  """
131
- ...
132
131
 
133
132
  class CommonPaddingProps(Component):
134
133
  @overload
@@ -236,7 +235,6 @@ class CommonPaddingProps(Component):
236
235
  Returns:
237
236
  The component.
238
237
  """
239
- ...
240
238
 
241
239
  class RadixLoadingProp(Component):
242
240
  @overload
@@ -290,7 +288,6 @@ class RadixLoadingProp(Component):
290
288
  Returns:
291
289
  The component.
292
290
  """
293
- ...
294
291
 
295
292
  class RadixThemesComponent(Component):
296
293
  @overload
@@ -345,7 +342,6 @@ class RadixThemesComponent(Component):
345
342
  Returns:
346
343
  A new component instance.
347
344
  """
348
- ...
349
345
 
350
346
  class RadixThemesTriggerComponent(RadixThemesComponent):
351
347
  @overload
@@ -390,7 +386,6 @@ class RadixThemesTriggerComponent(RadixThemesComponent):
390
386
  Returns:
391
387
  The new RadixThemesTriggerComponent instance.
392
388
  """
393
- ...
394
389
 
395
390
  class Theme(RadixThemesComponent):
396
391
  @overload
@@ -528,7 +523,6 @@ class Theme(RadixThemesComponent):
528
523
  Returns:
529
524
  A new component instance.
530
525
  """
531
- ...
532
526
 
533
527
  def add_imports(self) -> ImportDict | list[ImportDict]: ...
534
528
 
@@ -588,7 +582,6 @@ class ThemePanel(RadixThemesComponent):
588
582
  Returns:
589
583
  A new component instance.
590
584
  """
591
- ...
592
585
 
593
586
  class RadixThemesColorModeProvider(Component):
594
587
  @overload
@@ -640,7 +633,6 @@ class RadixThemesColorModeProvider(Component):
640
633
  Returns:
641
634
  The component.
642
635
  """
643
- ...
644
636
 
645
637
  theme = Theme.create
646
638
  theme_panel = ThemePanel.create
@@ -63,7 +63,6 @@ class ColorModeIcon(Cond):
63
63
  Returns:
64
64
  The conditionally rendered component
65
65
  """
66
- ...
67
66
 
68
67
  LiteralPosition = Literal["top-left", "top-right", "bottom-left", "bottom-right"]
69
68
  position_values: list[str]
@@ -424,7 +423,6 @@ class ColorModeIconButton(IconButton):
424
423
  Returns:
425
424
  The button component.
426
425
  """
427
- ...
428
426
 
429
427
  class ColorModeSwitch(Switch):
430
428
  @overload
@@ -567,7 +565,6 @@ class ColorModeSwitch(Switch):
567
565
  Returns:
568
566
  The switch component.
569
567
  """
570
- ...
571
568
 
572
569
  class ColorModeNamespace(Var):
573
570
  icon = staticmethod(ColorModeIcon.create)
@@ -5,12 +5,14 @@ from typing import Literal
5
5
  from reflex.components.component import ComponentNamespace
6
6
  from reflex.components.core.breakpoints import Responsive
7
7
  from reflex.components.el import elements
8
+ from reflex.components.radix.themes.base import (
9
+ RadixThemesComponent,
10
+ RadixThemesTriggerComponent,
11
+ )
8
12
  from reflex.constants.compiler import MemoizationMode
9
13
  from reflex.event import EventHandler, no_args_event_spec, passthrough_event_spec
10
14
  from reflex.vars.base import Var
11
15
 
12
- from ..base import RadixThemesComponent, RadixThemesTriggerComponent
13
-
14
16
  LiteralContentSize = Literal["1", "2", "3", "4"]
15
17
 
16
18
 
@@ -9,11 +9,13 @@ from typing import Any, Literal, overload
9
9
  from reflex.components.component import ComponentNamespace
10
10
  from reflex.components.core.breakpoints import Breakpoints
11
11
  from reflex.components.el import elements
12
+ from reflex.components.radix.themes.base import (
13
+ RadixThemesComponent,
14
+ RadixThemesTriggerComponent,
15
+ )
12
16
  from reflex.event import EventType
13
17
  from reflex.vars.base import Var
14
18
 
15
- from ..base import RadixThemesComponent, RadixThemesTriggerComponent
16
-
17
19
  LiteralContentSize = Literal["1", "2", "3", "4"]
18
20
 
19
21
  class AlertDialogRoot(RadixThemesComponent):
@@ -75,7 +77,6 @@ class AlertDialogRoot(RadixThemesComponent):
75
77
  Returns:
76
78
  A new component instance.
77
79
  """
78
- ...
79
80
 
80
81
  class AlertDialogTrigger(RadixThemesTriggerComponent):
81
82
  @overload
@@ -120,7 +121,6 @@ class AlertDialogTrigger(RadixThemesTriggerComponent):
120
121
  Returns:
121
122
  The new RadixThemesTriggerComponent instance.
122
123
  """
123
- ...
124
124
 
125
125
  class AlertDialogContent(elements.Div, RadixThemesComponent):
126
126
  @overload
@@ -384,7 +384,6 @@ class AlertDialogContent(elements.Div, RadixThemesComponent):
384
384
  Returns:
385
385
  A new component instance.
386
386
  """
387
- ...
388
387
 
389
388
  class AlertDialogTitle(RadixThemesComponent):
390
389
  @overload
@@ -439,7 +438,6 @@ class AlertDialogTitle(RadixThemesComponent):
439
438
  Returns:
440
439
  A new component instance.
441
440
  """
442
- ...
443
441
 
444
442
  class AlertDialogDescription(RadixThemesComponent):
445
443
  @overload
@@ -494,7 +492,6 @@ class AlertDialogDescription(RadixThemesComponent):
494
492
  Returns:
495
493
  A new component instance.
496
494
  """
497
- ...
498
495
 
499
496
  class AlertDialogAction(RadixThemesTriggerComponent):
500
497
  @overload
@@ -539,7 +536,6 @@ class AlertDialogAction(RadixThemesTriggerComponent):
539
536
  Returns:
540
537
  The new RadixThemesTriggerComponent instance.
541
538
  """
542
- ...
543
539
 
544
540
  class AlertDialogCancel(RadixThemesTriggerComponent):
545
541
  @overload
@@ -584,7 +580,6 @@ class AlertDialogCancel(RadixThemesTriggerComponent):
584
580
  Returns:
585
581
  The new RadixThemesTriggerComponent instance.
586
582
  """
587
- ...
588
583
 
589
584
  class AlertDialog(ComponentNamespace):
590
585
  root = staticmethod(AlertDialogRoot.create)
@@ -1,9 +1,8 @@
1
1
  """Interactive components provided by @radix-ui/themes."""
2
2
 
3
+ from reflex.components.radix.themes.base import RadixThemesComponent
3
4
  from reflex.vars.base import Var
4
5
 
5
- from ..base import RadixThemesComponent
6
-
7
6
 
8
7
  class AspectRatio(RadixThemesComponent):
9
8
  """Displays content with a desired ratio."""
@@ -7,11 +7,10 @@ from collections.abc import Mapping, Sequence
7
7
  from typing import Any, overload
8
8
 
9
9
  from reflex.components.core.breakpoints import Breakpoints
10
+ from reflex.components.radix.themes.base import RadixThemesComponent
10
11
  from reflex.event import EventType
11
12
  from reflex.vars.base import Var
12
13
 
13
- from ..base import RadixThemesComponent
14
-
15
14
  class AspectRatio(RadixThemesComponent):
16
15
  @overload
17
16
  @classmethod
@@ -67,6 +66,5 @@ class AspectRatio(RadixThemesComponent):
67
66
  Returns:
68
67
  A new component instance.
69
68
  """
70
- ...
71
69
 
72
70
  aspect_ratio = AspectRatio.create
@@ -3,10 +3,13 @@
3
3
  from typing import Literal
4
4
 
5
5
  from reflex.components.core.breakpoints import Responsive
6
+ from reflex.components.radix.themes.base import (
7
+ LiteralAccentColor,
8
+ LiteralRadius,
9
+ RadixThemesComponent,
10
+ )
6
11
  from reflex.vars.base import Var
7
12
 
8
- from ..base import LiteralAccentColor, LiteralRadius, RadixThemesComponent
9
-
10
13
  LiteralSize = Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
11
14
 
12
15