reflex 0.8.14a1__py3-none-any.whl → 0.8.14a2__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.

@@ -0,0 +1,749 @@
1
+ """Stub file for reflex/components/radix/primitives/dialog.py"""
2
+
3
+ # ------------------- DO NOT EDIT ----------------------
4
+ # This file was generated by `reflex/utils/pyi_generator.py`!
5
+ # ------------------------------------------------------
6
+ from collections.abc import Mapping, Sequence
7
+ from typing import Any, Literal
8
+
9
+ from reflex.components.component import ComponentNamespace
10
+ from reflex.components.core.breakpoints import Breakpoints
11
+ from reflex.components.el import elements
12
+ from reflex.event import EventType, PointerEventInfo
13
+ from reflex.vars.base import Var
14
+
15
+ from .base import RadixPrimitiveComponent, RadixPrimitiveTriggerComponent
16
+
17
+ class DialogElement(RadixPrimitiveComponent):
18
+ @classmethod
19
+ def create(
20
+ cls,
21
+ *children,
22
+ as_child: Var[bool] | bool | None = None,
23
+ style: Sequence[Mapping[str, Any]]
24
+ | Mapping[str, Any]
25
+ | Var[Mapping[str, Any]]
26
+ | Breakpoints
27
+ | None = None,
28
+ key: Any | None = None,
29
+ id: Any | None = None,
30
+ ref: Var | None = None,
31
+ class_name: Any | None = None,
32
+ custom_attrs: dict[str, Var | Any] | None = None,
33
+ on_blur: EventType[()] | None = None,
34
+ on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
35
+ on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
36
+ on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
37
+ on_focus: EventType[()] | None = None,
38
+ on_mount: EventType[()] | None = None,
39
+ on_mouse_down: EventType[()] | None = None,
40
+ on_mouse_enter: EventType[()] | None = None,
41
+ on_mouse_leave: EventType[()] | None = None,
42
+ on_mouse_move: EventType[()] | None = None,
43
+ on_mouse_out: EventType[()] | None = None,
44
+ on_mouse_over: EventType[()] | None = None,
45
+ on_mouse_up: EventType[()] | None = None,
46
+ on_scroll: EventType[()] | None = None,
47
+ on_scroll_end: EventType[()] | None = None,
48
+ on_unmount: EventType[()] | None = None,
49
+ **props,
50
+ ) -> DialogElement:
51
+ """Create the component.
52
+
53
+ Args:
54
+ *children: The children of the component.
55
+ as_child: Change the default rendered element for the one passed as a child.
56
+ style: The style of the component.
57
+ key: A unique key for the component.
58
+ id: The id for the component.
59
+ ref: The Var to pass as the ref to the component.
60
+ class_name: The class name for the component.
61
+ custom_attrs: custom attribute
62
+ **props: The props of the component.
63
+
64
+ Returns:
65
+ The component.
66
+ """
67
+
68
+ class DialogRoot(DialogElement):
69
+ @classmethod
70
+ def create(
71
+ cls,
72
+ *children,
73
+ open: Var[bool] | bool | None = None,
74
+ default_open: Var[bool] | bool | None = None,
75
+ modal: Var[bool] | bool | None = None,
76
+ as_child: Var[bool] | bool | None = None,
77
+ style: Sequence[Mapping[str, Any]]
78
+ | Mapping[str, Any]
79
+ | Var[Mapping[str, Any]]
80
+ | Breakpoints
81
+ | None = None,
82
+ key: Any | None = None,
83
+ id: Any | None = None,
84
+ ref: Var | None = None,
85
+ class_name: Any | None = None,
86
+ custom_attrs: dict[str, Var | Any] | None = None,
87
+ on_blur: EventType[()] | None = None,
88
+ on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
89
+ on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
90
+ on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
91
+ on_focus: EventType[()] | None = None,
92
+ on_mount: EventType[()] | None = None,
93
+ on_mouse_down: EventType[()] | None = None,
94
+ on_mouse_enter: EventType[()] | None = None,
95
+ on_mouse_leave: EventType[()] | None = None,
96
+ on_mouse_move: EventType[()] | None = None,
97
+ on_mouse_out: EventType[()] | None = None,
98
+ on_mouse_over: EventType[()] | None = None,
99
+ on_mouse_up: EventType[()] | None = None,
100
+ on_open_change: EventType[()] | EventType[bool] | None = None,
101
+ on_scroll: EventType[()] | None = None,
102
+ on_scroll_end: EventType[()] | None = None,
103
+ on_unmount: EventType[()] | None = None,
104
+ **props,
105
+ ) -> DialogRoot:
106
+ """Create the component.
107
+
108
+ Args:
109
+ *children: The children of the component.
110
+ open: The controlled open state of the dialog.
111
+ on_open_change: Fired when the open state changes.
112
+ default_open: The open state of the dialog when it is initially rendered. Use when you do not need to control its open state.
113
+ modal: The modality of the dialog. When set to true, interaction with outside elements will be disabled and only dialog content will be visible to screen readers.
114
+ as_child: Change the default rendered element for the one passed as a child.
115
+ style: The style of the component.
116
+ key: A unique key for the component.
117
+ id: The id for the component.
118
+ ref: The Var to pass as the ref to the component.
119
+ class_name: The class name for the component.
120
+ custom_attrs: custom attribute
121
+ **props: The props of the component.
122
+
123
+ Returns:
124
+ The component.
125
+ """
126
+
127
+ class DialogPortal(DialogElement):
128
+ @classmethod
129
+ def create(
130
+ cls,
131
+ *children,
132
+ force_mount: Var[bool] | bool | None = None,
133
+ container: Any | Var[Any] | None = None,
134
+ as_child: Var[bool] | bool | None = None,
135
+ style: Sequence[Mapping[str, Any]]
136
+ | Mapping[str, Any]
137
+ | Var[Mapping[str, Any]]
138
+ | Breakpoints
139
+ | None = None,
140
+ key: Any | None = None,
141
+ id: Any | None = None,
142
+ ref: Var | None = None,
143
+ class_name: Any | None = None,
144
+ custom_attrs: dict[str, Var | Any] | None = None,
145
+ on_blur: EventType[()] | None = None,
146
+ on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
147
+ on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
148
+ on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
149
+ on_focus: EventType[()] | None = None,
150
+ on_mount: EventType[()] | None = None,
151
+ on_mouse_down: EventType[()] | None = None,
152
+ on_mouse_enter: EventType[()] | None = None,
153
+ on_mouse_leave: EventType[()] | None = None,
154
+ on_mouse_move: EventType[()] | None = None,
155
+ on_mouse_out: EventType[()] | None = None,
156
+ on_mouse_over: EventType[()] | None = None,
157
+ on_mouse_up: EventType[()] | None = None,
158
+ on_scroll: EventType[()] | None = None,
159
+ on_scroll_end: EventType[()] | None = None,
160
+ on_unmount: EventType[()] | None = None,
161
+ **props,
162
+ ) -> DialogPortal:
163
+ """Create the component.
164
+
165
+ Args:
166
+ *children: The children of the component.
167
+ force_mount: Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries. If used on this part, it will be inherited by Dialog.Overlay and Dialog.Content.
168
+ container: Specify a container element to portal the content into.
169
+ as_child: Change the default rendered element for the one passed as a child.
170
+ style: The style of the component.
171
+ key: A unique key for the component.
172
+ id: The id for the component.
173
+ ref: The Var to pass as the ref to the component.
174
+ class_name: The class name for the component.
175
+ custom_attrs: custom attribute
176
+ **props: The props of the component.
177
+
178
+ Returns:
179
+ The component.
180
+ """
181
+
182
+ class DialogOverlay(DialogElement):
183
+ @classmethod
184
+ def create(
185
+ cls,
186
+ *children,
187
+ as_child: Var[bool] | bool | None = None,
188
+ force_mount: Var[bool] | bool | None = None,
189
+ style: Sequence[Mapping[str, Any]]
190
+ | Mapping[str, Any]
191
+ | Var[Mapping[str, Any]]
192
+ | Breakpoints
193
+ | None = None,
194
+ key: Any | None = None,
195
+ id: Any | None = None,
196
+ ref: Var | None = None,
197
+ class_name: Any | None = None,
198
+ custom_attrs: dict[str, Var | Any] | None = None,
199
+ on_blur: EventType[()] | None = None,
200
+ on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
201
+ on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
202
+ on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
203
+ on_focus: EventType[()] | None = None,
204
+ on_mount: EventType[()] | None = None,
205
+ on_mouse_down: EventType[()] | None = None,
206
+ on_mouse_enter: EventType[()] | None = None,
207
+ on_mouse_leave: EventType[()] | None = None,
208
+ on_mouse_move: EventType[()] | None = None,
209
+ on_mouse_out: EventType[()] | None = None,
210
+ on_mouse_over: EventType[()] | None = None,
211
+ on_mouse_up: EventType[()] | None = None,
212
+ on_scroll: EventType[()] | None = None,
213
+ on_scroll_end: EventType[()] | None = None,
214
+ on_unmount: EventType[()] | None = None,
215
+ **props,
216
+ ) -> DialogOverlay:
217
+ """Create the component.
218
+
219
+ Args:
220
+ *children: The children of the component.
221
+ as_child: Change the default rendered element for the one passed as a child.
222
+ force_mount: Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries. It inherits from Dialog.Portal.
223
+ style: The style of the component.
224
+ key: A unique key for the component.
225
+ id: The id for the component.
226
+ ref: The Var to pass as the ref to the component.
227
+ class_name: The class name for the component.
228
+ custom_attrs: custom attribute
229
+ **props: The props of the component.
230
+
231
+ Returns:
232
+ The component.
233
+ """
234
+
235
+ class DialogTrigger(DialogElement, RadixPrimitiveTriggerComponent):
236
+ @classmethod
237
+ def create(
238
+ cls,
239
+ *children,
240
+ as_child: Var[bool] | bool | None = None,
241
+ style: Sequence[Mapping[str, Any]]
242
+ | Mapping[str, Any]
243
+ | Var[Mapping[str, Any]]
244
+ | Breakpoints
245
+ | None = None,
246
+ key: Any | None = None,
247
+ id: Any | None = None,
248
+ ref: Var | None = None,
249
+ class_name: Any | None = None,
250
+ custom_attrs: dict[str, Var | Any] | None = None,
251
+ on_blur: EventType[()] | None = None,
252
+ on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
253
+ on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
254
+ on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
255
+ on_focus: EventType[()] | None = None,
256
+ on_mount: EventType[()] | None = None,
257
+ on_mouse_down: EventType[()] | None = None,
258
+ on_mouse_enter: EventType[()] | None = None,
259
+ on_mouse_leave: EventType[()] | None = None,
260
+ on_mouse_move: EventType[()] | None = None,
261
+ on_mouse_out: EventType[()] | None = None,
262
+ on_mouse_over: EventType[()] | None = None,
263
+ on_mouse_up: EventType[()] | None = None,
264
+ on_scroll: EventType[()] | None = None,
265
+ on_scroll_end: EventType[()] | None = None,
266
+ on_unmount: EventType[()] | None = None,
267
+ **props,
268
+ ) -> DialogTrigger:
269
+ """Create a new RadixPrimitiveTriggerComponent instance.
270
+
271
+ Args:
272
+ children: The children of the component.
273
+ props: The properties of the component.
274
+
275
+ Returns:
276
+ The new RadixPrimitiveTriggerComponent instance.
277
+ """
278
+
279
+ class DialogContent(elements.Div, DialogElement):
280
+ @classmethod
281
+ def create(
282
+ cls,
283
+ *children,
284
+ force_mount: Var[bool] | bool | None = None,
285
+ as_child: Var[bool] | bool | None = None,
286
+ access_key: Var[str] | str | None = None,
287
+ auto_capitalize: Literal[
288
+ "characters", "none", "off", "on", "sentences", "words"
289
+ ]
290
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
291
+ | None = None,
292
+ content_editable: Literal["inherit", "plaintext-only", False, True]
293
+ | Var[Literal["inherit", "plaintext-only", False, True]]
294
+ | None = None,
295
+ context_menu: Var[str] | str | None = None,
296
+ dir: Var[str] | str | None = None,
297
+ draggable: Var[bool] | bool | None = None,
298
+ enter_key_hint: Literal[
299
+ "done", "enter", "go", "next", "previous", "search", "send"
300
+ ]
301
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
302
+ | None = None,
303
+ hidden: Var[bool] | bool | None = None,
304
+ input_mode: Literal[
305
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
306
+ ]
307
+ | Var[
308
+ Literal[
309
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
310
+ ]
311
+ ]
312
+ | None = None,
313
+ item_prop: Var[str] | str | None = None,
314
+ lang: Var[str] | str | None = None,
315
+ role: Literal[
316
+ "alert",
317
+ "alertdialog",
318
+ "application",
319
+ "article",
320
+ "banner",
321
+ "button",
322
+ "cell",
323
+ "checkbox",
324
+ "columnheader",
325
+ "combobox",
326
+ "complementary",
327
+ "contentinfo",
328
+ "definition",
329
+ "dialog",
330
+ "directory",
331
+ "document",
332
+ "feed",
333
+ "figure",
334
+ "form",
335
+ "grid",
336
+ "gridcell",
337
+ "group",
338
+ "heading",
339
+ "img",
340
+ "link",
341
+ "list",
342
+ "listbox",
343
+ "listitem",
344
+ "log",
345
+ "main",
346
+ "marquee",
347
+ "math",
348
+ "menu",
349
+ "menubar",
350
+ "menuitem",
351
+ "menuitemcheckbox",
352
+ "menuitemradio",
353
+ "navigation",
354
+ "none",
355
+ "note",
356
+ "option",
357
+ "presentation",
358
+ "progressbar",
359
+ "radio",
360
+ "radiogroup",
361
+ "region",
362
+ "row",
363
+ "rowgroup",
364
+ "rowheader",
365
+ "scrollbar",
366
+ "search",
367
+ "searchbox",
368
+ "separator",
369
+ "slider",
370
+ "spinbutton",
371
+ "status",
372
+ "switch",
373
+ "tab",
374
+ "table",
375
+ "tablist",
376
+ "tabpanel",
377
+ "term",
378
+ "textbox",
379
+ "timer",
380
+ "toolbar",
381
+ "tooltip",
382
+ "tree",
383
+ "treegrid",
384
+ "treeitem",
385
+ ]
386
+ | Var[
387
+ Literal[
388
+ "alert",
389
+ "alertdialog",
390
+ "application",
391
+ "article",
392
+ "banner",
393
+ "button",
394
+ "cell",
395
+ "checkbox",
396
+ "columnheader",
397
+ "combobox",
398
+ "complementary",
399
+ "contentinfo",
400
+ "definition",
401
+ "dialog",
402
+ "directory",
403
+ "document",
404
+ "feed",
405
+ "figure",
406
+ "form",
407
+ "grid",
408
+ "gridcell",
409
+ "group",
410
+ "heading",
411
+ "img",
412
+ "link",
413
+ "list",
414
+ "listbox",
415
+ "listitem",
416
+ "log",
417
+ "main",
418
+ "marquee",
419
+ "math",
420
+ "menu",
421
+ "menubar",
422
+ "menuitem",
423
+ "menuitemcheckbox",
424
+ "menuitemradio",
425
+ "navigation",
426
+ "none",
427
+ "note",
428
+ "option",
429
+ "presentation",
430
+ "progressbar",
431
+ "radio",
432
+ "radiogroup",
433
+ "region",
434
+ "row",
435
+ "rowgroup",
436
+ "rowheader",
437
+ "scrollbar",
438
+ "search",
439
+ "searchbox",
440
+ "separator",
441
+ "slider",
442
+ "spinbutton",
443
+ "status",
444
+ "switch",
445
+ "tab",
446
+ "table",
447
+ "tablist",
448
+ "tabpanel",
449
+ "term",
450
+ "textbox",
451
+ "timer",
452
+ "toolbar",
453
+ "tooltip",
454
+ "tree",
455
+ "treegrid",
456
+ "treeitem",
457
+ ]
458
+ ]
459
+ | None = None,
460
+ slot: Var[str] | str | None = None,
461
+ spell_check: Var[bool] | bool | None = None,
462
+ tab_index: Var[int] | int | None = None,
463
+ title: Var[str] | str | None = None,
464
+ style: Sequence[Mapping[str, Any]]
465
+ | Mapping[str, Any]
466
+ | Var[Mapping[str, Any]]
467
+ | Breakpoints
468
+ | None = None,
469
+ key: Any | None = None,
470
+ id: Any | None = None,
471
+ ref: Var | None = None,
472
+ class_name: Any | None = None,
473
+ custom_attrs: dict[str, Var | Any] | None = None,
474
+ on_blur: EventType[()] | None = None,
475
+ on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
476
+ on_close_auto_focus: EventType[()] | None = None,
477
+ on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
478
+ on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
479
+ on_escape_key_down: EventType[()] | None = None,
480
+ on_focus: EventType[()] | None = None,
481
+ on_interact_outside: EventType[()] | None = None,
482
+ on_mount: EventType[()] | None = None,
483
+ on_mouse_down: EventType[()] | None = None,
484
+ on_mouse_enter: EventType[()] | None = None,
485
+ on_mouse_leave: EventType[()] | None = None,
486
+ on_mouse_move: EventType[()] | None = None,
487
+ on_mouse_out: EventType[()] | None = None,
488
+ on_mouse_over: EventType[()] | None = None,
489
+ on_mouse_up: EventType[()] | None = None,
490
+ on_open_auto_focus: EventType[()] | None = None,
491
+ on_pointer_down_outside: EventType[()] | None = None,
492
+ on_scroll: EventType[()] | None = None,
493
+ on_scroll_end: EventType[()] | None = None,
494
+ on_unmount: EventType[()] | None = None,
495
+ **props,
496
+ ) -> DialogContent:
497
+ """Create the component.
498
+
499
+ Args:
500
+ *children: The children of the component.
501
+ force_mount: Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries. It inherits from Dialog.Portal.
502
+ as_child: Change the default rendered element for the one passed as a child.
503
+ on_open_auto_focus: Fired when the dialog is opened.
504
+ on_close_auto_focus: Fired when the dialog is closed.
505
+ on_escape_key_down: Fired when the escape key is pressed.
506
+ on_pointer_down_outside: Fired when the pointer is down outside the dialog.
507
+ on_interact_outside: Fired when the pointer interacts outside the dialog.
508
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
509
+ auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
510
+ content_editable: Indicates whether the element's content is editable.
511
+ context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
512
+ dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
513
+ draggable: Defines whether the element can be dragged.
514
+ enter_key_hint: Hints what media types the media element is able to play.
515
+ hidden: Defines whether the element is hidden.
516
+ input_mode: Defines the type of the element.
517
+ item_prop: Defines the name of the element for metadata purposes.
518
+ lang: Defines the language used in the element.
519
+ role: Defines the role of the element.
520
+ slot: Assigns a slot in a shadow DOM shadow tree to an element.
521
+ spell_check: Defines whether the element may be checked for spelling errors.
522
+ tab_index: Defines the position of the current element in the tabbing order.
523
+ title: Defines a tooltip for the element.
524
+ style: The style of the component.
525
+ key: A unique key for the component.
526
+ id: The id for the component.
527
+ ref: The Var to pass as the ref to the component.
528
+ class_name: The class name for the component.
529
+ custom_attrs: custom attribute
530
+ **props: The props of the component.
531
+
532
+ Returns:
533
+ The component.
534
+ """
535
+
536
+ class DialogTitle(DialogElement):
537
+ @classmethod
538
+ def create(
539
+ cls,
540
+ *children,
541
+ as_child: Var[bool] | bool | None = None,
542
+ style: Sequence[Mapping[str, Any]]
543
+ | Mapping[str, Any]
544
+ | Var[Mapping[str, Any]]
545
+ | Breakpoints
546
+ | None = None,
547
+ key: Any | None = None,
548
+ id: Any | None = None,
549
+ ref: Var | None = None,
550
+ class_name: Any | None = None,
551
+ custom_attrs: dict[str, Var | Any] | None = None,
552
+ on_blur: EventType[()] | None = None,
553
+ on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
554
+ on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
555
+ on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
556
+ on_focus: EventType[()] | None = None,
557
+ on_mount: EventType[()] | None = None,
558
+ on_mouse_down: EventType[()] | None = None,
559
+ on_mouse_enter: EventType[()] | None = None,
560
+ on_mouse_leave: EventType[()] | None = None,
561
+ on_mouse_move: EventType[()] | None = None,
562
+ on_mouse_out: EventType[()] | None = None,
563
+ on_mouse_over: EventType[()] | None = None,
564
+ on_mouse_up: EventType[()] | None = None,
565
+ on_scroll: EventType[()] | None = None,
566
+ on_scroll_end: EventType[()] | None = None,
567
+ on_unmount: EventType[()] | None = None,
568
+ **props,
569
+ ) -> DialogTitle:
570
+ """Create the component.
571
+
572
+ Args:
573
+ *children: The children of the component.
574
+ as_child: Change the default rendered element for the one passed as a child.
575
+ style: The style of the component.
576
+ key: A unique key for the component.
577
+ id: The id for the component.
578
+ ref: The Var to pass as the ref to the component.
579
+ class_name: The class name for the component.
580
+ custom_attrs: custom attribute
581
+ **props: The props of the component.
582
+
583
+ Returns:
584
+ The component.
585
+ """
586
+
587
+ class DialogDescription(DialogElement):
588
+ @classmethod
589
+ def create(
590
+ cls,
591
+ *children,
592
+ as_child: Var[bool] | bool | None = None,
593
+ style: Sequence[Mapping[str, Any]]
594
+ | Mapping[str, Any]
595
+ | Var[Mapping[str, Any]]
596
+ | Breakpoints
597
+ | None = None,
598
+ key: Any | None = None,
599
+ id: Any | None = None,
600
+ ref: Var | None = None,
601
+ class_name: Any | None = None,
602
+ custom_attrs: dict[str, Var | Any] | None = None,
603
+ on_blur: EventType[()] | None = None,
604
+ on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
605
+ on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
606
+ on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
607
+ on_focus: EventType[()] | None = None,
608
+ on_mount: EventType[()] | None = None,
609
+ on_mouse_down: EventType[()] | None = None,
610
+ on_mouse_enter: EventType[()] | None = None,
611
+ on_mouse_leave: EventType[()] | None = None,
612
+ on_mouse_move: EventType[()] | None = None,
613
+ on_mouse_out: EventType[()] | None = None,
614
+ on_mouse_over: EventType[()] | None = None,
615
+ on_mouse_up: EventType[()] | None = None,
616
+ on_scroll: EventType[()] | None = None,
617
+ on_scroll_end: EventType[()] | None = None,
618
+ on_unmount: EventType[()] | None = None,
619
+ **props,
620
+ ) -> DialogDescription:
621
+ """Create the component.
622
+
623
+ Args:
624
+ *children: The children of the component.
625
+ as_child: Change the default rendered element for the one passed as a child.
626
+ style: The style of the component.
627
+ key: A unique key for the component.
628
+ id: The id for the component.
629
+ ref: The Var to pass as the ref to the component.
630
+ class_name: The class name for the component.
631
+ custom_attrs: custom attribute
632
+ **props: The props of the component.
633
+
634
+ Returns:
635
+ The component.
636
+ """
637
+
638
+ class DialogClose(DialogElement, RadixPrimitiveTriggerComponent):
639
+ @classmethod
640
+ def create(
641
+ cls,
642
+ *children,
643
+ as_child: Var[bool] | bool | None = None,
644
+ style: Sequence[Mapping[str, Any]]
645
+ | Mapping[str, Any]
646
+ | Var[Mapping[str, Any]]
647
+ | Breakpoints
648
+ | None = None,
649
+ key: Any | None = None,
650
+ id: Any | None = None,
651
+ ref: Var | None = None,
652
+ class_name: Any | None = None,
653
+ custom_attrs: dict[str, Var | Any] | None = None,
654
+ on_blur: EventType[()] | None = None,
655
+ on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
656
+ on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
657
+ on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
658
+ on_focus: EventType[()] | None = None,
659
+ on_mount: EventType[()] | None = None,
660
+ on_mouse_down: EventType[()] | None = None,
661
+ on_mouse_enter: EventType[()] | None = None,
662
+ on_mouse_leave: EventType[()] | None = None,
663
+ on_mouse_move: EventType[()] | None = None,
664
+ on_mouse_out: EventType[()] | None = None,
665
+ on_mouse_over: EventType[()] | None = None,
666
+ on_mouse_up: EventType[()] | None = None,
667
+ on_scroll: EventType[()] | None = None,
668
+ on_scroll_end: EventType[()] | None = None,
669
+ on_unmount: EventType[()] | None = None,
670
+ **props,
671
+ ) -> DialogClose:
672
+ """Create a new RadixPrimitiveTriggerComponent instance.
673
+
674
+ Args:
675
+ children: The children of the component.
676
+ props: The properties of the component.
677
+
678
+ Returns:
679
+ The new RadixPrimitiveTriggerComponent instance.
680
+ """
681
+
682
+ class Dialog(ComponentNamespace):
683
+ root = staticmethod(DialogRoot.create)
684
+ portal = staticmethod(DialogPortal.create)
685
+ trigger = staticmethod(DialogTrigger.create)
686
+ title = staticmethod(DialogTitle.create)
687
+ overlay = staticmethod(DialogOverlay.create)
688
+ content = staticmethod(DialogContent.create)
689
+ description = staticmethod(DialogDescription.create)
690
+ close = staticmethod(DialogClose.create)
691
+
692
+ @staticmethod
693
+ def __call__(
694
+ *children,
695
+ open: Var[bool] | bool | None = None,
696
+ default_open: Var[bool] | bool | None = None,
697
+ modal: Var[bool] | bool | None = None,
698
+ as_child: Var[bool] | bool | None = None,
699
+ style: Sequence[Mapping[str, Any]]
700
+ | Mapping[str, Any]
701
+ | Var[Mapping[str, Any]]
702
+ | Breakpoints
703
+ | None = None,
704
+ key: Any | None = None,
705
+ id: Any | None = None,
706
+ ref: Var | None = None,
707
+ class_name: Any | None = None,
708
+ custom_attrs: dict[str, Var | Any] | None = None,
709
+ on_blur: EventType[()] | None = None,
710
+ on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
711
+ on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
712
+ on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
713
+ on_focus: EventType[()] | None = None,
714
+ on_mount: EventType[()] | None = None,
715
+ on_mouse_down: EventType[()] | None = None,
716
+ on_mouse_enter: EventType[()] | None = None,
717
+ on_mouse_leave: EventType[()] | None = None,
718
+ on_mouse_move: EventType[()] | None = None,
719
+ on_mouse_out: EventType[()] | None = None,
720
+ on_mouse_over: EventType[()] | None = None,
721
+ on_mouse_up: EventType[()] | None = None,
722
+ on_open_change: EventType[()] | EventType[bool] | None = None,
723
+ on_scroll: EventType[()] | None = None,
724
+ on_scroll_end: EventType[()] | None = None,
725
+ on_unmount: EventType[()] | None = None,
726
+ **props,
727
+ ) -> DialogRoot:
728
+ """Create the component.
729
+
730
+ Args:
731
+ *children: The children of the component.
732
+ open: The controlled open state of the dialog.
733
+ on_open_change: Fired when the open state changes.
734
+ default_open: The open state of the dialog when it is initially rendered. Use when you do not need to control its open state.
735
+ modal: The modality of the dialog. When set to true, interaction with outside elements will be disabled and only dialog content will be visible to screen readers.
736
+ as_child: Change the default rendered element for the one passed as a child.
737
+ style: The style of the component.
738
+ key: A unique key for the component.
739
+ id: The id for the component.
740
+ ref: The Var to pass as the ref to the component.
741
+ class_name: The class name for the component.
742
+ custom_attrs: custom attribute
743
+ **props: The props of the component.
744
+
745
+ Returns:
746
+ The component.
747
+ """
748
+
749
+ dialog = Dialog()