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,11 +7,19 @@ 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, Literal
10
+ from typing import Any, Dict, Literal, Union
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 DropdownMenuRoot(CommonMarginProps, RadixThemesComponent):
15
+ LiteralDirType = Literal["ltr", "rtl"]
16
+ LiteralSizeType = Literal["1", "2"]
17
+ LiteralVariantType = Literal["solid", "soft"]
18
+ LiteralSideType = Literal["top", "right", "bottom", "left"]
19
+ LiteralAlignType = Literal["start", "center", "end"]
20
+ LiteralStickyType = Literal["partial", "always"]
21
+
22
+ class DropdownMenuRoot(RadixThemesComponent):
15
23
  def get_event_triggers(self) -> Dict[str, Any]: ...
16
24
  @overload
17
25
  @classmethod
@@ -81,55 +89,16 @@ class DropdownMenuRoot(CommonMarginProps, RadixThemesComponent):
81
89
  ],
82
90
  ]
83
91
  ] = None,
92
+ default_open: Optional[Union[Var[bool], bool]] = None,
84
93
  open: Optional[Union[Var[bool], bool]] = None,
85
94
  modal: Optional[Union[Var[bool], bool]] = None,
86
- m: Optional[
87
- Union[
88
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
89
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
90
- ]
91
- ] = None,
92
- mx: Optional[
93
- Union[
94
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
95
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
96
- ]
97
- ] = None,
98
- my: Optional[
99
- Union[
100
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
101
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
102
- ]
103
- ] = None,
104
- mt: Optional[
105
- Union[
106
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
107
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
108
- ]
109
- ] = None,
110
- mr: Optional[
111
- Union[
112
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
113
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
114
- ]
115
- ] = None,
116
- mb: Optional[
117
- Union[
118
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
119
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
120
- ]
121
- ] = None,
122
- ml: Optional[
123
- Union[
124
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
125
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
126
- ]
127
- ] = None,
95
+ dir: Optional[Union[Var[Literal["ltr", "rtl"]], Literal["ltr", "rtl"]]] = None,
128
96
  style: Optional[Style] = None,
129
97
  key: Optional[Any] = None,
130
98
  id: Optional[Any] = None,
131
99
  class_name: Optional[Any] = None,
132
100
  autofocus: Optional[bool] = None,
