reflex 0.3.9a2__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 (246) hide show
  1. reflex/__init__.py +3 -1
  2. reflex/__init__.pyi +3 -1
  3. reflex/app.py +13 -5
  4. reflex/compiler/utils.py +13 -12
  5. reflex/components/base/app_wrap.pyi +1 -0
  6. reflex/components/base/body.pyi +2 -0
  7. reflex/components/base/document.pyi +10 -0
  8. reflex/components/base/fragment.pyi +2 -0
  9. reflex/components/base/head.pyi +4 -0
  10. reflex/components/base/link.pyi +4 -0
  11. reflex/components/base/meta.pyi +8 -0
  12. reflex/components/base/script.pyi +2 -0
  13. reflex/components/chakra/base.pyi +7 -0
  14. reflex/components/chakra/datadisplay/badge.pyi +2 -0
  15. reflex/components/chakra/datadisplay/code.pyi +4 -0
  16. reflex/components/chakra/datadisplay/divider.pyi +2 -0
  17. reflex/components/chakra/datadisplay/keyboard_key.pyi +2 -0
  18. reflex/components/chakra/datadisplay/list.pyi +8 -0
  19. reflex/components/chakra/datadisplay/stat.pyi +12 -0
  20. reflex/components/chakra/datadisplay/table.pyi +18 -0
  21. reflex/components/chakra/datadisplay/tag.pyi +9 -0
  22. reflex/components/chakra/disclosure/accordion.pyi +10 -0
  23. reflex/components/chakra/disclosure/tabs.py +8 -0
  24. reflex/components/chakra/disclosure/tabs.pyi +10 -0
  25. reflex/components/chakra/disclosure/transition.pyi +12 -0
  26. reflex/components/chakra/disclosure/visuallyhidden.pyi +2 -0
  27. reflex/components/chakra/feedback/alert.pyi +8 -0
  28. reflex/components/chakra/feedback/circularprogress.pyi +4 -0
  29. reflex/components/chakra/feedback/progress.pyi +2 -0
  30. reflex/components/chakra/feedback/skeleton.pyi +6 -0
  31. reflex/components/chakra/feedback/spinner.pyi +2 -0
  32. reflex/components/chakra/forms/button.pyi +4 -0
  33. reflex/components/chakra/forms/checkbox.pyi +4 -0
  34. reflex/components/chakra/forms/colormodeswitch.pyi +7 -0
  35. reflex/components/chakra/forms/date_picker.pyi +2 -0
  36. reflex/components/chakra/forms/date_time_picker.pyi +2 -0
  37. reflex/components/chakra/forms/editable.pyi +8 -0
  38. reflex/components/chakra/forms/email.pyi +2 -0
  39. reflex/components/chakra/forms/form.pyi +10 -0
  40. reflex/components/chakra/forms/iconbutton.py +1 -0
  41. reflex/components/chakra/forms/iconbutton.pyi +2 -0
  42. reflex/components/chakra/forms/input.pyi +12 -0
  43. reflex/components/chakra/forms/numberinput.pyi +10 -0
  44. reflex/components/chakra/forms/password.pyi +2 -0
  45. reflex/components/chakra/forms/pininput.pyi +4 -0
  46. reflex/components/chakra/forms/radio.pyi +4 -0
  47. reflex/components/chakra/forms/rangeslider.pyi +8 -0
  48. reflex/components/chakra/forms/select.pyi +4 -0
  49. reflex/components/chakra/forms/slider.pyi +10 -0
  50. reflex/components/chakra/forms/switch.pyi +2 -0
  51. reflex/components/chakra/forms/textarea.pyi +2 -0
  52. reflex/components/chakra/forms/time_picker.pyi +2 -0
  53. reflex/components/chakra/layout/aspect_ratio.pyi +2 -0
  54. reflex/components/chakra/layout/box.pyi +2 -0
  55. reflex/components/chakra/layout/card.pyi +7 -0
  56. reflex/components/chakra/layout/center.pyi +6 -0
  57. reflex/components/chakra/layout/container.pyi +2 -0
  58. reflex/components/chakra/layout/flex.pyi +2 -0
  59. reflex/components/chakra/layout/grid.pyi +6 -0
  60. reflex/components/chakra/layout/html.pyi +2 -0
  61. reflex/components/chakra/layout/spacer.pyi +2 -0
  62. reflex/components/chakra/layout/stack.pyi +6 -0
  63. reflex/components/chakra/layout/wrap.pyi +4 -0
  64. reflex/components/chakra/media/avatar.pyi +6 -0
  65. reflex/components/chakra/media/icon.pyi +4 -0
  66. reflex/components/chakra/media/image.pyi +2 -0
  67. reflex/components/chakra/navigation/breadcrumb.pyi +8 -0
  68. reflex/components/chakra/navigation/link.pyi +2 -0
  69. reflex/components/chakra/navigation/linkoverlay.pyi +4 -0
  70. reflex/components/chakra/navigation/stepper.pyi +18 -0
  71. reflex/components/chakra/overlay/alertdialog.pyi +14 -0
  72. reflex/components/chakra/overlay/drawer.pyi +14 -0
  73. reflex/components/chakra/overlay/menu.pyi +16 -0
  74. reflex/components/chakra/overlay/modal.pyi +14 -0
  75. reflex/components/chakra/overlay/popover.pyi +18 -0
  76. reflex/components/chakra/overlay/tooltip.pyi +2 -0
  77. reflex/components/chakra/typography/heading.pyi +2 -0
  78. reflex/components/chakra/typography/highlight.pyi +2 -0
  79. reflex/components/chakra/typography/span.pyi +2 -0
  80. reflex/components/chakra/typography/text.pyi +2 -0
  81. reflex/components/component.py +41 -3
  82. reflex/components/core/__init__.py +2 -0
  83. reflex/components/core/banner.pyi +3 -0
  84. reflex/components/core/client_side_routing.pyi +4 -0
  85. reflex/components/core/colors.py +21 -0
  86. reflex/components/core/cond.py +11 -2
  87. reflex/components/core/debounce.pyi +1 -0
  88. reflex/components/core/layout/__init__.py +1 -0
  89. reflex/components/core/match.py +44 -18
  90. reflex/components/core/upload.py +8 -2
  91. reflex/components/core/upload.pyi +7 -1
  92. reflex/components/datadisplay/dataeditor.pyi +2 -0
  93. reflex/components/el/element.pyi +2 -0
  94. reflex/components/el/elements/base.pyi +2 -0
  95. reflex/components/el/elements/forms.py +3 -0
  96. reflex/components/el/elements/forms.pyi +32 -0
  97. reflex/components/el/elements/inline.pyi +56 -0
  98. reflex/components/el/elements/media.pyi +28 -0
  99. reflex/components/el/elements/metadata.pyi +10 -0
  100. reflex/components/el/elements/other.pyi +14 -0
  101. reflex/components/el/elements/scripts.pyi +6 -0
  102. reflex/components/el/elements/sectioning.pyi +30 -0
  103. reflex/components/el/elements/tables.pyi +20 -0
  104. reflex/components/el/elements/typography.pyi +30 -0
  105. reflex/components/gridjs/datatable.pyi +4 -0
  106. reflex/components/lucide/__init__.py +5 -0
  107. reflex/components/lucide/icon.py +1484 -0
  108. reflex/components/lucide/icon.pyi +1594 -0
  109. reflex/components/markdown/markdown.pyi +2 -0
  110. reflex/components/moment/moment.pyi +2 -0
  111. reflex/components/next/base.pyi +2 -0
  112. reflex/components/next/image.pyi +2 -0
  113. reflex/components/next/link.pyi +2 -0
  114. reflex/components/next/video.pyi +2 -0
  115. reflex/components/plotly/plotly.pyi +4 -0
  116. reflex/components/radix/primitives/__init__.py +10 -0
  117. reflex/components/radix/primitives/accordion.py +51 -32
  118. reflex/components/radix/primitives/accordion.pyi +16 -3
  119. reflex/components/radix/primitives/base.pyi +4 -0
  120. reflex/components/radix/primitives/drawer.py +240 -0
  121. reflex/components/radix/primitives/drawer.pyi +814 -0
  122. reflex/components/radix/primitives/form.py +40 -7
  123. reflex/components/radix/primitives/form.pyi +32 -10
  124. reflex/components/radix/primitives/progress.py +2 -2
  125. reflex/components/radix/primitives/progress.pyi +6 -0
  126. reflex/components/radix/primitives/slider.pyi +10 -0
  127. reflex/components/radix/themes/base.py +46 -12
  128. reflex/components/radix/themes/base.pyi +23 -9
  129. reflex/components/radix/themes/components/__init__.py +4 -2
  130. reflex/components/radix/themes/components/alertdialog.py +13 -12
  131. reflex/components/radix/themes/components/alertdialog.pyi +23 -351
  132. reflex/components/radix/themes/components/aspectratio.py +2 -5
  133. reflex/components/radix/themes/components/aspectratio.pyi +4 -51
  134. reflex/components/radix/themes/components/avatar.py +3 -4
  135. reflex/components/radix/themes/components/avatar.pyi +4 -57
  136. reflex/components/radix/themes/components/badge.py +3 -4
  137. reflex/components/radix/themes/components/badge.pyi +4 -56
  138. reflex/components/radix/themes/components/button.py +2 -3
  139. reflex/components/radix/themes/components/button.pyi +3 -51
  140. reflex/components/radix/themes/components/callout.py +9 -12
  141. reflex/components/radix/themes/components/callout.pyi +24 -217
  142. reflex/components/radix/themes/components/card.py +1 -2
  143. reflex/components/radix/themes/components/card.pyi +4 -51
  144. reflex/components/radix/themes/components/checkbox.py +11 -5
  145. reflex/components/radix/themes/components/checkbox.pyi +13 -112
  146. reflex/components/radix/themes/components/contextmenu.py +21 -21
  147. reflex/components/radix/themes/components/contextmenu.pyi +26 -401
  148. reflex/components/radix/themes/components/dialog.py +13 -16
  149. reflex/components/radix/themes/components/dialog.pyi +20 -303
  150. reflex/components/radix/themes/components/dropdownmenu.py +196 -32
  151. reflex/components/radix/themes/components/dropdownmenu.pyi +147 -389
  152. reflex/components/radix/themes/components/hovercard.py +5 -5
  153. reflex/components/radix/themes/components/hovercard.pyi +11 -151
  154. reflex/components/radix/themes/components/iconbutton.py +56 -4
  155. reflex/components/radix/themes/components/iconbutton.pyi +25 -71
  156. reflex/components/radix/themes/components/icons.pyi +4 -0
  157. reflex/components/radix/themes/components/inset.py +1 -2
  158. reflex/components/radix/themes/components/inset.pyi +4 -51
  159. reflex/components/radix/themes/components/popover.py +12 -12
  160. reflex/components/radix/themes/components/popover.pyi +14 -201
  161. reflex/components/radix/themes/components/radiogroup.py +47 -20
  162. reflex/components/radix/themes/components/radiogroup.pyi +26 -171
  163. reflex/components/radix/themes/components/scrollarea.py +2 -3
  164. reflex/components/radix/themes/components/scrollarea.pyi +4 -51
  165. reflex/components/radix/themes/components/select.py +28 -25
  166. reflex/components/radix/themes/components/select.pyi +43 -419
  167. reflex/components/radix/themes/components/separator.py +4 -5
  168. reflex/components/radix/themes/components/separator.pyi +5 -52
  169. reflex/components/radix/themes/components/slider.py +8 -5
  170. reflex/components/radix/themes/components/slider.pyi +9 -60
  171. reflex/components/radix/themes/components/switch.py +6 -4
  172. reflex/components/radix/themes/components/switch.pyi +5 -53
  173. reflex/components/radix/themes/components/table.py +14 -15
  174. reflex/components/radix/themes/components/table.pyi +22 -351
  175. reflex/components/radix/themes/components/tabs.py +9 -6
  176. reflex/components/radix/themes/components/tabs.pyi +18 -205
  177. reflex/components/radix/themes/components/textarea.py +2 -3
  178. reflex/components/radix/themes/components/textarea.pyi +10 -53
  179. reflex/components/radix/themes/components/textfield.py +105 -4
  180. reflex/components/radix/themes/components/textfield.pyi +200 -108
  181. reflex/components/radix/themes/components/tooltip.py +102 -2
  182. reflex/components/radix/themes/components/tooltip.pyi +66 -110
  183. reflex/components/radix/themes/layout/__init__.py +7 -0
  184. reflex/components/radix/themes/layout/base.pyi +2 -0
  185. reflex/components/radix/themes/layout/box.py +2 -2
  186. reflex/components/radix/themes/layout/box.pyi +4 -104
  187. reflex/components/radix/themes/layout/center.py +19 -0
  188. reflex/components/radix/themes/layout/center.pyi +261 -0
  189. reflex/components/radix/themes/layout/container.py +2 -2
  190. reflex/components/radix/themes/layout/container.pyi +4 -104
  191. reflex/components/radix/themes/layout/flex.py +2 -2
  192. reflex/components/radix/themes/layout/flex.pyi +4 -105
  193. reflex/components/radix/themes/layout/grid.pyi +2 -0
  194. reflex/components/radix/themes/layout/section.py +2 -2
  195. reflex/components/radix/themes/layout/section.pyi +4 -104
  196. reflex/components/radix/themes/layout/spacer.py +19 -0
  197. reflex/components/radix/themes/layout/spacer.pyi +261 -0
  198. reflex/components/radix/themes/layout/stack.py +60 -0
  199. reflex/components/radix/themes/layout/stack.pyi +537 -0
  200. reflex/components/radix/themes/typography/blockquote.py +2 -3
  201. reflex/components/radix/themes/typography/blockquote.pyi +4 -51
  202. reflex/components/radix/themes/typography/code.py +2 -3
  203. reflex/components/radix/themes/typography/code.pyi +4 -56
  204. reflex/components/radix/themes/typography/em.py +1 -2
  205. reflex/components/radix/themes/typography/em.pyi +4 -51
  206. reflex/components/radix/themes/typography/heading.py +2 -3
  207. reflex/components/radix/themes/typography/heading.pyi +4 -51
  208. reflex/components/radix/themes/typography/kbd.py +1 -2
  209. reflex/components/radix/themes/typography/kbd.pyi +4 -51
  210. reflex/components/radix/themes/typography/link.py +34 -3
  211. reflex/components/radix/themes/typography/link.pyi +41 -86
  212. reflex/components/radix/themes/typography/quote.py +1 -2
  213. reflex/components/radix/themes/typography/quote.pyi +4 -51
  214. reflex/components/radix/themes/typography/strong.py +1 -2
  215. reflex/components/radix/themes/typography/strong.pyi +4 -51
  216. reflex/components/radix/themes/typography/text.py +2 -3
  217. reflex/components/radix/themes/typography/text.pyi +4 -51
  218. reflex/components/radix/themes/typography.py +10 -11
  219. reflex/components/react_player/audio.pyi +2 -0
  220. reflex/components/react_player/react_player.pyi +2 -0
  221. reflex/components/react_player/video.pyi +2 -0
  222. reflex/components/recharts/cartesian.pyi +38 -0
  223. reflex/components/recharts/charts.pyi +22 -0
  224. reflex/components/recharts/general.pyi +10 -0
  225. reflex/components/recharts/polar.pyi +12 -0
  226. reflex/components/recharts/recharts.pyi +4 -0
  227. reflex/components/suneditor/editor.pyi +2 -0
  228. reflex/components/tags/tag.py +1 -1
  229. reflex/constants/base.py +5 -1
  230. reflex/constants/colors.py +80 -0
  231. reflex/constants/event.py +10 -1
  232. reflex/page.py +1 -1
  233. reflex/reflex.py +4 -0
  234. reflex/style.py +8 -3
  235. reflex/testing.py +21 -10
  236. reflex/utils/format.py +13 -9
  237. reflex/utils/prerequisites.py +41 -3
  238. reflex/utils/serializers.py +14 -0
  239. reflex/utils/telemetry.py +8 -2
  240. reflex/utils/types.py +36 -2
  241. reflex/vars.py +53 -18
  242. {reflex-0.3.9a2.dist-info → reflex-0.3.10.dist-info}/METADATA +1 -2
  243. {reflex-0.3.9a2.dist-info → reflex-0.3.10.dist-info}/RECORD +246 -232
  244. {reflex-0.3.9a2.dist-info → reflex-0.3.10.dist-info}/WHEEL +1 -1
  245. {reflex-0.3.9a2.dist-info → reflex-0.3.10.dist-info}/LICENSE +0 -0
  246. {reflex-0.3.9a2.dist-info → reflex-0.3.10.dist-info}/entry_points.txt +0 -0
