reflex 0.5.9a1__py3-none-any.whl → 0.5.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 (169) hide show
  1. reflex/__init__.py +21 -2
  2. reflex/__init__.pyi +0 -1
  3. reflex/app.py +1 -1
  4. reflex/components/__init__.py +0 -1
  5. reflex/components/__init__.pyi +0 -1
  6. reflex/components/markdown/markdown.py +1 -1
  7. reflex/components/recharts/cartesian.py +3 -0
  8. reflex/components/recharts/cartesian.pyi +2 -0
  9. reflex/components/sonner/toast.py +27 -1
  10. reflex/components/sonner/toast.pyi +5 -0
  11. reflex/constants/base.py +2 -0
  12. reflex/constants/installer.py +2 -0
  13. reflex/experimental/hooks.py +1 -1
  14. reflex/reflex.py +0 -15
  15. reflex/state.py +22 -22
  16. reflex/testing.py +8 -3
  17. reflex/utils/net.py +43 -0
  18. reflex/utils/prerequisites.py +27 -126
  19. reflex/utils/registry.py +48 -0
  20. reflex/utils/types.py +1 -1
  21. reflex/vars.py +4 -2
  22. {reflex-0.5.9a1.dist-info → reflex-0.5.10.dist-info}/METADATA +2 -1
  23. {reflex-0.5.9a1.dist-info → reflex-0.5.10.dist-info}/RECORD +26 -167
  24. reflex/components/chakra/__init__.py +0 -204
  25. reflex/components/chakra/base.py +0 -210
  26. reflex/components/chakra/base.pyi +0 -319
  27. reflex/components/chakra/datadisplay/__init__.py +0 -10
  28. reflex/components/chakra/datadisplay/badge.py +0 -16
  29. reflex/components/chakra/datadisplay/badge.pyi +0 -96
  30. reflex/components/chakra/datadisplay/code.py +0 -11
  31. reflex/components/chakra/datadisplay/code.pyi +0 -87
  32. reflex/components/chakra/datadisplay/divider.py +0 -20
  33. reflex/components/chakra/datadisplay/divider.pyi +0 -100
  34. reflex/components/chakra/datadisplay/keyboard_key.py +0 -9
  35. reflex/components/chakra/datadisplay/keyboard_key.pyi +0 -87
  36. reflex/components/chakra/datadisplay/list.py +0 -60
  37. reflex/components/chakra/datadisplay/list.pyi +0 -339
  38. reflex/components/chakra/datadisplay/stat.py +0 -80
  39. reflex/components/chakra/datadisplay/stat.pyi +0 -477
  40. reflex/components/chakra/datadisplay/table.py +0 -305
  41. reflex/components/chakra/datadisplay/table.pyi +0 -737
  42. reflex/components/chakra/datadisplay/tag.py +0 -85
  43. reflex/components/chakra/datadisplay/tag.pyi +0 -433
  44. reflex/components/chakra/disclosure/__init__.py +0 -14
  45. reflex/components/chakra/disclosure/accordion.py +0 -110
  46. reflex/components/chakra/disclosure/accordion.pyi +0 -411
  47. reflex/components/chakra/disclosure/tabs.py +0 -117
  48. reflex/components/chakra/disclosure/tabs.pyi +0 -496
  49. reflex/components/chakra/disclosure/transition.py +0 -73
  50. reflex/components/chakra/disclosure/transition.pyi +0 -509
  51. reflex/components/chakra/disclosure/visuallyhidden.py +0 -9
  52. reflex/components/chakra/disclosure/visuallyhidden.pyi +0 -87
  53. reflex/components/chakra/feedback/__init__.py +0 -7
  54. reflex/components/chakra/feedback/alert.py +0 -68
  55. reflex/components/chakra/feedback/alert.pyi +0 -335
  56. reflex/components/chakra/feedback/circularprogress.py +0 -68
  57. reflex/components/chakra/feedback/circularprogress.pyi +0 -185
  58. reflex/components/chakra/feedback/progress.py +0 -33
  59. reflex/components/chakra/feedback/progress.pyi +0 -101
  60. reflex/components/chakra/feedback/skeleton.py +0 -70
  61. reflex/components/chakra/feedback/skeleton.pyi +0 -271
  62. reflex/components/chakra/feedback/spinner.py +0 -25
  63. reflex/components/chakra/feedback/spinner.pyi +0 -102
  64. reflex/components/chakra/forms/__init__.py +0 -49
  65. reflex/components/chakra/forms/button.py +0 -83
  66. reflex/components/chakra/forms/button.pyi +0 -262
  67. reflex/components/chakra/forms/checkbox.py +0 -77
  68. reflex/components/chakra/forms/checkbox.pyi +0 -247
  69. reflex/components/chakra/forms/colormodeswitch.py +0 -104
  70. reflex/components/chakra/forms/colormodeswitch.pyi +0 -473
  71. reflex/components/chakra/forms/date_picker.py +0 -11
  72. reflex/components/chakra/forms/date_picker.pyi +0 -129
  73. reflex/components/chakra/forms/date_time_picker.py +0 -11
  74. reflex/components/chakra/forms/date_time_picker.pyi +0 -129
  75. reflex/components/chakra/forms/editable.py +0 -67
  76. reflex/components/chakra/forms/editable.pyi +0 -343
  77. reflex/components/chakra/forms/email.py +0 -11
  78. reflex/components/chakra/forms/email.pyi +0 -129
  79. reflex/components/chakra/forms/form.py +0 -103
  80. reflex/components/chakra/forms/form.pyi +0 -484
  81. reflex/components/chakra/forms/iconbutton.py +0 -38
  82. reflex/components/chakra/forms/iconbutton.pyi +0 -108
  83. reflex/components/chakra/forms/input.py +0 -130
  84. reflex/components/chakra/forms/input.pyi +0 -566
  85. reflex/components/chakra/forms/multiselect.py +0 -355
  86. reflex/components/chakra/forms/numberinput.py +0 -128
  87. reflex/components/chakra/forms/numberinput.pyi +0 -442
  88. reflex/components/chakra/forms/password.py +0 -11
  89. reflex/components/chakra/forms/password.pyi +0 -129
  90. reflex/components/chakra/forms/pininput.py +0 -201
  91. reflex/components/chakra/forms/pininput.pyi +0 -215
  92. reflex/components/chakra/forms/radio.py +0 -101
  93. reflex/components/chakra/forms/radio.pyi +0 -197
  94. reflex/components/chakra/forms/rangeslider.py +0 -149
  95. reflex/components/chakra/forms/rangeslider.pyi +0 -354
  96. reflex/components/chakra/forms/select.py +0 -103
  97. reflex/components/chakra/forms/select.pyi +0 -204
  98. reflex/components/chakra/forms/slider.py +0 -130
  99. reflex/components/chakra/forms/slider.pyi +0 -449
  100. reflex/components/chakra/forms/switch.py +0 -49
  101. reflex/components/chakra/forms/switch.pyi +0 -159
  102. reflex/components/chakra/forms/textarea.py +0 -79
  103. reflex/components/chakra/forms/textarea.pyi +0 -123
  104. reflex/components/chakra/forms/time_picker.py +0 -11
  105. reflex/components/chakra/forms/time_picker.pyi +0 -129
  106. reflex/components/chakra/layout/__init__.py +0 -14
  107. reflex/components/chakra/layout/aspect_ratio.py +0 -13
  108. reflex/components/chakra/layout/aspect_ratio.pyi +0 -89
  109. reflex/components/chakra/layout/box.py +0 -31
  110. reflex/components/chakra/layout/box.pyi +0 -93
  111. reflex/components/chakra/layout/card.py +0 -100
  112. reflex/components/chakra/layout/card.pyi +0 -379
  113. reflex/components/chakra/layout/center.py +0 -21
  114. reflex/components/chakra/layout/center.pyi +0 -239
  115. reflex/components/chakra/layout/container.py +0 -13
  116. reflex/components/chakra/layout/container.pyi +0 -89
  117. reflex/components/chakra/layout/flex.py +0 -33
  118. reflex/components/chakra/layout/flex.pyi +0 -101
  119. reflex/components/chakra/layout/grid.py +0 -125
  120. reflex/components/chakra/layout/grid.pyi +0 -293
  121. reflex/components/chakra/layout/spacer.py +0 -9
  122. reflex/components/chakra/layout/spacer.pyi +0 -87
  123. reflex/components/chakra/layout/stack.py +0 -48
  124. reflex/components/chakra/layout/stack.pyi +0 -305
  125. reflex/components/chakra/layout/wrap.py +0 -57
  126. reflex/components/chakra/layout/wrap.pyi +0 -179
  127. reflex/components/chakra/media/__init__.py +0 -7
  128. reflex/components/chakra/media/avatar.py +0 -58
  129. reflex/components/chakra/media/avatar.pyi +0 -267
  130. reflex/components/chakra/media/icon.py +0 -111
  131. reflex/components/chakra/media/icon.pyi +0 -171
  132. reflex/components/chakra/media/image.py +0 -74
  133. reflex/components/chakra/media/image.pyi +0 -118
  134. reflex/components/chakra/navigation/__init__.py +0 -18
  135. reflex/components/chakra/navigation/breadcrumb.py +0 -98
  136. reflex/components/chakra/navigation/breadcrumb.pyi +0 -351
  137. reflex/components/chakra/navigation/link.py +0 -62
  138. reflex/components/chakra/navigation/link.pyi +0 -105
  139. reflex/components/chakra/navigation/linkoverlay.py +0 -22
  140. reflex/components/chakra/navigation/linkoverlay.pyi +0 -167
  141. reflex/components/chakra/navigation/stepper.py +0 -113
  142. reflex/components/chakra/navigation/stepper.pyi +0 -762
  143. reflex/components/chakra/overlay/__init__.py +0 -50
  144. reflex/components/chakra/overlay/alertdialog.py +0 -153
  145. reflex/components/chakra/overlay/alertdialog.pyi +0 -612
  146. reflex/components/chakra/overlay/drawer.py +0 -168
  147. reflex/components/chakra/overlay/drawer.pyi +0 -652
  148. reflex/components/chakra/overlay/menu.py +0 -225
  149. reflex/components/chakra/overlay/menu.pyi +0 -708
  150. reflex/components/chakra/overlay/modal.py +0 -166
  151. reflex/components/chakra/overlay/modal.pyi +0 -600
  152. reflex/components/chakra/overlay/popover.py +0 -183
  153. reflex/components/chakra/overlay/popover.pyi +0 -757
  154. reflex/components/chakra/overlay/tooltip.py +0 -70
  155. reflex/components/chakra/overlay/tooltip.pyi +0 -129
  156. reflex/components/chakra/typography/__init__.py +0 -10
  157. reflex/components/chakra/typography/heading.py +0 -16
  158. reflex/components/chakra/typography/heading.pyi +0 -96
  159. reflex/components/chakra/typography/highlight.py +0 -23
  160. reflex/components/chakra/typography/highlight.pyi +0 -91
  161. reflex/components/chakra/typography/span.py +0 -15
  162. reflex/components/chakra/typography/span.pyi +0 -89
  163. reflex/components/chakra/typography/text.py +0 -18
  164. reflex/components/chakra/typography/text.pyi +0 -91
  165. reflex/components/media/__init__.py +0 -1
  166. reflex/components/media/icon.py +0 -3
  167. {reflex-0.5.9a1.dist-info → reflex-0.5.10.dist-info}/LICENSE +0 -0
  168. {reflex-0.5.9a1.dist-info → reflex-0.5.10.dist-info}/WHEEL +0 -0
  169. {reflex-0.5.9a1.dist-info → reflex-0.5.10.dist-info}/entry_points.txt +0 -0
