reflex 0.3.9a3__py3-none-any.whl → 0.3.10__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 (247) hide show
  1. reflex/__init__.py +3 -1
  2. reflex/__init__.pyi +3 -1
  3. reflex/app.py +116 -86
  4. reflex/compiler/compiler.py +110 -0
  5. reflex/compiler/utils.py +13 -12
  6. reflex/components/base/app_wrap.pyi +1 -0
  7. reflex/components/base/body.pyi +2 -0
  8. reflex/components/base/document.pyi +10 -0
  9. reflex/components/base/fragment.pyi +2 -0
  10. reflex/components/base/head.pyi +4 -0
  11. reflex/components/base/link.pyi +4 -0
  12. reflex/components/base/meta.pyi +8 -0
  13. reflex/components/base/script.pyi +2 -0
  14. reflex/components/chakra/base.pyi +7 -0
  15. reflex/components/chakra/datadisplay/badge.pyi +2 -0
  16. reflex/components/chakra/datadisplay/code.pyi +4 -0
  17. reflex/components/chakra/datadisplay/divider.pyi +2 -0
  18. reflex/components/chakra/datadisplay/keyboard_key.pyi +2 -0
  19. reflex/components/chakra/datadisplay/list.pyi +8 -0
  20. reflex/components/chakra/datadisplay/stat.pyi +12 -0
  21. reflex/components/chakra/datadisplay/table.pyi +18 -0
  22. reflex/components/chakra/datadisplay/tag.pyi +9 -0
  23. reflex/components/chakra/disclosure/accordion.pyi +10 -0
  24. reflex/components/chakra/disclosure/tabs.py +8 -0
  25. reflex/components/chakra/disclosure/tabs.pyi +10 -0
  26. reflex/components/chakra/disclosure/transition.pyi +12 -0
  27. reflex/components/chakra/disclosure/visuallyhidden.pyi +2 -0
  28. reflex/components/chakra/feedback/alert.pyi +8 -0
  29. reflex/components/chakra/feedback/circularprogress.pyi +4 -0
  30. reflex/components/chakra/feedback/progress.pyi +2 -0
  31. reflex/components/chakra/feedback/skeleton.pyi +6 -0
  32. reflex/components/chakra/feedback/spinner.pyi +2 -0
  33. reflex/components/chakra/forms/button.pyi +4 -0
  34. reflex/components/chakra/forms/checkbox.pyi +4 -0
  35. reflex/components/chakra/forms/colormodeswitch.pyi +7 -0
  36. reflex/components/chakra/forms/date_picker.pyi +2 -0
  37. reflex/components/chakra/forms/date_time_picker.pyi +2 -0
  38. reflex/components/chakra/forms/editable.pyi +8 -0
  39. reflex/components/chakra/forms/email.pyi +2 -0
  40. reflex/components/chakra/forms/form.pyi +10 -0
  41. reflex/components/chakra/forms/iconbutton.py +1 -0
  42. reflex/components/chakra/forms/iconbutton.pyi +2 -0
  43. reflex/components/chakra/forms/input.pyi +12 -0
  44. reflex/components/chakra/forms/numberinput.pyi +10 -0
  45. reflex/components/chakra/forms/password.pyi +2 -0
  46. reflex/components/chakra/forms/pininput.pyi +4 -0
  47. reflex/components/chakra/forms/radio.pyi +4 -0
  48. reflex/components/chakra/forms/rangeslider.pyi +8 -0
  49. reflex/components/chakra/forms/select.pyi +4 -0
  50. reflex/components/chakra/forms/slider.pyi +10 -0
  51. reflex/components/chakra/forms/switch.pyi +2 -0
  52. reflex/components/chakra/forms/textarea.pyi +2 -0
  53. reflex/components/chakra/forms/time_picker.pyi +2 -0
  54. reflex/components/chakra/layout/aspect_ratio.pyi +2 -0
  55. reflex/components/chakra/layout/box.pyi +2 -0
  56. reflex/components/chakra/layout/card.pyi +7 -0
  57. reflex/components/chakra/layout/center.pyi +6 -0
  58. reflex/components/chakra/layout/container.pyi +2 -0
  59. reflex/components/chakra/layout/flex.pyi +2 -0
  60. reflex/components/chakra/layout/grid.pyi +6 -0
  61. reflex/components/chakra/layout/html.pyi +2 -0
  62. reflex/components/chakra/layout/spacer.pyi +2 -0
  63. reflex/components/chakra/layout/stack.pyi +6 -0
  64. reflex/components/chakra/layout/wrap.pyi +4 -0
  65. reflex/components/chakra/media/avatar.pyi +6 -0
  66. reflex/components/chakra/media/icon.pyi +4 -0
  67. reflex/components/chakra/media/image.pyi +2 -0
  68. reflex/components/chakra/navigation/breadcrumb.pyi +8 -0
  69. reflex/components/chakra/navigation/link.pyi +2 -0
  70. reflex/components/chakra/navigation/linkoverlay.pyi +4 -0
  71. reflex/components/chakra/navigation/stepper.pyi +18 -0
  72. reflex/components/chakra/overlay/alertdialog.pyi +14 -0
  73. reflex/components/chakra/overlay/drawer.pyi +14 -0
  74. reflex/components/chakra/overlay/menu.pyi +16 -0
  75. reflex/components/chakra/overlay/modal.pyi +14 -0
  76. reflex/components/chakra/overlay/popover.pyi +18 -0
  77. reflex/components/chakra/overlay/tooltip.pyi +2 -0
  78. reflex/components/chakra/typography/heading.pyi +2 -0
  79. reflex/components/chakra/typography/highlight.pyi +2 -0
  80. reflex/components/chakra/typography/span.pyi +2 -0
  81. reflex/components/chakra/typography/text.pyi +2 -0
  82. reflex/components/component.py +41 -3
  83. reflex/components/core/__init__.py +2 -0
  84. reflex/components/core/banner.pyi +3 -0
  85. reflex/components/core/client_side_routing.pyi +4 -0
  86. reflex/components/core/colors.py +21 -0
  87. reflex/components/core/cond.py +11 -2
  88. reflex/components/core/debounce.pyi +1 -0
  89. reflex/components/core/layout/__init__.py +1 -0
  90. reflex/components/core/match.py +44 -18
  91. reflex/components/core/upload.py +8 -2
  92. reflex/components/core/upload.pyi +7 -1
  93. reflex/components/datadisplay/dataeditor.pyi +2 -0
  94. reflex/components/el/element.pyi +2 -0
  95. reflex/components/el/elements/base.pyi +2 -0
  96. reflex/components/el/elements/forms.py +3 -0
  97. reflex/components/el/elements/forms.pyi +32 -0
  98. reflex/components/el/elements/inline.pyi +56 -0
  99. reflex/components/el/elements/media.pyi +28 -0
  100. reflex/components/el/elements/metadata.pyi +10 -0
  101. reflex/components/el/elements/other.pyi +14 -0
  102. reflex/components/el/elements/scripts.pyi +6 -0
  103. reflex/components/el/elements/sectioning.pyi +30 -0
  104. reflex/components/el/elements/tables.pyi +20 -0
  105. reflex/components/el/elements/typography.pyi +30 -0
  106. reflex/components/gridjs/datatable.pyi +4 -0
  107. reflex/components/lucide/__init__.py +5 -0
  108. reflex/components/lucide/icon.py +1484 -0
  109. reflex/components/lucide/icon.pyi +1594 -0
  110. reflex/components/markdown/markdown.pyi +2 -0
  111. reflex/components/moment/moment.pyi +2 -0
  112. reflex/components/next/base.pyi +2 -0
  113. reflex/components/next/image.pyi +2 -0
  114. reflex/components/next/link.pyi +2 -0
  115. reflex/components/next/video.pyi +2 -0
  116. reflex/components/plotly/plotly.pyi +4 -0
  117. reflex/components/radix/primitives/__init__.py +10 -0
  118. reflex/components/radix/primitives/accordion.py +51 -32
  119. reflex/components/radix/primitives/accordion.pyi +16 -3
  120. reflex/components/radix/primitives/base.pyi +4 -0
  121. reflex/components/radix/primitives/drawer.py +240 -0
  122. reflex/components/radix/primitives/drawer.pyi +814 -0
  123. reflex/components/radix/primitives/form.py +40 -7
  124. reflex/components/radix/primitives/form.pyi +32 -10
  125. reflex/components/radix/primitives/progress.py +2 -2
  126. reflex/components/radix/primitives/progress.pyi +6 -0
  127. reflex/components/radix/primitives/slider.pyi +10 -0
  128. reflex/components/radix/themes/base.py +46 -12
  129. reflex/components/radix/themes/base.pyi +23 -9
  130. reflex/components/radix/themes/components/__init__.py +4 -2
  131. reflex/components/radix/themes/components/alertdialog.py +13 -12
  132. reflex/components/radix/themes/components/alertdialog.pyi +23 -351
  133. reflex/components/radix/themes/components/aspectratio.py +2 -5
  134. reflex/components/radix/themes/components/aspectratio.pyi +4 -51
  135. reflex/components/radix/themes/components/avatar.py +3 -4
  136. reflex/components/radix/themes/components/avatar.pyi +4 -57
  137. reflex/components/radix/themes/components/badge.py +3 -4
  138. reflex/components/radix/themes/components/badge.pyi +4 -56
  139. reflex/components/radix/themes/components/button.py +2 -3
  140. reflex/components/radix/themes/components/button.pyi +3 -51
  141. reflex/components/radix/themes/components/callout.py +9 -12
  142. reflex/components/radix/themes/components/callout.pyi +24 -217
  143. reflex/components/radix/themes/components/card.py +1 -2
  144. reflex/components/radix/themes/components/card.pyi +4 -51
  145. reflex/components/radix/themes/components/checkbox.py +11 -5
  146. reflex/components/radix/themes/components/checkbox.pyi +13 -112
  147. reflex/components/radix/themes/components/contextmenu.py +21 -21
  148. reflex/components/radix/themes/components/contextmenu.pyi +26 -401
  149. reflex/components/radix/themes/components/dialog.py +13 -16
  150. reflex/components/radix/themes/components/dialog.pyi +20 -303
  151. reflex/components/radix/themes/components/dropdownmenu.py +196 -32
  152. reflex/components/radix/themes/components/dropdownmenu.pyi +147 -389
  153. reflex/components/radix/themes/components/hovercard.py +5 -5
  154. reflex/components/radix/themes/components/hovercard.pyi +11 -151
  155. reflex/components/radix/themes/components/iconbutton.py +56 -4
  156. reflex/components/radix/themes/components/iconbutton.pyi +25 -71
  157. reflex/components/radix/themes/components/icons.pyi +4 -0
  158. reflex/components/radix/themes/components/inset.py +1 -2
  159. reflex/components/radix/themes/components/inset.pyi +4 -51
  160. reflex/components/radix/themes/components/popover.py +12 -12
  161. reflex/components/radix/themes/components/popover.pyi +14 -201
  162. reflex/components/radix/themes/components/radiogroup.py +47 -20
  163. reflex/components/radix/themes/components/radiogroup.pyi +26 -171
  164. reflex/components/radix/themes/components/scrollarea.py +2 -3
  165. reflex/components/radix/themes/components/scrollarea.pyi +4 -51
  166. reflex/components/radix/themes/components/select.py +28 -25
  167. reflex/components/radix/themes/components/select.pyi +43 -419
  168. reflex/components/radix/themes/components/separator.py +4 -5
  169. reflex/components/radix/themes/components/separator.pyi +5 -52
  170. reflex/components/radix/themes/components/slider.py +8 -5
  171. reflex/components/radix/themes/components/slider.pyi +9 -60
  172. reflex/components/radix/themes/components/switch.py +6 -4
  173. reflex/components/radix/themes/components/switch.pyi +5 -53
  174. reflex/components/radix/themes/components/table.py +14 -15
  175. reflex/components/radix/themes/components/table.pyi +22 -351
  176. reflex/components/radix/themes/components/tabs.py +9 -6
  177. reflex/components/radix/themes/components/tabs.pyi +18 -205
  178. reflex/components/radix/themes/components/textarea.py +2 -3
  179. reflex/components/radix/themes/components/textarea.pyi +10 -53
  180. reflex/components/radix/themes/components/textfield.py +105 -4
  181. reflex/components/radix/themes/components/textfield.pyi +200 -108
  182. reflex/components/radix/themes/components/tooltip.py +102 -2
  183. reflex/components/radix/themes/components/tooltip.pyi +66 -110
  184. reflex/components/radix/themes/layout/__init__.py +7 -0
  185. reflex/components/radix/themes/layout/base.pyi +2 -0
  186. reflex/components/radix/themes/layout/box.py +2 -2
  187. reflex/components/radix/themes/layout/box.pyi +4 -104
  188. reflex/components/radix/themes/layout/center.py +19 -0
  189. reflex/components/radix/themes/layout/center.pyi +261 -0
  190. reflex/components/radix/themes/layout/container.py +2 -2
  191. reflex/components/radix/themes/layout/container.pyi +4 -104
  192. reflex/components/radix/themes/layout/flex.py +2 -2
  193. reflex/components/radix/themes/layout/flex.pyi +4 -105
  194. reflex/components/radix/themes/layout/grid.pyi +2 -0
  195. reflex/components/radix/themes/layout/section.py +2 -2
  196. reflex/components/radix/themes/layout/section.pyi +4 -104
  197. reflex/components/radix/themes/layout/spacer.py +19 -0
  198. reflex/components/radix/themes/layout/spacer.pyi +261 -0
  199. reflex/components/radix/themes/layout/stack.py +60 -0
  200. reflex/components/radix/themes/layout/stack.pyi +537 -0
  201. reflex/components/radix/themes/typography/blockquote.py +2 -3
  202. reflex/components/radix/themes/typography/blockquote.pyi +4 -51
  203. reflex/components/radix/themes/typography/code.py +2 -3
  204. reflex/components/radix/themes/typography/code.pyi +4 -56
  205. reflex/components/radix/themes/typography/em.py +1 -2
  206. reflex/components/radix/themes/typography/em.pyi +4 -51
  207. reflex/components/radix/themes/typography/heading.py +2 -3
  208. reflex/components/radix/themes/typography/heading.pyi +4 -51
  209. reflex/components/radix/themes/typography/kbd.py +1 -2
  210. reflex/components/radix/themes/typography/kbd.pyi +4 -51
  211. reflex/components/radix/themes/typography/link.py +34 -3
  212. reflex/components/radix/themes/typography/link.pyi +41 -86
  213. reflex/components/radix/themes/typography/quote.py +1 -2
  214. reflex/components/radix/themes/typography/quote.pyi +4 -51
  215. reflex/components/radix/themes/typography/strong.py +1 -2
  216. reflex/components/radix/themes/typography/strong.pyi +4 -51
  217. reflex/components/radix/themes/typography/text.py +2 -3
  218. reflex/components/radix/themes/typography/text.pyi +4 -51
  219. reflex/components/radix/themes/typography.py +10 -11
  220. reflex/components/react_player/audio.pyi +2 -0
  221. reflex/components/react_player/react_player.pyi +2 -0
  222. reflex/components/react_player/video.pyi +2 -0
  223. reflex/components/recharts/cartesian.pyi +38 -0
  224. reflex/components/recharts/charts.pyi +22 -0
  225. reflex/components/recharts/general.pyi +10 -0
  226. reflex/components/recharts/polar.pyi +12 -0
  227. reflex/components/recharts/recharts.pyi +4 -0
  228. reflex/components/suneditor/editor.pyi +2 -0
  229. reflex/components/tags/tag.py +1 -1
  230. reflex/constants/base.py +5 -1
  231. reflex/constants/colors.py +80 -0
  232. reflex/constants/event.py +10 -1
  233. reflex/page.py +1 -1
  234. reflex/reflex.py +4 -0
  235. reflex/style.py +8 -3
  236. reflex/testing.py +21 -10
  237. reflex/utils/format.py +13 -9
  238. reflex/utils/prerequisites.py +41 -3
  239. reflex/utils/serializers.py +14 -0
  240. reflex/utils/telemetry.py +8 -2
  241. reflex/utils/types.py +36 -2
  242. reflex/vars.py +53 -18
  243. {reflex-0.3.9a3.dist-info → reflex-0.3.10.dist-info}/METADATA +1 -2
  244. {reflex-0.3.9a3.dist-info → reflex-0.3.10.dist-info}/RECORD +247 -233
  245. {reflex-0.3.9a3.dist-info → reflex-0.3.10.dist-info}/WHEEL +1 -1
  246. {reflex-0.3.9a3.dist-info → reflex-0.3.10.dist-info}/LICENSE +0 -0
  247. {reflex-0.3.9a3.dist-info → reflex-0.3.10.dist-info}/entry_points.txt +0 -0
