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,733 @@
1
+ """Stub file for reflex/components/radix/themes/components/alertdialog.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
+ LiteralSwitchSize = Literal["1", "2", "3", "4"]
16
+
17
+ class AlertDialog(CommonMarginProps, RadixThemesComponent):
18
+ def get_event_triggers(self) -> Dict[str, Any]: ...
19
+ @overload
20
+ @classmethod
21
+ def create( # type: ignore
22
+ cls,
23
+ *children,
24
+ open: Optional[Union[Var[bool], bool]] = None,
25
+ m: Optional[
26
+ Union[
27
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
28
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
29
+ ]
30
+ ] = None,
31
+ mx: Optional[
32
+ Union[
33
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
34
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
35
+ ]
36
+ ] = None,
37
+ my: Optional[
38
+ Union[
39
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
40
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
41
+ ]
42
+ ] = None,
43
+ mt: Optional[
44
+ Union[
45
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
46
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
47
+ ]
48
+ ] = None,
49
+ mr: Optional[
50
+ Union[
51
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
52
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
53
+ ]
54
+ ] = None,
55
+ mb: Optional[
56
+ Union[
57
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
58
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
59
+ ]
60
+ ] = None,
61
+ ml: Optional[
62
+ Union[
63
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
64
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
65
+ ]
66
+ ] = None,
67
+ style: Optional[Style] = None,
68
+ key: Optional[Any] = None,
69
+ id: Optional[Any] = None,
70
+ class_name: Optional[Any] = None,
71
+ autofocus: Optional[bool] = None,
72
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
73
+ on_blur: Optional[
74
+ Union[EventHandler, EventSpec, list, function, BaseVar]
75
+ ] = None,
76
+ on_click: Optional[
77
+ Union[EventHandler, EventSpec, list, function, BaseVar]
78
+ ] = None,
79
+ on_context_menu: Optional[
80
+ Union[EventHandler, EventSpec, list, function, BaseVar]
81
+ ] = None,
82
+ on_double_click: Optional[
83
+ Union[EventHandler, EventSpec, list, function, BaseVar]
84
+ ] = None,
85
+ on_focus: Optional[
86
+ Union[EventHandler, EventSpec, list, function, BaseVar]
87
+ ] = None,
88
+ on_mount: Optional[
89
+ Union[EventHandler, EventSpec, list, function, BaseVar]
90
+ ] = None,
91
+ on_mouse_down: Optional[
92
+ Union[EventHandler, EventSpec, list, function, BaseVar]
93
+ ] = None,
94
+ on_mouse_enter: Optional[
95
+ Union[EventHandler, EventSpec, list, function, BaseVar]
96
+ ] = None,
97
+ on_mouse_leave: Optional[
98
+ Union[EventHandler, EventSpec, list, function, BaseVar]
99
+ ] = None,
100
+ on_mouse_move: Optional[
101
+ Union[EventHandler, EventSpec, list, function, BaseVar]
102
+ ] = None,
103
+ on_mouse_out: Optional[
104
+ Union[EventHandler, EventSpec, list, function, BaseVar]
105
+ ] = None,
106
+ on_mouse_over: Optional[
107
+ Union[EventHandler, EventSpec, list, function, BaseVar]
108
+ ] = None,
109
+ on_mouse_up: Optional[
110
+ Union[EventHandler, EventSpec, list, function, BaseVar]
111
+ ] = None,
112
+ on_open_change: Optional[
113
+ Union[EventHandler, EventSpec, list, function, BaseVar]
114
+ ] = None,
115
+ on_scroll: Optional[
116
+ Union[EventHandler, EventSpec, list, function, BaseVar]
117
+ ] = None,
118
+ on_unmount: Optional[
119
+ Union[EventHandler, EventSpec, list, function, BaseVar]
120
+ ] = None,
121
+ **props
122
+ ) -> "AlertDialog":
123
+ """Create a new component instance.
124
+
125
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
126
+ other UI libraries for common names, like Text and Button.
127
+
128
+ Args:
129
+ *children: Child components.
130
+ open: The controlled open state of the dialog.
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 AlertDialogTrigger(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
+ ) -> "AlertDialogTrigger":
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 AlertDialogContent(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
+ force_mount: Optional[Union[Var[bool], bool]] = None,
287
+ access_key: Optional[
288
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
289
+ ] = None,
290
+ auto_capitalize: Optional[
291
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
292
+ ] = None,
293
+ content_editable: Optional[
294
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
295
+ ] = None,
296
+ context_menu: Optional[
297
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
298
+ ] = None,
299
+ dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
300
+ draggable: Optional[
301
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
302
+ ] = None,
303
+ enter_key_hint: Optional[
304
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
305
+ ] = None,
306
+ hidden: Optional[
307
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
308
+ ] = None,
309
+ input_mode: Optional[
310
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
311
+ ] = None,
312
+ item_prop: Optional[
313
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
314
+ ] = None,
315
+ lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
316
+ role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
317
+ slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
318
+ spell_check: Optional[
319
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
320
+ ] = None,
321
+ tab_index: Optional[
322
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
323
+ ] = None,
324
+ title: Optional[
325
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
326
+ ] = None,
327
+ translate: Optional[
328
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
329
+ ] = None,
330
+ m: Optional[
331
+ Union[
332
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
333
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
334
+ ]
335
+ ] = None,
336
+ mx: Optional[
337
+ Union[
338
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
339
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
340
+ ]
341
+ ] = None,
342
+ my: Optional[
343
+ Union[
344
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
345
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
346
+ ]
347
+ ] = None,
348
+ mt: Optional[
349
+ Union[
350
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
351
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
352
+ ]
353
+ ] = None,
354
+ mr: Optional[
355
+ Union[
356
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
357
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
358
+ ]
359
+ ] = None,
360
+ mb: Optional[
361
+ Union[
362
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
363
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
364
+ ]
365
+ ] = None,
366
+ ml: Optional[
367
+ Union[
368
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
369
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
370
+ ]
371
+ ] = None,
372
+ style: Optional[Style] = None,
373
+ key: Optional[Any] = None,
374
+ id: Optional[Any] = None,
375
+ class_name: Optional[Any] = None,
376
+ autofocus: Optional[bool] = None,
377
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
378
+ on_blur: Optional[
379
+ Union[EventHandler, EventSpec, list, function, BaseVar]
380
+ ] = None,
381
+ on_click: Optional[
382
+ Union[EventHandler, EventSpec, list, function, BaseVar]
383
+ ] = None,
384
+ on_close_auto_focus: Optional[
385
+ Union[EventHandler, EventSpec, list, function, BaseVar]
386
+ ] = None,
387
+ on_context_menu: Optional[
388
+ Union[EventHandler, EventSpec, list, function, BaseVar]
389
+ ] = None,
390
+ on_double_click: Optional[
391
+ Union[EventHandler, EventSpec, list, function, BaseVar]
392
+ ] = None,
393
+ on_escape_key_down: Optional[
394
+ Union[EventHandler, EventSpec, list, function, BaseVar]
395
+ ] = None,
396
+ on_focus: Optional[
397
+ Union[EventHandler, EventSpec, list, function, BaseVar]
398
+ ] = None,
399
+ on_mount: Optional[
400
+ Union[EventHandler, EventSpec, list, function, BaseVar]
401
+ ] = None,
402
+ on_mouse_down: Optional[
403
+ Union[EventHandler, EventSpec, list, function, BaseVar]
404
+ ] = None,
405
+ on_mouse_enter: Optional[
406
+ Union[EventHandler, EventSpec, list, function, BaseVar]
407
+ ] = None,
408
+ on_mouse_leave: Optional[
409
+ Union[EventHandler, EventSpec, list, function, BaseVar]
410
+ ] = None,
411
+ on_mouse_move: Optional[
412
+ Union[EventHandler, EventSpec, list, function, BaseVar]
413
+ ] = None,
414
+ on_mouse_out: Optional[
415
+ Union[EventHandler, EventSpec, list, function, BaseVar]
416
+ ] = None,
417
+ on_mouse_over: Optional[
418
+ Union[EventHandler, EventSpec, list, function, BaseVar]
419
+ ] = None,
420
+ on_mouse_up: Optional[
421
+ Union[EventHandler, EventSpec, list, function, BaseVar]
422
+ ] = None,
423
+ on_open_auto_focus: Optional[
424
+ Union[EventHandler, EventSpec, list, function, BaseVar]
425
+ ] = None,
426
+ on_scroll: Optional[
427
+ Union[EventHandler, EventSpec, list, function, BaseVar]
428
+ ] = None,
429
+ on_unmount: Optional[
430
+ Union[EventHandler, EventSpec, list, function, BaseVar]
431
+ ] = None,
432
+ **props
433
+ ) -> "AlertDialogContent":
434
+ """Create a new component instance.
435
+
436
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
437
+ other UI libraries for common names, like Text and Button.
438
+
439
+ Args:
440
+ *children: Child components.
441
+ force_mount: Whether to force mount the content on open.
442
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
443
+ auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
444
+ content_editable: Indicates whether the element's content is editable.
445
+ context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
446
+ dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
447
+ draggable: Defines whether the element can be dragged.
448
+ enter_key_hint: Hints what media types the media element is able to play.
449
+ hidden: Defines whether the element is hidden.
450
+ input_mode: Defines the type of the element.
451
+ item_prop: Defines the name of the element for metadata purposes.
452
+ lang: Defines the language used in the element.
453
+ role: Defines the role of the element.
454
+ slot: Assigns a slot in a shadow DOM shadow tree to an element.
455
+ spell_check: Defines whether the element may be checked for spelling errors.
456
+ tab_index: Defines the position of the current element in the tabbing order.
457
+ title: Defines a tooltip for the element.
458
+ translate: Specifies whether the content of an element should be translated or not.
459
+ m: Margin: "0" - "9"
460
+ mx: Margin horizontal: "0" - "9"
461
+ my: Margin vertical: "0" - "9"
462
+ mt: Margin top: "0" - "9"
463
+ mr: Margin right: "0" - "9"
464
+ mb: Margin bottom: "0" - "9"
465
+ ml: Margin left: "0" - "9"
466
+ style: The style of the component.
467
+ key: A unique key for the component.
468
+ id: The id for the component.
469
+ class_name: The class name for the component.
470
+ autofocus: Whether the component should take the focus once the page is loaded
471
+ custom_attrs: custom attribute
472
+ **props: Component properties.
473
+
474
+ Returns:
475
+ A new component instance.
476
+ """
477
+ ...
478
+
479
+ class AlertDialogTitle(CommonMarginProps, RadixThemesComponent):
480
+ @overload
481
+ @classmethod
482
+ def create( # type: ignore
483
+ cls,
484
+ *children,
485
+ m: Optional[
486
+ Union[
487
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
488
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
489
+ ]
490
+ ] = None,
491
+ mx: Optional[
492
+ Union[
493
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
494
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
495
+ ]
496
+ ] = None,
497
+ my: Optional[
498
+ Union[
499
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
500
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
501
+ ]
502
+ ] = None,
503
+ mt: Optional[
504
+ Union[
505
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
506
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
507
+ ]
508
+ ] = None,
509
+ mr: Optional[
510
+ Union[
511
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
512
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
513
+ ]
514
+ ] = None,
515
+ mb: Optional[
516
+ Union[
517
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
518
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
519
+ ]
520
+ ] = None,
521
+ ml: Optional[
522
+ Union[
523
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
524
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
525
+ ]
526
+ ] = None,
527
+ style: Optional[Style] = None,
528
+ key: Optional[Any] = None,
529
+ id: Optional[Any] = None,
530
+ class_name: Optional[Any] = None,
531
+ autofocus: Optional[bool] = None,
532
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
533
+ on_blur: Optional[
534
+ Union[EventHandler, EventSpec, list, function, BaseVar]
535
+ ] = None,
536
+ on_click: Optional[
537
+ Union[EventHandler, EventSpec, list, function, BaseVar]
538
+ ] = None,
539
+ on_context_menu: Optional[
540
+ Union[EventHandler, EventSpec, list, function, BaseVar]
541
+ ] = None,
542
+ on_double_click: Optional[
543
+ Union[EventHandler, EventSpec, list, function, BaseVar]
544
+ ] = None,
545
+ on_focus: Optional[
546
+ Union[EventHandler, EventSpec, list, function, BaseVar]
547
+ ] = None,
548
+ on_mount: Optional[
549
+ Union[EventHandler, EventSpec, list, function, BaseVar]
550
+ ] = None,
551
+ on_mouse_down: Optional[
552
+ Union[EventHandler, EventSpec, list, function, BaseVar]
553
+ ] = None,
554
+ on_mouse_enter: Optional[
555
+ Union[EventHandler, EventSpec, list, function, BaseVar]
556
+ ] = None,
557
+ on_mouse_leave: Optional[
558
+ Union[EventHandler, EventSpec, list, function, BaseVar]
559
+ ] = None,
560
+ on_mouse_move: Optional[
561
+ Union[EventHandler, EventSpec, list, function, BaseVar]
562
+ ] = None,
563
+ on_mouse_out: Optional[
564
+ Union[EventHandler, EventSpec, list, function, BaseVar]
565
+ ] = None,
566
+ on_mouse_over: Optional[
567
+ Union[EventHandler, EventSpec, list, function, BaseVar]
568
+ ] = None,
569
+ on_mouse_up: Optional[
570
+ Union[EventHandler, EventSpec, list, function, BaseVar]
571
+ ] = None,
572
+ on_scroll: Optional[
573
+ Union[EventHandler, EventSpec, list, function, BaseVar]
574
+ ] = None,
575
+ on_unmount: Optional[
576
+ Union[EventHandler, EventSpec, list, function, BaseVar]
577
+ ] = None,
578
+ **props
579
+ ) -> "AlertDialogTitle":
580
+ """Create a new component instance.
581
+
582
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
583
+ other UI libraries for common names, like Text and Button.
584
+
585
+ Args:
586
+ *children: Child components.
587
+ m: Margin: "0" - "9"
588
+ mx: Margin horizontal: "0" - "9"
589
+ my: Margin vertical: "0" - "9"
590
+ mt: Margin top: "0" - "9"
591
+ mr: Margin right: "0" - "9"
592
+ mb: Margin bottom: "0" - "9"
593
+ ml: Margin left: "0" - "9"
594
+ style: The style of the component.
595
+ key: A unique key for the component.
596
+ id: The id for the component.
597
+ class_name: The class name for the component.
598
+ autofocus: Whether the component should take the focus once the page is loaded
599
+ custom_attrs: custom attribute
600
+ **props: Component properties.
601
+
602
+ Returns:
603
+ A new component instance.
604
+ """
605
+ ...
606
+
607
+ class AlertDialogDescription(CommonMarginProps, RadixThemesComponent):
608
+ @overload
609
+ @classmethod
610
+ def create( # type: ignore
611
+ cls,
612
+ *children,
613
+ m: Optional[
614
+ Union[
615
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
616
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
617
+ ]
618
+ ] = None,
619
+ mx: Optional[
620
+ Union[
621
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
622
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
623
+ ]
624
+ ] = None,
625
+ my: Optional[
626
+ Union[
627
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
628
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
629
+ ]
630
+ ] = None,
631
+ mt: Optional[
632
+ Union[
633
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
634
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
635
+ ]
636
+ ] = None,
637
+ mr: Optional[
638
+ Union[
639
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
640
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
641
+ ]
642
+ ] = None,
643
+ mb: Optional[
644
+ Union[
645
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
646
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
647
+ ]
648
+ ] = None,
649
+ ml: Optional[
650
+ Union[
651
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
652
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
653
+ ]
654
+ ] = None,
655
+ style: Optional[Style] = None,
656
+ key: Optional[Any] = None,
657
+ id: Optional[Any] = None,
658
+ class_name: Optional[Any] = None,
659
+ autofocus: Optional[bool] = None,
660
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
661
+ on_blur: Optional[
662
+ Union[EventHandler, EventSpec, list, function, BaseVar]
663
+ ] = None,
664
+ on_click: Optional[
665
+ Union[EventHandler, EventSpec, list, function, BaseVar]
666
+ ] = None,
667
+ on_context_menu: Optional[
668
+ Union[EventHandler, EventSpec, list, function, BaseVar]
669
+ ] = None,
670
+ on_double_click: Optional[
671
+ Union[EventHandler, EventSpec, list, function, BaseVar]
672
+ ] = None,
673
+ on_focus: Optional[
674
+ Union[EventHandler, EventSpec, list, function, BaseVar]
675
+ ] = None,
676
+ on_mount: Optional[
677
+ Union[EventHandler, EventSpec, list, function, BaseVar]
678
+ ] = None,
679
+ on_mouse_down: Optional[
680
+ Union[EventHandler, EventSpec, list, function, BaseVar]
681
+ ] = None,
682
+ on_mouse_enter: Optional[
683
+ Union[EventHandler, EventSpec, list, function, BaseVar]
684
+ ] = None,
685
+ on_mouse_leave: Optional[
686
+ Union[EventHandler, EventSpec, list, function, BaseVar]
687
+ ] = None,
688
+ on_mouse_move: Optional[
689
+ Union[EventHandler, EventSpec, list, function, BaseVar]
690
+ ] = None,
691
+ on_mouse_out: Optional[
692
+ Union[EventHandler, EventSpec, list, function, BaseVar]
693
+ ] = None,
694
+ on_mouse_over: Optional[
695
+ Union[EventHandler, EventSpec, list, function, BaseVar]
696
+ ] = None,
697
+ on_mouse_up: Optional[
698
+ Union[EventHandler, EventSpec, list, function, BaseVar]
699
+ ] = None,
700
+ on_scroll: Optional[
701
+ Union[EventHandler, EventSpec, list, function, BaseVar]
702
+ ] = None,
703
+ on_unmount: Optional[
704
+ Union[EventHandler, EventSpec, list, function, BaseVar]
705
+ ] = None,
706
+ **props
707
+ ) -> "AlertDialogDescription":
708
+ """Create a new component instance.
709
+
710
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
711
+ other UI libraries for common names, like Text and Button.
712
+
713
+ Args:
714
+ *children: Child components.
715
+ m: Margin: "0" - "9"
716
+ mx: Margin horizontal: "0" - "9"
717
+ my: Margin vertical: "0" - "9"
718
+ mt: Margin top: "0" - "9"
719
+ mr: Margin right: "0" - "9"
720
+ mb: Margin bottom: "0" - "9"
721
+ ml: Margin left: "0" - "9"
722
+ style: The style of the component.
723
+ key: A unique key for the component.
724
+ id: The id for the component.
725
+ class_name: The class name for the component.
726
+ autofocus: Whether the component should take the focus once the page is loaded
727
+ custom_attrs: custom attribute
728
+ **props: Component properties.
729
+
730
+ Returns:
731
+ A new component instance.
732
+ """
733
+ ...