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