reflex 0.4.8.post1__py3-none-any.whl → 0.4.9a1__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 (29) hide show
  1. reflex/components/component.py +10 -3
  2. reflex/components/core/debounce.py +4 -1
  3. reflex/constants/installer.py +0 -1
  4. reflex/experimental/__init__.py +2 -0
  5. reflex/experimental/hooks.py +19 -1
  6. reflex/experimental/layout.py +223 -0
  7. reflex/testing.py +23 -6
  8. reflex/utils/prerequisites.py +6 -4
  9. reflex/utils/processes.py +22 -1
  10. reflex/utils/serializers.py +14 -0
  11. reflex/vars.py +1 -1
  12. {reflex-0.4.8.post1.dist-info → reflex-0.4.9a1.dist-info}/METADATA +1 -1
  13. {reflex-0.4.8.post1.dist-info → reflex-0.4.9a1.dist-info}/RECORD +16 -28
  14. reflex/components/radix/themes/components/alertdialog.pyi +0 -1128
  15. reflex/components/radix/themes/components/aspectratio.pyi +0 -162
  16. reflex/components/radix/themes/components/contextmenu.pyi +0 -1249
  17. reflex/components/radix/themes/components/dropdownmenu.pyi +0 -1350
  18. reflex/components/radix/themes/components/hovercard.pyi +0 -700
  19. reflex/components/radix/themes/components/iconbutton.pyi +0 -284
  20. reflex/components/radix/themes/components/radiogroup.pyi +0 -701
  21. reflex/components/radix/themes/components/scrollarea.pyi +0 -176
  22. reflex/components/radix/themes/components/textfield.pyi +0 -1092
  23. reflex/components/radix/themes/typography/em.pyi +0 -213
  24. reflex/components/radix/themes/typography/kbd.pyi +0 -222
  25. reflex/components/radix/themes/typography/quote.pyi +0 -215
  26. reflex/components/radix/themes/typography/strong.pyi +0 -213
  27. {reflex-0.4.8.post1.dist-info → reflex-0.4.9a1.dist-info}/LICENSE +0 -0
  28. {reflex-0.4.8.post1.dist-info → reflex-0.4.9a1.dist-info}/WHEEL +0 -0
  29. {reflex-0.4.8.post1.dist-info → reflex-0.4.9a1.dist-info}/entry_points.txt +0 -0
