reflex 0.7.1a3__py3-none-any.whl → 0.7.2__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/jinja/web/utils/context.js.jinja2 +8 -8
- reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +3 -3
- reflex/.templates/web/utils/state.js +18 -18
- reflex/admin.py +1 -2
- reflex/app.py +53 -50
- reflex/app_mixins/lifespan.py +2 -2
- reflex/app_mixins/middleware.py +1 -2
- reflex/assets.py +1 -2
- reflex/base.py +2 -2
- reflex/compiler/compiler.py +51 -16
- reflex/compiler/utils.py +4 -13
- reflex/components/base/app_wrap.pyi +7 -7
- reflex/components/base/bare.py +3 -3
- reflex/components/base/body.pyi +7 -7
- reflex/components/base/document.py +1 -3
- reflex/components/base/document.pyi +32 -32
- reflex/components/base/error_boundary.py +2 -4
- reflex/components/base/error_boundary.pyi +11 -13
- reflex/components/base/fragment.pyi +7 -7
- reflex/components/base/head.pyi +13 -13
- reflex/components/base/link.pyi +22 -22
- reflex/components/base/meta.py +5 -7
- reflex/components/base/meta.pyi +40 -40
- reflex/components/base/script.pyi +11 -14
- reflex/components/base/strict_mode.pyi +7 -7
- reflex/components/component.py +188 -113
- reflex/components/core/auto_scroll.py +8 -1
- reflex/components/core/auto_scroll.pyi +183 -210
- reflex/components/core/banner.py +2 -4
- reflex/components/core/banner.pyi +390 -444
- reflex/components/core/breakpoints.py +5 -5
- reflex/components/core/client_side_routing.pyi +14 -14
- reflex/components/core/clipboard.py +4 -4
- reflex/components/core/clipboard.pyi +12 -14
- reflex/components/core/cond.py +17 -25
- reflex/components/core/debounce.py +3 -3
- reflex/components/core/debounce.pyi +14 -14
- reflex/components/core/foreach.py +7 -2
- reflex/components/core/html.py +1 -3
- reflex/components/core/html.pyi +184 -213
- reflex/components/core/match.py +15 -19
- reflex/components/core/sticky.pyi +930 -1078
- reflex/components/core/upload.py +4 -4
- reflex/components/core/upload.pyi +62 -62
- reflex/components/datadisplay/code.py +6 -6
- reflex/components/datadisplay/code.pyi +1159 -1165
- reflex/components/datadisplay/dataeditor.py +49 -49
- reflex/components/datadisplay/dataeditor.pyi +95 -123
- reflex/components/datadisplay/logo.py +1 -3
- reflex/components/datadisplay/shiki_code_block.py +8 -10
- reflex/components/datadisplay/shiki_code_block.pyi +1678 -1720
- reflex/components/el/element.pyi +7 -7
- reflex/components/el/elements/base.pyi +183 -210
- reflex/components/el/elements/forms.py +24 -24
- reflex/components/el/elements/forms.pyi +2572 -2934
- reflex/components/el/elements/inline.py +4 -4
- reflex/components/el/elements/inline.pyi +5191 -5953
- reflex/components/el/elements/media.py +47 -47
- reflex/components/el/elements/media.pyi +4802 -5500
- reflex/components/el/elements/metadata.py +1 -3
- reflex/components/el/elements/metadata.pyi +782 -896
- reflex/components/el/elements/other.pyi +1278 -1467
- reflex/components/el/elements/scripts.pyi +580 -667
- reflex/components/el/elements/sectioning.pyi +2761 -3166
- reflex/components/el/elements/tables.pyi +1840 -2119
- reflex/components/el/elements/typography.pyi +2772 -3179
- reflex/components/gridjs/datatable.py +7 -7
- reflex/components/gridjs/datatable.pyi +19 -19
- reflex/components/lucide/icon.pyi +21 -21
- reflex/components/markdown/markdown.py +2 -2
- reflex/components/markdown/markdown.pyi +9 -9
- reflex/components/moment/moment.py +11 -12
- reflex/components/moment/moment.pyi +44 -47
- reflex/components/next/base.pyi +7 -7
- reflex/components/next/image.py +3 -3
- reflex/components/next/image.pyi +19 -21
- reflex/components/next/link.pyi +9 -9
- reflex/components/next/video.py +1 -3
- reflex/components/next/video.pyi +9 -9
- reflex/components/plotly/plotly.py +22 -45
- reflex/components/plotly/plotly.pyi +164 -164
- reflex/components/radix/primitives/accordion.py +14 -14
- reflex/components/radix/primitives/accordion.pyi +439 -487
- reflex/components/radix/primitives/base.py +1 -3
- reflex/components/radix/primitives/base.pyi +15 -15
- reflex/components/radix/primitives/drawer.py +3 -3
- reflex/components/radix/primitives/drawer.pyi +110 -116
- reflex/components/radix/primitives/form.py +1 -1
- reflex/components/radix/primitives/form.pyi +668 -752
- reflex/components/radix/primitives/progress.py +6 -6
- reflex/components/radix/primitives/progress.pyi +225 -243
- reflex/components/radix/primitives/slider.py +6 -6
- reflex/components/radix/primitives/slider.pyi +52 -55
- reflex/components/radix/themes/base.py +3 -6
- reflex/components/radix/themes/base.pyi +197 -303
- reflex/components/radix/themes/color_mode.py +5 -5
- reflex/components/radix/themes/color_mode.pyi +366 -436
- reflex/components/radix/themes/components/alert_dialog.pyi +229 -262
- reflex/components/radix/themes/components/aspect_ratio.py +1 -3
- reflex/components/radix/themes/components/aspect_ratio.pyi +8 -8
- reflex/components/radix/themes/components/avatar.pyi +79 -94
- reflex/components/radix/themes/components/badge.pyi +252 -295
- reflex/components/radix/themes/components/button.pyi +269 -314
- reflex/components/radix/themes/components/callout.py +2 -2
- reflex/components/radix/themes/components/callout.pyi +1116 -1290
- reflex/components/radix/themes/components/card.pyi +194 -229
- reflex/components/radix/themes/components/checkbox.pyi +243 -278
- reflex/components/radix/themes/components/checkbox_cards.py +3 -7
- reflex/components/radix/themes/components/checkbox_cards.pyi +101 -135
- reflex/components/radix/themes/components/checkbox_group.py +2 -2
- reflex/components/radix/themes/components/checkbox_group.pyi +83 -96
- reflex/components/radix/themes/components/context_menu.py +18 -15
- reflex/components/radix/themes/components/context_menu.pyi +408 -458
- reflex/components/radix/themes/components/data_list.pyi +122 -147
- reflex/components/radix/themes/components/dialog.pyi +231 -264
- reflex/components/radix/themes/components/dropdown_menu.py +16 -13
- reflex/components/radix/themes/components/dropdown_menu.pyi +223 -246
- reflex/components/radix/themes/components/hover_card.py +2 -2
- reflex/components/radix/themes/components/hover_card.pyi +237 -282
- reflex/components/radix/themes/components/icon_button.pyi +269 -314
- reflex/components/radix/themes/components/inset.py +8 -8
- reflex/components/radix/themes/components/inset.pyi +232 -292
- reflex/components/radix/themes/components/popover.py +2 -2
- reflex/components/radix/themes/components/popover.pyi +229 -271
- reflex/components/radix/themes/components/progress.pyi +80 -96
- reflex/components/radix/themes/components/radio.pyi +73 -86
- reflex/components/radix/themes/components/radio_cards.py +4 -8
- reflex/components/radix/themes/components/radio_cards.pyi +117 -154
- reflex/components/radix/themes/components/radio_group.py +3 -3
- reflex/components/radix/themes/components/radio_group.pyi +250 -291
- reflex/components/radix/themes/components/scroll_area.pyi +14 -20
- reflex/components/radix/themes/components/segmented_control.py +6 -6
- reflex/components/radix/themes/components/segmented_control.pyi +89 -108
- reflex/components/radix/themes/components/select.py +7 -7
- reflex/components/radix/themes/components/select.pyi +376 -444
- reflex/components/radix/themes/components/separator.pyi +79 -93
- reflex/components/radix/themes/components/skeleton.pyi +32 -26
- reflex/components/radix/themes/components/slider.py +8 -8
- reflex/components/radix/themes/components/slider.pyi +99 -122
- reflex/components/radix/themes/components/spinner.pyi +12 -19
- reflex/components/radix/themes/components/switch.pyi +84 -99
- reflex/components/radix/themes/components/table.py +9 -9
- reflex/components/radix/themes/components/table.pyi +1440 -1794
- reflex/components/radix/themes/components/tabs.py +4 -4
- reflex/components/radix/themes/components/tabs.pyi +120 -132
- reflex/components/radix/themes/components/text_area.pyi +281 -331
- reflex/components/radix/themes/components/text_field.py +2 -2
- reflex/components/radix/themes/components/text_field.pyi +639 -734
- reflex/components/radix/themes/components/tooltip.py +6 -6
- reflex/components/radix/themes/components/tooltip.pyi +34 -43
- reflex/components/radix/themes/layout/base.pyi +85 -182
- reflex/components/radix/themes/layout/box.pyi +183 -210
- reflex/components/radix/themes/layout/center.pyi +225 -286
- reflex/components/radix/themes/layout/container.pyi +191 -224
- reflex/components/radix/themes/layout/flex.py +2 -2
- reflex/components/radix/themes/layout/flex.pyi +225 -286
- reflex/components/radix/themes/layout/grid.py +2 -2
- reflex/components/radix/themes/layout/grid.pyi +245 -315
- reflex/components/radix/themes/layout/list.py +2 -2
- reflex/components/radix/themes/layout/list.pyi +712 -815
- reflex/components/radix/themes/layout/section.pyi +187 -221
- reflex/components/radix/themes/layout/spacer.pyi +225 -286
- reflex/components/radix/themes/layout/stack.pyi +625 -768
- reflex/components/radix/themes/typography/blockquote.pyi +257 -299
- reflex/components/radix/themes/typography/code.pyi +259 -304
- reflex/components/radix/themes/typography/heading.pyi +272 -324
- reflex/components/radix/themes/typography/link.pyi +302 -358
- reflex/components/radix/themes/typography/text.pyi +1669 -1945
- reflex/components/react_player/audio.pyi +20 -22
- reflex/components/react_player/react_player.pyi +19 -19
- reflex/components/react_player/video.pyi +20 -22
- reflex/components/recharts/cartesian.py +100 -97
- reflex/components/recharts/cartesian.pyi +891 -1007
- reflex/components/recharts/charts.py +42 -42
- reflex/components/recharts/charts.pyi +212 -249
- reflex/components/recharts/general.py +22 -21
- reflex/components/recharts/general.pyi +198 -223
- reflex/components/recharts/polar.py +42 -45
- reflex/components/recharts/polar.pyi +254 -288
- reflex/components/recharts/recharts.pyi +13 -13
- reflex/components/sonner/toast.py +20 -20
- reflex/components/sonner/toast.pyi +58 -61
- reflex/components/suneditor/editor.py +9 -9
- reflex/components/suneditor/editor.pyi +78 -83
- reflex/components/tags/cond_tag.py +2 -2
- reflex/components/tags/iter_tag.py +10 -14
- reflex/components/tags/match_tag.py +2 -2
- reflex/components/tags/tag.py +10 -10
- reflex/config.py +36 -35
- reflex/constants/__init__.py +56 -53
- reflex/custom_components/custom_components.py +6 -7
- reflex/event.py +38 -42
- reflex/experimental/client_state.py +2 -4
- reflex/experimental/layout.py +2 -2
- reflex/experimental/layout.pyi +579 -663
- reflex/istate/data.py +4 -5
- reflex/middleware/hydrate_middleware.py +2 -2
- reflex/middleware/middleware.py +2 -2
- reflex/model.py +3 -5
- reflex/page.py +2 -2
- reflex/reflex.py +9 -10
- reflex/state.py +77 -49
- reflex/style.py +11 -5
- reflex/testing.py +21 -24
- reflex/utils/console.py +1 -1
- reflex/utils/decorator.py +26 -1
- reflex/utils/exec.py +6 -11
- reflex/utils/export.py +2 -3
- reflex/utils/format.py +4 -4
- reflex/utils/imports.py +12 -12
- reflex/utils/prerequisites.py +35 -84
- reflex/utils/processes.py +5 -5
- reflex/utils/pyi_generator.py +33 -22
- reflex/utils/serializers.py +60 -15
- reflex/utils/types.py +237 -56
- reflex/vars/base.py +122 -72
- reflex/vars/datetime.py +2 -2
- reflex/vars/function.py +52 -55
- reflex/vars/number.py +59 -5
- reflex/vars/object.py +57 -26
- reflex/vars/sequence.py +983 -958
- {reflex-0.7.1a3.dist-info → reflex-0.7.2.dist-info}/METADATA +3 -6
- reflex-0.7.2.dist-info/RECORD +405 -0
- {reflex-0.7.1a3.dist-info → reflex-0.7.2.dist-info}/WHEEL +1 -1
- reflex-0.7.1a3.dist-info/RECORD +0 -405
- {reflex-0.7.1a3.dist-info → reflex-0.7.2.dist-info}/LICENSE +0 -0
- {reflex-0.7.1a3.dist-info → reflex-0.7.2.dist-info}/entry_points.txt +0 -0
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"""The base component for Radix primitives."""
|
|
2
2
|
|
|
3
|
-
from typing import List
|
|
4
|
-
|
|
5
3
|
from reflex.components.component import Component
|
|
6
4
|
from reflex.components.tags.tag import Tag
|
|
7
5
|
from reflex.utils import format
|
|
@@ -14,7 +12,7 @@ class RadixPrimitiveComponent(Component):
|
|
|
14
12
|
# Change the default rendered element for the one passed as a child.
|
|
15
13
|
as_child: Var[bool]
|
|
16
14
|
|
|
17
|
-
lib_dependencies:
|
|
15
|
+
lib_dependencies: list[str] = ["@emotion/react@^11.11.1"]
|
|
18
16
|
|
|
19
17
|
|
|
20
18
|
class RadixPrimitiveComponentWithClassName(RadixPrimitiveComponent):
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any,
|
|
6
|
+
from typing import Any, Optional, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
9
|
from reflex.event import EventType
|
|
@@ -16,13 +16,13 @@ class RadixPrimitiveComponent(Component):
|
|
|
16
16
|
def create( # type: ignore
|
|
17
17
|
cls,
|
|
18
18
|
*children,
|
|
19
|
-
as_child:
|
|
20
|
-
style:
|
|
21
|
-
key:
|
|
22
|
-
id:
|
|
23
|
-
class_name:
|
|
24
|
-
autofocus:
|
|
25
|
-
custom_attrs:
|
|
19
|
+
as_child: Var[bool] | bool | None = None,
|
|
20
|
+
style: Style | None = None,
|
|
21
|
+
key: Any | None = None,
|
|
22
|
+
id: Any | None = None,
|
|
23
|
+
class_name: Any | None = None,
|
|
24
|
+
autofocus: bool | None = None,
|
|
25
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
26
26
|
on_blur: Optional[EventType[()]] = None,
|
|
27
27
|
on_click: Optional[EventType[()]] = None,
|
|
28
28
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -64,13 +64,13 @@ class RadixPrimitiveComponentWithClassName(RadixPrimitiveComponent):
|
|
|
64
64
|
def create( # type: ignore
|
|
65
65
|
cls,
|
|
66
66
|
*children,
|
|
67
|
-
as_child:
|
|
68
|
-
style:
|
|
69
|
-
key:
|
|
70
|
-
id:
|
|
71
|
-
class_name:
|
|
72
|
-
autofocus:
|
|
73
|
-
custom_attrs:
|
|
67
|
+
as_child: Var[bool] | bool | None = None,
|
|
68
|
+
style: Style | None = None,
|
|
69
|
+
key: Any | None = None,
|
|
70
|
+
id: Any | None = None,
|
|
71
|
+
class_name: Any | None = None,
|
|
72
|
+
autofocus: bool | None = None,
|
|
73
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
74
74
|
on_blur: Optional[EventType[()]] = None,
|
|
75
75
|
on_click: Optional[EventType[()]] = None,
|
|
76
76
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# Style based on https://ui.shadcn.com/docs/components/drawer
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
7
|
-
from typing import Any,
|
|
7
|
+
from typing import Any, Literal, Sequence
|
|
8
8
|
|
|
9
9
|
from reflex.components.component import Component, ComponentNamespace
|
|
10
10
|
from reflex.components.radix.primitives.base import RadixPrimitiveComponent
|
|
@@ -20,7 +20,7 @@ class DrawerComponent(RadixPrimitiveComponent):
|
|
|
20
20
|
|
|
21
21
|
library = "vaul"
|
|
22
22
|
|
|
23
|
-
lib_dependencies:
|
|
23
|
+
lib_dependencies: list[str] = ["@radix-ui/react-dialog@^1.1.6"]
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
LiteralDirectionType = Literal["top", "bottom", "left", "right"]
|
|
@@ -58,7 +58,7 @@ class DrawerRoot(DrawerComponent):
|
|
|
58
58
|
handle_only: Var[bool]
|
|
59
59
|
|
|
60
60
|
# Array of numbers from 0 to 100 that corresponds to % of the screen a given snap point should take up. Should go from least visible. Also Accept px values, which doesn't take screen height into account.
|
|
61
|
-
snap_points:
|
|
61
|
+
snap_points: Sequence[str | float] | None
|
|
62
62
|
|
|
63
63
|
# Index of a snapPoint from which the overlay fade should be applied. Defaults to the last snap point.
|
|
64
64
|
fade_from_index: Var[int]
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any,
|
|
6
|
+
from typing import Any, Literal, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import ComponentNamespace
|
|
9
9
|
from reflex.components.radix.primitives.base import RadixPrimitiveComponent
|
|
@@ -17,13 +17,13 @@ class DrawerComponent(RadixPrimitiveComponent):
|
|
|
17
17
|
def create( # type: ignore
|
|
18
18
|
cls,
|
|
19
19
|
*children,
|
|
20
|
-
as_child:
|
|
21
|
-
style:
|
|
22
|
-
key:
|
|
23
|
-
id:
|
|
24
|
-
class_name:
|
|
25
|
-
autofocus:
|
|
26
|
-
custom_attrs:
|
|
20
|
+
as_child: Var[bool] | bool | None = None,
|
|
21
|
+
style: Style | None = None,
|
|
22
|
+
key: Any | None = None,
|
|
23
|
+
id: Any | None = None,
|
|
24
|
+
class_name: Any | None = None,
|
|
25
|
+
autofocus: bool | None = None,
|
|
26
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
27
27
|
on_blur: Optional[EventType[()]] = None,
|
|
28
28
|
on_click: Optional[EventType[()]] = None,
|
|
29
29
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -67,31 +67,28 @@ class DrawerRoot(DrawerComponent):
|
|
|
67
67
|
def create( # type: ignore
|
|
68
68
|
cls,
|
|
69
69
|
*children,
|
|
70
|
-
default_open:
|
|
71
|
-
open:
|
|
72
|
-
modal:
|
|
73
|
-
direction:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
] = None,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
autofocus: Optional[bool] = None,
|
|
93
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
94
|
-
on_animation_end: Optional[Union[EventType[()], EventType[bool]]] = None,
|
|
70
|
+
default_open: Var[bool] | bool | None = None,
|
|
71
|
+
open: Var[bool] | bool | None = None,
|
|
72
|
+
modal: Var[bool] | bool | None = None,
|
|
73
|
+
direction: Literal["bottom", "left", "right", "top"]
|
|
74
|
+
| Var[Literal["bottom", "left", "right", "top"]]
|
|
75
|
+
| None = None,
|
|
76
|
+
dismissible: Var[bool] | bool | None = None,
|
|
77
|
+
handle_only: Var[bool] | bool | None = None,
|
|
78
|
+
snap_points: Sequence[float | str] | None = None,
|
|
79
|
+
fade_from_index: Var[int] | int | None = None,
|
|
80
|
+
scroll_lock_timeout: Var[int] | int | None = None,
|
|
81
|
+
prevent_scroll_restoration: Var[bool] | bool | None = None,
|
|
82
|
+
should_scale_background: Var[bool] | bool | None = None,
|
|
83
|
+
close_threshold: Var[float] | float | None = None,
|
|
84
|
+
as_child: Var[bool] | bool | None = None,
|
|
85
|
+
style: Style | None = None,
|
|
86
|
+
key: Any | None = None,
|
|
87
|
+
id: Any | None = None,
|
|
88
|
+
class_name: Any | None = None,
|
|
89
|
+
autofocus: bool | None = None,
|
|
90
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
91
|
+
on_animation_end: Optional[EventType[()] | EventType[bool]] = None,
|
|
95
92
|
on_blur: Optional[EventType[()]] = None,
|
|
96
93
|
on_click: Optional[EventType[()]] = None,
|
|
97
94
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -105,7 +102,7 @@ class DrawerRoot(DrawerComponent):
|
|
|
105
102
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
106
103
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
107
104
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
108
|
-
on_open_change: Optional[
|
|
105
|
+
on_open_change: Optional[EventType[()] | EventType[bool]] = None,
|
|
109
106
|
on_scroll: Optional[EventType[()]] = None,
|
|
110
107
|
on_unmount: Optional[EventType[()]] = None,
|
|
111
108
|
**props,
|
|
@@ -148,13 +145,13 @@ class DrawerTrigger(DrawerComponent):
|
|
|
148
145
|
def create( # type: ignore
|
|
149
146
|
cls,
|
|
150
147
|
*children,
|
|
151
|
-
as_child:
|
|
152
|
-
style:
|
|
153
|
-
key:
|
|
154
|
-
id:
|
|
155
|
-
class_name:
|
|
156
|
-
autofocus:
|
|
157
|
-
custom_attrs:
|
|
148
|
+
as_child: Var[bool] | bool | None = None,
|
|
149
|
+
style: Style | None = None,
|
|
150
|
+
key: Any | None = None,
|
|
151
|
+
id: Any | None = None,
|
|
152
|
+
class_name: Any | None = None,
|
|
153
|
+
autofocus: bool | None = None,
|
|
154
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
158
155
|
on_blur: Optional[EventType[()]] = None,
|
|
159
156
|
on_click: Optional[EventType[()]] = None,
|
|
160
157
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -196,13 +193,13 @@ class DrawerPortal(DrawerComponent):
|
|
|
196
193
|
def create( # type: ignore
|
|
197
194
|
cls,
|
|
198
195
|
*children,
|
|
199
|
-
as_child:
|
|
200
|
-
style:
|
|
201
|
-
key:
|
|
202
|
-
id:
|
|
203
|
-
class_name:
|
|
204
|
-
autofocus:
|
|
205
|
-
custom_attrs:
|
|
196
|
+
as_child: Var[bool] | bool | None = None,
|
|
197
|
+
style: Style | None = None,
|
|
198
|
+
key: Any | None = None,
|
|
199
|
+
id: Any | None = None,
|
|
200
|
+
class_name: Any | None = None,
|
|
201
|
+
autofocus: bool | None = None,
|
|
202
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
206
203
|
on_blur: Optional[EventType[()]] = None,
|
|
207
204
|
on_click: Optional[EventType[()]] = None,
|
|
208
205
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -244,13 +241,13 @@ class DrawerContent(DrawerComponent):
|
|
|
244
241
|
def create( # type: ignore
|
|
245
242
|
cls,
|
|
246
243
|
*children,
|
|
247
|
-
as_child:
|
|
248
|
-
style:
|
|
249
|
-
key:
|
|
250
|
-
id:
|
|
251
|
-
class_name:
|
|
252
|
-
autofocus:
|
|
253
|
-
custom_attrs:
|
|
244
|
+
as_child: Var[bool] | bool | None = None,
|
|
245
|
+
style: Style | None = None,
|
|
246
|
+
key: Any | None = None,
|
|
247
|
+
id: Any | None = None,
|
|
248
|
+
class_name: Any | None = None,
|
|
249
|
+
autofocus: bool | None = None,
|
|
250
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
254
251
|
on_blur: Optional[EventType[()]] = None,
|
|
255
252
|
on_click: Optional[EventType[()]] = None,
|
|
256
253
|
on_close_auto_focus: Optional[EventType[()]] = None,
|
|
@@ -301,13 +298,13 @@ class DrawerOverlay(DrawerComponent):
|
|
|
301
298
|
def create( # type: ignore
|
|
302
299
|
cls,
|
|
303
300
|
*children,
|
|
304
|
-
as_child:
|
|
305
|
-
style:
|
|
306
|
-
key:
|
|
307
|
-
id:
|
|
308
|
-
class_name:
|
|
309
|
-
autofocus:
|
|
310
|
-
custom_attrs:
|
|
301
|
+
as_child: Var[bool] | bool | None = None,
|
|
302
|
+
style: Style | None = None,
|
|
303
|
+
key: Any | None = None,
|
|
304
|
+
id: Any | None = None,
|
|
305
|
+
class_name: Any | None = None,
|
|
306
|
+
autofocus: bool | None = None,
|
|
307
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
311
308
|
on_blur: Optional[EventType[()]] = None,
|
|
312
309
|
on_click: Optional[EventType[()]] = None,
|
|
313
310
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -349,13 +346,13 @@ class DrawerClose(DrawerTrigger):
|
|
|
349
346
|
def create( # type: ignore
|
|
350
347
|
cls,
|
|
351
348
|
*children,
|
|
352
|
-
as_child:
|
|
353
|
-
style:
|
|
354
|
-
key:
|
|
355
|
-
id:
|
|
356
|
-
class_name:
|
|
357
|
-
autofocus:
|
|
358
|
-
custom_attrs:
|
|
349
|
+
as_child: Var[bool] | bool | None = None,
|
|
350
|
+
style: Style | None = None,
|
|
351
|
+
key: Any | None = None,
|
|
352
|
+
id: Any | None = None,
|
|
353
|
+
class_name: Any | None = None,
|
|
354
|
+
autofocus: bool | None = None,
|
|
355
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
359
356
|
on_blur: Optional[EventType[()]] = None,
|
|
360
357
|
on_click: Optional[EventType[()]] = None,
|
|
361
358
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -397,13 +394,13 @@ class DrawerTitle(DrawerComponent):
|
|
|
397
394
|
def create( # type: ignore
|
|
398
395
|
cls,
|
|
399
396
|
*children,
|
|
400
|
-
as_child:
|
|
401
|
-
style:
|
|
402
|
-
key:
|
|
403
|
-
id:
|
|
404
|
-
class_name:
|
|
405
|
-
autofocus:
|
|
406
|
-
custom_attrs:
|
|
397
|
+
as_child: Var[bool] | bool | None = None,
|
|
398
|
+
style: Style | None = None,
|
|
399
|
+
key: Any | None = None,
|
|
400
|
+
id: Any | None = None,
|
|
401
|
+
class_name: Any | None = None,
|
|
402
|
+
autofocus: bool | None = None,
|
|
403
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
407
404
|
on_blur: Optional[EventType[()]] = None,
|
|
408
405
|
on_click: Optional[EventType[()]] = None,
|
|
409
406
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -445,13 +442,13 @@ class DrawerDescription(DrawerComponent):
|
|
|
445
442
|
def create( # type: ignore
|
|
446
443
|
cls,
|
|
447
444
|
*children,
|
|
448
|
-
as_child:
|
|
449
|
-
style:
|
|
450
|
-
key:
|
|
451
|
-
id:
|
|
452
|
-
class_name:
|
|
453
|
-
autofocus:
|
|
454
|
-
custom_attrs:
|
|
445
|
+
as_child: Var[bool] | bool | None = None,
|
|
446
|
+
style: Style | None = None,
|
|
447
|
+
key: Any | None = None,
|
|
448
|
+
id: Any | None = None,
|
|
449
|
+
class_name: Any | None = None,
|
|
450
|
+
autofocus: bool | None = None,
|
|
451
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
455
452
|
on_blur: Optional[EventType[()]] = None,
|
|
456
453
|
on_click: Optional[EventType[()]] = None,
|
|
457
454
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -493,13 +490,13 @@ class DrawerHandle(DrawerComponent):
|
|
|
493
490
|
def create( # type: ignore
|
|
494
491
|
cls,
|
|
495
492
|
*children,
|
|
496
|
-
as_child:
|
|
497
|
-
style:
|
|
498
|
-
key:
|
|
499
|
-
id:
|
|
500
|
-
class_name:
|
|
501
|
-
autofocus:
|
|
502
|
-
custom_attrs:
|
|
493
|
+
as_child: Var[bool] | bool | None = None,
|
|
494
|
+
style: Style | None = None,
|
|
495
|
+
key: Any | None = None,
|
|
496
|
+
id: Any | None = None,
|
|
497
|
+
class_name: Any | None = None,
|
|
498
|
+
autofocus: bool | None = None,
|
|
499
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
503
500
|
on_blur: Optional[EventType[()]] = None,
|
|
504
501
|
on_click: Optional[EventType[()]] = None,
|
|
505
502
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -549,31 +546,28 @@ class Drawer(ComponentNamespace):
|
|
|
549
546
|
@staticmethod
|
|
550
547
|
def __call__(
|
|
551
548
|
*children,
|
|
552
|
-
default_open:
|
|
553
|
-
open:
|
|
554
|
-
modal:
|
|
555
|
-
direction:
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
] = None,
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
autofocus: Optional[bool] = None,
|
|
575
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
576
|
-
on_animation_end: Optional[Union[EventType[()], EventType[bool]]] = None,
|
|
549
|
+
default_open: Var[bool] | bool | None = None,
|
|
550
|
+
open: Var[bool] | bool | None = None,
|
|
551
|
+
modal: Var[bool] | bool | None = None,
|
|
552
|
+
direction: Literal["bottom", "left", "right", "top"]
|
|
553
|
+
| Var[Literal["bottom", "left", "right", "top"]]
|
|
554
|
+
| None = None,
|
|
555
|
+
dismissible: Var[bool] | bool | None = None,
|
|
556
|
+
handle_only: Var[bool] | bool | None = None,
|
|
557
|
+
snap_points: Sequence[float | str] | None = None,
|
|
558
|
+
fade_from_index: Var[int] | int | None = None,
|
|
559
|
+
scroll_lock_timeout: Var[int] | int | None = None,
|
|
560
|
+
prevent_scroll_restoration: Var[bool] | bool | None = None,
|
|
561
|
+
should_scale_background: Var[bool] | bool | None = None,
|
|
562
|
+
close_threshold: Var[float] | float | None = None,
|
|
563
|
+
as_child: Var[bool] | bool | None = None,
|
|
564
|
+
style: Style | None = None,
|
|
565
|
+
key: Any | None = None,
|
|
566
|
+
id: Any | None = None,
|
|
567
|
+
class_name: Any | None = None,
|
|
568
|
+
autofocus: bool | None = None,
|
|
569
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
570
|
+
on_animation_end: Optional[EventType[()] | EventType[bool]] = None,
|
|
577
571
|
on_blur: Optional[EventType[()]] = None,
|
|
578
572
|
on_click: Optional[EventType[()]] = None,
|
|
579
573
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -587,7 +581,7 @@ class Drawer(ComponentNamespace):
|
|
|
587
581
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
588
582
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
589
583
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
590
|
-
on_open_change: Optional[
|
|
584
|
+
on_open_change: Optional[EventType[()] | EventType[bool]] = None,
|
|
591
585
|
on_scroll: Optional[EventType[()]] = None,
|
|
592
586
|
on_unmount: Optional[EventType[()]] = None,
|
|
593
587
|
**props,
|
|
@@ -17,7 +17,7 @@ from .base import RadixPrimitiveComponentWithClassName
|
|
|
17
17
|
class FormComponent(RadixPrimitiveComponentWithClassName):
|
|
18
18
|
"""Base class for all @radix-ui/react-form components."""
|
|
19
19
|
|
|
20
|
-
library = "@radix-ui/react-form@^0.1.
|
|
20
|
+
library = "@radix-ui/react-form@^0.1.2"
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
class FormRoot(FormComponent, HTMLForm):
|