reflex 0.8.15a1__py3-none-any.whl → 0.8.16a1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of reflex might be problematic. Click here for more details.
- reflex/.templates/web/utils/state.js +68 -8
- reflex/app.py +45 -51
- reflex/app_mixins/lifespan.py +12 -5
- reflex/base.py +1 -0
- reflex/compiler/compiler.py +4 -6
- reflex/compiler/templates.py +25 -31
- reflex/compiler/utils.py +6 -5
- reflex/components/base/body.pyi +1 -195
- reflex/components/base/link.pyi +1 -407
- reflex/components/base/meta.pyi +1 -405
- reflex/components/base/script.pyi +1 -237
- reflex/components/component.py +41 -46
- reflex/components/core/auto_scroll.pyi +1 -195
- reflex/components/core/banner.pyi +1 -391
- reflex/components/core/breakpoints.py +14 -18
- reflex/components/core/html.pyi +1 -197
- reflex/components/core/match.py +2 -2
- reflex/components/core/sticky.py +11 -15
- reflex/components/core/sticky.pyi +0 -788
- reflex/components/core/upload.py +1 -3
- reflex/components/datadisplay/code.pyi +1 -0
- reflex/components/datadisplay/dataeditor.py +4 -6
- reflex/components/datadisplay/shiki_code_block.py +106 -110
- reflex/components/dynamic.py +4 -6
- reflex/components/el/elements/__init__.py +5 -7
- reflex/components/el/elements/__init__.pyi +5 -7
- reflex/components/el/elements/base.py +1 -1
- reflex/components/el/elements/base.pyi +1 -195
- reflex/components/el/elements/forms.py +7 -9
- reflex/components/el/elements/forms.pyi +12 -3112
- reflex/components/el/elements/inline.pyi +0 -5481
- reflex/components/el/elements/media.pyi +0 -10280
- reflex/components/el/elements/metadata.pyi +1 -835
- reflex/components/el/elements/other.pyi +1 -1365
- reflex/components/el/elements/scripts.pyi +1 -625
- reflex/components/el/elements/sectioning.pyi +1 -2911
- reflex/components/el/elements/tables.pyi +1 -1973
- reflex/components/el/elements/typography.pyi +1 -3125
- reflex/components/lucide/icon.py +4 -4
- reflex/components/lucide/icon.pyi +0 -4
- reflex/components/markdown/markdown.py +15 -19
- reflex/components/markdown/markdown.pyi +1 -0
- reflex/components/moment/moment.pyi +0 -49
- reflex/components/props.py +3 -3
- reflex/components/radix/primitives/accordion.py +4 -6
- reflex/components/radix/primitives/accordion.pyi +0 -14
- reflex/components/radix/primitives/base.pyi +0 -5
- reflex/components/radix/primitives/dialog.py +2 -0
- reflex/components/radix/primitives/dialog.pyi +1 -233
- reflex/components/radix/primitives/drawer.pyi +0 -18
- reflex/components/radix/primitives/form.pyi +30 -632
- reflex/components/radix/primitives/progress.pyi +0 -10
- reflex/components/radix/primitives/slider.pyi +0 -10
- reflex/components/radix/themes/color_mode.pyi +1 -284
- reflex/components/radix/themes/components/alert_dialog.pyi +0 -207
- reflex/components/radix/themes/components/aspect_ratio.pyi +0 -2
- reflex/components/radix/themes/components/avatar.pyi +0 -80
- reflex/components/radix/themes/components/badge.pyi +1 -270
- reflex/components/radix/themes/components/button.pyi +1 -274
- reflex/components/radix/themes/components/callout.pyi +0 -1197
- reflex/components/radix/themes/components/card.pyi +1 -209
- reflex/components/radix/themes/components/checkbox.pyi +0 -261
- reflex/components/radix/themes/components/checkbox_cards.pyi +1 -96
- reflex/components/radix/themes/components/checkbox_group.pyi +1 -80
- reflex/components/radix/themes/components/context_menu.pyi +13 -321
- reflex/components/radix/themes/components/data_list.pyi +1 -107
- reflex/components/radix/themes/components/dialog.pyi +1 -210
- reflex/components/radix/themes/components/dropdown_menu.pyi +0 -209
- reflex/components/radix/themes/components/hover_card.pyi +1 -246
- reflex/components/radix/themes/components/icon_button.pyi +1 -195
- reflex/components/radix/themes/components/inset.pyi +0 -252
- reflex/components/radix/themes/components/popover.pyi +1 -234
- reflex/components/radix/themes/components/progress.pyi +1 -84
- reflex/components/radix/themes/components/radio.pyi +1 -72
- reflex/components/radix/themes/components/radio_cards.pyi +1 -123
- reflex/components/radix/themes/components/scroll_area.pyi +1 -11
- reflex/components/radix/themes/components/select.pyi +1 -376
- reflex/components/radix/themes/components/separator.pyi +0 -77
- reflex/components/radix/themes/components/skeleton.pyi +0 -30
- reflex/components/radix/themes/components/slider.py +3 -5
- reflex/components/radix/themes/components/spinner.pyi +0 -5
- reflex/components/radix/themes/components/switch.pyi +0 -89
- reflex/components/radix/themes/components/table.pyi +0 -1453
- reflex/components/radix/themes/components/text_area.pyi +7 -282
- reflex/components/radix/themes/components/text_field.pyi +6 -392
- reflex/components/radix/themes/components/tooltip.pyi +0 -42
- reflex/components/radix/themes/layout/box.pyi +1 -195
- reflex/components/radix/themes/layout/center.pyi +0 -194
- reflex/components/radix/themes/layout/container.pyi +0 -178
- reflex/components/radix/themes/layout/flex.pyi +0 -194
- reflex/components/radix/themes/layout/grid.pyi +0 -194
- reflex/components/radix/themes/layout/list.pyi +0 -978
- reflex/components/radix/themes/layout/section.pyi +0 -194
- reflex/components/radix/themes/layout/spacer.pyi +0 -194
- reflex/components/radix/themes/layout/stack.pyi +0 -582
- reflex/components/radix/themes/typography/blockquote.pyi +0 -196
- reflex/components/radix/themes/typography/code.pyi +0 -194
- reflex/components/radix/themes/typography/heading.pyi +0 -194
- reflex/components/radix/themes/typography/link.pyi +0 -237
- reflex/components/radix/themes/typography/text.pyi +0 -1360
- reflex/components/react_router/dom.pyi +0 -237
- reflex/components/recharts/cartesian.py +12 -18
- reflex/components/recharts/general.py +12 -18
- reflex/constants/installer.py +5 -5
- reflex/custom_components/custom_components.py +6 -5
- reflex/environment.py +30 -7
- reflex/event.py +14 -12
- reflex/experimental/client_state.py +11 -12
- reflex/istate/data.py +8 -10
- reflex/istate/manager/__init__.py +3 -0
- reflex/istate/manager/disk.py +151 -5
- reflex/model.py +1 -1
- reflex/plugins/_screenshot.py +2 -2
- reflex/plugins/shared_tailwind.py +9 -14
- reflex/reflex.py +7 -9
- reflex/state.py +30 -37
- reflex/style.py +6 -6
- reflex/testing.py +54 -30
- reflex/utils/codespaces.py +31 -2
- reflex/utils/compat.py +1 -0
- reflex/utils/decorator.py +3 -3
- reflex/utils/format.py +18 -22
- reflex/utils/prerequisites.py +1 -1
- reflex/utils/pyi_generator.py +51 -57
- reflex/utils/serializers.py +1 -1
- reflex/utils/telemetry.py +1 -1
- reflex/utils/templates.py +4 -4
- reflex/utils/types.py +11 -4
- reflex/vars/base.py +26 -29
- reflex/vars/color.py +6 -8
- reflex/vars/dep_tracking.py +5 -3
- reflex/vars/function.py +3 -3
- reflex/vars/object.py +9 -13
- reflex/vars/sequence.py +18 -24
- {reflex-0.8.15a1.dist-info → reflex-0.8.16a1.dist-info}/METADATA +1 -1
- {reflex-0.8.15a1.dist-info → reflex-0.8.16a1.dist-info}/RECORD +139 -139
- {reflex-0.8.15a1.dist-info → reflex-0.8.16a1.dist-info}/WHEEL +0 -0
- {reflex-0.8.15a1.dist-info → reflex-0.8.16a1.dist-info}/entry_points.txt +0 -0
- {reflex-0.8.15a1.dist-info → reflex-0.8.16a1.dist-info}/licenses/LICENSE +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
6
|
from collections.abc import Mapping, Sequence
|
|
7
|
-
from typing import Any
|
|
7
|
+
from typing import Any
|
|
8
8
|
|
|
9
9
|
from reflex.components.component import ComponentNamespace
|
|
10
10
|
from reflex.components.core.breakpoints import Breakpoints
|
|
@@ -19,7 +19,6 @@ class DialogElement(RadixPrimitiveComponent):
|
|
|
19
19
|
def create(
|
|
20
20
|
cls,
|
|
21
21
|
*children,
|
|
22
|
-
as_child: Var[bool] | bool | None = None,
|
|
23
22
|
style: Sequence[Mapping[str, Any]]
|
|
24
23
|
| Mapping[str, Any]
|
|
25
24
|
| Var[Mapping[str, Any]]
|
|
@@ -52,7 +51,6 @@ class DialogElement(RadixPrimitiveComponent):
|
|
|
52
51
|
|
|
53
52
|
Args:
|
|
54
53
|
*children: The children of the component.
|
|
55
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
56
54
|
style: The style of the component.
|
|
57
55
|
key: A unique key for the component.
|
|
58
56
|
id: The id for the component.
|
|
@@ -70,10 +68,6 @@ class DialogRoot(DialogElement):
|
|
|
70
68
|
def create(
|
|
71
69
|
cls,
|
|
72
70
|
*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
71
|
style: Sequence[Mapping[str, Any]]
|
|
78
72
|
| Mapping[str, Any]
|
|
79
73
|
| Var[Mapping[str, Any]]
|
|
@@ -107,11 +101,7 @@ class DialogRoot(DialogElement):
|
|
|
107
101
|
|
|
108
102
|
Args:
|
|
109
103
|
*children: The children of the component.
|
|
110
|
-
open: The controlled open state of the dialog.
|
|
111
104
|
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
105
|
style: The style of the component.
|
|
116
106
|
key: A unique key for the component.
|
|
117
107
|
id: The id for the component.
|
|
@@ -129,9 +119,6 @@ class DialogPortal(DialogElement):
|
|
|
129
119
|
def create(
|
|
130
120
|
cls,
|
|
131
121
|
*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
122
|
style: Sequence[Mapping[str, Any]]
|
|
136
123
|
| Mapping[str, Any]
|
|
137
124
|
| Var[Mapping[str, Any]]
|
|
@@ -164,9 +151,6 @@ class DialogPortal(DialogElement):
|
|
|
164
151
|
|
|
165
152
|
Args:
|
|
166
153
|
*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
154
|
style: The style of the component.
|
|
171
155
|
key: A unique key for the component.
|
|
172
156
|
id: The id for the component.
|
|
@@ -184,8 +168,6 @@ class DialogOverlay(DialogElement):
|
|
|
184
168
|
def create(
|
|
185
169
|
cls,
|
|
186
170
|
*children,
|
|
187
|
-
as_child: Var[bool] | bool | None = None,
|
|
188
|
-
force_mount: Var[bool] | bool | None = None,
|
|
189
171
|
style: Sequence[Mapping[str, Any]]
|
|
190
172
|
| Mapping[str, Any]
|
|
191
173
|
| Var[Mapping[str, Any]]
|
|
@@ -218,8 +200,6 @@ class DialogOverlay(DialogElement):
|
|
|
218
200
|
|
|
219
201
|
Args:
|
|
220
202
|
*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
203
|
style: The style of the component.
|
|
224
204
|
key: A unique key for the component.
|
|
225
205
|
id: The id for the component.
|
|
@@ -237,7 +217,6 @@ class DialogTrigger(DialogElement, RadixPrimitiveTriggerComponent):
|
|
|
237
217
|
def create(
|
|
238
218
|
cls,
|
|
239
219
|
*children,
|
|
240
|
-
as_child: Var[bool] | bool | None = None,
|
|
241
220
|
style: Sequence[Mapping[str, Any]]
|
|
242
221
|
| Mapping[str, Any]
|
|
243
222
|
| Var[Mapping[str, Any]]
|
|
@@ -281,186 +260,6 @@ class DialogContent(elements.Div, DialogElement):
|
|
|
281
260
|
def create(
|
|
282
261
|
cls,
|
|
283
262
|
*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
263
|
style: Sequence[Mapping[str, Any]]
|
|
465
264
|
| Mapping[str, Any]
|
|
466
265
|
| Var[Mapping[str, Any]]
|
|
@@ -498,29 +297,11 @@ class DialogContent(elements.Div, DialogElement):
|
|
|
498
297
|
|
|
499
298
|
Args:
|
|
500
299
|
*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
300
|
on_open_auto_focus: Fired when the dialog is opened.
|
|
504
301
|
on_close_auto_focus: Fired when the dialog is closed.
|
|
505
302
|
on_escape_key_down: Fired when the escape key is pressed.
|
|
506
303
|
on_pointer_down_outside: Fired when the pointer is down outside the dialog.
|
|
507
304
|
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
305
|
style: The style of the component.
|
|
525
306
|
key: A unique key for the component.
|
|
526
307
|
id: The id for the component.
|
|
@@ -538,7 +319,6 @@ class DialogTitle(DialogElement):
|
|
|
538
319
|
def create(
|
|
539
320
|
cls,
|
|
540
321
|
*children,
|
|
541
|
-
as_child: Var[bool] | bool | None = None,
|
|
542
322
|
style: Sequence[Mapping[str, Any]]
|
|
543
323
|
| Mapping[str, Any]
|
|
544
324
|
| Var[Mapping[str, Any]]
|
|
@@ -571,7 +351,6 @@ class DialogTitle(DialogElement):
|
|
|
571
351
|
|
|
572
352
|
Args:
|
|
573
353
|
*children: The children of the component.
|
|
574
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
575
354
|
style: The style of the component.
|
|
576
355
|
key: A unique key for the component.
|
|
577
356
|
id: The id for the component.
|
|
@@ -589,7 +368,6 @@ class DialogDescription(DialogElement):
|
|
|
589
368
|
def create(
|
|
590
369
|
cls,
|
|
591
370
|
*children,
|
|
592
|
-
as_child: Var[bool] | bool | None = None,
|
|
593
371
|
style: Sequence[Mapping[str, Any]]
|
|
594
372
|
| Mapping[str, Any]
|
|
595
373
|
| Var[Mapping[str, Any]]
|
|
@@ -622,7 +400,6 @@ class DialogDescription(DialogElement):
|
|
|
622
400
|
|
|
623
401
|
Args:
|
|
624
402
|
*children: The children of the component.
|
|
625
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
626
403
|
style: The style of the component.
|
|
627
404
|
key: A unique key for the component.
|
|
628
405
|
id: The id for the component.
|
|
@@ -640,7 +417,6 @@ class DialogClose(DialogElement, RadixPrimitiveTriggerComponent):
|
|
|
640
417
|
def create(
|
|
641
418
|
cls,
|
|
642
419
|
*children,
|
|
643
|
-
as_child: Var[bool] | bool | None = None,
|
|
644
420
|
style: Sequence[Mapping[str, Any]]
|
|
645
421
|
| Mapping[str, Any]
|
|
646
422
|
| Var[Mapping[str, Any]]
|
|
@@ -692,10 +468,6 @@ class Dialog(ComponentNamespace):
|
|
|
692
468
|
@staticmethod
|
|
693
469
|
def __call__(
|
|
694
470
|
*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
471
|
style: Sequence[Mapping[str, Any]]
|
|
700
472
|
| Mapping[str, Any]
|
|
701
473
|
| Var[Mapping[str, Any]]
|
|
@@ -729,11 +501,7 @@ class Dialog(ComponentNamespace):
|
|
|
729
501
|
|
|
730
502
|
Args:
|
|
731
503
|
*children: The children of the component.
|
|
732
|
-
open: The controlled open state of the dialog.
|
|
733
504
|
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
505
|
style: The style of the component.
|
|
738
506
|
key: A unique key for the component.
|
|
739
507
|
id: The id for the component.
|
|
@@ -17,7 +17,6 @@ class DrawerComponent(RadixPrimitiveComponent):
|
|
|
17
17
|
def create(
|
|
18
18
|
cls,
|
|
19
19
|
*children,
|
|
20
|
-
as_child: Var[bool] | bool | None = None,
|
|
21
20
|
style: Sequence[Mapping[str, Any]]
|
|
22
21
|
| Mapping[str, Any]
|
|
23
22
|
| Var[Mapping[str, Any]]
|
|
@@ -50,7 +49,6 @@ class DrawerComponent(RadixPrimitiveComponent):
|
|
|
50
49
|
|
|
51
50
|
Args:
|
|
52
51
|
*children: The children of the component.
|
|
53
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
54
52
|
style: The style of the component.
|
|
55
53
|
key: A unique key for the component.
|
|
56
54
|
id: The id for the component.
|
|
@@ -84,7 +82,6 @@ class DrawerRoot(DrawerComponent):
|
|
|
84
82
|
prevent_scroll_restoration: Var[bool] | bool | None = None,
|
|
85
83
|
should_scale_background: Var[bool] | bool | None = None,
|
|
86
84
|
close_threshold: Var[float] | float | None = None,
|
|
87
|
-
as_child: Var[bool] | bool | None = None,
|
|
88
85
|
style: Sequence[Mapping[str, Any]]
|
|
89
86
|
| Mapping[str, Any]
|
|
90
87
|
| Var[Mapping[str, Any]]
|
|
@@ -133,7 +130,6 @@ class DrawerRoot(DrawerComponent):
|
|
|
133
130
|
prevent_scroll_restoration: When `True`, it prevents scroll restoration. Defaults to `True`.
|
|
134
131
|
should_scale_background: Enable background scaling, it requires container element with `vaul-drawer-wrapper` attribute to scale its background.
|
|
135
132
|
close_threshold: Number between 0 and 1 that determines when the drawer should be closed.
|
|
136
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
137
133
|
style: The style of the component.
|
|
138
134
|
key: A unique key for the component.
|
|
139
135
|
id: The id for the component.
|
|
@@ -202,7 +198,6 @@ class DrawerPortal(DrawerComponent):
|
|
|
202
198
|
def create(
|
|
203
199
|
cls,
|
|
204
200
|
*children,
|
|
205
|
-
as_child: Var[bool] | bool | None = None,
|
|
206
201
|
style: Sequence[Mapping[str, Any]]
|
|
207
202
|
| Mapping[str, Any]
|
|
208
203
|
| Var[Mapping[str, Any]]
|
|
@@ -235,7 +230,6 @@ class DrawerPortal(DrawerComponent):
|
|
|
235
230
|
|
|
236
231
|
Args:
|
|
237
232
|
*children: The children of the component.
|
|
238
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
239
233
|
style: The style of the component.
|
|
240
234
|
key: A unique key for the component.
|
|
241
235
|
id: The id for the component.
|
|
@@ -254,7 +248,6 @@ class DrawerContent(DrawerComponent):
|
|
|
254
248
|
def create(
|
|
255
249
|
cls,
|
|
256
250
|
*children,
|
|
257
|
-
as_child: Var[bool] | bool | None = None,
|
|
258
251
|
style: Sequence[Mapping[str, Any]]
|
|
259
252
|
| Mapping[str, Any]
|
|
260
253
|
| Var[Mapping[str, Any]]
|
|
@@ -296,7 +289,6 @@ class DrawerContent(DrawerComponent):
|
|
|
296
289
|
|
|
297
290
|
Args:
|
|
298
291
|
*children: The list of children to use.
|
|
299
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
300
292
|
style: The style of the component.
|
|
301
293
|
key: A unique key for the component.
|
|
302
294
|
id: The id for the component.
|
|
@@ -315,7 +307,6 @@ class DrawerOverlay(DrawerComponent):
|
|
|
315
307
|
def create(
|
|
316
308
|
cls,
|
|
317
309
|
*children,
|
|
318
|
-
as_child: Var[bool] | bool | None = None,
|
|
319
310
|
style: Sequence[Mapping[str, Any]]
|
|
320
311
|
| Mapping[str, Any]
|
|
321
312
|
| Var[Mapping[str, Any]]
|
|
@@ -348,7 +339,6 @@ class DrawerOverlay(DrawerComponent):
|
|
|
348
339
|
|
|
349
340
|
Args:
|
|
350
341
|
*children: The children of the component.
|
|
351
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
352
342
|
style: The style of the component.
|
|
353
343
|
key: A unique key for the component.
|
|
354
344
|
id: The id for the component.
|
|
@@ -418,7 +408,6 @@ class DrawerTitle(DrawerComponent):
|
|
|
418
408
|
def create(
|
|
419
409
|
cls,
|
|
420
410
|
*children,
|
|
421
|
-
as_child: Var[bool] | bool | None = None,
|
|
422
411
|
style: Sequence[Mapping[str, Any]]
|
|
423
412
|
| Mapping[str, Any]
|
|
424
413
|
| Var[Mapping[str, Any]]
|
|
@@ -451,7 +440,6 @@ class DrawerTitle(DrawerComponent):
|
|
|
451
440
|
|
|
452
441
|
Args:
|
|
453
442
|
*children: The children of the component.
|
|
454
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
455
443
|
style: The style of the component.
|
|
456
444
|
key: A unique key for the component.
|
|
457
445
|
id: The id for the component.
|
|
@@ -470,7 +458,6 @@ class DrawerDescription(DrawerComponent):
|
|
|
470
458
|
def create(
|
|
471
459
|
cls,
|
|
472
460
|
*children,
|
|
473
|
-
as_child: Var[bool] | bool | None = None,
|
|
474
461
|
style: Sequence[Mapping[str, Any]]
|
|
475
462
|
| Mapping[str, Any]
|
|
476
463
|
| Var[Mapping[str, Any]]
|
|
@@ -503,7 +490,6 @@ class DrawerDescription(DrawerComponent):
|
|
|
503
490
|
|
|
504
491
|
Args:
|
|
505
492
|
*children: The children of the component.
|
|
506
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
507
493
|
style: The style of the component.
|
|
508
494
|
key: A unique key for the component.
|
|
509
495
|
id: The id for the component.
|
|
@@ -521,7 +507,6 @@ class DrawerHandle(DrawerComponent):
|
|
|
521
507
|
def create(
|
|
522
508
|
cls,
|
|
523
509
|
*children,
|
|
524
|
-
as_child: Var[bool] | bool | None = None,
|
|
525
510
|
style: Sequence[Mapping[str, Any]]
|
|
526
511
|
| Mapping[str, Any]
|
|
527
512
|
| Var[Mapping[str, Any]]
|
|
@@ -554,7 +539,6 @@ class DrawerHandle(DrawerComponent):
|
|
|
554
539
|
|
|
555
540
|
Args:
|
|
556
541
|
*children: The children of the component.
|
|
557
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
558
542
|
style: The style of the component.
|
|
559
543
|
key: A unique key for the component.
|
|
560
544
|
id: The id for the component.
|
|
@@ -595,7 +579,6 @@ class Drawer(ComponentNamespace):
|
|
|
595
579
|
prevent_scroll_restoration: Var[bool] | bool | None = None,
|
|
596
580
|
should_scale_background: Var[bool] | bool | None = None,
|
|
597
581
|
close_threshold: Var[float] | float | None = None,
|
|
598
|
-
as_child: Var[bool] | bool | None = None,
|
|
599
582
|
style: Sequence[Mapping[str, Any]]
|
|
600
583
|
| Mapping[str, Any]
|
|
601
584
|
| Var[Mapping[str, Any]]
|
|
@@ -644,7 +627,6 @@ class Drawer(ComponentNamespace):
|
|
|
644
627
|
prevent_scroll_restoration: When `True`, it prevents scroll restoration. Defaults to `True`.
|
|
645
628
|
should_scale_background: Enable background scaling, it requires container element with `vaul-drawer-wrapper` attribute to scale its background.
|
|
646
629
|
close_threshold: Number between 0 and 1 that determines when the drawer should be closed.
|
|
647
|
-
as_child: Change the default rendered element for the one passed as a child.
|
|
648
630
|
style: The style of the component.
|
|
649
631
|
key: A unique key for the component.
|
|
650
632
|
id: The id for the component.
|