@@ -1,1249 +0,0 @@
1
- """Stub file for reflex/components/radix/themes/components/contextmenu.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, List, Literal
12
- from reflex.constants import EventTriggers
13
- from reflex.vars import Var
14
- from ..base import LiteralAccentColor, RadixThemesComponent
15
-
16
- class ContextMenuRoot(RadixThemesComponent):
17
- def get_event_triggers(self) -> Dict[str, Any]: ...
18
- @overload
19
- @classmethod
20
- def create( # type: ignore
21
- cls,
22
- *children,
23
- color: Optional[Union[Var[str], str]] = None,
24
- color_scheme: Optional[
25
- Union[
26
- Var[
27
- Literal[
28
- "tomato",
29
- "red",
30
- "ruby",
31
- "crimson",
32
- "pink",
33
- "plum",
34
- "purple",
35
- "violet",
36
- "iris",
37
- "indigo",
38
- "blue",
39
- "cyan",
40
- "teal",
41
- "jade",
42
- "green",
43
- "grass",
44
- "brown",
45
- "orange",
46
- "sky",
47
- "mint",
48
- "lime",
49
- "yellow",
50
- "amber",
51
- "gold",
52
- "bronze",
53
- "gray",
54
- ]
55
- ],
56
- Literal[
57
- "tomato",
58
- "red",
59
- "ruby",
60
- "crimson",
61
- "pink",
62
- "plum",
63
- "purple",
64
- "violet",
65
- "iris",
66
- "indigo",
67
- "blue",
68
- "cyan",
69
- "teal",
70
- "jade",
71
- "green",
72
- "grass",
73
- "brown",
74
- "orange",
75
- "sky",
76
- "mint",
77
- "lime",
78
- "yellow",
79
- "amber",
80
- "gold",
81
- "bronze",
82
- "gray",
83
- ],
84
- ]
85
- ] = None,
86
- modal: Optional[Union[Var[bool], bool]] = None,
87
- style: Optional[Style] = None,
88
- key: Optional[Any] = None,
89
- id: Optional[Any] = None,
90
- class_name: Optional[Any] = None,
91
- autofocus: Optional[bool] = None,
92
- _rename_props: Optional[Dict[str, str]] = None,
93
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
94
- on_blur: Optional[
95
- Union[EventHandler, EventSpec, list, function, BaseVar]
96
- ] = None,
97
- on_click: Optional[
98
- Union[EventHandler, EventSpec, list, function, BaseVar]
99
- ] = None,
100
- on_context_menu: Optional[
101
- Union[EventHandler, EventSpec, list, function, BaseVar]
102
- ] = None,
103
- on_double_click: Optional[
104
- Union[EventHandler, EventSpec, list, function, BaseVar]
105
- ] = None,
106
- on_focus: Optional[
107
- Union[EventHandler, EventSpec, list, function, BaseVar]
108
- ] = None,
109
- on_mount: Optional[
110
- Union[EventHandler, EventSpec, list, function, BaseVar]
111
- ] = None,
112
- on_mouse_down: Optional[
113
- Union[EventHandler, EventSpec, list, function, BaseVar]
114
- ] = None,
115
- on_mouse_enter: Optional[
116
- Union[EventHandler, EventSpec, list, function, BaseVar]
117
- ] = None,
118
- on_mouse_leave: Optional[
119
- Union[EventHandler, EventSpec, list, function, BaseVar]
120
- ] = None,
121
- on_mouse_move: Optional[
122
- Union[EventHandler, EventSpec, list, function, BaseVar]
123
- ] = None,
124
- on_mouse_out: Optional[
125
- Union[EventHandler, EventSpec, list, function, BaseVar]
126
- ] = None,
127
- on_mouse_over: Optional[
128
- Union[EventHandler, EventSpec, list, function, BaseVar]
129
- ] = None,
130
- on_mouse_up: Optional[
131
- Union[EventHandler, EventSpec, list, function, BaseVar]
132
- ] = None,
133
- on_open_change: Optional[
134
- Union[EventHandler, EventSpec, list, function, BaseVar]
135
- ] = None,
136
- on_scroll: Optional[
137
- Union[EventHandler, EventSpec, list, function, BaseVar]
138
- ] = None,
139
- on_unmount: Optional[
140
- Union[EventHandler, EventSpec, list, function, BaseVar]
141
- ] = None,
142
- **props
143
- ) -> "ContextMenuRoot":
144
- """Create a new component instance.
145
-
146
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
147
- other UI libraries for common names, like Text and Button.
148
-
149
- Args:
150
- *children: Child components.
151
- color: map to CSS default color property.
152
- color_scheme: map to radix color property.
153
- modal: The modality of the context menu. When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers.
154
- style: The style of the component.
155
- key: A unique key for the component.
156
- id: The id for the component.
157
- class_name: The class name for the component.
158
- autofocus: Whether the component should take the focus once the page is loaded
159
- _rename_props: props to change the name of
160
- custom_attrs: custom attribute
161
- **props: Component properties.
162
-
163
- Returns:
164
- A new component instance.
165
- """
166
- ...
167
-
168
- class ContextMenuTrigger(RadixThemesComponent):
169
- @overload
170
- @classmethod
171
- def create( # type: ignore
172
- cls,
173
- *children,
174
- color: Optional[Union[Var[str], str]] = None,
175
- color_scheme: Optional[
176
- Union[
177
- Var[
178
- Literal[
179
- "tomato",
180
- "red",
181
- "ruby",
182
- "crimson",
183
- "pink",
184
- "plum",
185
- "purple",
186
- "violet",
187
- "iris",
188
- "indigo",
189
- "blue",
190
- "cyan",
191
- "teal",
192
- "jade",
193
- "green",
194
- "grass",
195
- "brown",
196
- "orange",
197
- "sky",
198
- "mint",
199
- "lime",
200
- "yellow",
201
- "amber",
202
- "gold",
203
- "bronze",
204
- "gray",
205
- ]
206
- ],
207
- Literal[
208
- "tomato",
209
- "red",
210
- "ruby",
211
- "crimson",
212
- "pink",
213
- "plum",
214
- "purple",
215
- "violet",
216
- "iris",
217
- "indigo",
218
- "blue",
219
- "cyan",
220
- "teal",
221
- "jade",
222
- "green",
223
- "grass",
224
- "brown",
225
- "orange",
226
- "sky",
227
- "mint",
228
- "lime",
229
- "yellow",
230
- "amber",
231
- "gold",
232
- "bronze",
233
- "gray",
234
- ],
235
- ]
236
- ] = None,
237
- disabled: Optional[Union[Var[bool], bool]] = None,
238
- style: Optional[Style] = None,
239
- key: Optional[Any] = None,
240
- id: Optional[Any] = None,
241
- class_name: Optional[Any] = None,
242
- autofocus: Optional[bool] = None,
243
- _rename_props: Optional[Dict[str, str]] = None,
244
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
245
- on_blur: Optional[
246
- Union[EventHandler, EventSpec, list, function, BaseVar]
247
- ] = None,
248
- on_click: Optional[
249
- Union[EventHandler, EventSpec, list, function, BaseVar]
250
- ] = None,
251
- on_context_menu: Optional[
252
- Union[EventHandler, EventSpec, list, function, BaseVar]
253
- ] = None,
254
- on_double_click: Optional[
255
- Union[EventHandler, EventSpec, list, function, BaseVar]
256
- ] = None,
257
- on_focus: Optional[
258
- Union[EventHandler, EventSpec, list, function, BaseVar]
259
- ] = None,
260
- on_mount: Optional[
261
- Union[EventHandler, EventSpec, list, function, BaseVar]
262
- ] = None,
263
- on_mouse_down: Optional[
264
- Union[EventHandler, EventSpec, list, function, BaseVar]
265
- ] = None,
266
- on_mouse_enter: Optional[
267
- Union[EventHandler, EventSpec, list, function, BaseVar]
268
- ] = None,
269
- on_mouse_leave: Optional[
270
- Union[EventHandler, EventSpec, list, function, BaseVar]
271
- ] = None,
272
- on_mouse_move: Optional[
273
- Union[EventHandler, EventSpec, list, function, BaseVar]
274
- ] = None,
275
- on_mouse_out: Optional[
276
- Union[EventHandler, EventSpec, list, function, BaseVar]
277
- ] = None,
278
- on_mouse_over: Optional[
279
- Union[EventHandler, EventSpec, list, function, BaseVar]
280
- ] = None,
281
- on_mouse_up: Optional[
282
- Union[EventHandler, EventSpec, list, function, BaseVar]
283
- ] = None,
284
- on_scroll: Optional[
285
- Union[EventHandler, EventSpec, list, function, BaseVar]
286
- ] = None,
287
- on_unmount: Optional[
288
- Union[EventHandler, EventSpec, list, function, BaseVar]
289
- ] = None,
290
- **props
291
- ) -> "ContextMenuTrigger":
292
- """Create a new component instance.
293
-
294
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
295
- other UI libraries for common names, like Text and Button.
296
-
297
- Args:
298
- *children: Child components.
299
- color: map to CSS default color property.
300
- color_scheme: map to radix color property.
301
- disabled: Whether the trigger is disabled
302
- style: The style of the component.
303
- key: A unique key for the component.
304
- id: The id for the component.
305
- class_name: The class name for the component.
306
- autofocus: Whether the component should take the focus once the page is loaded
307
- _rename_props: props to change the name of
308
- custom_attrs: custom attribute
309
- **props: Component properties.
310
-
311
- Returns:
312
- A new component instance.
313
- """
314
- ...
315
-
316
- class ContextMenuContent(RadixThemesComponent):
317
- def get_event_triggers(self) -> Dict[str, Any]: ...
318
- @overload
319
- @classmethod
320
- def create( # type: ignore
321
- cls,
322
- *children,
323
- color: Optional[Union[Var[str], str]] = None,
324
- color_scheme: Optional[
325
- Union[
326
- Var[
327
- Literal[
328
- "tomato",
329
- "red",
330
- "ruby",
331
- "crimson",
332
- "pink",
333
- "plum",
334
- "purple",
335
- "violet",
336
- "iris",
337
- "indigo",
338
- "blue",
339
- "cyan",
340
- "teal",
341
- "jade",
342
- "green",
343
- "grass",
344
- "brown",
345
- "orange",
346
- "sky",
347
- "mint",
348
- "lime",
349
- "yellow",
350
- "amber",
351
- "gold",
352
- "bronze",
353
- "gray",
354
- ]
355
- ],
356
- Literal[
357
- "tomato",
358
- "red",
359
- "ruby",
360
- "crimson",
361
- "pink",
362
- "plum",
363
- "purple",
364
- "violet",
365
- "iris",
366
- "indigo",
367
- "blue",
368
- "cyan",
369
- "teal",
370
- "jade",
371
- "green",
372
- "grass",
373
- "brown",
374
- "orange",
375
- "sky",
376
- "mint",
377
- "lime",
378
- "yellow",
379
- "amber",
380
- "gold",
381
- "bronze",
382
- "gray",
383
- ],
384
- ]
385
- ] = None,
386
- size: Optional[Union[Var[Literal["1", "2"]], Literal["1", "2"]]] = None,
387
- variant: Optional[
388
- Union[Var[Literal["solid", "soft"]], Literal["solid", "soft"]]
389
- ] = None,
390
- high_contrast: Optional[Union[Var[bool], bool]] = None,
391
- align_offset: Optional[Union[Var[int], int]] = None,
392
- avoid_collisions: Optional[Union[Var[bool], bool]] = None,
393
- style: Optional[Style] = None,
394
- key: Optional[Any] = None,
395
- id: Optional[Any] = None,
396
- class_name: Optional[Any] = None,
397
- autofocus: Optional[bool] = None,
398
- _rename_props: Optional[Dict[str, str]] = None,
399
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
400
- on_blur: Optional[
401
- Union[EventHandler, EventSpec, list, function, BaseVar]
402
- ] = None,
403
- on_click: Optional[
404
- Union[EventHandler, EventSpec, list, function, BaseVar]
405
- ] = None,
406
- on_close_auto_focus: Optional[
407
- Union[EventHandler, EventSpec, list, function, BaseVar]
408
- ] = None,
409
- on_context_menu: Optional[
410
- Union[EventHandler, EventSpec, list, function, BaseVar]
411
- ] = None,
412
- on_double_click: Optional[
413
- Union[EventHandler, EventSpec, list, function, BaseVar]
414
- ] = None,
415
- on_escape_key_down: Optional[
416
- Union[EventHandler, EventSpec, list, function, BaseVar]
417
- ] = None,
418
- on_focus: Optional[
419
- Union[EventHandler, EventSpec, list, function, BaseVar]
420
- ] = None,
421
- on_focus_outside: Optional[
422
- Union[EventHandler, EventSpec, list, function, BaseVar]
423
- ] = None,
424
- on_interact_outside: Optional[
425
- Union[EventHandler, EventSpec, list, function, BaseVar]
426
- ] = None,
427
- on_mount: Optional[
428
- Union[EventHandler, EventSpec, list, function, BaseVar]
429
- ] = None,
430
- on_mouse_down: Optional[
431
- Union[EventHandler, EventSpec, list, function, BaseVar]
432
- ] = None,
433
- on_mouse_enter: Optional[
434
- Union[EventHandler, EventSpec, list, function, BaseVar]
435
- ] = None,
436
- on_mouse_leave: Optional[
437
- Union[EventHandler, EventSpec, list, function, BaseVar]
438
- ] = None,
439
- on_mouse_move: Optional[
440
- Union[EventHandler, EventSpec, list, function, BaseVar]
441
- ] = None,
442
- on_mouse_out: Optional[
443
- Union[EventHandler, EventSpec, list, function, BaseVar]
444
- ] = None,
445
- on_mouse_over: Optional[
446
- Union[EventHandler, EventSpec, list, function, BaseVar]
447
- ] = None,
448
- on_mouse_up: Optional[
449
- Union[EventHandler, EventSpec, list, function, BaseVar]
450
- ] = None,
451
- on_pointer_down_outside: Optional[
452
- Union[EventHandler, EventSpec, list, function, BaseVar]
453
- ] = None,
454
- on_scroll: Optional[
455
- Union[EventHandler, EventSpec, list, function, BaseVar]
456
- ] = None,
457
- on_unmount: Optional[
458
- Union[EventHandler, EventSpec, list, function, BaseVar]
459
- ] = None,
460
- **props
461
- ) -> "ContextMenuContent":
462
- """Create a new component instance.
463
-
464
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
465
- other UI libraries for common names, like Text and Button.
466
-
467
- Args:
468
- *children: Child components.
469
- color: map to CSS default color property.
470
- color_scheme: map to radix color property.
471
- size: Button size "1" - "4"
472
- variant: Variant of button: "solid" | "soft" | "outline" | "ghost"
473
- high_contrast: Whether to render the button with higher contrast color against background
474
- align_offset: The vertical distance in pixels from the anchor.
475
- avoid_collisions: When true, overrides the side and aligns preferences to prevent collisions with boundary edges.
476
- style: The style of the component.
477
- key: A unique key for the component.
478
- id: The id for the component.
479
- class_name: The class name for the component.
480
- autofocus: Whether the component should take the focus once the page is loaded
481
- _rename_props: props to change the name of
482
- custom_attrs: custom attribute
483
- **props: Component properties.
484
-
485
- Returns:
486
- A new component instance.
487
- """
488
- ...
489
-
490
- class ContextMenuSub(RadixThemesComponent):
491
- @overload
492
- @classmethod
493
- def create( # type: ignore
494
- cls,
495
- *children,
496
- color: Optional[Union[Var[str], str]] = None,
497
- color_scheme: Optional[
498
- Union[
499
- Var[
500
- Literal[
501
- "tomato",
502
- "red",
503
- "ruby",
504
- "crimson",
505
- "pink",
506
- "plum",
507
- "purple",
508
- "violet",
509
- "iris",
510
- "indigo",
511
- "blue",
512
- "cyan",
513
- "teal",
514
- "jade",
515
- "green",
516
- "grass",
517
- "brown",
518
- "orange",
519
- "sky",
520
- "mint",
521
- "lime",
522
- "yellow",
523
- "amber",
524
- "gold",
525
- "bronze",
526
- "gray",
527
- ]
528
- ],
529
- Literal[
530
- "tomato",
531
- "red",
532
- "ruby",
533
- "crimson",
534
- "pink",
535
- "plum",
536
- "purple",
537
- "violet",
538
- "iris",
539
- "indigo",
540
- "blue",
541
- "cyan",
542
- "teal",
543
- "jade",
544
- "green",
545
- "grass",
546
- "brown",
547
- "orange",
548
- "sky",
549
- "mint",
550
- "lime",
551
- "yellow",
552
- "amber",
553
- "gold",
554
- "bronze",
555
- "gray",
556
- ],
557
- ]
558
- ] = None,
559
- style: Optional[Style] = None,
560
- key: Optional[Any] = None,
561
- id: Optional[Any] = None,
562
- class_name: Optional[Any] = None,
563
- autofocus: Optional[bool] = None,
564
- _rename_props: Optional[Dict[str, str]] = None,
565
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
566
- on_blur: Optional[
567
- Union[EventHandler, EventSpec, list, function, BaseVar]
568
- ] = None,
569
- on_click: Optional[
570
- Union[EventHandler, EventSpec, list, function, BaseVar]
571
- ] = None,
572
- on_context_menu: Optional[
573
- Union[EventHandler, EventSpec, list, function, BaseVar]
574
- ] = None,
575
- on_double_click: Optional[
576
- Union[EventHandler, EventSpec, list, function, BaseVar]
577
- ] = None,
578
- on_focus: Optional[
579
- Union[EventHandler, EventSpec, list, function, BaseVar]
580
- ] = None,
581
- on_mount: Optional[
582
- Union[EventHandler, EventSpec, list, function, BaseVar]
583
- ] = None,
584
- on_mouse_down: Optional[
585
- Union[EventHandler, EventSpec, list, function, BaseVar]
586
- ] = None,
587
- on_mouse_enter: Optional[
588
- Union[EventHandler, EventSpec, list, function, BaseVar]
589
- ] = None,
590
- on_mouse_leave: Optional[
591
- Union[EventHandler, EventSpec, list, function, BaseVar]
592
- ] = None,
593
- on_mouse_move: Optional[
594
- Union[EventHandler, EventSpec, list, function, BaseVar]
595
- ] = None,
596
- on_mouse_out: Optional[
597
- Union[EventHandler, EventSpec, list, function, BaseVar]
598
- ] = None,
599
- on_mouse_over: Optional[
600
- Union[EventHandler, EventSpec, list, function, BaseVar]
601
- ] = None,
602
- on_mouse_up: Optional[
603
- Union[EventHandler, EventSpec, list, function, BaseVar]
604
- ] = None,
605
- on_scroll: Optional[
606
- Union[EventHandler, EventSpec, list, function, BaseVar]
607
- ] = None,
608
- on_unmount: Optional[
609
- Union[EventHandler, EventSpec, list, function, BaseVar]
610
- ] = None,
611
- **props
612
- ) -> "ContextMenuSub":
613
- """Create a new component instance.
614
-
615
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
616
- other UI libraries for common names, like Text and Button.
617
-
618
- Args:
619
- *children: Child components.
620
- color: map to CSS default color property.
621
- color_scheme: map to radix color property.
622
- style: The style of the component.
623
- key: A unique key for the component.
624
- id: The id for the component.
625
- class_name: The class name for the component.
626
- autofocus: Whether the component should take the focus once the page is loaded
627
- _rename_props: props to change the name of
628
- custom_attrs: custom attribute
629
- **props: Component properties.
630
-
631
- Returns:
632
- A new component instance.
633
- """
634
- ...
635
-
636
- class ContextMenuSubTrigger(RadixThemesComponent):
637
- @overload
638
- @classmethod
639
- def create( # type: ignore
640
- cls,
641
- *children,
642
- color: Optional[Union[Var[str], str]] = None,
643
- color_scheme: Optional[
644
- Union[
645
- Var[
646
- Literal[
647
- "tomato",
648
- "red",
649
- "ruby",
650
- "crimson",
651
- "pink",
652
- "plum",
653
- "purple",
654
- "violet",
655
- "iris",
656
- "indigo",
657
- "blue",
658
- "cyan",
659
- "teal",
660
- "jade",
661
- "green",
662
- "grass",
663
- "brown",
664
- "orange",
665
- "sky",
666
- "mint",
667
- "lime",
668
- "yellow",
669
- "amber",
670
- "gold",
671
- "bronze",
672
- "gray",
673
- ]
674
- ],
675
- Literal[
676
- "tomato",
677
- "red",
678
- "ruby",
679
- "crimson",
680
- "pink",
681
- "plum",
682
- "purple",
683
- "violet",
684
- "iris",
685
- "indigo",
686
- "blue",
687
- "cyan",
688
- "teal",
689
- "jade",
690
- "green",
691
- "grass",
692
- "brown",
693
- "orange",
694
- "sky",
695
- "mint",
696
- "lime",
697
- "yellow",
698
- "amber",
699
- "gold",
700
- "bronze",
701
- "gray",
702
- ],
703
- ]
704
- ] = None,
705
- disabled: Optional[Union[Var[bool], bool]] = None,
706
- style: Optional[Style] = None,
707
- key: Optional[Any] = None,
708
- id: Optional[Any] = None,
709
- class_name: Optional[Any] = None,
710
- autofocus: Optional[bool] = None,
711
- _rename_props: Optional[Dict[str, str]] = None,
712
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
713
- on_blur: Optional[
714
- Union[EventHandler, EventSpec, list, function, BaseVar]
715
- ] = None,
716
- on_click: Optional[
717
- Union[EventHandler, EventSpec, list, function, BaseVar]
718
- ] = None,
719
- on_context_menu: Optional[
720
- Union[EventHandler, EventSpec, list, function, BaseVar]
721
- ] = None,
722
- on_double_click: Optional[
723
- Union[EventHandler, EventSpec, list, function, BaseVar]
724
- ] = None,
725
- on_focus: Optional[
726
- Union[EventHandler, EventSpec, list, function, BaseVar]
727
- ] = None,
728
- on_mount: Optional[
729
- Union[EventHandler, EventSpec, list, function, BaseVar]
730
- ] = None,
731
- on_mouse_down: Optional[
732
- Union[EventHandler, EventSpec, list, function, BaseVar]
733
- ] = None,
734
- on_mouse_enter: Optional[
735
- Union[EventHandler, EventSpec, list, function, BaseVar]
736
- ] = None,
737
- on_mouse_leave: Optional[
738
- Union[EventHandler, EventSpec, list, function, BaseVar]
739
- ] = None,
740
- on_mouse_move: Optional[
741
- Union[EventHandler, EventSpec, list, function, BaseVar]
742
- ] = None,
743
- on_mouse_out: Optional[
744
- Union[EventHandler, EventSpec, list, function, BaseVar]
745
- ] = None,
746
- on_mouse_over: Optional[
747
- Union[EventHandler, EventSpec, list, function, BaseVar]
748
- ] = None,
749
- on_mouse_up: Optional[
750
- Union[EventHandler, EventSpec, list, function, BaseVar]
751
- ] = None,
752
- on_scroll: Optional[
753
- Union[EventHandler, EventSpec, list, function, BaseVar]
754
- ] = None,
755
- on_unmount: Optional[
756
- Union[EventHandler, EventSpec, list, function, BaseVar]
757
- ] = None,
758
- **props
759
- ) -> "ContextMenuSubTrigger":
760
- """Create a new component instance.
761
-
762
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
763
- other UI libraries for common names, like Text and Button.
764
-
765
- Args:
766
- *children: Child components.
767
- color: map to CSS default color property.
768
- color_scheme: map to radix color property.
769
- disabled: Whether the trigger is disabled
770
- style: The style of the component.
771
- key: A unique key for the component.
772
- id: The id for the component.
773
- class_name: The class name for the component.
774
- autofocus: Whether the component should take the focus once the page is loaded
775
- _rename_props: props to change the name of
776
- custom_attrs: custom attribute
777
- **props: Component properties.
778
-
779
- Returns:
780
- A new component instance.
781
- """
782
- ...
783
-
784
- class ContextMenuSubContent(RadixThemesComponent):
785
- def get_event_triggers(self) -> Dict[str, Any]: ...
786
- @overload
787
- @classmethod
788
- def create( # type: ignore
789
- cls,
790
- *children,
791
- color: Optional[Union[Var[str], str]] = None,
792
- color_scheme: Optional[
793
- Union[
794
- Var[
795
- Literal[
796
- "tomato",
797
- "red",
798
- "ruby",
799
- "crimson",
800
- "pink",
801
- "plum",
802
- "purple",
803
- "violet",
804
- "iris",
805
- "indigo",
806
- "blue",
807
- "cyan",
808
- "teal",
809
- "jade",
810
- "green",
811
- "grass",
812
- "brown",
813
- "orange",
814
- "sky",
815
- "mint",
816
- "lime",
817
- "yellow",
818
- "amber",
819
- "gold",
820
- "bronze",
821
- "gray",
822
- ]
823
- ],
824
- Literal[
825
- "tomato",
826
- "red",
827
- "ruby",
828
- "crimson",
829
- "pink",
830
- "plum",
831
- "purple",
832
- "violet",
833
- "iris",
834
- "indigo",
835
- "blue",
836
- "cyan",
837
- "teal",
838
- "jade",
839
- "green",
840
- "grass",
841
- "brown",
842
- "orange",
843
- "sky",
844
- "mint",
845
- "lime",
846
- "yellow",
847
- "amber",
848
- "gold",
849
- "bronze",
850
- "gray",
851
- ],
852
- ]
853
- ] = None,
854
- loop: Optional[Union[Var[bool], bool]] = None,
855
- style: Optional[Style] = None,
856
- key: Optional[Any] = None,
857
- id: Optional[Any] = None,
858
- class_name: Optional[Any] = None,
859
- autofocus: Optional[bool] = None,
860
- _rename_props: Optional[Dict[str, str]] = None,
861
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
862
- on_blur: Optional[
863
- Union[EventHandler, EventSpec, list, function, BaseVar]
864
- ] = None,
865
- on_click: Optional[
866
- Union[EventHandler, EventSpec, list, function, BaseVar]
867
- ] = None,
868
- on_context_menu: Optional[
869
- Union[EventHandler, EventSpec, list, function, BaseVar]
870
- ] = None,
871
- on_double_click: Optional[
872
- Union[EventHandler, EventSpec, list, function, BaseVar]
873
- ] = None,
874
- on_escape_key_down: Optional[
875
- Union[EventHandler, EventSpec, list, function, BaseVar]
876
- ] = None,
877
- on_focus: Optional[
878
- Union[EventHandler, EventSpec, list, function, BaseVar]
879
- ] = None,
880
- on_focus_outside: Optional[
881
- Union[EventHandler, EventSpec, list, function, BaseVar]
882
- ] = None,
883
- on_interact_outside: Optional[
884
- Union[EventHandler, EventSpec, list, function, BaseVar]
885
- ] = None,
886
- on_mount: Optional[
887
- Union[EventHandler, EventSpec, list, function, BaseVar]
888
- ] = None,
889
- on_mouse_down: Optional[
890
- Union[EventHandler, EventSpec, list, function, BaseVar]
891
- ] = None,
892
- on_mouse_enter: Optional[
893
- Union[EventHandler, EventSpec, list, function, BaseVar]
894
- ] = None,
895
- on_mouse_leave: Optional[
896
- Union[EventHandler, EventSpec, list, function, BaseVar]
897
- ] = None,
898
- on_mouse_move: Optional[
899
- Union[EventHandler, EventSpec, list, function, BaseVar]
900
- ] = None,
901
- on_mouse_out: Optional[
902
- Union[EventHandler, EventSpec, list, function, BaseVar]
903
- ] = None,
904
- on_mouse_over: Optional[
905
- Union[EventHandler, EventSpec, list, function, BaseVar]
906
- ] = None,
907
- on_mouse_up: Optional[
908
- Union[EventHandler, EventSpec, list, function, BaseVar]
909
- ] = None,
910
- on_pointer_down_outside: Optional[
911
- Union[EventHandler, EventSpec, list, function, BaseVar]
912
- ] = None,
913
- on_scroll: Optional[
914
- Union[EventHandler, EventSpec, list, function, BaseVar]
915
- ] = None,
916
- on_unmount: Optional[
917
- Union[EventHandler, EventSpec, list, function, BaseVar]
918
- ] = None,
919
- **props
920
- ) -> "ContextMenuSubContent":
921
- """Create a new component instance.
922
-
923
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
924
- other UI libraries for common names, like Text and Button.
925
-
926
- Args:
927
- *children: Child components.
928
- color: map to CSS default color property.
929
- color_scheme: map to radix color property.
930
- loop: When true, keyboard navigation will loop from last item to first, and vice versa.
931
- style: The style of the component.
932
- key: A unique key for the component.
933
- id: The id for the component.
934
- class_name: The class name for the component.
935
- autofocus: Whether the component should take the focus once the page is loaded
936
- _rename_props: props to change the name of
937
- custom_attrs: custom attribute
938
- **props: Component properties.
939
-
940
- Returns:
941
- A new component instance.
942
- """
943
- ...
944
-
945
- class ContextMenuItem(RadixThemesComponent):
946
- @overload
947
- @classmethod
948
- def create( # type: ignore
949
- cls,
950
- *children,
951
- color: Optional[Union[Var[str], str]] = None,
952
- color_scheme: Optional[
953
- Union[
954
- Var[
955
- Literal[
956
- "tomato",
957
- "red",
958
- "ruby",
959
- "crimson",
960
- "pink",
961
- "plum",
962
- "purple",
963
- "violet",
964
- "iris",
965
- "indigo",
966
- "blue",
967
- "cyan",
968
- "teal",
969
- "jade",
970
- "green",
971
- "grass",
972
- "brown",
973
- "orange",
974
- "sky",
975
- "mint",
976
- "lime",
977
- "yellow",
978
- "amber",
979
- "gold",
980
- "bronze",
981
- "gray",
982
- ]
983
- ],
984
- Literal[
985
- "tomato",
986
- "red",
987
- "ruby",
988
- "crimson",
989
- "pink",
990
- "plum",
991
- "purple",
992
- "violet",
993
- "iris",
994
- "indigo",
995
- "blue",
996
- "cyan",
997
- "teal",
998
- "jade",
999
- "green",
1000
- "grass",
1001
- "brown",
1002
- "orange",
1003
- "sky",
1004
- "mint",
1005
- "lime",
1006
- "yellow",
1007
- "amber",
1008
- "gold",
1009
- "bronze",
1010
- "gray",
1011
- ],
1012
- ]
1013
- ] = None,
1014
- shortcut: Optional[Union[Var[str], str]] = None,
1015
- style: Optional[Style] = None,
1016
- key: Optional[Any] = None,
1017
- id: Optional[Any] = None,
1018
- class_name: Optional[Any] = None,
1019
- autofocus: Optional[bool] = None,
1020
- _rename_props: Optional[Dict[str, str]] = None,
1021
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1022
- on_blur: Optional[
1023
- Union[EventHandler, EventSpec, list, function, BaseVar]
1024
- ] = None,
1025
- on_click: Optional[
1026
- Union[EventHandler, EventSpec, list, function, BaseVar]
1027
- ] = None,
1028
- on_context_menu: Optional[
1029
- Union[EventHandler, EventSpec, list, function, BaseVar]
1030
- ] = None,
1031
- on_double_click: Optional[
1032
- Union[EventHandler, EventSpec, list, function, BaseVar]
1033
- ] = None,
1034
- on_focus: Optional[
1035
- Union[EventHandler, EventSpec, list, function, BaseVar]
1036
- ] = None,
1037
- on_mount: Optional[
1038
- Union[EventHandler, EventSpec, list, function, BaseVar]
1039
- ] = None,
1040
- on_mouse_down: Optional[
1041
- Union[EventHandler, EventSpec, list, function, BaseVar]
1042
- ] = None,
1043
- on_mouse_enter: Optional[
1044
- Union[EventHandler, EventSpec, list, function, BaseVar]
1045
- ] = None,
1046
- on_mouse_leave: Optional[
1047
- Union[EventHandler, EventSpec, list, function, BaseVar]
1048
- ] = None,
1049
- on_mouse_move: Optional[
1050
- Union[EventHandler, EventSpec, list, function, BaseVar]
1051
- ] = None,
1052
- on_mouse_out: Optional[
1053
- Union[EventHandler, EventSpec, list, function, BaseVar]
1054
- ] = None,
1055
- on_mouse_over: Optional[
1056
- Union[EventHandler, EventSpec, list, function, BaseVar]
1057
- ] = None,
1058
- on_mouse_up: Optional[
1059
- Union[EventHandler, EventSpec, list, function, BaseVar]
1060
- ] = None,
1061
- on_scroll: Optional[
1062
- Union[EventHandler, EventSpec, list, function, BaseVar]
1063
- ] = None,
1064
- on_unmount: Optional[
1065
- Union[EventHandler, EventSpec, list, function, BaseVar]
1066
- ] = None,
1067
- **props
1068
- ) -> "ContextMenuItem":
1069
- """Create a new component instance.
1070
-
1071
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
1072
- other UI libraries for common names, like Text and Button.
1073
-
1074
- Args:
1075
- *children: Child components.
1076
- color: map to CSS default color property.
1077
- color_scheme: map to radix color property.
1078
- shortcut: Shortcut to render a menu item as a link
1079
- style: The style of the component.
1080
- key: A unique key for the component.
1081
- id: The id for the component.
1082
- class_name: The class name for the component.
1083
- autofocus: Whether the component should take the focus once the page is loaded
1084
- _rename_props: props to change the name of
1085
- custom_attrs: custom attribute
1086
- **props: Component properties.
1087
-
1088
- Returns:
1089
- A new component instance.
1090
- """
1091
- ...
1092
-
1093
- class ContextMenuSeparator(RadixThemesComponent):
1094
- @overload
1095
- @classmethod
1096
- def create( # type: ignore
1097
- cls,
1098
- *children,
1099
- color: Optional[Union[Var[str], str]] = None,
1100
- color_scheme: Optional[
1101
- Union[
1102
- Var[
1103
- Literal[
1104
- "tomato",
1105
- "red",
1106
- "ruby",
1107
- "crimson",
1108
- "pink",
1109
- "plum",
1110
- "purple",
1111
- "violet",
1112
- "iris",
1113
- "indigo",
1114
- "blue",
1115
- "cyan",
1116
- "teal",
1117
- "jade",
1118
- "green",
1119
- "grass",
1120
- "brown",
1121
- "orange",
1122
- "sky",
1123
- "mint",
1124
- "lime",
1125
- "yellow",
1126
- "amber",
1127
- "gold",
1128
- "bronze",
1129
- "gray",
1130
- ]
1131
- ],
1132
- Literal[
1133
- "tomato",
1134
- "red",
1135
- "ruby",
1136
- "crimson",
1137
- "pink",
1138
- "plum",
1139
- "purple",
1140
- "violet",
1141
- "iris",
1142
- "indigo",
1143
- "blue",
1144
- "cyan",
1145
- "teal",
1146
- "jade",
1147
- "green",
1148
- "grass",
1149
- "brown",
1150
- "orange",
1151
- "sky",
1152
- "mint",
1153
- "lime",
1154
- "yellow",
1155
- "amber",
1156
- "gold",
1157
- "bronze",
1158
- "gray",
1159
- ],
1160
- ]
1161
- ] = None,
1162
- style: Optional[Style] = None,
1163
- key: Optional[Any] = None,
1164
- id: Optional[Any] = None,
1165
- class_name: Optional[Any] = None,
1166
- autofocus: Optional[bool] = None,
1167
- _rename_props: Optional[Dict[str, str]] = None,
1168
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1169
- on_blur: Optional[
1170
- Union[EventHandler, EventSpec, list, function, BaseVar]
1171
- ] = None,
1172
- on_click: Optional[
1173
- Union[EventHandler, EventSpec, list, function, BaseVar]
1174
- ] = None,
1175
- on_context_menu: Optional[
1176
- Union[EventHandler, EventSpec, list, function, BaseVar]
1177
- ] = None,
1178
- on_double_click: Optional[
1179
- Union[EventHandler, EventSpec, list, function, BaseVar]
1180
- ] = None,
1181
- on_focus: Optional[
1182
- Union[EventHandler, EventSpec, list, function, BaseVar]
1183
- ] = None,
1184
- on_mount: Optional[
1185
- Union[EventHandler, EventSpec, list, function, BaseVar]
1186
- ] = None,
1187
- on_mouse_down: Optional[
1188
- Union[EventHandler, EventSpec, list, function, BaseVar]
1189
- ] = None,
1190
- on_mouse_enter: Optional[
1191
- Union[EventHandler, EventSpec, list, function, BaseVar]
1192
- ] = None,
1193
- on_mouse_leave: Optional[
1194
- Union[EventHandler, EventSpec, list, function, BaseVar]
1195
- ] = None,
1196
- on_mouse_move: Optional[
1197
- Union[EventHandler, EventSpec, list, function, BaseVar]
1198
- ] = None,
1199
- on_mouse_out: Optional[
1200
- Union[EventHandler, EventSpec, list, function, BaseVar]
1201
- ] = None,
1202
- on_mouse_over: Optional[
1203
- Union[EventHandler, EventSpec, list, function, BaseVar]
1204
- ] = None,
1205
- on_mouse_up: Optional[
1206
- Union[EventHandler, EventSpec, list, function, BaseVar]
1207
- ] = None,
1208
- on_scroll: Optional[
1209
- Union[EventHandler, EventSpec, list, function, BaseVar]
1210
- ] = None,
1211
- on_unmount: Optional[
1212
- Union[EventHandler, EventSpec, list, function, BaseVar]
1213
- ] = None,
1214
- **props
1215
- ) -> "ContextMenuSeparator":
1216
- """Create a new component instance.
1217
-
1218
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
1219
- other UI libraries for common names, like Text and Button.
1220
-
1221
- Args:
1222
- *children: Child components.
1223
- color: map to CSS default color property.
1224
- color_scheme: map to radix color property.
1225
- style: The style of the component.
1226
- key: A unique key for the component.
1227
- id: The id for the component.
1228
- class_name: The class name for the component.
1229
- autofocus: Whether the component should take the focus once the page is loaded
1230
- _rename_props: props to change the name of
1231
- custom_attrs: custom attribute
1232
- **props: Component properties.
1233
-
1234
- Returns:
1235
- A new component instance.
1236
- """
1237
- ...
1238
-
1239
- class ContextMenu(SimpleNamespace):
1240
- root = staticmethod(ContextMenuRoot.create)
1241
- trigger = staticmethod(ContextMenuTrigger.create)
1242
- content = staticmethod(ContextMenuContent.create)
1243
- sub = staticmethod(ContextMenuSub.create)
1244
- sub_trigger = staticmethod(ContextMenuSubTrigger.create)
1245
- sub_content = staticmethod(ContextMenuSubContent.create)
1246
- item = staticmethod(ContextMenuItem.create)
1247
- separator = staticmethod(ContextMenuSeparator.create)
1248
-
1249
- context_menu = ContextMenu()