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
@@ -8,10 +8,11 @@ from reflex.vars import Var, BaseVar, ComputedVar
8
8
  from reflex.event import EventChain, EventHandler, EventSpec
9
9
  from reflex.style import Style
10
10
  from typing import Any, Dict, Literal
11
+ from reflex.constants import EventTriggers
11
12
  from reflex.vars import Var
12
- from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent
13
+ from ..base import LiteralAccentColor, RadixThemesComponent
13
14
 
14
- class ContextMenuRoot(CommonMarginProps, RadixThemesComponent):
15
+ class ContextMenuRoot(RadixThemesComponent):
15
16
  def get_event_triggers(self) -> Dict[str, Any]: ...
16
17
  @overload
17
18
  @classmethod
@@ -82,53 +83,12 @@ class ContextMenuRoot(CommonMarginProps, RadixThemesComponent):
82
83
  ]
83
84
  ] = None,
84
85
  modal: Optional[Union[Var[bool], bool]] = None,
85
- m: Optional[
86
- Union[
87
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
88
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
89
- ]
90
- ] = None,
91
- mx: Optional[
92
- Union[
93
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
94
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
95
- ]
96
- ] = None,
97
- my: Optional[
98
- Union[
99
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
100
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
101
- ]
102
- ] = None,
103
- mt: 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
- mr: 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
- mb: 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
- ml: 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
86
  style: Optional[Style] = None,
128
87
  key: Optional[Any] = None,
129
88
  id: Optional[Any] = None,
130
89
  class_name: Optional[Any] = None,
131
90
  autofocus: Optional[bool] = None,
