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