@@ -1,708 +0,0 @@
1
- """Stub file for reflex/components/chakra/overlay/menu.py"""
2
-
3
- # ------------------- DO NOT EDIT ----------------------
4
- # This file was generated by `reflex/utils/pyi_generator.py`!
5
- # ------------------------------------------------------
6
- from typing import Any, Callable, Dict, List, Literal, Optional, Union, overload
7
-
8
- from reflex.components.chakra import (
9
- ChakraComponent,
10
- )
11
- from reflex.components.component import Component
12
- from reflex.event import EventHandler, EventSpec
13
- from reflex.style import Style
14
- from reflex.vars import BaseVar, Var
15
-
16
- class Menu(ChakraComponent):
17
- @overload
18
- @classmethod
19
- def create( # type: ignore
20
- cls,
21
- *children,
22
- button: Optional[Component] = None,
23
- items: Optional[List] = None,
24
- arrow_padding: Optional[Union[Var[int], int]] = None,
25
- auto_select: Optional[Union[Var[bool], bool]] = None,
26
- boundary: Optional[Union[Var[str], str]] = None,
27
- close_on_blur: Optional[Union[Var[bool], bool]] = None,
28
- close_on_select: Optional[Union[Var[bool], bool]] = None,
29
- default_is_open: Optional[Union[Var[bool], bool]] = None,
30
- direction: Optional[
31
- Union[Var[Literal["ltr", "rtl"]], Literal["ltr", "rtl"]]
32
- ] = None,
33
- flip: Optional[Union[Var[bool], bool]] = None,
34
- gutter: Optional[Union[Var[int], int]] = None,
35
- is_lazy: Optional[Union[Var[bool], bool]] = None,
36
- lazy_behavior: Optional[Union[Var[str], str]] = None,
37
- is_open: Optional[Union[Var[bool], bool]] = None,
38
- match_width: Optional[Union[Var[bool], bool]] = None,
39
- placement: Optional[Union[Var[str], str]] = None,
40
- prevent_overflow: Optional[Union[Var[bool], bool]] = None,
41
- strategy: Optional[
42
- Union[Var[Literal["fixed", "absolute"]], Literal["fixed", "absolute"]]
43
- ] = None,
44
- style: Optional[Style] = None,
45
- key: Optional[Any] = None,
46
- id: Optional[Any] = None,
47
- class_name: Optional[Any] = None,
48
- autofocus: Optional[bool] = None,
49
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
50
- on_blur: Optional[
51
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
52
- ] = None,
53
- on_click: Optional[
54
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
55
- ] = None,
56
- on_close: Optional[
57
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
58
- ] = None,
59
- on_context_menu: Optional[
60
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
61
- ] = None,
62
- on_double_click: Optional[
63
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
64
- ] = None,
65
- on_focus: Optional[
66
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
67
- ] = None,
68
- on_mount: Optional[
69
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
70
- ] = None,
71
- on_mouse_down: Optional[
72
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
73
- ] = None,
74
- on_mouse_enter: Optional[
75
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
76
- ] = None,
77
- on_mouse_leave: Optional[
78
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
79
- ] = None,
80
- on_mouse_move: Optional[
81
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
82
- ] = None,
83
- on_mouse_out: Optional[
84
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
85
- ] = None,
86
- on_mouse_over: Optional[
87
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
88
- ] = None,
89
- on_mouse_up: Optional[
90
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
91
- ] = None,
92
- on_open: Optional[
93
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
94
- ] = None,
95
- on_scroll: Optional[
96
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
97
- ] = None,
98
- on_unmount: Optional[
99
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
100
- ] = None,
101
- **props,
102
- ) -> "Menu":
103
- """Create a menu component.
104
-
105
- Args:
106
- *children: The children of the component.
107
- button: the button that open the menu.
108
- items (list): The items of the menu.
109
- arrow_padding: The padding required to prevent the arrow from reaching the very edge of the popper.
110
- auto_select: If true, the first enabled menu item will receive focus and be selected when the menu opens.
111
- boundary: The boundary area for the popper. Used within the preventOverflow modifier
112
- close_on_blur: If true, the menu will close when you click outside the menu list
113
- close_on_select: If true, the menu will close when a menu item is clicked
114
- default_is_open: If by default the menu is open.
115
- direction: If rtl, popper placement positions will be flipped i.e. 'top-right' will become 'top-left' and vice-verse ("ltr" | "rtl")
116
- flip: If true, the popper will change its placement and flip when it's about to overflow its boundary area.
117
- gutter: The distance or margin between the reference and popper. It is used internally to create an offset modifier. NB: If you define offset prop, it'll override the gutter.
118
- is_lazy: Performance 🚀: If true, the MenuItem rendering will be deferred until the menu is open.
119
- lazy_behavior: Performance 🚀: The lazy behavior of menu's content when not visible. Only works when `isLazy={true}` - "unmount": The menu's content is always unmounted when not open. - "keepMounted": The menu's content initially unmounted, but stays mounted when menu is open.
120
- is_open: Determines if the menu is open or not.
121
- match_width: If true, the popper will match the width of the reference at all times. It's useful for autocomplete, `date-picker` and select patterns.
122
- placement: The placement of the popper relative to its reference.
123
- prevent_overflow: If true, will prevent the popper from being cut off and ensure it's visible within the boundary area.
124
- strategy: The CSS positioning strategy to use. ("fixed" | "absolute")
125
- style: The style of the component.
126
- key: A unique key for the component.
127
- id: The id for the component.
128
- class_name: The class name for the component.
129
- autofocus: Whether the component should take the focus once the page is loaded
130
- custom_attrs: custom attribute
131
- **props: The properties of the component.
132
-
133
- Returns:
134
- The menu component.
135
- """
136
- ...
137
-
138
- class MenuButton(ChakraComponent):
139
- @overload
140
- @classmethod
141
- def create( # type: ignore
142
- cls,
143
- *children,
144
- variant: Optional[Union[Var[str], str]] = None,
145
- as_: Optional[Union[Var[str], str]] = None,
146
- style: Optional[Style] = None,
147
- key: Optional[Any] = None,
148
- id: Optional[Any] = None,
149
- class_name: Optional[Any] = None,
150
- autofocus: Optional[bool] = None,
151
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
152
- on_blur: Optional[
153
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
154
- ] = None,
155
- on_click: Optional[
156
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
157
- ] = None,
158
- on_context_menu: Optional[
159
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
160
- ] = None,
161
- on_double_click: Optional[
162
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
163
- ] = None,
164
- on_focus: Optional[
165
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
166
- ] = None,
167
- on_mount: Optional[
168
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
169
- ] = None,
170
- on_mouse_down: Optional[
171
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
172
- ] = None,
173
- on_mouse_enter: Optional[
174
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
175
- ] = None,
176
- on_mouse_leave: Optional[
177
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
178
- ] = None,
179
- on_mouse_move: Optional[
180
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
181
- ] = None,
182
- on_mouse_out: Optional[
183
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
184
- ] = None,
185
- on_mouse_over: Optional[
186
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
187
- ] = None,
188
- on_mouse_up: Optional[
189
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
190
- ] = None,
191
- on_scroll: Optional[
192
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
193
- ] = None,
194
- on_unmount: Optional[
195
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
196
- ] = None,
197
- **props,
198
- ) -> "MenuButton":
199
- """Create the component.
200
-
201
- Args:
202
- *children: The children of the component.
203
- variant: The variant of the menu button.
204
- as_: The tag to use for the menu button.
205
- style: The style of the component.
206
- key: A unique key for the component.
207
- id: The id for the component.
208
- class_name: The class name for the component.
209
- autofocus: Whether the component should take the focus once the page is loaded
210
- custom_attrs: custom attribute
211
- **props: The props of the component.
212
-
213
- Returns:
214
- The component.
215
- """
216
- ...
217
-
218
- class MenuList(ChakraComponent):
219
- @overload
220
- @classmethod
221
- def create( # type: ignore
222
- cls,
223
- *children,
224
- items: Optional[list] = None,
225
- style: Optional[Style] = None,
226
- key: Optional[Any] = None,
227
- id: Optional[Any] = None,
228
- class_name: Optional[Any] = None,
229
- autofocus: Optional[bool] = None,
230
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
231
- on_blur: Optional[
232
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
233
- ] = None,
234
- on_click: Optional[
235
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
236
- ] = None,
237
- on_context_menu: Optional[
238
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
239
- ] = None,
240
- on_double_click: Optional[
241
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
242
- ] = None,
243
- on_focus: Optional[
244
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
245
- ] = None,
246
- on_mount: Optional[
247
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
248
- ] = None,
249
- on_mouse_down: Optional[
250
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
251
- ] = None,
252
- on_mouse_enter: Optional[
253
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
254
- ] = None,
255
- on_mouse_leave: Optional[
256
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
257
- ] = None,
258
- on_mouse_move: Optional[
259
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
260
- ] = None,
261
- on_mouse_out: Optional[
262
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
263
- ] = None,
264
- on_mouse_over: Optional[
265
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
266
- ] = None,
267
- on_mouse_up: Optional[
268
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
269
- ] = None,
270
- on_scroll: Optional[
271
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
272
- ] = None,
273
- on_unmount: Optional[
274
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
275
- ] = None,
276
- **props,
277
- ) -> "MenuList":
278
- """Create a MenuList component, and automatically wrap in MenuItem if not already one.
279
-
280
- Args:
281
- *children: The children of the component.
282
- items: A list of item to add as child of the component.
283
- style: The style of the component.
284
- key: A unique key for the component.
285
- id: The id for the component.
286
- class_name: The class name for the component.
287
- autofocus: Whether the component should take the focus once the page is loaded
288
- custom_attrs: custom attribute
289
- **props: The properties of the component.
290
-
291
- Returns:
292
- The MenuList component.
293
- """
294
- ...
295
-
296
- class MenuItem(ChakraComponent):
297
- @overload
298
- @classmethod
299
- def create( # type: ignore
300
- cls,
301
- *children,
302
- close_on_select: Optional[Union[Var[bool], bool]] = None,
303
- command: Optional[Union[Var[str], str]] = None,
304
- command_spacing: Optional[Union[Var[int], int]] = None,
305
- is_disabled: Optional[Union[Var[bool], bool]] = None,
306
- is_focusable: Optional[Union[Var[bool], bool]] = None,
307
- style: Optional[Style] = None,
308
- key: Optional[Any] = None,
309
- id: Optional[Any] = None,
310
- class_name: Optional[Any] = None,
311
- autofocus: Optional[bool] = None,
312
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
313
- on_blur: Optional[
314
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
315
- ] = None,
316
- on_click: Optional[
317
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
318
- ] = None,
319
- on_context_menu: Optional[
320
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
321
- ] = None,
322
- on_double_click: Optional[
323
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
324
- ] = None,
325
- on_focus: Optional[
326
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
327
- ] = None,
328
- on_mount: Optional[
329
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
330
- ] = None,
331
- on_mouse_down: Optional[
332
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
333
- ] = None,
334
- on_mouse_enter: Optional[
335
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
336
- ] = None,
337
- on_mouse_leave: Optional[
338
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
339
- ] = None,
340
- on_mouse_move: Optional[
341
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
342
- ] = None,
343
- on_mouse_out: Optional[
344
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
345
- ] = None,
346
- on_mouse_over: Optional[
347
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
348
- ] = None,
349
- on_mouse_up: Optional[
350
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
351
- ] = None,
352
- on_scroll: Optional[
353
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
354
- ] = None,
355
- on_unmount: Optional[
356
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
357
- ] = None,
358
- **props,
359
- ) -> "MenuItem":
360
- """Create the component.
361
-
362
- Args:
363
- *children: The children of the component.
364
- close_on_select: Overrides the parent menu's closeOnSelect prop.
365
- command: Right-aligned label text content, useful for displaying hotkeys.
366
- command_spacing: The spacing between the command and menu item's label.
367
- is_disabled: If true, the menuitem will be disabled.
368
- is_focusable: If true and the menuitem is disabled, it'll remain keyboard-focusable
369
- style: The style of the component.
370
- key: A unique key for the component.
371
- id: The id for the component.
372
- class_name: The class name for the component.
373
- autofocus: Whether the component should take the focus once the page is loaded
374
- custom_attrs: custom attribute
375
- **props: The props of the component.
376
-
377
- Returns:
378
- The component.
379
- """
380
- ...
381
-
382
- class MenuItemOption(ChakraComponent):
383
- @overload
384
- @classmethod
385
- def create( # type: ignore
386
- cls,
387
- *children,
388
- close_on_select: Optional[Union[Var[bool], bool]] = None,
389
- command: Optional[Union[Var[str], str]] = None,
390
- command_spacing: Optional[Union[Var[int], int]] = None,
391
- is_checked: Optional[Union[Var[bool], bool]] = None,
392
- is_disabled: Optional[Union[Var[bool], bool]] = None,
393
- is_focusable: Optional[Union[Var[bool], bool]] = None,
394
- type_: Optional[
395
- Union[Var[Literal["checkbox", "radio"]], Literal["checkbox", "radio"]]
396
- ] = None,
397
- value: Optional[Union[Var[str], str]] = None,
398
- style: Optional[Style] = None,
399
- key: Optional[Any] = None,
400
- id: Optional[Any] = None,
401
- class_name: Optional[Any] = None,
402
- autofocus: Optional[bool] = None,
403
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
404
- on_blur: Optional[
405
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
406
- ] = None,
407
- on_click: Optional[
408
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
409
- ] = None,
410
- on_context_menu: Optional[
411
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
412
- ] = None,
413
- on_double_click: Optional[
414
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
415
- ] = None,
416
- on_focus: Optional[
417
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
418
- ] = None,
419
- on_mount: Optional[
420
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
421
- ] = None,
422
- on_mouse_down: Optional[
423
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
424
- ] = None,
425
- on_mouse_enter: Optional[
426
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
427
- ] = None,
428
- on_mouse_leave: Optional[
429
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
430
- ] = None,
431
- on_mouse_move: Optional[
432
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
433
- ] = None,
434
- on_mouse_out: Optional[
435
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
436
- ] = None,
437
- on_mouse_over: Optional[
438
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
439
- ] = None,
440
- on_mouse_up: Optional[
441
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
442
- ] = None,
443
- on_scroll: Optional[
444
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
445
- ] = None,
446
- on_unmount: Optional[
447
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
448
- ] = None,
449
- **props,
450
- ) -> "MenuItemOption":
451
- """Create the component.
452
-
453
- Args:
454
- *children: The children of the component.
455
- close_on_select: Overrides the parent menu's closeOnSelect prop.
456
- command: Right-aligned label text content, useful for displaying hotkeys.
457
- command_spacing: The spacing between the command and menu item's label.
458
- is_checked: Determines if menu item is checked.
459
- is_disabled: If true, the menuitem will be disabled.
460
- is_focusable: If true and the menuitem is disabled, it'll remain keyboard-focusable
461
- type_: "checkbox" | "radio"
462
- value: Value of the menu item.
463
- style: The style of the component.
464
- key: A unique key for the component.
465
- id: The id for the component.
466
- class_name: The class name for the component.
467
- autofocus: Whether the component should take the focus once the page is loaded
468
- custom_attrs: custom attribute
469
- **props: The props of the component.
470
-
471
- Returns:
472
- The component.
473
- """
474
- ...
475
-
476
- class MenuGroup(ChakraComponent):
477
- @overload
478
- @classmethod
479
- def create( # type: ignore
480
- cls,
481
- *children,
482
- style: Optional[Style] = None,
483
- key: Optional[Any] = None,
484
- id: Optional[Any] = None,
485
- class_name: Optional[Any] = None,
486
- autofocus: Optional[bool] = None,
487
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
488
- on_blur: Optional[
489
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
490
- ] = None,
491
- on_click: Optional[
492
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
493
- ] = None,
494
- on_context_menu: Optional[
495
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
496
- ] = None,
497
- on_double_click: Optional[
498
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
499
- ] = None,
500
- on_focus: Optional[
501
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
502
- ] = None,
503
- on_mount: Optional[
504
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
505
- ] = None,
506
- on_mouse_down: Optional[
507
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
508
- ] = None,
509
- on_mouse_enter: Optional[
510
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
511
- ] = None,
512
- on_mouse_leave: Optional[
513
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
514
- ] = None,
515
- on_mouse_move: Optional[
516
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
517
- ] = None,
518
- on_mouse_out: Optional[
519
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
520
- ] = None,
521
- on_mouse_over: Optional[
522
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
523
- ] = None,
524
- on_mouse_up: Optional[
525
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
526
- ] = None,
527
- on_scroll: Optional[
528
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
529
- ] = None,
530
- on_unmount: Optional[
531
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
532
- ] = None,
533
- **props,
534
- ) -> "MenuGroup":
535
- """Create the component.
536
-
537
- Args:
538
- *children: The children of the component.
539
- style: The style of the component.
540
- key: A unique key for the component.
541
- id: The id for the component.
542
- class_name: The class name for the component.
543
- autofocus: Whether the component should take the focus once the page is loaded
544
- custom_attrs: custom attribute
545
- **props: The props of the component.
546
-
547
- Returns:
548
- The component.
549
- """
550
- ...
551
-
552
- class MenuOptionGroup(ChakraComponent):
553
- @overload
554
- @classmethod
555
- def create( # type: ignore
556
- cls,
557
- *children,
558
- type_: Optional[
559
- Union[Var[Literal["checkbox", "radio"]], Literal["checkbox", "radio"]]
560
- ] = None,
561
- value: Optional[Union[Var[str], str]] = None,
562
- style: Optional[Style] = None,
563
- key: Optional[Any] = None,
564
- id: Optional[Any] = None,
565
- class_name: Optional[Any] = None,
566
- autofocus: Optional[bool] = None,
567
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
568
- on_blur: Optional[
569
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
570
- ] = None,
571
- on_click: Optional[
572
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
573
- ] = None,
574
- on_context_menu: Optional[
575
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
576
- ] = None,
577
- on_double_click: Optional[
578
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
579
- ] = None,
580
- on_focus: Optional[
581
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
582
- ] = None,
583
- on_mount: Optional[
584
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
585
- ] = None,
586
- on_mouse_down: Optional[
587
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
588
- ] = None,
589
- on_mouse_enter: Optional[
590
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
591
- ] = None,
592
- on_mouse_leave: Optional[
593
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
594
- ] = None,
595
- on_mouse_move: Optional[
596
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
597
- ] = None,
598
- on_mouse_out: Optional[
599
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
600
- ] = None,
601
- on_mouse_over: Optional[
602
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
603
- ] = None,
604
- on_mouse_up: Optional[
605
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
606
- ] = None,
607
- on_scroll: Optional[
608
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
609
- ] = None,
610
- on_unmount: Optional[
611
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
612
- ] = None,
613
- **props,
614
- ) -> "MenuOptionGroup":
615
- """Create the component.
616
-
617
- Args:
618
- *children: The children of the component.
619
- type_: "checkbox" | "radio"
620
- value: Value of the option group.
621
- style: The style of the component.
622
- key: A unique key for the component.
623
- id: The id for the component.
624
- class_name: The class name for the component.
625
- autofocus: Whether the component should take the focus once the page is loaded
626
- custom_attrs: custom attribute
627
- **props: The props of the component.
628
-
629
- Returns:
630
- The component.
631
- """
632
- ...
633
-
634
- class MenuDivider(ChakraComponent):
635
- @overload
636
- @classmethod
637
- def create( # type: ignore
638
- cls,
639
- *children,
640
- style: Optional[Style] = None,
641
- key: Optional[Any] = None,
642
- id: Optional[Any] = None,
643
- class_name: Optional[Any] = None,
644
- autofocus: Optional[bool] = None,
645
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
646
- on_blur: Optional[
647
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
648
- ] = None,
649
- on_click: Optional[
650
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
651
- ] = None,
652
- on_context_menu: Optional[
653
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
654
- ] = None,
655
- on_double_click: Optional[
656
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
657
- ] = None,
658
- on_focus: Optional[
659
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
660
- ] = None,
661
- on_mount: Optional[
662
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
663
- ] = None,
664
- on_mouse_down: Optional[
665
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
666
- ] = None,
667
- on_mouse_enter: Optional[
668
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
669
- ] = None,
670
- on_mouse_leave: Optional[
671
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
672
- ] = None,
673
- on_mouse_move: Optional[
674
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
675
- ] = None,
676
- on_mouse_out: Optional[
677
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
678
- ] = None,
679
- on_mouse_over: Optional[
680
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
681
- ] = None,
682
- on_mouse_up: Optional[
683
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
684
- ] = None,
685
- on_scroll: Optional[
686
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
687
- ] = None,
688
- on_unmount: Optional[
689
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
690
- ] = None,
691
- **props,
692
- ) -> "MenuDivider":
693
- """Create the component.
694
-
695
- Args:
696
- *children: The children of the component.
697
- style: The style of the component.
698
- key: A unique key for the component.
699
- id: The id for the component.
700
- class_name: The class name for the component.
701
- autofocus: Whether the component should take the focus once the page is loaded
702
- custom_attrs: custom attribute
703
- **props: The props of the component.
704
-
705
- Returns:
706
- The component.
707
- """
708
- ...