@@ -7,22 +7,18 @@ 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 typing import Any, Dict, List, Literal
10
+ from typing import Any, Dict, List, Literal, Optional, Union
11
11
  import reflex as rx
12
12
  from reflex.components.component import Component
13
13
  from reflex.components.radix.themes.layout.flex import Flex
14
14
  from reflex.components.radix.themes.typography.text import Text
15
+ from reflex.constants import EventTriggers
15
16
  from reflex.vars import Var
16
- from ..base import (
17
- CommonMarginProps,
18
- LiteralAccentColor,
19
- LiteralSize,
20
- RadixThemesComponent,
21
- )
17
+ from ..base import LiteralAccentColor, LiteralSize, RadixThemesComponent
22
18
 
23
19
  LiteralFlexDirection = Literal["row", "column", "row-reverse", "column-reverse"]
24
20
 
25
- class RadioGroupRoot(CommonMarginProps, RadixThemesComponent):
21
+ class RadioGroupRoot(RadixThemesComponent):
26
22
  def get_event_triggers(self) -> Dict[str, Any]: ...
27
23
  @overload
28
24
  @classmethod
@@ -114,57 +110,19 @@ class RadioGroupRoot(CommonMarginProps, RadixThemesComponent):
114
110
  ]
115
111
  ] = None,