101
+ _rename_props: Optional[Dict[str, str]] = None,
133
102
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
134
103
  on_blur: Optional[
135
104
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -190,20 +159,16 @@ class DropdownMenuRoot(CommonMarginProps, RadixThemesComponent):
190
159
  *children: Child components.
191
160
  color: map to CSS default color property.
192
161
  color_scheme: map to radix color property.
162
+ default_open: The open state of the dropdown menu when it is initially rendered. Use when you do not need to control its open state.
193
163
  open: The controlled open state of the dropdown menu. Must be used in conjunction with onOpenChange.
194
- modal: The modality of the dropdown menu. When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers.
195
- m: Margin: "0" - "9"
196
- mx: Margin horizontal: "0" - "9"
197
- my: Margin vertical: "0" - "9"
198
- mt: Margin top: "0" - "9"
199
- mr: Margin right: "0" - "9"
200
- mb: Margin bottom: "0" - "9"
201
- ml: Margin left: "0" - "9"
164
+ modal: The modality of the dropdown menu. When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers. Defaults to True.
165
+ dir: The reading direction of submenus when applicable. If omitted, inherits globally from DirectionProvider or assumes LTR (left-to-right) reading mode.
202
166
  style: The style of the component.
203
167
  key: A unique key for the component.
204
168
  id: The id for the component.
205
169
  class_name: The class name for the component.
206
170
  autofocus: Whether the component should take the focus once the page is loaded
171
+ _rename_props: props to change the name of
207
172
  custom_attrs: custom attribute
208
173
  **props: Component properties.
209
174
 
@@ -212,7 +177,7 @@ class DropdownMenuRoot(CommonMarginProps, RadixThemesComponent):
212
177
  """
213
178
  ...
214
179
 
215
- class DropdownMenuTrigger(CommonMarginProps, RadixThemesComponent):
180
+ class DropdownMenuTrigger(RadixThemesComponent):
216
181
  @overload
217
182
  @classmethod
218
183
  def create( # type: ignore
@@ -281,53 +246,13 @@ class DropdownMenuTrigger(CommonMarginProps, RadixThemesComponent):
281
246
  ],
282
247
  ]
283
248
  ] = None,
284
- m: Optional[
285
- Union[
286
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
287
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
288
- ]
289
- ] = None,
290
- mx: Optional[
291
- Union[
292
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
293
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
294
- ]
295
- ] = None,
296
- my: Optional[
297
- Union[
298
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
299
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
300
- ]
301
- ] = None,
302
- mt: Optional[
303
- Union[
304
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
305
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
306
- ]
307
- ] = None,
308
- mr: Optional[
309
- Union[
310
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
311
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
312
- ]
313
- ] = None,
314
- mb: Optional[
315
- Union[
316
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
317
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
318
- ]
319
- ] = None,
320
- ml: Optional[
321
- Union[
322
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
323
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
324
- ]
325
- ] = None,
249
+ as_child: Optional[Union[Var[bool], bool]] = None,
326
250
  style: Optional[Style] = None,
327
251
  key: Optional[Any] = None,
328
252
  id: Optional[Any] = None,
329
253
  class_name: Optional[Any] = None,
330
254
  autofocus: Optional[bool] = None,
255
+ _rename_props: Optional[Dict[str, str]] = None,
331
256
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
332
257
  on_blur: Optional[
333
258
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -385,18 +310,13 @@ class DropdownMenuTrigger(CommonMarginProps, RadixThemesComponent):
385
310
  *children: Child components.
386
311
  color: map to CSS default color property.
387
312
  color_scheme: map to radix color property.
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"
313
+ as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
395
314
  style: The style of the component.
396
315
  key: A unique key for the component.
397
316
  id: The id for the component.
398
317
  class_name: The class name for the component.
399
318
  autofocus: Whether the component should take the focus once the page is loaded
319
+ _rename_props: props to change the name of
400
320
  custom_attrs: custom attribute
401
321
  **props: Component properties.
402
322
 
@@ -405,7 +325,7 @@ class DropdownMenuTrigger(CommonMarginProps, RadixThemesComponent):
405
325
  """
406
326
  ...
407
327
 
408
- class DropdownMenuContent(CommonMarginProps, RadixThemesComponent):
328
+ class DropdownMenuContent(RadixThemesComponent):
409
329
  def get_event_triggers(self) -> Dict[str, Any]: ...
410
330
  @overload
411
331
  @classmethod
@@ -475,53 +395,48 @@ class DropdownMenuContent(CommonMarginProps, RadixThemesComponent):
475
395
  ],
476
396
  ]
477
397
  ] = None,
