reflex 0.4.8.post1__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.

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