116
112
  loop: Optional[Union[Var[bool], bool]] = None,
117
- m: Optional[
118
- Union[
119
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
120
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
121
- ]
122
- ] = None,
123
- mx: Optional[
124
- Union[
125
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
126
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
127
- ]
128
- ] = None,
129
- my: Optional[
130
- Union[
131
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
132
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
133
- ]
134
- ] = None,
135
- mt: Optional[
136
- Union[
137
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
138
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
139
- ]
140
- ] = None,
141
- mr: Optional[
142
- Union[
143
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
144
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
145
- ]
146
- ] = None,
147
- mb: Optional[
148
- Union[
149
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
150
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
151
- ]
152
- ] = None,
153
- ml: Optional[
154
- Union[
155
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
156
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
157
- ]
158
- ] = None,
159
113
  style: Optional[Style] = None,
160
114
  key: Optional[Any] = None,
161
115
  id: Optional[Any] = None,
162
116
  class_name: Optional[Any] = None,
163
117
  autofocus: Optional[bool] = None,
118
+ _rename_props: Optional[Dict[str, str]] = None,
164
119
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
165
120
  on_blur: Optional[
166
121
  Union[EventHandler, EventSpec, list, function, BaseVar]
167
122
  ] = None,
123
+ on_change: Optional[
124
+ Union[EventHandler, EventSpec, list, function, BaseVar]
125
+ ] = None,
168
126
  on_click: Optional[
169
127
  Union[EventHandler, EventSpec, list, function, BaseVar]
170
128
  ] = None,