91
+ _rename_props: Optional[Dict[str, str]] = None,
132
92
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
133
93
  on_blur: Optional[
134
94
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -190,18 +150,12 @@ class ContextMenuRoot(CommonMarginProps, RadixThemesComponent):
190
150
  color: map to CSS default color property.
191
151
  color_scheme: map to radix color property.
192
152
  modal: The modality of the context menu. When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers.
193
- m: Margin: "0" - "9"
194
- mx: Margin horizontal: "0" - "9"
195
- my: Margin vertical: "0" - "9"
196
- mt: Margin top: "0" - "9"
197
- mr: Margin right: "0" - "9"
198
- mb: Margin bottom: "0" - "9"
199
- ml: Margin left: "0" - "9"
200
153
  style: The style of the component.
201
154
  key: A unique key for the component.
202
155
  id: The id for the component.
203
156
  class_name: The class name for the component.
204
157
  autofocus: Whether the component should take the focus once the page is loaded
158
+ _rename_props: props to change the name of
205
159
  custom_attrs: custom attribute
206
160
  **props: Component properties.
207
161
 
@@ -210,7 +164,7 @@ class ContextMenuRoot(CommonMarginProps, RadixThemesComponent):
210
164
  """
211
165
  ...
212
166
 
213
- class ContextMenuTrigger(CommonMarginProps, RadixThemesComponent):
167
+ class ContextMenuTrigger(RadixThemesComponent):
214
168
  @overload
215
169
  @classmethod
216
170
  def create( # type: ignore
@@ -280,53 +234,12 @@ class ContextMenuTrigger(CommonMarginProps, RadixThemesComponent):
280
234
  ]
281
235
  ] = None,
282
236
  disabled: Optional[Union[Var[bool], bool]] = None,
283
- m: Optional[
284
- Union[
285
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
286
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
287
- ]
288
- ] = None,
289
- mx: Optional[
290
- Union[
291
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
292
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
293
- ]
294
- ] = None,
295
- my: Optional[
296
- Union[
297
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
298
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
299
- ]
300
- ] = None,
301
- mt: Optional[
302
- Union[
303
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
304
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
305
- ]
306
- ] = None,
307
- mr: Optional[
308
- Union[
309
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
310
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
311
- ]
312
- ] = None,
313
- mb: Optional[
314
- Union[
315
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
316
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
317
- ]
318
- ] = None,
319
- ml: Optional[
320
- Union[
321
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
322
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
323
- ]
324
- ] = None,
325
237
  style: Optional[Style] = None,
326
238
  key: Optional[Any] = None,
327
239
  id: Optional[Any] = None,
328
240
  class_name: Optional[Any] = None,
329
241
  autofocus: Optional[bool] = None,
242
+ _rename_props: Optional[Dict[str, str]] = None,
330
243
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
331
244
  on_blur: Optional[
332
245
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -385,18 +298,12 @@ class ContextMenuTrigger(CommonMarginProps, RadixThemesComponent):
385
298
  color: map to CSS default color property.
386
299
  color_scheme: map to radix color property.
387
300
  disabled: Whether the trigger is disabled
388
- m: Margin: "0" - "9"
389
- mx: Margin horizontal: "0" - "9"
390
- my: Margin vertical: "0" - "9"
391
- mt: Margin top: "0" - "9"
392
- mr: Margin right: "0" - "9"
393
- mb: Margin bottom: "0" - "9"
394
- ml: Margin left: "0" - "9"
395
301
  style: The style of the component.
396
302
  key: A unique key for the component.
397
303
  id: The id for the component.
398
304
  class_name: The class name for the component.
399
305
  autofocus: Whether the component should take the focus once the page is loaded
306
+ _rename_props: props to change the name of
400
307
  custom_attrs: custom attribute
401
308
  **props: Component properties.
402
309
 
@@ -405,7 +312,7 @@ class ContextMenuTrigger(CommonMarginProps, RadixThemesComponent):
405
312
  """
406
313
  ...
407
314
 
408
- class ContextMenuContent(CommonMarginProps, RadixThemesComponent):
315
+ class ContextMenuContent(RadixThemesComponent):
409
316
  def get_event_triggers(self) -> Dict[str, Any]: ...
410
317
  @overload
411
318
  @classmethod
@@ -482,53 +389,12 @@ class ContextMenuContent(CommonMarginProps, RadixThemesComponent):
482
389
  high_contrast: Optional[Union[Var[bool], bool]] = None,
483
390
  align_offset: Optional[Union[Var[int], int]] = None,
484
391
  avoid_collisions: Optional[Union[Var[bool], bool]] = None,
485
- m: Optional[
486
- Union[
487
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
488
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
489
- ]
490
- ] = None,
491
- mx: Optional[
492
- Union[
493
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
494
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
495
- ]
496
- ] = None,
497
- my: Optional[
498
- Union[
499
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
500
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
501
- ]
502
- ] = None,
503
- mt: Optional[
504
- Union[
505
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
506
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
507
- ]
508
- ] = None,
509
- mr: Optional[
510
- Union[
511
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
512
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
513
- ]
514
- ] = None,
515
- mb: Optional[
516
- Union[
517
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
518
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
519
- ]
520
- ] = None,
521
- ml: Optional[
522
- Union[
523
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
524
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
525
- ]
526
- ] = None,
527
392
  style: Optional[Style] = None,
528
393
  key: Optional[Any] = None,
529
394
  id: Optional[Any] = None,
530
395
  class_name: Optional[Any] = None,
531
396
  autofocus: Optional[bool] = None,
397
+ _rename_props: Optional[Dict[str, str]] = None,
532
398
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
533
399
  on_blur: Optional[
534
400
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -606,18 +472,12 @@ class ContextMenuContent(CommonMarginProps, RadixThemesComponent):
606
472
  high_contrast: Whether to render the button with higher contrast color against background
607
473
  align_offset: The vertical distance in pixels from the anchor.
608
474
  avoid_collisions: When true, overrides the side andalign preferences to prevent collisions with boundary edges.
609
- m: Margin: "0" - "9"
610
- mx: Margin horizontal: "0" - "9"
611
- my: Margin vertical: "0" - "9"
612
- mt: Margin top: "0" - "9"
613
- mr: Margin right: "0" - "9"
614
- mb: Margin bottom: "0" - "9"
615
- ml: Margin left: "0" - "9"
616
475
  style: The style of the component.
617
476
  key: A unique key for the component.
618
477
  id: The id for the component.
619
478
  class_name: The class name for the component.
620
479
  autofocus: Whether the component should take the focus once the page is loaded
480
+ _rename_props: props to change the name of
621
481
  custom_attrs: custom attribute
622
482
  **props: Component properties.
623
483
 
@@ -626,7 +486,7 @@ class ContextMenuContent(CommonMarginProps, RadixThemesComponent):
626
486
  """
627
487
  ...
628
488
 
629
- class ContextMenuSub(CommonMarginProps, RadixThemesComponent):
489
+ class ContextMenuSub(RadixThemesComponent):
630
490
  @overload
631
491
  @classmethod
632
492
  def create( # type: ignore
@@ -695,53 +555,12 @@ class ContextMenuSub(CommonMarginProps, RadixThemesComponent):
695
555
  ],
696
556
  ]
697
557
  ] = None,
698
- m: 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
- mx: 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
- my: 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
- mt: Optional[
717
- Union[
718
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
719
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
720
- ]
721
- ] = None,
722
- mr: Optional[
723
- Union[
724
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
725
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
726
- ]
727
- ] = None,
728
- mb: Optional[
729
- Union[
730
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
731
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
732
- ]
733
- ] = None,
734
- ml: Optional[
735
- Union[
736
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
737
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
738
- ]
739
- ] = None,
740
558
  style: Optional[Style] = None,
741
559
  key: Optional[Any] = None,
742
560
  id: Optional[Any] = None,
743
561
  class_name: Optional[Any] = None,
744
562
  autofocus: Optional[bool] = None,
563
+ _rename_props: Optional[Dict[str, str]] = None,
745
564
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
746
565
  on_blur: Optional[
747
566
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -799,18 +618,12 @@ class ContextMenuSub(CommonMarginProps, RadixThemesComponent):
799
618
  *children: Child components.
800
619
  color: map to CSS default color property.
801
620
  color_scheme: map to radix color property.
802
- m: Margin: "0" - "9"
803
- mx: Margin horizontal: "0" - "9"
804
- my: Margin vertical: "0" - "9"
805
- mt: Margin top: "0" - "9"
806
- mr: Margin right: "0" - "9"
807
- mb: Margin bottom: "0" - "9"
808
- ml: Margin left: "0" - "9"
809
621
  style: The style of the component.
810
622
  key: A unique key for the component.
811
623
  id: The id for the component.
812
624
  class_name: The class name for the component.
813
625
  autofocus: Whether the component should take the focus once the page is loaded
626
+ _rename_props: props to change the name of
814
627
  custom_attrs: custom attribute
815
628
  **props: Component properties.
816
629
 
@@ -819,7 +632,7 @@ class ContextMenuSub(CommonMarginProps, RadixThemesComponent):
819
632
  """
820
633
  ...
821
634
 
822
- class ContextMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
635
+ class ContextMenuSubTrigger(RadixThemesComponent):
823
636
  @overload
824
637
  @classmethod
825
638
  def create( # type: ignore
@@ -889,53 +702,12 @@ class ContextMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
889
702
  ]
890
703
  ] = None,
891
704
  disabled: Optional[Union[Var[bool], bool]] = None,
892
- m: Optional[
893
- Union[
894
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
895
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
896
- ]
897
- ] = None,
898
- mx: Optional[
899
- Union[
900
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
901
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
902
- ]
903
- ] = None,
904
- my: Optional[
905
- Union[
906
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
907
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
908
- ]
909
- ] = None,
910
- mt: Optional[
911
- Union[
912
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
913
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
914
- ]
915
- ] = None,
916
- mr: Optional[
917
- Union[
918
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
919
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
920
- ]
921
- ] = None,
922
- mb: Optional[
923
- Union[
924
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
925
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
926
- ]
927
- ] = None,
928
- ml: Optional[
929
- Union[
930
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
931
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
932
- ]
933
- ] = None,
934
705
  style: Optional[Style] = None,
935
706
  key: Optional[Any] = None,
936
707
  id: Optional[Any] = None,
937
708
  class_name: Optional[Any] = None,
938
709
  autofocus: Optional[bool] = None,
710
+ _rename_props: Optional[Dict[str, str]] = None,
939
711
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
940
712
  on_blur: Optional[
941
713
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -994,18 +766,12 @@ class ContextMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
994
766
  color: map to CSS default color property.
995
767
  color_scheme: map to radix color property.
996
768
  disabled: Whether the trigger is disabled
997
- m: Margin: "0" - "9"
998
- mx: Margin horizontal: "0" - "9"
999
- my: Margin vertical: "0" - "9"
1000
- mt: Margin top: "0" - "9"
1001
- mr: Margin right: "0" - "9"
1002
- mb: Margin bottom: "0" - "9"
1003
- ml: Margin left: "0" - "9"
1004
769
  style: The style of the component.
1005
770
  key: A unique key for the component.
1006
771
  id: The id for the component.
1007
772
  class_name: The class name for the component.
1008
773
  autofocus: Whether the component should take the focus once the page is loaded
774
+ _rename_props: props to change the name of
1009
775
  custom_attrs: custom attribute
1010
776
  **props: Component properties.
1011
777
 
@@ -1014,7 +780,7 @@ class ContextMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
1014
780
  """
1015
781
  ...
1016
782
 
1017
- class ContextMenuSubContent(CommonMarginProps, RadixThemesComponent):
783
+ class ContextMenuSubContent(RadixThemesComponent):
1018
784
  def get_event_triggers(self) -> Dict[str, Any]: ...
1019
785
  @overload
1020
786
  @classmethod
@@ -1085,53 +851,12 @@ class ContextMenuSubContent(CommonMarginProps, RadixThemesComponent):
1085
851
  ]
1086
852
  ] = None,
1087
853
  loop: Optional[Union[Var[bool], bool]] = None,
1088
- m: Optional[
1089
- Union[
1090
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1091
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1092
- ]
1093
- ] = None,
1094
- mx: Optional[
1095
- Union[
1096
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1097
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1098
- ]
1099
- ] = None,
1100
- my: Optional[
1101
- Union[
1102
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1103
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1104
- ]
1105
- ] = None,
1106
- mt: Optional[
1107
- Union[
1108
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1109
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1110
- ]
1111
- ] = None,
1112
- mr: Optional[
1113
- Union[
1114
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1115
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1116
- ]
1117
- ] = None,
1118
- mb: Optional[
1119
- Union[
1120
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1121
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1122
- ]
1123
- ] = None,
1124
- ml: Optional[
1125
- Union[
1126
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1127
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1128
- ]
1129
- ] = None,
1130
854
  style: Optional[Style] = None,
1131
855
  key: Optional[Any] = None,
1132
856
  id: Optional[Any] = None,
1133
857
  class_name: Optional[Any] = None,
1134
858
  autofocus: Optional[bool] = None,
859
+ _rename_props: Optional[Dict[str, str]] = None,
1135
860
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1136
861
  on_blur: Optional[
1137
862
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -1202,18 +927,12 @@ class ContextMenuSubContent(CommonMarginProps, RadixThemesComponent):
1202
927
  color: map to CSS default color property.
1203
928
  color_scheme: map to radix color property.
1204
929
  loop: When true, keyboard navigation will loop from last item to first, and vice versa.
1205
- m: Margin: "0" - "9"
1206
- mx: Margin horizontal: "0" - "9"
1207
- my: Margin vertical: "0" - "9"
1208
- mt: Margin top: "0" - "9"
1209
- mr: Margin right: "0" - "9"
1210
- mb: Margin bottom: "0" - "9"
1211
- ml: Margin left: "0" - "9"
1212
930
  style: The style of the component.
1213
931
  key: A unique key for the component.
1214
932
  id: The id for the component.
1215
933
  class_name: The class name for the component.
1216
934
  autofocus: Whether the component should take the focus once the page is loaded
935
+ _rename_props: props to change the name of
1217
936
  custom_attrs: custom attribute
1218
937
  **props: Component properties.
1219
938
 
@@ -1222,7 +941,7 @@ class ContextMenuSubContent(CommonMarginProps, RadixThemesComponent):
1222
941
  """
1223
942
  ...
1224
943
 
1225
- class ContextMenuItem(CommonMarginProps, RadixThemesComponent):
944
+ class ContextMenuItem(RadixThemesComponent):
1226
945
  @overload
1227
946
  @classmethod
1228
947
  def create( # type: ignore
@@ -1292,53 +1011,12 @@ class ContextMenuItem(CommonMarginProps, RadixThemesComponent):
1292
1011
  ]
1293
1012
  ] = None,
1294
1013
  shortcut: Optional[Union[Var[str], str]] = None,
1295
- m: Optional[
1296
- Union[
1297
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1298
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1299
- ]
1300
- ] = None,
1301
- mx: Optional[
1302
- Union[
1303
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1304
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1305
- ]
1306
- ] = None,
1307
- my: Optional[
1308
- Union[
1309
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1310
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1311
- ]
1312
- ] = None,
1313
- mt: Optional[
1314
- Union[
1315
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1316
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1317
- ]
1318
- ] = None,
1319
- mr: Optional[
1320
- Union[
1321
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1322
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1323
- ]
1324
- ] = None,
1325
- mb: Optional[
1326
- Union[
1327
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1328
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1329
- ]
1330
- ] = None,
1331
- ml: Optional[
1332
- Union[
1333
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1334
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1335
- ]
1336
- ] = None,
1337
1014
  style: Optional[Style] = None,
1338
1015
  key: Optional[Any] = None,
1339
1016
  id: Optional[Any] = None,
1340
1017
  class_name: Optional[Any] = None,
1341
1018
  autofocus: Optional[bool] = None,
1019
+ _rename_props: Optional[Dict[str, str]] = None,
1342
1020
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1343
1021
  on_blur: Optional[
1344
1022
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -1397,18 +1075,12 @@ class ContextMenuItem(CommonMarginProps, RadixThemesComponent):
1397
1075
  color: map to CSS default color property.
1398
1076
  color_scheme: map to radix color property.
1399
1077
  shortcut: Shortcut to render a menu item as a link
1400
- m: Margin: "0" - "9"
1401
- mx: Margin horizontal: "0" - "9"
1402
- my: Margin vertical: "0" - "9"
1403
- mt: Margin top: "0" - "9"
1404
- mr: Margin right: "0" - "9"
1405
- mb: Margin bottom: "0" - "9"
1406
- ml: Margin left: "0" - "9"
1407
1078
  style: The style of the component.
1408
1079
  key: A unique key for the component.
1409
1080
  id: The id for the component.
1410
1081
  class_name: The class name for the component.
1411
1082
  autofocus: Whether the component should take the focus once the page is loaded
1083
+ _rename_props: props to change the name of
1412
1084
  custom_attrs: custom attribute
1413
1085
  **props: Component properties.
1414
1086
 
@@ -1417,7 +1089,7 @@ class ContextMenuItem(CommonMarginProps, RadixThemesComponent):
1417
1089
  """
1418
1090
  ...
1419
1091
 
1420
- class ContextMenuSeparator(CommonMarginProps, RadixThemesComponent):
1092
+ class ContextMenuSeparator(RadixThemesComponent):
1421
1093
  @overload
1422
1094
  @classmethod
1423
1095
  def create( # type: ignore
@@ -1486,53 +1158,12 @@ class ContextMenuSeparator(CommonMarginProps, RadixThemesComponent):
1486
1158
  ],
1487
1159
  ]
1488
1160
  ] = None,
1489
- m: Optional[
1490
- Union[
1491
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1492
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1493
- ]
1494
- ] = None,
1495
- mx: Optional[
1496
- Union[
1497
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1498
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1499
- ]
1500
- ] = None,
1501
- my: Optional[
1502
- Union[
1503
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1504
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1505
- ]
1506
- ] = None,
1507
- mt: Optional[
1508
- Union[
1509
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1510
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1511
- ]
1512
- ] = None,
1513
- mr: Optional[
1514
- Union[
1515
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1516
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1517
- ]
1518
- ] = None,
1519
- mb: Optional[
1520
- Union[
1521
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1522
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1523
- ]
1524
- ] = None,
1525
- ml: Optional[
1526
- Union[
1527
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1528
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1529
- ]
1530
- ] = None,
1531
1161
  style: Optional[Style] = None,
1532
1162
  key: Optional[Any] = None,
1533
1163
  id: Optional[Any] = None,
1534
1164
  class_name: Optional[Any] = None,
1535
1165
  autofocus: Optional[bool] = None,
1166
+ _rename_props: Optional[Dict[str, str]] = None,
1536
1167
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1537
1168
  on_blur: Optional[
1538
1169
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -1590,18 +1221,12 @@ class ContextMenuSeparator(CommonMarginProps, RadixThemesComponent):
1590
1221
  *children: Child components.
1591
1222
  color: map to CSS default color property.
1592
1223
  color_scheme: map to radix color property.
1593
- m: Margin: "0" - "9"
1594
- mx: Margin horizontal: "0" - "9"
1595
- my: Margin vertical: "0" - "9"
1596
- mt: Margin top: "0" - "9"
1597
- mr: Margin right: "0" - "9"
1598
- mb: Margin bottom: "0" - "9"
1599
- ml: Margin left: "0" - "9"
1600
1224
  style: The style of the component.
1601
1225
  key: A unique key for the component.
1602
1226
  id: The id for the component.
1603
1227
  class_name: The class name for the component.
1604
1228
  autofocus: Whether the component should take the focus once the page is loaded
1229
+ _rename_props: props to change the name of
1605
1230
  custom_attrs: custom attribute
1606
1231
  **props: Component properties.
1607
1232