@@ -10,9 +10,9 @@ from reflex.style import Style
10
10
  from typing import Literal, Union
11
11
  from reflex import el
12
12
  from reflex.vars import Var
13
- from ..base import CommonMarginProps, RadixThemesComponent
13
+ from ..base import RadixThemesComponent
14
14
 
15
- class TableRoot(el.Table, CommonMarginProps, RadixThemesComponent):
15
+ class TableRoot(el.Table, RadixThemesComponent):
16
16
  @overload
17
17
  @classmethod
18
18
  def create( # type: ignore
@@ -145,53 +145,12 @@ class TableRoot(el.Table, CommonMarginProps, RadixThemesComponent):
145
145
  translate: Optional[
146
146
  Union[Var[Union[str, int, bool]], Union[str, int, bool]]
147
147
  ] = None,
148
- m: Optional[
149
- Union[
150
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
151
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
152
- ]
153
- ] = None,
154
- mx: Optional[
155
- Union[
156
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
157
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
158
- ]
159
- ] = None,
160
- my: Optional[
161
- Union[
162
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
163
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
164
- ]
165
- ] = None,
166
- mt: Optional[
167
- Union[
168
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
169
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
170
- ]
171
- ] = None,
172
- mr: Optional[
173
- Union[
174
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
175
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
176
- ]
177
- ] = None,
178
- mb: Optional[
179
- Union[
180
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
181
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
182
- ]
183
- ] = None,
184
- ml: Optional[
185
- Union[
186
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
187
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
188
- ]
189
- ] = None,
190
148
  style: Optional[Style] = None,
191
149
  key: Optional[Any] = None,
192
150
  id: Optional[Any] = None,
193
151
  class_name: Optional[Any] = None,
194
152
  autofocus: Optional[bool] = None,
153
+ _rename_props: Optional[Dict[str, str]] = None,
195
154
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
196
155
  on_blur: Optional[
197
156
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -273,18 +232,12 @@ class TableRoot(el.Table, CommonMarginProps, RadixThemesComponent):
273
232
  tab_index: Defines the position of the current element in the tabbing order.
274
233
  title: Defines a tooltip for the element.
275
234
  translate: Specifies whether the content of an element should be translated or not.
276
- m: Margin: "0" - "9"
277
- mx: Margin horizontal: "0" - "9"
278
- my: Margin vertical: "0" - "9"
279
- mt: Margin top: "0" - "9"
280
- mr: Margin right: "0" - "9"
281
- mb: Margin bottom: "0" - "9"
282
- ml: Margin left: "0" - "9"
283
235
  style: The style of the component.
284
236
  key: A unique key for the component.
285
237
  id: The id for the component.
286
238
  class_name: The class name for the component.
287
239
  autofocus: Whether the component should take the focus once the page is loaded
240
+ _rename_props: props to change the name of
288
241
  custom_attrs: custom attribute
289
242
  **props: Component properties.
290
243
 
@@ -293,7 +246,7 @@ class TableRoot(el.Table, CommonMarginProps, RadixThemesComponent):
293
246
  """
294
247
  ...
295
248
 
296
- class TableHeader(el.Thead, CommonMarginProps, RadixThemesComponent):
249
+ class TableHeader(el.Thead, RadixThemesComponent):
297
250
  @overload
298
251
  @classmethod
299
252
  def create( # type: ignore
@@ -408,53 +361,12 @@ class TableHeader(el.Thead, CommonMarginProps, RadixThemesComponent):
408
361
  translate: Optional[
409
362
  Union[Var[Union[str, int, bool]], Union[str, int, bool]]
410
363
  ] = None,
411
- m: Optional[
412
- Union[
413
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
414
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
415
- ]
416
- ] = None,
417
- mx: Optional[
418
- Union[
419
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
420
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
421
- ]
422
- ] = None,
423
- my: Optional[
424
- Union[
425
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
426
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
427
- ]
428
- ] = None,
429
- mt: Optional[
430
- Union[
431
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
432
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
433
- ]
434
- ] = None,
435
- mr: Optional[
436
- Union[
437
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
438
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
439
- ]
440
- ] = None,
441
- mb: Optional[
442
- Union[
443
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
444
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
445
- ]
446
- ] = None,
447
- ml: Optional[
448
- Union[
449
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
450
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
451
- ]
452
- ] = None,
453
364
  style: Optional[Style] = None,
454
365
  key: Optional[Any] = None,
455
366
  id: Optional[Any] = None,
456
367
  class_name: Optional[Any] = None,
457
368
  autofocus: Optional[bool] = None,
369
+ _rename_props: Optional[Dict[str, str]] = None,
458
370
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
459
371
  on_blur: Optional[
460
372
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -530,18 +442,12 @@ class TableHeader(el.Thead, CommonMarginProps, RadixThemesComponent):
530
442
  tab_index: Defines the position of the current element in the tabbing order.
531
443
  title: Defines a tooltip for the element.
532
444
  translate: Specifies whether the content of an element should be translated or not.
533
- m: Margin: "0" - "9"
534
- mx: Margin horizontal: "0" - "9"
535
- my: Margin vertical: "0" - "9"
536
- mt: Margin top: "0" - "9"
537
- mr: Margin right: "0" - "9"
538
- mb: Margin bottom: "0" - "9"
539
- ml: Margin left: "0" - "9"
540
445
  style: The style of the component.
541
446
  key: A unique key for the component.
542
447
  id: The id for the component.
543
448
  class_name: The class name for the component.
544
449
  autofocus: Whether the component should take the focus once the page is loaded
450
+ _rename_props: props to change the name of
545
451
  custom_attrs: custom attribute
546
452
  **props: Component properties.
547
453
 
@@ -550,7 +456,7 @@ class TableHeader(el.Thead, CommonMarginProps, RadixThemesComponent):
550
456
  """
551
457
  ...
552
458
 
553
- class TableRow(el.Tr, CommonMarginProps, RadixThemesComponent):
459
+ class TableRow(el.Tr, RadixThemesComponent):
554
460
  @overload
555
461
  @classmethod
556
462
  def create( # type: ignore
@@ -671,53 +577,12 @@ class TableRow(el.Tr, CommonMarginProps, RadixThemesComponent):
671
577
  translate: Optional[
672
578
  Union[Var[Union[str, int, bool]], Union[str, int, bool]]
673
579
  ] = None,
674
- m: Optional[
675
- Union[
676
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
677
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
678
- ]
679
- ] = None,
680
- mx: Optional[
681
- Union[
682
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
683
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
684
- ]
685
- ] = None,
686
- my: Optional[
687
- Union[
688
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
689
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
690
- ]
691
- ] = None,
692
- mt: Optional[
693
- Union[
694
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
695
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
696
- ]
697
- ] = None,
698
- mr: Optional[
699
- Union[
700
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
701
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
702
- ]
703
- ] = None,
704
- mb: Optional[
705
- Union[
706
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
707
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
708
- ]
709
- ] = None,
710
- ml: Optional[
711
- Union[
712
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
713
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
714
- ]
715
- ] = None,
716
580
  style: Optional[Style] = None,
717
581
  key: Optional[Any] = None,
718
582
  id: Optional[Any] = None,
719
583
  class_name: Optional[Any] = None,
720
584
  autofocus: Optional[bool] = None,
585
+ _rename_props: Optional[Dict[str, str]] = None,
721
586
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
722
587
  on_blur: Optional[
723
588
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -794,18 +659,12 @@ class TableRow(el.Tr, CommonMarginProps, RadixThemesComponent):
794
659
  tab_index: Defines the position of the current element in the tabbing order.
795
660
  title: Defines a tooltip for the element.
796
661
  translate: Specifies whether the content of an element should be translated or not.
797
- m: Margin: "0" - "9"
798
- mx: Margin horizontal: "0" - "9"
799
- my: Margin vertical: "0" - "9"
800
- mt: Margin top: "0" - "9"
801
- mr: Margin right: "0" - "9"
802
- mb: Margin bottom: "0" - "9"
803
- ml: Margin left: "0" - "9"
804
662
  style: The style of the component.
805
663
  key: A unique key for the component.
806
664
  id: The id for the component.
807
665
  class_name: The class name for the component.
808
666
  autofocus: Whether the component should take the focus once the page is loaded
667
+ _rename_props: props to change the name of
809
668
  custom_attrs: custom attribute
810
669
  **props: Component properties.
811
670
 
@@ -814,7 +673,7 @@ class TableRow(el.Tr, CommonMarginProps, RadixThemesComponent):
814
673
  """
815
674
  ...
816
675
 
817
- class TableColumnHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
676
+ class TableColumnHeaderCell(el.Th, RadixThemesComponent):
818
677
  @overload
819
678
  @classmethod
820
679
  def create( # type: ignore
@@ -954,53 +813,12 @@ class TableColumnHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
954
813
  translate: Optional[
955
814
  Union[Var[Union[str, int, bool]], Union[str, int, bool]]
956
815
  ] = None,
957
- m: Optional[
958
- Union[
959
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
960
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
961
- ]
962
- ] = None,
963
- mx: Optional[
964
- Union[
965
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
966
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
967
- ]
968
- ] = None,
969
- my: Optional[
970
- Union[
971
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
972
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
973
- ]
974
- ] = None,
975
- mt: Optional[
976
- Union[
977
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
978
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
979
- ]
980
- ] = None,
981
- mr: Optional[
982
- Union[
983
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
984
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
985
- ]
986
- ] = None,
987
- mb: Optional[
988
- Union[
989
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
990
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
991
- ]
992
- ] = None,
993
- ml: Optional[
994
- Union[
995
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
996
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
997
- ]
998
- ] = None,
999
816
  style: Optional[Style] = None,
1000
817
  key: Optional[Any] = None,
1001
818
  id: Optional[Any] = None,
1002
819
  class_name: Optional[Any] = None,
1003
820
  autofocus: Optional[bool] = None,
821
+ _rename_props: Optional[Dict[str, str]] = None,
1004
822
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1005
823
  on_blur: Optional[
1006
824
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -1084,18 +902,12 @@ class TableColumnHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
1084
902
  tab_index: Defines the position of the current element in the tabbing order.
1085
903
  title: Defines a tooltip for the element.
1086
904
  translate: Specifies whether the content of an element should be translated or not.
1087
- m: Margin: "0" - "9"
1088
- mx: Margin horizontal: "0" - "9"
1089
- my: Margin vertical: "0" - "9"
1090
- mt: Margin top: "0" - "9"
1091
- mr: Margin right: "0" - "9"
1092
- mb: Margin bottom: "0" - "9"
1093
- ml: Margin left: "0" - "9"
1094
905
  style: The style of the component.
1095
906
  key: A unique key for the component.
1096
907
  id: The id for the component.
1097
908
  class_name: The class name for the component.
1098
909
  autofocus: Whether the component should take the focus once the page is loaded
910
+ _rename_props: props to change the name of
1099
911
  custom_attrs: custom attribute
1100
912
  **props: Component properties.
1101
913
 
@@ -1104,7 +916,7 @@ class TableColumnHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
1104
916
  """
1105
917
  ...
1106
918
 
1107
- class TableBody(el.Tbody, CommonMarginProps, RadixThemesComponent):
919
+ class TableBody(el.Tbody, RadixThemesComponent):
1108
920
  @overload
1109
921
  @classmethod
1110
922
  def create( # type: ignore
@@ -1222,53 +1034,12 @@ class TableBody(el.Tbody, CommonMarginProps, RadixThemesComponent):
1222
1034
  translate: Optional[
1223
1035
  Union[Var[Union[str, int, bool]], Union[str, int, bool]]
1224
1036
  ] = None,
1225
- m: Optional[
1226
- Union[
1227
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1228
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1229
- ]
1230
- ] = None,
1231
- mx: Optional[
1232
- Union[
1233
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1234
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1235
- ]
1236
- ] = None,
1237
- my: Optional[
1238
- Union[
1239
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1240
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1241
- ]
1242
- ] = None,
1243
- mt: Optional[
1244
- Union[
1245
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1246
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1247
- ]
1248
- ] = None,
1249
- mr: Optional[
1250
- Union[
1251
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1252
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1253
- ]
1254
- ] = None,
1255
- mb: Optional[
1256
- Union[
1257
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1258
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1259
- ]
1260
- ] = None,
1261
- ml: Optional[
1262
- Union[
1263
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1264
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1265
- ]
1266
- ] = None,
1267
1037
  style: Optional[Style] = None,
1268
1038
  key: Optional[Any] = None,
1269
1039
  id: Optional[Any] = None,
1270
1040
  class_name: Optional[Any] = None,
1271
1041
  autofocus: Optional[bool] = None,
1042
+ _rename_props: Optional[Dict[str, str]] = None,
1272
1043
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1273
1044
  on_blur: Optional[
1274
1045
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -1345,18 +1116,12 @@ class TableBody(el.Tbody, CommonMarginProps, RadixThemesComponent):
1345
1116
  tab_index: Defines the position of the current element in the tabbing order.
1346
1117
  title: Defines a tooltip for the element.
1347
1118
  translate: Specifies whether the content of an element should be translated or not.
1348
- m: Margin: "0" - "9"
1349
- mx: Margin horizontal: "0" - "9"
1350
- my: Margin vertical: "0" - "9"
1351
- mt: Margin top: "0" - "9"
1352
- mr: Margin right: "0" - "9"
1353
- mb: Margin bottom: "0" - "9"
1354
- ml: Margin left: "0" - "9"
1355
1119
  style: The style of the component.
1356
1120
  key: A unique key for the component.
1357
1121
  id: The id for the component.
1358
1122
  class_name: The class name for the component.
1359
1123
  autofocus: Whether the component should take the focus once the page is loaded
1124
+ _rename_props: props to change the name of
1360
1125
  custom_attrs: custom attribute
1361
1126
  **props: Component properties.
1362
1127
 
@@ -1365,7 +1130,7 @@ class TableBody(el.Tbody, CommonMarginProps, RadixThemesComponent):
1365
1130
  """
1366
1131
  ...
1367
1132
 
1368
- class TableCell(el.Td, CommonMarginProps, RadixThemesComponent):
1133
+ class TableCell(el.Td, RadixThemesComponent):
1369
1134
  @overload
1370
1135
  @classmethod
1371
1136
  def create( # type: ignore
@@ -1502,53 +1267,12 @@ class TableCell(el.Td, CommonMarginProps, RadixThemesComponent):
1502
1267
  translate: Optional[
1503
1268
  Union[Var[Union[str, int, bool]], Union[str, int, bool]]
1504
1269
  ] = None,
1505
- m: Optional[
1506
- Union[
1507
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1508
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1509
- ]
1510
- ] = None,
1511
- mx: Optional[
1512
- Union[
1513
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1514
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1515
- ]
1516
- ] = None,
1517
- my: Optional[
1518
- Union[
1519
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1520
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1521
- ]
1522
- ] = None,
1523
- mt: Optional[
1524
- Union[
1525
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1526
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1527
- ]
1528
- ] = None,
1529
- mr: Optional[
1530
- Union[
1531
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1532
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1533
- ]
1534
- ] = None,
1535
- mb: Optional[
1536
- Union[
1537
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1538
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1539
- ]
1540
- ] = None,
1541
- ml: Optional[
1542
- Union[
1543
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1544
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1545
- ]
1546
- ] = None,
1547
1270
  style: Optional[Style] = None,
1548
1271
  key: Optional[Any] = None,
1549
1272
  id: Optional[Any] = None,
1550
1273
  class_name: Optional[Any] = None,
1551
1274
  autofocus: Optional[bool] = None,
1275
+ _rename_props: Optional[Dict[str, str]] = None,
1552
1276
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1553
1277
  on_blur: Optional[
1554
1278
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -1631,18 +1355,12 @@ class TableCell(el.Td, CommonMarginProps, RadixThemesComponent):
1631
1355
  tab_index: Defines the position of the current element in the tabbing order.
1632
1356
  title: Defines a tooltip for the element.
1633
1357
  translate: Specifies whether the content of an element should be translated or not.
1634
- m: Margin: "0" - "9"
1635
- mx: Margin horizontal: "0" - "9"
1636
- my: Margin vertical: "0" - "9"
1637
- mt: Margin top: "0" - "9"
1638
- mr: Margin right: "0" - "9"
1639
- mb: Margin bottom: "0" - "9"
1640
- ml: Margin left: "0" - "9"
1641
1358
  style: The style of the component.
1642
1359
  key: A unique key for the component.
1643
1360
  id: The id for the component.
1644
1361
  class_name: The class name for the component.
1645
1362
  autofocus: Whether the component should take the focus once the page is loaded
1363
+ _rename_props: props to change the name of
1646
1364
  custom_attrs: custom attribute
1647
1365
  **props: Component properties.
1648
1366
 
@@ -1651,7 +1369,7 @@ class TableCell(el.Td, CommonMarginProps, RadixThemesComponent):
1651
1369
  """
1652
1370
  ...
1653
1371
 
1654
- class TableRowHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
1372
+ class TableRowHeaderCell(el.Th, RadixThemesComponent):
1655
1373
  @overload
1656
1374
  @classmethod
1657
1375
  def create( # type: ignore
@@ -1791,53 +1509,12 @@ class TableRowHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
1791
1509
  translate: Optional[
1792
1510
  Union[Var[Union[str, int, bool]], Union[str, int, bool]]
1793
1511
  ] = None,
1794
- m: Optional[
1795
- Union[
1796
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1797
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1798
- ]
1799
- ] = None,
1800
- mx: Optional[
1801
- Union[
1802
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1803
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1804
- ]
1805
- ] = None,
1806
- my: Optional[
1807
- Union[
1808
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1809
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1810
- ]
1811
- ] = None,
1812
- mt: Optional[
1813
- Union[
1814
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1815
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1816
- ]
1817
- ] = None,
1818
- mr: Optional[
1819
- Union[
1820
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1821
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1822
- ]
1823
- ] = None,
1824
- mb: Optional[
1825
- Union[
1826
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1827
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1828
- ]
1829
- ] = None,
1830
- ml: Optional[
1831
- Union[
1832
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1833
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1834
- ]
1835
- ] = None,
1836
1512
  style: Optional[Style] = None,
1837
1513
  key: Optional[Any] = None,
1838
1514
  id: Optional[Any] = None,
1839
1515
  class_name: Optional[Any] = None,
1840
1516
  autofocus: Optional[bool] = None,
1517
+ _rename_props: Optional[Dict[str, str]] = None,
1841
1518
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1842
1519
  on_blur: Optional[
1843
1520
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -1921,18 +1598,12 @@ class TableRowHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
1921
1598
  tab_index: Defines the position of the current element in the tabbing order.
1922
1599
  title: Defines a tooltip for the element.
1923
1600
  translate: Specifies whether the content of an element should be translated or not.
1924
- m: Margin: "0" - "9"
1925
- mx: Margin horizontal: "0" - "9"
1926
- my: Margin vertical: "0" - "9"
1927
- mt: Margin top: "0" - "9"
1928
- mr: Margin right: "0" - "9"
1929
- mb: Margin bottom: "0" - "9"
1930
- ml: Margin left: "0" - "9"
1931
1601
  style: The style of the component.
1932
1602
  key: A unique key for the component.
1933
1603
  id: The id for the component.
1934
1604
  class_name: The class name for the component.
1935
1605
  autofocus: Whether the component should take the focus once the page is loaded
1606
+ _rename_props: props to change the name of
1936
1607
  custom_attrs: custom attribute
1937
1608
  **props: Component properties.
1938
1609
 
@@ -1,15 +1,15 @@
1
1
  """Interactive components provided by @radix-ui/themes."""
2
2
  from typing import Any, Dict, Literal
3
3
 
4
+ from reflex.constants import EventTriggers
4
5
  from reflex.vars import Var
5
6
 
6
7
  from ..base import (
7
- CommonMarginProps,
8
8
  RadixThemesComponent,
9
9
  )
10
10
 
11
11
 
12
- class TabsRoot(CommonMarginProps, RadixThemesComponent):
12
+ class TabsRoot(RadixThemesComponent):
13
13
  """Trigger an action or event, such as submitting a form or displaying a dialog."""
14
14
 
15
15
  tag = "Tabs.Root"
@@ -26,6 +26,9 @@ class TabsRoot(CommonMarginProps, RadixThemesComponent):
26
26
  # The orientation of the tabs.
27
27
  orientation: Var[Literal["horizontal", "vertical"]]
28
28
 
29
+ # Props to rename
30
+ _rename_props = {"onChange": "onValueChange"}
31
+
29
32
  def get_event_triggers(self) -> Dict[str, Any]:
30
33
  """Get the events triggers signatures for the component.
31
34
 
@@ -34,17 +37,17 @@ class TabsRoot(CommonMarginProps, RadixThemesComponent):
34
37
  """
35
38
  return {
36
39
  **super().get_event_triggers(),
37
- "on_value_change": lambda e0: [e0],
40
+ EventTriggers.ON_CHANGE: lambda e0: [e0],
38
41
  }
39
42
 
40
43
 
41
- class TabsList(CommonMarginProps, RadixThemesComponent):
44
+ class TabsList(RadixThemesComponent):
42
45
  """Trigger an action or event, such as submitting a form or displaying a dialog."""
43
46
 
44
47
  tag = "Tabs.List"
45
48
 
46
49
 
47
- class TabsTrigger(CommonMarginProps, RadixThemesComponent):
50
+ class TabsTrigger(RadixThemesComponent):
48
51
  """Trigger an action or event, such as submitting a form or displaying a dialog."""
49
52
 
50
53
  tag = "Tabs.Trigger"
@@ -56,7 +59,7 @@ class TabsTrigger(CommonMarginProps, RadixThemesComponent):
56
59
  disabled: Var[bool]
57
60
 
58
61
 
59
- class TabsContent(CommonMarginProps, RadixThemesComponent):
62
+ class TabsContent(RadixThemesComponent):
60
63
  """Trigger an action or event, such as submitting a form or displaying a dialog."""
61
64
 
62
65
  tag = "Tabs.Content"