@@ -207,9 +165,6 @@ class RadioGroupRoot(CommonMarginProps, RadixThemesComponent):
207
165
  on_unmount: Optional[
208
166
  Union[EventHandler, EventSpec, list, function, BaseVar]
209
167
  ] = None,
210
- on_value_change: Optional[
211
- Union[EventHandler, EventSpec, list, function, BaseVar]
212
- ] = None,
213
168
  **props
214
169
  ) -> "RadioGroupRoot":
215
170
  """Create a new component instance.
@@ -224,25 +179,19 @@ class RadioGroupRoot(CommonMarginProps, RadixThemesComponent):
224
179
  size: The size of the radio group: "1" | "2" | "3"
225
180
  variant: The variant of the radio group
226
181
  high_contrast: Whether to render the radio group with higher contrast color against background
227
- value: The controlled value of the radio item to check. Should be used in conjunction with onValueChange.
228
- default_value: The initial value of checked radio item. Should be used in conjunction with onValueChange.
182
+ value: The controlled value of the radio item to check. Should be used in conjunction with on_change.
183
+ default_value: The initial value of checked radio item. Should be used in conjunction with on_change.
229
184
  disabled: Whether the radio group is disabled
230
185
  name: The name of the group. Submitted with its owning form as part of a name/value pair.
231
186
  required: Whether the radio group is required
232
187
  orientation: The orientation of the component.
233
188
  loop: When true, keyboard navigation will loop from last item to first, and vice versa.
234
- m: Margin: "0" - "9"
235
- mx: Margin horizontal: "0" - "9"
236
- my: Margin vertical: "0" - "9"
237
- mt: Margin top: "0" - "9"
238
- mr: Margin right: "0" - "9"
239
- mb: Margin bottom: "0" - "9"
240
- ml: Margin left: "0" - "9"
241
- style: The style of the component.
189
+ style: Props to rename The style of the component.
242
190
  key: A unique key for the component.
243
191
  id: The id for the component.
244
192
  class_name: The class name for the component.
245
193
  autofocus: Whether the component should take the focus once the page is loaded
194
+ _rename_props: props to change the name of
246
195
  custom_attrs: custom attribute
247
196
  **props: Component properties.
248
197
 
@@ -251,7 +200,7 @@ class RadioGroupRoot(CommonMarginProps, RadixThemesComponent):
251
200
  """
