reflex 0.3.5a4__py3-none-any.whl → 0.3.7__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 (138) hide show
  1. reflex/.templates/jinja/web/pages/base_page.js.jinja2 +2 -0
  2. reflex/.templates/web/utils/state.js +1 -1
  3. reflex/__init__.py +29 -6
  4. reflex/__init__.pyi +2 -0
  5. reflex/app.py +3 -0
  6. reflex/components/__init__.py +2 -0
  7. reflex/components/chakra/__init__.py +23 -0
  8. reflex/components/{media → chakra/media}/image.py +1 -28
  9. reflex/components/chakra/media/image.pyi +120 -0
  10. reflex/components/component.py +32 -4
  11. reflex/components/datadisplay/datatable.py +1 -37
  12. reflex/components/datadisplay/datatable.pyi +1 -11
  13. reflex/components/el/elements/forms.py +43 -1
  14. reflex/components/el/elements/forms.pyi +26 -1
  15. reflex/components/graphing/plotly.py +0 -22
  16. reflex/components/graphing/plotly.pyi +0 -12
  17. reflex/components/media/__init__.py +0 -1
  18. reflex/components/media/image.pyi +0 -9
  19. reflex/components/next/__init__.py +8 -0
  20. reflex/components/next/base.py +8 -0
  21. reflex/components/next/base.pyi +91 -0
  22. reflex/components/next/image.py +114 -0
  23. reflex/components/next/image.pyi +122 -0
  24. reflex/components/next/video.py +33 -0
  25. reflex/components/next/video.pyi +92 -0
  26. reflex/components/radix/primitives/__init__.py +3 -0
  27. reflex/components/radix/primitives/accordion.py +279 -0
  28. reflex/components/radix/primitives/accordion.pyi +619 -0
  29. reflex/components/radix/themes/__init__.py +4 -73
  30. reflex/components/radix/themes/base.py +7 -7
  31. reflex/components/radix/themes/base.pyi +21 -21
  32. reflex/components/radix/themes/components/__init__.py +193 -0
  33. reflex/components/radix/themes/components/alertdialog.py +72 -0
  34. reflex/components/radix/themes/components/alertdialog.pyi +733 -0
  35. reflex/components/radix/themes/components/aspectratio.py +20 -0
  36. reflex/components/radix/themes/components/aspectratio.pyi +144 -0
  37. reflex/components/radix/themes/components/avatar.py +38 -0
  38. reflex/components/radix/themes/components/avatar.pyi +233 -0
  39. reflex/components/radix/themes/components/badge.py +38 -0
  40. reflex/components/radix/themes/components/badge.pyi +291 -0
  41. reflex/components/radix/themes/components/button.py +39 -0
  42. reflex/components/radix/themes/components/button.pyi +330 -0
  43. reflex/components/radix/themes/components/callout.py +49 -0
  44. reflex/components/radix/themes/components/callout.pyi +668 -0
  45. reflex/components/radix/themes/components/card.py +25 -0
  46. reflex/components/radix/themes/components/card.pyi +214 -0
  47. reflex/components/radix/themes/components/checkbox.py +67 -0
  48. reflex/components/radix/themes/components/checkbox.pyi +249 -0
  49. reflex/components/radix/themes/components/contextmenu.py +134 -0
  50. reflex/components/radix/themes/{typography.pyi → components/contextmenu.pyi} +182 -602
  51. reflex/components/radix/themes/components/dialog.py +75 -0
  52. reflex/components/radix/themes/components/dialog.pyi +739 -0
  53. reflex/components/radix/themes/components/dropdownmenu.py +101 -0
  54. reflex/components/radix/themes/components/dropdownmenu.pyi +1065 -0
  55. reflex/components/radix/themes/components/hovercard.py +63 -0
  56. reflex/components/radix/themes/components/hovercard.pyi +487 -0
  57. reflex/components/radix/themes/components/iconbutton.py +39 -0
  58. reflex/components/radix/themes/components/iconbutton.pyi +332 -0
  59. reflex/components/radix/themes/components/icons.py +400 -0
  60. reflex/components/radix/themes/components/icons.pyi +185 -0
  61. reflex/components/radix/themes/components/inset.py +44 -0
  62. reflex/components/radix/themes/components/inset.pyi +230 -0
  63. reflex/components/radix/themes/components/popover.py +85 -0
  64. reflex/components/radix/themes/components/popover.pyi +634 -0
  65. reflex/components/radix/themes/components/radiogroup.py +72 -0
  66. reflex/components/radix/themes/components/radiogroup.pyi +369 -0
  67. reflex/components/radix/themes/components/scrollarea.py +31 -0
  68. reflex/components/radix/themes/components/scrollarea.pyi +165 -0
  69. reflex/components/radix/themes/components/select.py +137 -0
  70. reflex/components/radix/themes/{layout.pyi → components/select.pyi} +422 -418
  71. reflex/components/radix/themes/components/separator.py +30 -0
  72. reflex/components/radix/themes/components/separator.pyi +218 -0
  73. reflex/components/radix/themes/components/slider.py +68 -0
  74. reflex/components/radix/themes/components/slider.pyi +254 -0
  75. reflex/components/radix/themes/components/switch.py +68 -0
  76. reflex/components/radix/themes/components/switch.pyi +250 -0
  77. reflex/components/radix/themes/components/table.py +79 -0
  78. reflex/components/radix/themes/components/table.pyi +1485 -0
  79. reflex/components/radix/themes/components/tabs.py +65 -0
  80. reflex/components/radix/themes/components/tabs.pyi +549 -0
  81. reflex/components/radix/themes/components/textarea.py +68 -0
  82. reflex/components/radix/themes/components/textarea.pyi +333 -0
  83. reflex/components/radix/themes/{components.py → components/textfield.py} +3 -87
  84. reflex/components/radix/themes/{components.pyi → components/textfield.pyi} +202 -591
  85. reflex/components/radix/themes/layout/__init__.py +13 -0
  86. reflex/components/radix/themes/layout/base.py +48 -0
  87. reflex/components/radix/themes/layout/base.pyi +195 -0
  88. reflex/components/radix/themes/layout/box.py +12 -0
  89. reflex/components/radix/themes/layout/box.pyi +252 -0
  90. reflex/components/radix/themes/layout/container.py +23 -0
  91. reflex/components/radix/themes/layout/container.pyi +260 -0
  92. reflex/components/radix/themes/layout/flex.py +45 -0
  93. reflex/components/radix/themes/layout/flex.pyi +303 -0
  94. reflex/components/radix/themes/layout/grid.py +53 -0
  95. reflex/components/radix/themes/layout/grid.pyi +203 -0
  96. reflex/components/radix/themes/layout/section.py +20 -0
  97. reflex/components/radix/themes/layout/section.pyi +260 -0
  98. reflex/components/radix/themes/typography/__init__.py +21 -0
  99. reflex/components/radix/themes/typography/base.py +12 -0
  100. reflex/components/radix/themes/typography/blockquote.py +36 -0
  101. reflex/components/radix/themes/typography/blockquote.pyi +282 -0
  102. reflex/components/radix/themes/typography/code.py +40 -0
  103. reflex/components/radix/themes/typography/code.pyi +292 -0
  104. reflex/components/radix/themes/typography/em.py +18 -0
  105. reflex/components/radix/themes/typography/em.pyi +199 -0
  106. reflex/components/radix/themes/typography/heading.py +50 -0
  107. reflex/components/radix/themes/typography/heading.pyi +298 -0
  108. reflex/components/radix/themes/typography/kbd.py +25 -0
  109. reflex/components/radix/themes/typography/kbd.pyi +208 -0
  110. reflex/components/radix/themes/typography/link.py +49 -0
  111. reflex/components/radix/themes/typography/link.pyi +238 -0
  112. reflex/components/radix/themes/typography/quote.py +18 -0
  113. reflex/components/radix/themes/typography/quote.pyi +200 -0
  114. reflex/components/radix/themes/typography/strong.py +18 -0
  115. reflex/components/radix/themes/typography/strong.pyi +199 -0
  116. reflex/components/radix/themes/typography/text.py +50 -0
  117. reflex/components/radix/themes/typography/text.pyi +298 -0
  118. reflex/components/radix/themes/typography.py +1 -1
  119. reflex/constants/__init__.py +1 -0
  120. reflex/constants/base.py +7 -0
  121. reflex/constants/config.py +1 -1
  122. reflex/model.py +2 -1
  123. reflex/reflex.py +8 -1
  124. reflex/state.py +11 -0
  125. reflex/style.py +120 -10
  126. reflex/testing.py +4 -4
  127. reflex/utils/format.py +9 -5
  128. reflex/utils/prerequisites.py +49 -6
  129. reflex/utils/processes.py +8 -1
  130. reflex/utils/serializers.py +83 -0
  131. reflex/utils/types.py +22 -1
  132. reflex/vars.py +24 -1
  133. {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/METADATA +3 -2
  134. {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/RECORD +137 -44
  135. reflex/components/radix/themes/layout.py +0 -155
  136. {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/LICENSE +0 -0
  137. {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/WHEEL +0 -0
  138. {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,634 @@
1
+ """Stub file for reflex/components/radix/themes/components/popover.py"""
2
+ # ------------------- DO NOT EDIT ----------------------
3
+ # This file was generated by `scripts/pyi_generator.py`!
4
+ # ------------------------------------------------------
5
+
6
+ from typing import Any, Dict, Literal, Optional, Union, overload
7
+ from reflex.vars import Var, BaseVar, ComputedVar
8
+ from reflex.event import EventChain, EventHandler, EventSpec
9
+ from reflex.style import Style
10
+ from typing import Any, Dict, Literal
11
+ from reflex import el
12
+ from reflex.vars import Var
13
+ from ..base import CommonMarginProps, RadixThemesComponent
14
+
15
+ class PopoverRoot(CommonMarginProps, RadixThemesComponent):
16
+ def get_event_triggers(self) -> Dict[str, Any]: ...
17
+ @overload
18
+ @classmethod
19
+ def create( # type: ignore
20
+ cls,
21
+ *children,
22
+ open: Optional[Union[Var[bool], bool]] = None,
23
+ modal: Optional[Union[Var[bool], bool]] = None,
24
+ m: Optional[
25
+ Union[
26
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
27
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
28
+ ]
29
+ ] = None,
30
+ mx: Optional[
31
+ Union[
32
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
33
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
34
+ ]
35
+ ] = None,
36
+ my: Optional[
37
+ Union[
38
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
39
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
40
+ ]
41
+ ] = None,
42
+ mt: Optional[
43
+ Union[
44
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
45
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
46
+ ]
47
+ ] = None,
48
+ mr: Optional[
49
+ Union[
50
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
51
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
52
+ ]
53
+ ] = None,
54
+ mb: Optional[
55
+ Union[
56
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
57
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
58
+ ]
59
+ ] = None,
60
+ ml: Optional[
61
+ Union[
62
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
63
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
64
+ ]
65
+ ] = None,
66
+ style: Optional[Style] = None,
67
+ key: Optional[Any] = None,
68
+ id: Optional[Any] = None,
69
+ class_name: Optional[Any] = None,
70
+ autofocus: Optional[bool] = None,
71
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
72
+ on_blur: Optional[
73
+ Union[EventHandler, EventSpec, list, function, BaseVar]
74
+ ] = None,
75
+ on_click: Optional[
76
+ Union[EventHandler, EventSpec, list, function, BaseVar]
77
+ ] = None,
78
+ on_context_menu: Optional[
79
+ Union[EventHandler, EventSpec, list, function, BaseVar]
80
+ ] = None,
81
+ on_double_click: Optional[
82
+ Union[EventHandler, EventSpec, list, function, BaseVar]
83
+ ] = None,
84
+ on_focus: Optional[
85
+ Union[EventHandler, EventSpec, list, function, BaseVar]
86
+ ] = None,
87
+ on_mount: Optional[
88
+ Union[EventHandler, EventSpec, list, function, BaseVar]
89
+ ] = None,
90
+ on_mouse_down: Optional[
91
+ Union[EventHandler, EventSpec, list, function, BaseVar]
92
+ ] = None,
93
+ on_mouse_enter: Optional[
94
+ Union[EventHandler, EventSpec, list, function, BaseVar]
95
+ ] = None,
96
+ on_mouse_leave: Optional[
97
+ Union[EventHandler, EventSpec, list, function, BaseVar]
98
+ ] = None,
99
+ on_mouse_move: Optional[
100
+ Union[EventHandler, EventSpec, list, function, BaseVar]
101
+ ] = None,
102
+ on_mouse_out: Optional[
103
+ Union[EventHandler, EventSpec, list, function, BaseVar]
104
+ ] = None,
105
+ on_mouse_over: Optional[
106
+ Union[EventHandler, EventSpec, list, function, BaseVar]
107
+ ] = None,
108
+ on_mouse_up: Optional[
109
+ Union[EventHandler, EventSpec, list, function, BaseVar]
110
+ ] = None,
111
+ on_open_change: Optional[
112
+ Union[EventHandler, EventSpec, list, function, BaseVar]
113
+ ] = None,
114
+ on_scroll: Optional[
115
+ Union[EventHandler, EventSpec, list, function, BaseVar]
116
+ ] = None,
117
+ on_unmount: Optional[
118
+ Union[EventHandler, EventSpec, list, function, BaseVar]
119
+ ] = None,
120
+ **props
121
+ ) -> "PopoverRoot":
122
+ """Create a new component instance.
123
+
124
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
125
+ other UI libraries for common names, like Text and Button.
126
+
127
+ Args:
128
+ *children: Child components.
129
+ open: The controlled open state of the popover.
130
+ modal: The modality of the popover. When set to true, interaction with outside elements will be disabled and only popover content will be visible to screen readers.
131
+ m: Margin: "0" - "9"
132
+ mx: Margin horizontal: "0" - "9"
133
+ my: Margin vertical: "0" - "9"
134
+ mt: Margin top: "0" - "9"
135
+ mr: Margin right: "0" - "9"
136
+ mb: Margin bottom: "0" - "9"
137
+ ml: Margin left: "0" - "9"
138
+ style: The style of the component.
139
+ key: A unique key for the component.
140
+ id: The id for the component.
141
+ class_name: The class name for the component.
142
+ autofocus: Whether the component should take the focus once the page is loaded
143
+ custom_attrs: custom attribute
144
+ **props: Component properties.
145
+
146
+ Returns:
147
+ A new component instance.
148
+ """
149
+ ...
150
+
151
+ class PopoverTrigger(CommonMarginProps, RadixThemesComponent):
152
+ @overload
153
+ @classmethod
154
+ def create( # type: ignore
155
+ cls,
156
+ *children,
157
+ m: Optional[
158
+ Union[
159
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
160
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
161
+ ]
162
+ ] = None,
163
+ mx: Optional[
164
+ Union[
165
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
166
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
167
+ ]
168
+ ] = None,
169
+ my: Optional[
170
+ Union[
171
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
172
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
173
+ ]
174
+ ] = None,
175
+ mt: Optional[
176
+ Union[
177
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
178
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
179
+ ]
180
+ ] = None,
181
+ mr: Optional[
182
+ Union[
183
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
184
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
185
+ ]
186
+ ] = None,
187
+ mb: Optional[
188
+ Union[
189
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
190
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
191
+ ]
192
+ ] = None,
193
+ ml: Optional[
194
+ Union[
195
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
196
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
197
+ ]
198
+ ] = None,
199
+ style: Optional[Style] = None,
200
+ key: Optional[Any] = None,
201
+ id: Optional[Any] = None,
202
+ class_name: Optional[Any] = None,
203
+ autofocus: Optional[bool] = None,
204
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
205
+ on_blur: Optional[
206
+ Union[EventHandler, EventSpec, list, function, BaseVar]
207
+ ] = None,
208
+ on_click: Optional[
209
+ Union[EventHandler, EventSpec, list, function, BaseVar]
210
+ ] = None,
211
+ on_context_menu: Optional[
212
+ Union[EventHandler, EventSpec, list, function, BaseVar]
213
+ ] = None,
214
+ on_double_click: Optional[
215
+ Union[EventHandler, EventSpec, list, function, BaseVar]
216
+ ] = None,
217
+ on_focus: Optional[
218
+ Union[EventHandler, EventSpec, list, function, BaseVar]
219
+ ] = None,
220
+ on_mount: Optional[
221
+ Union[EventHandler, EventSpec, list, function, BaseVar]
222
+ ] = None,
223
+ on_mouse_down: Optional[
224
+ Union[EventHandler, EventSpec, list, function, BaseVar]
225
+ ] = None,
226
+ on_mouse_enter: Optional[
227
+ Union[EventHandler, EventSpec, list, function, BaseVar]
228
+ ] = None,
229
+ on_mouse_leave: Optional[
230
+ Union[EventHandler, EventSpec, list, function, BaseVar]
231
+ ] = None,
232
+ on_mouse_move: Optional[
233
+ Union[EventHandler, EventSpec, list, function, BaseVar]
234
+ ] = None,
235
+ on_mouse_out: Optional[
236
+ Union[EventHandler, EventSpec, list, function, BaseVar]
237
+ ] = None,
238
+ on_mouse_over: Optional[
239
+ Union[EventHandler, EventSpec, list, function, BaseVar]
240
+ ] = None,
241
+ on_mouse_up: Optional[
242
+ Union[EventHandler, EventSpec, list, function, BaseVar]
243
+ ] = None,
244
+ on_scroll: Optional[
245
+ Union[EventHandler, EventSpec, list, function, BaseVar]
246
+ ] = None,
247
+ on_unmount: Optional[
248
+ Union[EventHandler, EventSpec, list, function, BaseVar]
249
+ ] = None,
250
+ **props
251
+ ) -> "PopoverTrigger":
252
+ """Create a new component instance.
253
+
254
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
255
+ other UI libraries for common names, like Text and Button.
256
+
257
+ Args:
258
+ *children: Child components.
259
+ m: Margin: "0" - "9"
260
+ mx: Margin horizontal: "0" - "9"
261
+ my: Margin vertical: "0" - "9"
262
+ mt: Margin top: "0" - "9"
263
+ mr: Margin right: "0" - "9"
264
+ mb: Margin bottom: "0" - "9"
265
+ ml: Margin left: "0" - "9"
266
+ style: The style of the component.
267
+ key: A unique key for the component.
268
+ id: The id for the component.
269
+ class_name: The class name for the component.
270
+ autofocus: Whether the component should take the focus once the page is loaded
271
+ custom_attrs: custom attribute
272
+ **props: Component properties.
273
+
274
+ Returns:
275
+ A new component instance.
276
+ """
277
+ ...
278
+
279
+ class PopoverContent(el.Div, CommonMarginProps, RadixThemesComponent):
280
+ def get_event_triggers(self) -> Dict[str, Any]: ...
281
+ @overload
282
+ @classmethod
283
+ def create( # type: ignore
284
+ cls,
285
+ *children,
286
+ size: Optional[Union[Var[Literal[1, 2, 3, 4]], Literal[1, 2, 3, 4]]] = None,
287
+ side: Optional[
288
+ Union[
289
+ Var[Literal["top", "right", "bottom", "left"]],
290
+ Literal["top", "right", "bottom", "left"],
291
+ ]
292
+ ] = None,
293
+ side_offset: Optional[Union[Var[int], int]] = None,
294
+ align: Optional[
295
+ Union[
296
+ Var[Literal["start", "center", "end"]],
297
+ Literal["start", "center", "end"],
298
+ ]
299
+ ] = None,
300
+ align_offset: Optional[Union[Var[int], int]] = None,
301
+ avoid_collisions: Optional[Union[Var[bool], bool]] = None,
302
+ access_key: Optional[
303
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
304
+ ] = None,
305
+ auto_capitalize: Optional[
306
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
307
+ ] = None,
308
+ content_editable: Optional[
309
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
310
+ ] = None,
311
+ context_menu: Optional[
312
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
313
+ ] = None,
314
+ dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
315
+ draggable: Optional[
316
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
317
+ ] = None,
318
+ enter_key_hint: Optional[
319
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
320
+ ] = None,
321
+ hidden: Optional[
322
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
323
+ ] = None,
324
+ input_mode: Optional[
325
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
326
+ ] = None,
327
+ item_prop: Optional[
328
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
329
+ ] = None,
330
+ lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
331
+ role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
332
+ slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
333
+ spell_check: Optional[
334
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
335
+ ] = None,
336
+ tab_index: Optional[
337
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
338
+ ] = None,
339
+ title: Optional[
340
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
341
+ ] = None,
342
+ translate: Optional[
343
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
344
+ ] = None,
345
+ m: Optional[
346
+ Union[
347
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
348
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
349
+ ]
350
+ ] = None,
351
+ mx: Optional[
352
+ Union[
353
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
354
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
355
+ ]
356
+ ] = None,
357
+ my: Optional[
358
+ Union[
359
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
360
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
361
+ ]
362
+ ] = None,
363
+ mt: Optional[
364
+ Union[
365
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
366
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
367
+ ]
368
+ ] = None,
369
+ mr: Optional[
370
+ Union[
371
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
372
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
373
+ ]
374
+ ] = None,
375
+ mb: Optional[
376
+ Union[
377
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
378
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
379
+ ]
380
+ ] = None,
381
+ ml: Optional[
382
+ Union[
383
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
384
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
385
+ ]
386
+ ] = None,
387
+ style: Optional[Style] = None,
388
+ key: Optional[Any] = None,
389
+ id: Optional[Any] = None,
390
+ class_name: Optional[Any] = None,
391
+ autofocus: Optional[bool] = None,
392
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
393
+ on_blur: Optional[
394
+ Union[EventHandler, EventSpec, list, function, BaseVar]
395
+ ] = None,
396
+ on_click: Optional[
397
+ Union[EventHandler, EventSpec, list, function, BaseVar]
398
+ ] = None,
399
+ on_close_auto_focus: Optional[
400
+ Union[EventHandler, EventSpec, list, function, BaseVar]
401
+ ] = None,
402
+ on_context_menu: Optional[
403
+ Union[EventHandler, EventSpec, list, function, BaseVar]
404
+ ] = None,
405
+ on_double_click: Optional[
406
+ Union[EventHandler, EventSpec, list, function, BaseVar]
407
+ ] = None,
408
+ on_escape_key_down: Optional[
409
+ Union[EventHandler, EventSpec, list, function, BaseVar]
410
+ ] = None,
411
+ on_focus: Optional[
412
+ Union[EventHandler, EventSpec, list, function, BaseVar]
413
+ ] = None,
414
+ on_focus_outside: Optional[
415
+ Union[EventHandler, EventSpec, list, function, BaseVar]
416
+ ] = None,
417
+ on_interact_outside: Optional[
418
+ Union[EventHandler, EventSpec, list, function, BaseVar]
419
+ ] = None,
420
+ on_mount: Optional[
421
+ Union[EventHandler, EventSpec, list, function, BaseVar]
422
+ ] = None,
423
+ on_mouse_down: Optional[
424
+ Union[EventHandler, EventSpec, list, function, BaseVar]
425
+ ] = None,
426
+ on_mouse_enter: Optional[
427
+ Union[EventHandler, EventSpec, list, function, BaseVar]
428
+ ] = None,
429
+ on_mouse_leave: Optional[
430
+ Union[EventHandler, EventSpec, list, function, BaseVar]
431
+ ] = None,
432
+ on_mouse_move: Optional[
433
+ Union[EventHandler, EventSpec, list, function, BaseVar]
434
+ ] = None,
435
+ on_mouse_out: Optional[
436
+ Union[EventHandler, EventSpec, list, function, BaseVar]
437
+ ] = None,
438
+ on_mouse_over: Optional[
439
+ Union[EventHandler, EventSpec, list, function, BaseVar]
440
+ ] = None,
441
+ on_mouse_up: Optional[
442
+ Union[EventHandler, EventSpec, list, function, BaseVar]
443
+ ] = None,
444
+ on_open_auto_focus: Optional[
445
+ Union[EventHandler, EventSpec, list, function, BaseVar]
446
+ ] = None,
447
+ on_pointer_down_outside: Optional[
448
+ Union[EventHandler, EventSpec, list, function, BaseVar]
449
+ ] = None,
450
+ on_scroll: Optional[
451
+ Union[EventHandler, EventSpec, list, function, BaseVar]
452
+ ] = None,
453
+ on_unmount: Optional[
454
+ Union[EventHandler, EventSpec, list, function, BaseVar]
455
+ ] = None,
456
+ **props
457
+ ) -> "PopoverContent":
458
+ """Create a new component instance.
459
+
460
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
461
+ other UI libraries for common names, like Text and Button.
462
+
463
+ Args:
464
+ *children: Child components.
465
+ size: Size of the button: "1" | "2" | "3" | "4"
466
+ side: The preferred side of the anchor to render against when open. Will be reversed when collisions occur and avoidCollisions is enabled.
467
+ side_offset: The distance in pixels from the anchor.
468
+ align: The preferred alignment against the anchor. May change when collisions occur.
469
+ align_offset: The vertical distance in pixels from the anchor.
470
+ avoid_collisions: When true, overrides the side andalign preferences to prevent collisions with boundary edges.
471
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
472
+ auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
473
+ content_editable: Indicates whether the element's content is editable.
474
+ context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
475
+ dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
476
+ draggable: Defines whether the element can be dragged.
477
+ enter_key_hint: Hints what media types the media element is able to play.
478
+ hidden: Defines whether the element is hidden.
479
+ input_mode: Defines the type of the element.
480
+ item_prop: Defines the name of the element for metadata purposes.
481
+ lang: Defines the language used in the element.
482
+ role: Defines the role of the element.
483
+ slot: Assigns a slot in a shadow DOM shadow tree to an element.
484
+ spell_check: Defines whether the element may be checked for spelling errors.
485
+ tab_index: Defines the position of the current element in the tabbing order.
486
+ title: Defines a tooltip for the element.
487
+ translate: Specifies whether the content of an element should be translated or not.
488
+ m: Margin: "0" - "9"
489
+ mx: Margin horizontal: "0" - "9"
490
+ my: Margin vertical: "0" - "9"
491
+ mt: Margin top: "0" - "9"
492
+ mr: Margin right: "0" - "9"
493
+ mb: Margin bottom: "0" - "9"
494
+ ml: Margin left: "0" - "9"
495
+ style: The style of the component.
496
+ key: A unique key for the component.
497
+ id: The id for the component.
498
+ class_name: The class name for the component.
499
+ autofocus: Whether the component should take the focus once the page is loaded
500
+ custom_attrs: custom attribute
501
+ **props: Component properties.
502
+
503
+ Returns:
504
+ A new component instance.
505
+ """
506
+ ...
507
+
508
+ class PopoverClose(CommonMarginProps, RadixThemesComponent):
509
+ @overload
510
+ @classmethod
511
+ def create( # type: ignore
512
+ cls,
513
+ *children,
514
+ m: 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
+ ]
519
+ ] = None,
520
+ mx: Optional[
521
+ Union[
522
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
523
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
524
+ ]
525
+ ] = None,
526
+ my: Optional[
527
+ Union[
528
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
529
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
530
+ ]
531
+ ] = None,
532
+ mt: Optional[
533
+ Union[
534
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
535
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
536
+ ]
537
+ ] = None,
538
+ mr: Optional[
539
+ Union[
540
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
541
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
542
+ ]
543
+ ] = None,
544
+ mb: Optional[
545
+ Union[
546
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
547
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
548
+ ]
549
+ ] = None,
550
+ ml: Optional[
551
+ Union[
552
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
553
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
554
+ ]
555
+ ] = None,
556
+ style: Optional[Style] = None,
557
+ key: Optional[Any] = None,
558
+ id: Optional[Any] = None,
559
+ class_name: Optional[Any] = None,
560
+ autofocus: Optional[bool] = None,
561
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
562
+ on_blur: Optional[
563
+ Union[EventHandler, EventSpec, list, function, BaseVar]
564
+ ] = None,
565
+ on_click: Optional[
566
+ Union[EventHandler, EventSpec, list, function, BaseVar]
567
+ ] = None,
568
+ on_context_menu: Optional[
569
+ Union[EventHandler, EventSpec, list, function, BaseVar]
570
+ ] = None,
571
+ on_double_click: Optional[
572
+ Union[EventHandler, EventSpec, list, function, BaseVar]
573
+ ] = None,
574
+ on_focus: Optional[
575
+ Union[EventHandler, EventSpec, list, function, BaseVar]
576
+ ] = None,
577
+ on_mount: Optional[
578
+ Union[EventHandler, EventSpec, list, function, BaseVar]
579
+ ] = None,
580
+ on_mouse_down: Optional[
581
+ Union[EventHandler, EventSpec, list, function, BaseVar]
582
+ ] = None,
583
+ on_mouse_enter: Optional[
584
+ Union[EventHandler, EventSpec, list, function, BaseVar]
585
+ ] = None,
586
+ on_mouse_leave: Optional[
587
+ Union[EventHandler, EventSpec, list, function, BaseVar]
588
+ ] = None,
589
+ on_mouse_move: Optional[
590
+ Union[EventHandler, EventSpec, list, function, BaseVar]
591
+ ] = None,
592
+ on_mouse_out: Optional[
593
+ Union[EventHandler, EventSpec, list, function, BaseVar]
594
+ ] = None,
595
+ on_mouse_over: Optional[
596
+ Union[EventHandler, EventSpec, list, function, BaseVar]
597
+ ] = None,
598
+ on_mouse_up: Optional[
599
+ Union[EventHandler, EventSpec, list, function, BaseVar]
600
+ ] = None,
601
+ on_scroll: Optional[
602
+ Union[EventHandler, EventSpec, list, function, BaseVar]
603
+ ] = None,
604
+ on_unmount: Optional[
605
+ Union[EventHandler, EventSpec, list, function, BaseVar]
606
+ ] = None,
607
+ **props
608
+ ) -> "PopoverClose":
609
+ """Create a new component instance.
610
+
611
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
612
+ other UI libraries for common names, like Text and Button.
613
+
614
+ Args:
615
+ *children: Child components.
616
+ m: Margin: "0" - "9"
617
+ mx: Margin horizontal: "0" - "9"
618
+ my: Margin vertical: "0" - "9"
619
+ mt: Margin top: "0" - "9"
620
+ mr: Margin right: "0" - "9"
621
+ mb: Margin bottom: "0" - "9"
622
+ ml: Margin left: "0" - "9"
623
+ style: The style of the component.
624
+ key: A unique key for the component.
625
+ id: The id for the component.
626
+ class_name: The class name for the component.
627
+ autofocus: Whether the component should take the focus once the page is loaded
628
+ custom_attrs: custom attribute
629
+ **props: Component properties.
630
+
631
+ Returns:
632
+ A new component instance.
633
+ """
634
+ ...