478
- m: Optional[
479
- Union[
480
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
481
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
482
- ]
483
- ] = None,
484
- mx: Optional[
485
- Union[
486
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
487
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
488
- ]
398
+ size: Optional[Union[Var[Literal["1", "2"]], Literal["1", "2"]]] = None,
399
+ variant: Optional[
400
+ Union[Var[Literal["solid", "soft"]], Literal["solid", "soft"]]
489
401
  ] = None,
490
- my: Optional[
402
+ high_contrast: Optional[Union[Var[bool], bool]] = None,
403
+ as_child: Optional[Union[Var[bool], bool]] = None,
404
+ loop: Optional[Union[Var[bool], bool]] = None,
405
+ force_mount: Optional[Union[Var[bool], bool]] = None,
406
+ side: Optional[
491
407
  Union[
492
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
493
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
408
+ Var[Literal["top", "right", "bottom", "left"]],
409
+ Literal["top", "right", "bottom", "left"],
494
410
  ]
495
411
  ] = None,
496
- mt: Optional[
412
+ side_offset: Optional[Union[Var[Union[float, int]], Union[float, int]]] = None,
413
+ align: Optional[
497
414
  Union[
498
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
499
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
415
+ Var[Literal["start", "center", "end"]],
416
+ Literal["start", "center", "end"],
500
417
  ]
501
418
  ] = None,
502
- mr: Optional[
419
+ align_offset: Optional[Union[Var[Union[float, int]], Union[float, int]]] = None,
420
+ avoid_collisions: Optional[Union[Var[bool], bool]] = None,
421
+ collision_padding: Optional[
503
422
  Union[
504
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
505
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
423
+ Var[Union[float, int, Dict[str, Union[float, int]]]],
424
+ Union[float, int, Dict[str, Union[float, int]]],
506
425
  ]
507
426
  ] = None,
508
- mb: Optional[
509
- Union[
510
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
511
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
512
- ]
427
+ arrow_padding: Optional[
428
+ Union[Var[Union[float, int]], Union[float, int]]
513
429
  ] = None,
514
- ml: Optional[
515
- Union[
516
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
517
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
518
- ]
430
+ sticky: Optional[
431
+ Union[Var[Literal["partial", "always"]], Literal["partial", "always"]]
519
432
  ] = None,
433
+ hide_when_detached: Optional[Union[Var[bool], bool]] = None,
520
434
  style: Optional[Style] = None,
521
435
  key: Optional[Any] = None,
522
436
  id: Optional[Any] = None,
523
437
  class_name: Optional[Any] = None,
524
438
  autofocus: Optional[bool] = None,
439
+ _rename_props: Optional[Dict[str, str]] = None,
525
440
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
526
441
  on_blur: Optional[
527
442
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -544,6 +459,9 @@ class DropdownMenuContent(CommonMarginProps, RadixThemesComponent):
544
459
  on_focus: Optional[
545
460
  Union[EventHandler, EventSpec, list, function, BaseVar]
546
461
  ] = None,
462
+ on_focus_outside: Optional[
463
+ Union[EventHandler, EventSpec, list, function, BaseVar]
464
+ ] = None,
547
465
  on_interact_outside: Optional[
548
466
  Union[EventHandler, EventSpec, list, function, BaseVar]
549
467
  ] = None,
@@ -591,18 +509,27 @@ class DropdownMenuContent(CommonMarginProps, RadixThemesComponent):
591
509
  *children: Child components.
592
510
  color: map to CSS default color property.
593
511
  color_scheme: map to radix color property.
594
- m: Margin: "0" - "9"
595
- mx: Margin horizontal: "0" - "9"
596
- my: Margin vertical: "0" - "9"
597
- mt: Margin top: "0" - "9"
598
- mr: Margin right: "0" - "9"
599
- mb: Margin bottom: "0" - "9"
600
- ml: Margin left: "0" - "9"
512
+ size: Dropdown Menu Content size "1" - "2"
513
+ variant: Variant of Dropdown Menu Content: "solid" | "soft"
514
+ high_contrast: Renders the Dropdown Menu Content in higher contrast
515
+ as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
516
+ loop: When True, keyboard navigation will loop from last item to first, and vice versa. Defaults to False.
517
+ force_mount: Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries.
518
+ side: The preferred side of the trigger to render against when open. Will be reversed when collisions occur and `avoid_collisions` is enabled.The position of the tooltip. Defaults to "top".
519
+ side_offset: The distance in pixels from the trigger. Defaults to 0.
520
+ align: The preferred alignment against the trigger. May change when collisions occur. Defaults to "center".
521
+ align_offset: An offset in pixels from the "start" or "end" alignment options.
522
+ avoid_collisions: When true, overrides the side and align preferences to prevent collisions with boundary edges. Defaults to True.
523
+ collision_padding: The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for all sides), or a partial padding object, for example: { "top": 20, "left": 20 }. Defaults to 0.
524
+ arrow_padding: The padding between the arrow and the edges of the content. If your content has border-radius, this will prevent it from overflowing the corners. Defaults to 0.
525
+ sticky: The sticky behavior on the align axis. "partial" will keep the content in the boundary as long as the trigger is at least partially in the boundary whilst "always" will keep the content in the boundary regardless. Defaults to "partial".
526
+ hide_when_detached: Whether to hide the content when the trigger becomes fully occluded. Defaults to False.
601
527
  style: The style of the component.
602
528
  key: A unique key for the component.
603
529
  id: The id for the component.
604
530
  class_name: The class name for the component.
605
531
  autofocus: Whether the component should take the focus once the page is loaded
532
+ _rename_props: props to change the name of
606
533
  custom_attrs: custom attribute
607
534
  **props: Component properties.
608
535
 
@@ -611,7 +538,7 @@ class DropdownMenuContent(CommonMarginProps, RadixThemesComponent):
611
538
  """
612
539
  ...
613
540
 
614
- class DropdownMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
541
+ class DropdownMenuSubTrigger(RadixThemesComponent):
615
542
  @overload
616
543
  @classmethod
617
544
  def create( # type: ignore
@@ -680,53 +607,15 @@ class DropdownMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
680
607
  ],
681
608
  ]
682
609
  ] = None,
683
- m: Optional[
684
- Union[
685
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
686
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
687
- ]
688
- ] = None,
689
- mx: Optional[
690
- Union[
691
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
692
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
693
- ]
694
- ] = None,
695
- my: Optional[
696
- Union[
697
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
698
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
699
- ]
700
- ] = None,
701
- mt: Optional[
702
- Union[
703
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
704
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
705
- ]
706
- ] = None,
707
- mr: Optional[
708
- Union[
709
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
710
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
711
- ]
712
- ] = None,
713
- mb: Optional[
714
- Union[
715
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
716
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
717
- ]
718
- ] = None,
719
- ml: Optional[
720
- Union[
721
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
722
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
723
- ]
724
- ] = None,
610
+ as_child: Optional[Union[Var[bool], bool]] = None,
611
+ disabled: Optional[Union[Var[bool], bool]] = None,
612
+ text_value: Optional[Union[Var[str], str]] = None,
725
613
  style: Optional[Style] = None,
726
614
  key: Optional[Any] = None,
727
615
  id: Optional[Any] = None,
728
616
  class_name: Optional[Any] = None,
729
617
  autofocus: Optional[bool] = None,
618
+ _rename_props: Optional[Dict[str, str]] = None,
730
619
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
731
620
  on_blur: Optional[
732
621
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -784,18 +673,15 @@ class DropdownMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
784
673
  *children: Child components.
785
674
  color: map to CSS default color property.
786
675
  color_scheme: map to radix color property.
787
- m: Margin: "0" - "9"
788
- mx: Margin horizontal: "0" - "9"
789
- my: Margin vertical: "0" - "9"
790
- mt: Margin top: "0" - "9"
791
- mr: Margin right: "0" - "9"
792
- mb: Margin bottom: "0" - "9"
793
- ml: Margin left: "0" - "9"
676
+ as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
677
+ disabled: When true, prevents the user from interacting with the item.
678
+ text_value: Optional text used for typeahead purposes. By default the typeahead behavior will use the .textContent of the item. Use this when the content is complex, or you have non-textual content inside.
794
679
  style: The style of the component.
795
680
  key: A unique key for the component.
796
681
  id: The id for the component.
797
682
  class_name: The class name for the component.
798
683
  autofocus: Whether the component should take the focus once the page is loaded
684
+ _rename_props: props to change the name of
799
685
  custom_attrs: custom attribute
800
686
  **props: Component properties.
801
687
 
@@ -804,7 +690,8 @@ class DropdownMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
804
690
  """
805
691
  ...
806
692
 
807
- class DropdownMenuSub(CommonMarginProps, RadixThemesComponent):
693
+ class DropdownMenuSub(RadixThemesComponent):
694
+ def get_event_triggers(self) -> Dict[str, Any]: ...
808
695
  @overload
809
696
  @classmethod
810
697
  def create( # type: ignore
@@ -873,53 +760,14 @@ class DropdownMenuSub(CommonMarginProps, RadixThemesComponent):
873
760
  ],
874
761
  ]
875
762
  ] = None,
876
- m: Optional[
877
- Union[
878
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
879
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
880
- ]
881
- ] = None,
882
- mx: Optional[
883
- Union[
884
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
885
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
886
- ]
887
- ] = None,
888
- my: Optional[
889
- Union[
890
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
891
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
892
- ]
893
- ] = None,
894
- mt: Optional[
895
- Union[
896
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
897
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
898
- ]
899
- ] = None,
900
- mr: Optional[
901
- Union[
902
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
903
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
904
- ]
905
- ] = None,
906
- mb: Optional[
907
- Union[
908
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
909
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
910
- ]
911
- ] = None,
912
- ml: Optional[
913
- Union[
914
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
915
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
916
- ]
917
- ] = None,
763
+ open: Optional[Union[Var[bool], bool]] = None,
764
+ default_open: Optional[Union[Var[bool], bool]] = None,
918
765
  style: Optional[Style] = None,
919
766
  key: Optional[Any] = None,
920
767
  id: Optional[Any] = None,
921
768
  class_name: Optional[Any] = None,
922
769
  autofocus: Optional[bool] = None,
770
+ _rename_props: Optional[Dict[str, str]] = None,
923
771
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
924
772
  on_blur: Optional[
925
773
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -960,6 +808,9 @@ class DropdownMenuSub(CommonMarginProps, RadixThemesComponent):
960
808
  on_mouse_up: Optional[
961
809
  Union[EventHandler, EventSpec, list, function, BaseVar]
962
810
  ] = None,
811
+ on_open_change: Optional[
812
+ Union[EventHandler, EventSpec, list, function, BaseVar]
813
+ ] = None,
963
814
  on_scroll: Optional[
964
815
  Union[EventHandler, EventSpec, list, function, BaseVar]
965
816
  ] = None,
@@ -977,18 +828,14 @@ class DropdownMenuSub(CommonMarginProps, RadixThemesComponent):
977
828
  *children: Child components.
978
829
  color: map to CSS default color property.
979
830
  color_scheme: map to radix color property.
980
- m: Margin: "0" - "9"
981
- mx: Margin horizontal: "0" - "9"
982
- my: Margin vertical: "0" - "9"
983
- mt: Margin top: "0" - "9"
984
- mr: Margin right: "0" - "9"
985
- mb: Margin bottom: "0" - "9"
986
- ml: Margin left: "0" - "9"
831
+ open: The controlled open state of the submenu. Must be used in conjunction with `on_open_change`.
832
+ default_open: The open state of the submenu when it is initially rendered. Use when you do not need to control its open state.
987
833
  style: The style of the component.
988
834
  key: A unique key for the component.
989
835
  id: The id for the component.
990
836
  class_name: The class name for the component.
991
837
  autofocus: Whether the component should take the focus once the page is loaded
838
+ _rename_props: props to change the name of
992
839
  custom_attrs: custom attribute
993
840
  **props: Component properties.
994
841
 
@@ -997,7 +844,8 @@ class DropdownMenuSub(CommonMarginProps, RadixThemesComponent):
997
844
  """
998
845
  ...
999
846
 
1000
- class DropdownMenuSubContent(CommonMarginProps, RadixThemesComponent):
847
+ class DropdownMenuSubContent(RadixThemesComponent):
848
+ def get_event_triggers(self) -> Dict[str, Any]: ...
1001
849
  @overload
1002
850
  @classmethod
1003
851
  def create( # type: ignore
@@ -1071,53 +919,31 @@ class DropdownMenuSubContent(CommonMarginProps, RadixThemesComponent):
1071
919
  Union[Var[Literal["solid", "soft"]], Literal["solid", "soft"]]
1072
920
  ] = None,
1073
921
  high_contrast: Optional[Union[Var[bool], bool]] = None,
1074
- m: Optional[
922
+ as_child: Optional[Union[Var[bool], bool]] = None,
923
+ loop: Optional[Union[Var[bool], bool]] = None,
924
+ force_mount: Optional[Union[Var[bool], bool]] = None,
925
+ side_offset: Optional[Union[Var[Union[float, int]], Union[float, int]]] = None,
926
+ align_offset: Optional[Union[Var[Union[float, int]], Union[float, int]]] = None,
927
+ avoid_collisions: Optional[Union[Var[bool], bool]] = None,
928
+ collision_padding: Optional[
1075
929
  Union[
1076
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1077
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
930
+ Var[Union[float, int, Dict[str, Union[float, int]]]],
931
+ Union[float, int, Dict[str, Union[float, int]]],
1078
932
  ]
1079
933
  ] = None,
1080
- mx: Optional[
1081
- Union[
1082
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1083
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1084
- ]
934
+ arrow_padding: Optional[
935
+ Union[Var[Union[float, int]], Union[float, int]]
1085
936
  ] = None,
1086
- my: Optional[
1087
- Union[
1088
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1089
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1090
- ]
1091
- ] = None,
1092
- mt: Optional[
1093
- Union[
1094
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1095
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1096
- ]
1097
- ] = None,
1098
- mr: Optional[
1099
- Union[
1100
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1101
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1102
- ]
1103
- ] = None,
1104
- mb: Optional[
1105
- Union[
1106
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1107
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1108
- ]
1109
- ] = None,
1110
- ml: Optional[
1111
- Union[
1112
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1113
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1114
- ]
937
+ sticky: Optional[
938
+ Union[Var[Literal["partial", "always"]], Literal["partial", "always"]]
1115
939
  ] = None,
940
+ hide_when_detached: Optional[Union[Var[bool], bool]] = None,
1116
941
  style: Optional[Style] = None,
1117
942
  key: Optional[Any] = None,
1118
943
  id: Optional[Any] = None,
1119
944
  class_name: Optional[Any] = None,
1120
945
  autofocus: Optional[bool] = None,
946
+ _rename_props: Optional[Dict[str, str]] = None,
1121
947
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1122
948
  on_blur: Optional[
1123
949
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -1131,9 +957,18 @@ class DropdownMenuSubContent(CommonMarginProps, RadixThemesComponent):
1131
957
  on_double_click: Optional[
1132
958
  Union[EventHandler, EventSpec, list, function, BaseVar]
1133
959
  ] = None,
960
+ on_escape_key_down: Optional[
961
+ Union[EventHandler, EventSpec, list, function, BaseVar]
962
+ ] = None,
1134
963
  on_focus: Optional[
1135
964
  Union[EventHandler, EventSpec, list, function, BaseVar]
1136
965
  ] = None,
966
+ on_focus_outside: Optional[
967
+ Union[EventHandler, EventSpec, list, function, BaseVar]
968
+ ] = None,
969
+ on_interact_outside: Optional[
970
+ Union[EventHandler, EventSpec, list, function, BaseVar]
971
+ ] = None,
1137
972
  on_mount: Optional[
1138
973
  Union[EventHandler, EventSpec, list, function, BaseVar]
1139
974
  ] = None,
@@ -1158,6 +993,9 @@ class DropdownMenuSubContent(CommonMarginProps, RadixThemesComponent):
1158
993
  on_mouse_up: Optional[
1159
994
  Union[EventHandler, EventSpec, list, function, BaseVar]
1160
995
  ] = None,
996
+ on_pointer_down_outside: Optional[
997
+ Union[EventHandler, EventSpec, list, function, BaseVar]
998
+ ] = None,
1161
999
  on_scroll: Optional[
1162
1000
  Union[EventHandler, EventSpec, list, function, BaseVar]
1163
1001
  ] = None,
@@ -1175,21 +1013,25 @@ class DropdownMenuSubContent(CommonMarginProps, RadixThemesComponent):
1175
1013
  *children: Child components.
1176
1014
  color: map to CSS default color property.
1177
1015
  color_scheme: map to radix color property.
1178
- size: Button size "1" - "4"
1179
- variant: Variant of button: "solid" | "soft" | "outline" | "ghost"
1180
- high_contrast: Whether to render the button with higher contrast color against background
1181
- m: Margin: "0" - "9"
1182
- mx: Margin horizontal: "0" - "9"
1183
- my: Margin vertical: "0" - "9"
1184
- mt: Margin top: "0" - "9"
1185
- mr: Margin right: "0" - "9"
1186
- mb: Margin bottom: "0" - "9"
1187
- ml: Margin left: "0" - "9"
1016
+ size: Dropdown Menu Sub Content size "1" - "2"
1017
+ variant: Variant of Dropdown Menu Sub Content: "solid" | "soft"
1018
+ high_contrast: Whether to render the component with higher contrast color against background
1019
+ as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
1020
+ loop: When True, keyboard navigation will loop from last item to first, and vice versa. Defaults to False.
1021
+ force_mount: Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries.
1022
+ side_offset: The distance in pixels from the trigger. Defaults to 0.
1023
+ align_offset: An offset in pixels from the "start" or "end" alignment options.
1024
+ avoid_collisions: When true, overrides the side and align preferences to prevent collisions with boundary edges. Defaults to True.
1025
+ collision_padding: The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for all sides), or a partial padding object, for example: { "top": 20, "left": 20 }. Defaults to 0.
1026
+ arrow_padding: The padding between the arrow and the edges of the content. If your content has border-radius, this will prevent it from overflowing the corners. Defaults to 0.
1027
+ sticky: The sticky behavior on the align axis. "partial" will keep the content in the boundary as long as the trigger is at least partially in the boundary whilst "always" will keep the content in the boundary regardless. Defaults to "partial".
1028
+ hide_when_detached: Whether to hide the content when the trigger becomes fully occluded. Defaults to False.
1188
1029
  style: The style of the component.
1189
1030
  key: A unique key for the component.
1190
1031
  id: The id for the component.
1191
1032
  class_name: The class name for the component.
1192
1033
  autofocus: Whether the component should take the focus once the page is loaded
1034
+ _rename_props: props to change the name of
1193
1035
  custom_attrs: custom attribute
1194
1036
  **props: Component properties.
1195
1037
 
@@ -1198,7 +1040,8 @@ class DropdownMenuSubContent(CommonMarginProps, RadixThemesComponent):
1198
1040
  """
1199
1041
  ...
1200
1042
 
1201
- class DropdownMenuItem(CommonMarginProps, RadixThemesComponent):
1043
+ class DropdownMenuItem(RadixThemesComponent):
1044
+ def get_event_triggers(self) -> Dict[str, Any]: ...
1202
1045
  @overload
1203
1046
  @classmethod
1204
1047
  def create( # type: ignore
@@ -1268,53 +1111,15 @@ class DropdownMenuItem(CommonMarginProps, RadixThemesComponent):
1268
1111
  ]
1269
1112
  ] = None,
1270
1113
  shortcut: Optional[Union[Var[str], str]] = None,
1271
- m: Optional[
1272
- Union[
1273
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1274
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1275
- ]
1276
- ] = None,
1277
- mx: Optional[
1278
- Union[
1279
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1280
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1281
- ]
1282
- ] = None,
1283
- my: Optional[
1284
- Union[
1285
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1286
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1287
- ]
1288
- ] = None,
1289
- mt: Optional[
1290
- Union[
1291
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1292
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1293
- ]
1294
- ] = None,
1295
- mr: 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
- mb: 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
- ml: 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,
1114
+ as_child: Optional[Union[Var[bool], bool]] = None,
1115
+ disabled: Optional[Union[Var[bool], bool]] = None,
1116
+ text_value: Optional[Union[Var[str], str]] = None,
1313
1117
  style: Optional[Style] = None,
1314
1118
  key: Optional[Any] = None,
1315
1119
  id: Optional[Any] = None,
1316
1120
  class_name: Optional[Any] = None,
1317
1121
  autofocus: Optional[bool] = None,
1122
+ _rename_props: Optional[Dict[str, str]] = None,
1318
1123
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1319
1124
  on_blur: Optional[
1320
1125
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -1358,6 +1163,9 @@ class DropdownMenuItem(CommonMarginProps, RadixThemesComponent):
1358
1163
  on_scroll: Optional[
1359
1164
  Union[EventHandler, EventSpec, list, function, BaseVar]
1360
1165
  ] = None,
1166
+ on_select: Optional[
1167
+ Union[EventHandler, EventSpec, list, function, BaseVar]
1168
+ ] = None,
1361
1169
  on_unmount: Optional[
1362
1170
  Union[EventHandler, EventSpec, list, function, BaseVar]
1363
1171
  ] = None,
@@ -1373,18 +1181,15 @@ class DropdownMenuItem(CommonMarginProps, RadixThemesComponent):
1373
1181
  color: map to CSS default color property.
1374
1182
  color_scheme: map to radix color property.
1375
1183
  shortcut: Shortcut to render a menu item as a link
1376
- m: Margin: "0" - "9"
1377
- mx: Margin horizontal: "0" - "9"
1378
- my: Margin vertical: "0" - "9"
1379
- mt: Margin top: "0" - "9"
1380
- mr: Margin right: "0" - "9"
1381
- mb: Margin bottom: "0" - "9"
1382
- ml: Margin left: "0" - "9"
1184
+ as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
1185
+ disabled: When true, prevents the user from interacting with the item.
1186
+ text_value: Optional text used for typeahead purposes. By default the typeahead behavior will use the .textContent of the item. Use this when the content is complex, or you have non-textual content inside.
1383
1187
  style: The style of the component.
1384
1188
  key: A unique key for the component.
1385
1189
  id: The id for the component.
1386
1190
  class_name: The class name for the component.
1387
1191
  autofocus: Whether the component should take the focus once the page is loaded
1192
+ _rename_props: props to change the name of
1388
1193
  custom_attrs: custom attribute
1389
1194
  **props: Component properties.
1390
1195
 
@@ -1393,7 +1198,7 @@ class DropdownMenuItem(CommonMarginProps, RadixThemesComponent):
1393
1198
  """
1394
1199
  ...
1395
1200
 
1396
- class DropdownMenuSeparator(CommonMarginProps, RadixThemesComponent):
1201
+ class DropdownMenuSeparator(RadixThemesComponent):
1397
1202
  @overload
1398
1203
  @classmethod
1399
1204
  def create( # type: ignore
@@ -1462,53 +1267,12 @@ class DropdownMenuSeparator(CommonMarginProps, RadixThemesComponent):
1462
1267
  ],
1463
1268
  ]
1464
1269
  ] = None,
1465
- m: Optional[
1466
- Union[
1467
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1468
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1469
- ]
1470
- ] = None,
1471
- mx: Optional[
1472
- Union[
1473
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1474
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1475
- ]
1476
- ] = None,
1477
- my: Optional[
1478
- Union[
1479
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1480
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1481
- ]
1482
- ] = None,
1483
- mt: Optional[
1484
- Union[
1485
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1486
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1487
- ]
1488
- ] = None,
1489
- mr: 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
- mb: 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
- ml: 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
1270
  style: Optional[Style] = None,
1508
1271
  key: Optional[Any] = None,
1509
1272
  id: Optional[Any] = None,
1510
1273
  class_name: Optional[Any] = None,
1511
1274
  autofocus: Optional[bool] = None,
1275
+ _rename_props: Optional[Dict[str, str]] = None,
1512
1276
  custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1513
1277
  on_blur: Optional[
1514
1278
  Union[EventHandler, EventSpec, list, function, BaseVar]
@@ -1566,18 +1330,12 @@ class DropdownMenuSeparator(CommonMarginProps, RadixThemesComponent):
1566
1330
  *children: Child components.
1567
1331
  color: map to CSS default color property.
1568
1332
  color_scheme: map to radix color property.
1569
- m: Margin: "0" - "9"
1570
- mx: Margin horizontal: "0" - "9"
1571
- my: Margin vertical: "0" - "9"
1572
- mt: Margin top: "0" - "9"
1573
- mr: Margin right: "0" - "9"
1574
- mb: Margin bottom: "0" - "9"
1575
- ml: Margin left: "0" - "9"
1576
1333
  style: The style of the component.
1577
1334
  key: A unique key for the component.
1578
1335
  id: The id for the component.
1579
1336
  class_name: The class name for the component.
1580
1337
  autofocus: Whether the component should take the focus once the page is loaded
1338
+ _rename_props: props to change the name of
1581
1339
  custom_attrs: custom attribute
1582
1340
  **props: Component properties.
1583
1341