252
201
  ...
253
202
 
254
- class RadioGroupItem(CommonMarginProps, RadixThemesComponent):
203
+ class RadioGroupItem(RadixThemesComponent):
255
204
  @overload
256
205
  @classmethod
257
206
  def create( # type: ignore
@@ -323,53 +272,12 @@ class RadioGroupItem(CommonMarginProps, RadixThemesComponent):
323
272
  value: Optional[Union[Var[str], str]] = None,
324
273
  disabled: Optional[Union[Var[bool], bool]] = None,
325
274
  required: Optional[Union[Var[bool], bool]] = None,
326
- m: Optional[
327
- Union[
328
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
329
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
330
- ]
331
- ] = None,
332
- mx: Optional[
333
- Union[
334
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
335
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
336
- ]
337
- ] = None,
338
- my: Optional[
339
- Union[
340
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
341
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
342
- ]
343
- ] = None,
344
- mt: Optional[
345
- Union[
346
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
347
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
348
- ]
349
- ] = None,
350
- mr: Optional[
351
- Union[
352
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
353
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
354
- ]
355
- ] = None,
356
- mb: Optional[
357
- Union[
358
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
359
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
360
- ]
361
- ] = None,
362
- ml: Optional[
363
- Union[
364
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
365
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
366
- ]
367
- ] = None,
368
275
  style: Optional[Style] = None,
369
276
  key: Optional[Any] = None,
370
277
  id: Optional[Any] = None,
371
278
  class_name: Optional[Any] = None,
372
279
  autofocus: Optional[bool] = None,
280
+ _rename_props: Optional[Dict[str, str]] = None,
373
281
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
374
282
  on_blur: Optional[
375
283
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -427,21 +335,15 @@ class RadioGroupItem(CommonMarginProps, RadixThemesComponent):
427
335
  *children: Child components.
428
336
  color: map to CSS default color property.
429
337
  color_scheme: map to radix color property.
430
- value: The value of the radio item to check. Should be used in conjunction with onCheckedChange.
338
+ value: The value of the radio item to check. Should be used in conjunction with on_change.
431
339
  disabled: When true, prevents the user from interacting with the radio item.
432
340
  required: When true, indicates that the user must check the radio item before the owning form can be submitted.
433
- m: Margin: "0" - "9"
434
- mx: Margin horizontal: "0" - "9"
435
- my: Margin vertical: "0" - "9"
436
- mt: Margin top: "0" - "9"
437
- mr: Margin right: "0" - "9"
438
- mb: Margin bottom: "0" - "9"
439
- ml: Margin left: "0" - "9"
440
341
  style: The style of the component.
441
342
  key: A unique key for the component.
442
343
  id: The id for the component.
443
344
  class_name: The class name for the component.
444
345
  autofocus: Whether the component should take the focus once the page is loaded
346
+ _rename_props: props to change the name of
445
347
  custom_attrs: custom attribute
446
348
  **props: Component properties.
447
349
 
@@ -478,7 +380,7 @@ class HighLevelRadioGroup(RadioGroupRoot):
478
380
  Literal["classic", "surface", "soft"],
479
381
  ]
480
382
  ] = None,
481
- color: Optional[
383
+ color_scheme: Optional[
482
384
  Union[
483
385
  Var[
484
386
  Literal[
@@ -553,57 +455,19 @@ class HighLevelRadioGroup(RadioGroupRoot):
553
455
  ]
554
456
  ] = None,
555
457
  loop: Optional[Union[Var[bool], bool]] = None,
556
- m: Optional[
557
- Union[
558
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
559
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
560
- ]
561
- ] = None,
562
- mx: Optional[
563
- Union[
564
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
565
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
566
- ]
567
- ] = None,
568
- my: Optional[
569
- Union[
570
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
571
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
572
- ]
573
- ] = None,
574
- mt: Optional[
575
- Union[
576
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
577
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
578
- ]
579
- ] = None,
580
- mr: Optional[
581
- Union[
582
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
583
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
584
- ]
585
- ] = None,
586
- mb: Optional[
587
- Union[
588
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
589
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
590
- ]
591
- ] = None,
592
- ml: Optional[
593
- Union[
594
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
595
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
596
- ]
597
- ] = None,
598
458
  style: Optional[Style] = None,
599
459
  key: Optional[Any] = None,
600
460
  id: Optional[Any] = None,
601
461
  class_name: Optional[Any] = None,
602
462
  autofocus: Optional[bool] = None,
463
+ _rename_props: Optional[Dict[str, str]] = None,
603
464
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
604
465
  on_blur: Optional[
605
466
  Union[EventHandler, EventSpec, list, function, BaseVar]
606
467
  ] = None,
468
+ on_change: Optional[
469
+ Union[EventHandler, EventSpec, list, function, BaseVar]
470
+ ] = None,
607
471
  on_click: Optional[
608
472
  Union[EventHandler, EventSpec, list, function, BaseVar]
609
473
  ] = None,
@@ -646,9 +510,6 @@ class HighLevelRadioGroup(RadioGroupRoot):
646
510
  on_unmount: Optional[
647
511
  Union[EventHandler, EventSpec, list, function, BaseVar]
648
512
  ] = None,
649
- on_value_change: Optional[
650
- Union[EventHandler, EventSpec, list, function, BaseVar]
651
- ] = None,
652
513
  **props
653
514
  ) -> "HighLevelRadioGroup":
654
515
  """Create a radio group component.
@@ -660,27 +521,21 @@ class HighLevelRadioGroup(RadioGroupRoot):
660
521
  gap: The gap between the items of the radio group.
661
522
  size: The size of the radio group: "1" | "2" | "3"
662
523
  variant: The variant of the radio group
663
- color: The color of the radio group
524
+ color_scheme: The color of the radio group
664
525
  high_contrast: Whether to render the radio group with higher contrast color against background
665
- value: The controlled value of the radio item to check. Should be used in conjunction with onValueChange.
666
- default_value: The initial value of checked radio item. Should be used in conjunction with onValueChange.
526
+ value: The controlled value of the radio item to check. Should be used in conjunction with on_change.
527
+ default_value: The initial value of checked radio item. Should be used in conjunction with on_change.
667
528
  disabled: Whether the radio group is disabled
668
529
  name: The name of the group. Submitted with its owning form as part of a name/value pair.
669
530
  required: Whether the radio group is required
670
531
  orientation: The orientation of the component.
671
532
  loop: When true, keyboard navigation will loop from last item to first, and vice versa.
672
- m: Margin: "0" - "9"
673
- mx: Margin horizontal: "0" - "9"
674
- my: Margin vertical: "0" - "9"
675
- mt: Margin top: "0" - "9"
676
- mr: Margin right: "0" - "9"
677
- mb: Margin bottom: "0" - "9"
678
- ml: Margin left: "0" - "9"
679
- style: The style of the component.
533
+ style: Props to rename The style of the component.
680
534
  key: A unique key for the component.
681
535
  id: The id for the component.
682
536
  class_name: The class name for the component.
683
537
  autofocus: Whether the component should take the focus once the page is loaded
538
+ _rename_props: props to change the name of
684
539
  custom_attrs: custom attribute
685
540
  **props: Additional properties to apply to the accordion item.
686
541
 
@@ -4,14 +4,13 @@ from typing import Literal
4
4
  from reflex.vars import Var
5
5
 
6
6
  from ..base import (
7
- CommonMarginProps,
8
7
  LiteralRadius,
9
8
  RadixThemesComponent,
10
9
  )
11
10
 
12
11
 
13
- class ScrollArea(CommonMarginProps, RadixThemesComponent):
14
- """Trigger an action or event, such as submitting a form or displaying a dialog."""
12
+ class ScrollArea(RadixThemesComponent):
13
+ """Custom styled, cross-browser scrollable area using native functionality."""
15
14
 
16
15
  tag = "ScrollArea"
17
16
 
@@ -9,9 +9,9 @@ from reflex.event import EventChain, EventHandler, EventSpec
9
9
  from reflex.style import Style
10
10
  from typing import Literal
11
11
  from reflex.vars import Var
12
- from ..base import CommonMarginProps, LiteralRadius, RadixThemesComponent
12
+ from ..base import LiteralRadius, RadixThemesComponent
13
13
 
14
- class ScrollArea(CommonMarginProps, RadixThemesComponent):
14
+ class ScrollArea(RadixThemesComponent):
15
15
  @overload
16
16
  @classmethod
17
17
  def create( # type: ignore
@@ -100,53 +100,12 @@ class ScrollArea(CommonMarginProps, RadixThemesComponent):
100
100
  ]
101
101
  ] = None,
102
102
  scroll_hide_delay: Optional[Union[Var[int], int]] = None,
103
- m: Optional[
104
- Union[
105
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
106
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
107
- ]
108
- ] = None,
109
- mx: Optional[
110
- Union[
111
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
112
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
113
- ]
114
- ] = None,
115
- my: Optional[
116
- Union[
117
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
118
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
119
- ]
120
- ] = None,
121
- mt: Optional[
122
- Union[
123
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
124
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
125
- ]
126
- ] = None,
127
- mr: Optional[
128
- Union[
129
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
130
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
131
- ]
132
- ] = None,
133
- mb: Optional[
134
- Union[
135
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
136
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
137
- ]
138
- ] = None,
139
- ml: Optional[
140
- Union[
141
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
142
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
143
- ]
144
- ] = None,
145
103
  style: Optional[Style] = None,
146
104
  key: Optional[Any] = None,
147
105
  id: Optional[Any] = None,
148
106
  class_name: Optional[Any] = None,
149
107
  autofocus: Optional[bool] = None,
108
+ _rename_props: Optional[Dict[str, str]] = None,
150
109
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
151
110
  on_blur: Optional[
152
111
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -209,18 +168,12 @@ class ScrollArea(CommonMarginProps, RadixThemesComponent):
209
168
  scrollbars: The alignment of the scroll area
210
169
  type_: Describes the nature of scrollbar visibility, similar to how the scrollbar preferences in MacOS control visibility of native scrollbars. "auto" | "always" | "scroll" | "hover"
211
170
  scroll_hide_delay: If type is set to either "scroll" or "hover", this prop determines the length of time, in milliseconds, before the scrollbars are hidden after the user stops interacting with scrollbars.
212
- m: Margin: "0" - "9"
213
- mx: Margin horizontal: "0" - "9"
214
- my: Margin vertical: "0" - "9"
215
- mt: Margin top: "0" - "9"
216
- mr: Margin right: "0" - "9"
217
- mb: Margin bottom: "0" - "9"
218
- ml: Margin left: "0" - "9"
219
171
  style: The style of the component.
220
172
  key: A unique key for the component.
221
173
  id: The id for the component.
222
174
  class_name: The class name for the component.
223
175
  autofocus: Whether the component should take the focus once the page is loaded
176
+ _rename_props: props to change the name of
224
177
  custom_attrs: custom attribute
225
178
  **props: Component properties.
226
179
 
@@ -3,10 +3,10 @@ from typing import Any, Dict, List, Literal, Union
3
3
 
4
4
  import reflex as rx
5
5
  from reflex.components.component import Component
6
+ from reflex.constants import EventTriggers
6
7
  from reflex.vars import Var
7
8
 
8
9
  from ..base import (
9
- CommonMarginProps,
10
10
  LiteralAccentColor,
11
11
  LiteralRadius,
12
12
  RadixThemesComponent,
@@ -15,18 +15,18 @@ from ..base import (
15
15
  LiteralButtonSize = Literal[1, 2, 3, 4]
16
16
 
17
17
 
18
- class SelectRoot(CommonMarginProps, RadixThemesComponent):
19
- """Trigger an action or event, such as submitting a form or displaying a dialog."""
18
+ class SelectRoot(RadixThemesComponent):
19
+ """Displays a list of options for the user to pick from, triggered by a button."""
20
20
 
21
21
  tag = "Select.Root"
22
22
 
23
23
  # The size of the select: "1" | "2" | "3"
24
- size: Var[Literal[1, 2, 3]]
24
+ size: Var[Literal["1", "2", "3"]]
25
25
 
26
26
  # The value of the select when initially rendered. Use when you do not need to control the state of the select.
27
27
  default_value: Var[str]
28
28
 
29
- # The controlled value of the select. Should be used in conjunction with on_value_change.
29
+ # The controlled value of the select. Should be used in conjunction with on_change.
30
30
  value: Var[str]
31
31
 
32
32
  # The open state of the select when it is initially rendered. Use when you do not need to control its open state.
@@ -44,6 +44,9 @@ class SelectRoot(CommonMarginProps, RadixThemesComponent):
44
44
  # When True, indicates that the user must select a value before the owning form can be submitted.
45
45
  required: Var[bool]
46
46
 
47
+ # Props to rename
48
+ _rename_props = {"onChange": "onValueChange"}
49
+
47
50
  def get_event_triggers(self) -> Dict[str, Any]:
48
51
  """Get the events triggers signatures for the component.
49
52
 
@@ -52,13 +55,13 @@ class SelectRoot(CommonMarginProps, RadixThemesComponent):
52
55
  """
53
56
  return {
54
57
  **super().get_event_triggers(),
55
- "on_open_change": lambda e0: [e0],
56
- "on_value_change": lambda e0: [e0],
58
+ EventTriggers.ON_OPEN_CHANGE: lambda e0: [e0],
59
+ EventTriggers.ON_CHANGE: lambda e0: [e0],
57
60
  }
58
61
 
59
62
 
60
- class SelectTrigger(CommonMarginProps, RadixThemesComponent):
61
- """Trigger an action or event, such as submitting a form or displaying a dialog."""
63
+ class SelectTrigger(RadixThemesComponent):
64
+ """The button that toggles the select."""
62
65
 
63
66
  tag = "Select.Trigger"
64
67
 
@@ -66,7 +69,7 @@ class SelectTrigger(CommonMarginProps, RadixThemesComponent):
66
69
  variant: Var[Literal["classic", "surface", "soft", "ghost"]]
67
70
 
68
71
  # The color of the select trigger
69
- color: Var[LiteralAccentColor]
72
+ color_scheme: Var[LiteralAccentColor]
70
73
 
71
74
  # The radius of the select trigger
72
75
  radius: Var[LiteralRadius]
@@ -75,8 +78,8 @@ class SelectTrigger(CommonMarginProps, RadixThemesComponent):
75
78
  placeholder: Var[str]
76
79
 
77
80
 
78
- class SelectContent(CommonMarginProps, RadixThemesComponent):
79
- """Trigger an action or event, such as submitting a form or displaying a dialog."""
81
+ class SelectContent(RadixThemesComponent):
82
+ """The component that pops out when the select is open."""
80
83
 
81
84
  tag = "Select.Content"
82
85
 
@@ -84,7 +87,7 @@ class SelectContent(CommonMarginProps, RadixThemesComponent):
84
87
  variant: Var[Literal["solid", "soft"]]
85
88
 
86
89
  # The color of the select content
87
- color: Var[LiteralAccentColor]
90
+ color_scheme: Var[LiteralAccentColor]
88
91
 
89
92
  # Whether to render the select content with higher contrast color against background
90
93
  high_contrast: Var[bool]
@@ -112,20 +115,20 @@ class SelectContent(CommonMarginProps, RadixThemesComponent):
112
115
  """
113
116
  return {
114
117
  **super().get_event_triggers(),
115
- "on_close_auto_focus": lambda e0: [e0],
116
- "on_escape_key_down": lambda e0: [e0],
117
- "on_pointer_down_outside": lambda e0: [e0],
118
+ EventTriggers.ON_CLOSE_AUTO_FOCUS: lambda e0: [e0],
119
+ EventTriggers.ON_ESCAPE_KEY_DOWN: lambda e0: [e0],
120
+ EventTriggers.ON_POINTER_DOWN_OUTSIDE: lambda e0: [e0],
118
121
  }
119
122
 
120
123
 
121
- class SelectGroup(CommonMarginProps, RadixThemesComponent):
122
- """Trigger an action or event, such as submitting a form or displaying a dialog."""
124
+ class SelectGroup(RadixThemesComponent):
125
+ """Used to group multiple items."""
123
126
 
124
127
  tag = "Select.Group"
125
128
 
126
129
 
127
- class SelectItem(CommonMarginProps, RadixThemesComponent):
128
- """Trigger an action or event, such as submitting a form or displaying a dialog."""
130
+ class SelectItem(RadixThemesComponent):
131
+ """The component that contains the select items."""
129
132
 
130
133
  tag = "Select.Item"
131
134
 
@@ -136,14 +139,14 @@ class SelectItem(CommonMarginProps, RadixThemesComponent):
136
139
  disabled: Var[bool]
137
140
 
138
141
 
139
- class SelectLabel(CommonMarginProps, RadixThemesComponent):
140
- """Trigger an action or event, such as submitting a form or displaying a dialog."""
142
+ class SelectLabel(RadixThemesComponent):
143
+ """Used to render the label of a group, it isn't focusable using arrow keys."""
141
144
 
142
145
  tag = "Select.Label"
143
146
 
144
147
 
145
- class SelectSeparator(CommonMarginProps, RadixThemesComponent):
146
- """Trigger an action or event, such as submitting a form or displaying a dialog."""
148
+ class SelectSeparator(RadixThemesComponent):
149
+ """Used to visually separate items in the Select."""
147
150
 
148
151
  tag = "Select.Separator"
149
152
 
@@ -161,7 +164,7 @@ class HighLevelSelect(SelectRoot):
161
164
  label: Var[str]
162
165
 
163
166
  # The color of the select.
164
- color: Var[LiteralAccentColor]
167
+ color_scheme: Var[LiteralAccentColor]
165
168
 
166
169
  # Whether to render the select with higher contrast color against background.
167
170
  high_contrast: Var[bool]