reflex 0.6.4a3__py3-none-any.whl → 0.6.5__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/pages/custom_component.js.jinja2 +0 -14
- reflex/.templates/jinja/web/pages/utils.js.jinja2 +4 -8
- reflex/.templates/web/components/shiki/code.js +16 -11
- reflex/.templates/web/utils/state.js +29 -21
- reflex/__init__.py +4 -0
- reflex/__init__.pyi +4 -0
- reflex/app.py +148 -154
- reflex/app_mixins/lifespan.py +5 -1
- reflex/app_mixins/middleware.py +3 -1
- reflex/app_mixins/mixin.py +3 -2
- reflex/base.py +2 -4
- reflex/compiler/compiler.py +111 -37
- reflex/components/base/app_wrap.pyi +17 -17
- reflex/components/base/bare.py +72 -3
- reflex/components/base/body.pyi +17 -17
- reflex/components/base/document.pyi +81 -81
- reflex/components/base/error_boundary.pyi +25 -18
- reflex/components/base/fragment.pyi +17 -17
- reflex/components/base/head.pyi +33 -33
- reflex/components/base/link.pyi +33 -33
- reflex/components/base/meta.pyi +65 -65
- reflex/components/base/script.py +4 -4
- reflex/components/base/script.pyi +23 -20
- reflex/components/component.py +250 -31
- reflex/components/core/banner.py +1 -1
- reflex/components/core/banner.pyi +81 -81
- reflex/components/core/client_side_routing.pyi +33 -33
- reflex/components/core/clipboard.py +2 -2
- reflex/components/core/clipboard.pyi +24 -18
- reflex/components/core/debounce.py +2 -2
- reflex/components/core/debounce.pyi +18 -18
- reflex/components/core/html.pyi +17 -17
- reflex/components/core/upload.py +90 -28
- reflex/components/core/upload.pyi +128 -72
- reflex/components/datadisplay/code.py +55 -40
- reflex/components/datadisplay/code.pyi +46 -44
- reflex/components/datadisplay/dataeditor.py +21 -20
- reflex/components/datadisplay/dataeditor.pyi +103 -35
- reflex/components/datadisplay/shiki_code_block.py +60 -27
- reflex/components/datadisplay/shiki_code_block.pyi +86 -65
- reflex/components/dynamic.py +9 -5
- reflex/components/el/element.pyi +17 -17
- reflex/components/el/elements/base.pyi +17 -17
- reflex/components/el/elements/forms.py +12 -3
- reflex/components/el/elements/forms.pyi +293 -233
- reflex/components/el/elements/inline.pyi +449 -449
- reflex/components/el/elements/media.pyi +401 -401
- reflex/components/el/elements/metadata.pyi +97 -97
- reflex/components/el/elements/other.pyi +113 -113
- reflex/components/el/elements/scripts.pyi +49 -49
- reflex/components/el/elements/sectioning.pyi +241 -241
- reflex/components/el/elements/tables.pyi +161 -161
- reflex/components/el/elements/typography.pyi +241 -241
- reflex/components/gridjs/datatable.pyi +33 -33
- reflex/components/lucide/icon.py +1 -1
- reflex/components/lucide/icon.pyi +33 -33
- reflex/components/markdown/markdown.py +180 -49
- reflex/components/markdown/markdown.pyi +36 -19
- reflex/components/moment/moment.py +17 -21
- reflex/components/moment/moment.pyi +26 -21
- reflex/components/next/base.pyi +17 -17
- reflex/components/next/image.py +3 -3
- reflex/components/next/image.pyi +21 -19
- reflex/components/next/link.pyi +17 -17
- reflex/components/next/video.pyi +17 -17
- reflex/components/plotly/plotly.py +79 -78
- reflex/components/plotly/plotly.pyi +91 -41
- reflex/components/props.py +34 -0
- reflex/components/radix/primitives/accordion.py +15 -8
- reflex/components/radix/primitives/accordion.pyi +121 -118
- reflex/components/radix/primitives/base.pyi +33 -33
- reflex/components/radix/primitives/drawer.py +41 -20
- reflex/components/radix/primitives/drawer.pyi +279 -190
- reflex/components/radix/primitives/form.py +2 -2
- reflex/components/radix/primitives/form.pyi +200 -167
- reflex/components/radix/primitives/progress.pyi +81 -81
- reflex/components/radix/primitives/slider.pyi +89 -83
- reflex/components/radix/themes/base.py +30 -1
- reflex/components/radix/themes/base.pyi +286 -113
- reflex/components/radix/themes/color_mode.py +17 -9
- reflex/components/radix/themes/color_mode.pyi +68 -56
- reflex/components/radix/themes/components/alert_dialog.py +8 -5
- reflex/components/radix/themes/components/alert_dialog.pyi +125 -117
- reflex/components/radix/themes/components/aspect_ratio.pyi +17 -17
- reflex/components/radix/themes/components/avatar.py +1 -5
- reflex/components/radix/themes/components/avatar.pyi +17 -17
- reflex/components/radix/themes/components/badge.py +1 -5
- reflex/components/radix/themes/components/badge.pyi +17 -17
- reflex/components/radix/themes/components/button.pyi +18 -21
- reflex/components/radix/themes/components/callout.py +1 -4
- reflex/components/radix/themes/components/callout.pyi +81 -81
- reflex/components/radix/themes/components/card.py +1 -3
- reflex/components/radix/themes/components/card.pyi +17 -17
- reflex/components/radix/themes/components/checkbox.py +4 -8
- reflex/components/radix/themes/components/checkbox.pyi +61 -52
- reflex/components/radix/themes/components/checkbox_cards.pyi +33 -33
- reflex/components/radix/themes/components/checkbox_group.pyi +33 -33
- reflex/components/radix/themes/components/context_menu.py +121 -28
- reflex/components/radix/themes/components/context_menu.pyi +250 -147
- reflex/components/radix/themes/components/data_list.pyi +65 -65
- reflex/components/radix/themes/components/dialog.py +11 -11
- reflex/components/radix/themes/components/dialog.pyi +135 -120
- reflex/components/radix/themes/components/dropdown_menu.py +14 -25
- reflex/components/radix/themes/components/dropdown_menu.pyi +157 -145
- reflex/components/radix/themes/components/hover_card.py +19 -7
- reflex/components/radix/themes/components/hover_card.pyi +102 -67
- reflex/components/radix/themes/components/icon_button.pyi +18 -21
- reflex/components/radix/themes/components/inset.py +1 -3
- reflex/components/radix/themes/components/inset.pyi +17 -17
- reflex/components/radix/themes/components/popover.py +22 -13
- reflex/components/radix/themes/components/popover.pyi +98 -72
- reflex/components/radix/themes/components/progress.pyi +17 -17
- reflex/components/radix/themes/components/radio.pyi +17 -17
- reflex/components/radix/themes/components/radio_cards.py +2 -2
- reflex/components/radix/themes/components/radio_cards.pyi +37 -34
- reflex/components/radix/themes/components/radio_group.py +3 -7
- reflex/components/radix/themes/components/radio_group.pyi +69 -66
- reflex/components/radix/themes/components/scroll_area.py +1 -3
- reflex/components/radix/themes/components/scroll_area.pyi +17 -17
- reflex/components/radix/themes/components/segmented_control.pyi +37 -34
- reflex/components/radix/themes/components/select.py +7 -11
- reflex/components/radix/themes/components/select.pyi +175 -154
- reflex/components/radix/themes/components/separator.py +1 -4
- reflex/components/radix/themes/components/separator.pyi +17 -17
- reflex/components/radix/themes/components/skeleton.pyi +17 -17
- reflex/components/radix/themes/components/slider.py +12 -21
- reflex/components/radix/themes/components/slider.pyi +47 -25
- reflex/components/radix/themes/components/spinner.py +1 -4
- reflex/components/radix/themes/components/spinner.pyi +17 -17
- reflex/components/radix/themes/components/switch.py +3 -6
- reflex/components/radix/themes/components/switch.pyi +21 -18
- reflex/components/radix/themes/components/table.py +21 -5
- reflex/components/radix/themes/components/table.pyi +392 -116
- reflex/components/radix/themes/components/tabs.py +3 -6
- reflex/components/radix/themes/components/tabs.pyi +89 -83
- reflex/components/radix/themes/components/text_area.py +1 -5
- reflex/components/radix/themes/components/text_area.pyi +43 -20
- reflex/components/radix/themes/components/text_field.py +1 -5
- reflex/components/radix/themes/components/text_field.pyi +101 -55
- reflex/components/radix/themes/components/tooltip.py +5 -7
- reflex/components/radix/themes/components/tooltip.pyi +25 -22
- reflex/components/radix/themes/layout/base.py +2 -27
- reflex/components/radix/themes/layout/base.pyi +82 -82
- reflex/components/radix/themes/layout/box.pyi +17 -17
- reflex/components/radix/themes/layout/center.pyi +17 -17
- reflex/components/radix/themes/layout/container.pyi +17 -17
- reflex/components/radix/themes/layout/flex.py +1 -6
- reflex/components/radix/themes/layout/flex.pyi +17 -17
- reflex/components/radix/themes/layout/grid.py +1 -6
- reflex/components/radix/themes/layout/grid.pyi +17 -17
- reflex/components/radix/themes/layout/list.py +20 -15
- reflex/components/radix/themes/layout/list.pyi +175 -92
- reflex/components/radix/themes/layout/section.pyi +17 -17
- reflex/components/radix/themes/layout/spacer.pyi +17 -17
- reflex/components/radix/themes/layout/stack.py +6 -6
- reflex/components/radix/themes/layout/stack.pyi +91 -62
- reflex/components/radix/themes/typography/blockquote.py +2 -8
- reflex/components/radix/themes/typography/blockquote.pyi +17 -17
- reflex/components/radix/themes/typography/code.py +4 -10
- reflex/components/radix/themes/typography/code.pyi +19 -18
- reflex/components/radix/themes/typography/heading.py +4 -11
- reflex/components/radix/themes/typography/heading.pyi +19 -18
- reflex/components/radix/themes/typography/link.py +4 -10
- reflex/components/radix/themes/typography/link.pyi +19 -18
- reflex/components/radix/themes/typography/text.py +4 -11
- reflex/components/radix/themes/typography/text.pyi +115 -114
- reflex/components/react_player/audio.pyi +58 -33
- reflex/components/react_player/react_player.py +17 -17
- reflex/components/react_player/react_player.pyi +55 -33
- reflex/components/react_player/video.pyi +58 -33
- reflex/components/recharts/cartesian.py +45 -45
- reflex/components/recharts/cartesian.pyi +389 -304
- reflex/components/recharts/charts.py +22 -22
- reflex/components/recharts/charts.pyi +226 -179
- reflex/components/recharts/general.py +26 -27
- reflex/components/recharts/general.pyi +106 -99
- reflex/components/recharts/polar.py +33 -33
- reflex/components/recharts/polar.pyi +70 -64
- reflex/components/recharts/recharts.pyi +33 -33
- reflex/components/sonner/toast.py +9 -36
- reflex/components/sonner/toast.pyi +20 -24
- reflex/components/suneditor/editor.py +8 -8
- reflex/components/suneditor/editor.pyi +50 -25
- reflex/components/tags/iter_tag.py +1 -10
- reflex/components/tags/tag.py +1 -4
- reflex/config.py +198 -35
- reflex/constants/__init__.py +4 -16
- reflex/constants/base.py +7 -14
- reflex/constants/colors.py +0 -1
- reflex/constants/installer.py +12 -7
- reflex/constants/state.py +4 -0
- reflex/custom_components/custom_components.py +6 -6
- reflex/event.py +486 -241
- reflex/experimental/client_state.py +9 -9
- reflex/experimental/layout.py +2 -2
- reflex/experimental/layout.pyi +95 -87
- reflex/experimental/misc.py +1 -1
- reflex/istate/__init__.py +1 -0
- reflex/istate/proxy.py +33 -0
- reflex/istate/wrappers.py +27 -0
- reflex/model.py +7 -7
- reflex/page.py +2 -1
- reflex/reflex.py +142 -8
- reflex/state.py +133 -46
- reflex/testing.py +9 -7
- reflex/utils/console.py +0 -1
- reflex/utils/exceptions.py +31 -3
- reflex/utils/exec.py +33 -14
- reflex/utils/format.py +15 -12
- reflex/utils/net.py +1 -1
- reflex/utils/path_ops.py +2 -2
- reflex/utils/prerequisites.py +82 -46
- reflex/utils/pyi_generator.py +63 -20
- reflex/utils/registry.py +1 -1
- reflex/utils/serializers.py +75 -36
- reflex/utils/telemetry.py +3 -2
- reflex/utils/types.py +125 -10
- reflex/vars/base.py +131 -119
- reflex/vars/function.py +59 -12
- reflex/vars/number.py +3 -1
- reflex/vars/object.py +30 -24
- reflex/vars/sequence.py +7 -7
- {reflex-0.6.4a3.dist-info → reflex-0.6.5.dist-info}/METADATA +3 -3
- reflex-0.6.5.dist-info/RECORD +394 -0
- reflex-0.6.4a3.dist-info/RECORD +0 -391
- {reflex-0.6.4a3.dist-info → reflex-0.6.5.dist-info}/LICENSE +0 -0
- {reflex-0.6.4a3.dist-info → reflex-0.6.5.dist-info}/WHEEL +0 -0
- {reflex-0.6.4a3.dist-info → reflex-0.6.5.dist-info}/entry_points.txt +0 -0
|
@@ -5,9 +5,7 @@
|
|
|
5
5
|
# ------------------------------------------------------
|
|
6
6
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
|
7
7
|
|
|
8
|
-
from reflex.event import
|
|
9
|
-
EventType,
|
|
10
|
-
)
|
|
8
|
+
from reflex.event import BASE_STATE, EventType
|
|
11
9
|
from reflex.style import Style
|
|
12
10
|
from reflex.vars.base import Var
|
|
13
11
|
|
|
@@ -63,25 +61,27 @@ class Tooltip(RadixThemesComponent):
|
|
|
63
61
|
id: Optional[Any] = None,
|
|
64
62
|
class_name: Optional[Any] = None,
|
|
65
63
|
autofocus: Optional[bool] = None,
|
|
66
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
67
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
68
|
-
on_click: Optional[EventType[[]]] = None,
|
|
69
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
70
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
71
|
-
on_escape_key_down: Optional[EventType[[]]] = None,
|
|
72
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
73
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
74
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
75
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
76
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
77
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
78
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
79
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
80
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
81
|
-
on_open_change: Optional[
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
64
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
65
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
66
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
67
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
68
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
69
|
+
on_escape_key_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
70
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
71
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
72
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
73
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
74
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
75
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
76
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
77
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
78
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
79
|
+
on_open_change: Optional[
|
|
80
|
+
Union[EventType[[], BASE_STATE], EventType[[bool], BASE_STATE]]
|
|
81
|
+
] = None,
|
|
82
|
+
on_pointer_down_outside: Optional[EventType[[], BASE_STATE]] = None,
|
|
83
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
84
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
85
85
|
**props,
|
|
86
86
|
) -> "Tooltip":
|
|
87
87
|
"""Initialize the Tooltip component.
|
|
@@ -106,6 +106,9 @@ class Tooltip(RadixThemesComponent):
|
|
|
106
106
|
disable_hoverable_content: Prevents Tooltip content from remaining open when hovering.
|
|
107
107
|
force_mount: Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries.
|
|
108
108
|
aria_label: By default, screenreaders will announce the content inside the component. If this is not descriptive enough, or you have content that cannot be announced, use aria-label as a more descriptive label.
|
|
109
|
+
on_open_change: Fired when the open state changes.
|
|
110
|
+
on_escape_key_down: Fired when the escape key is pressed.
|
|
111
|
+
on_pointer_down_outside: Fired when the pointer is down outside the tooltip.
|
|
109
112
|
style: The style of the component.
|
|
110
113
|
key: A unique key for the component.
|
|
111
114
|
id: The id for the component.
|
|
@@ -7,42 +7,17 @@ from typing import Literal
|
|
|
7
7
|
from reflex.components.core.breakpoints import Responsive
|
|
8
8
|
from reflex.vars.base import Var
|
|
9
9
|
|
|
10
|
-
from ..base import
|
|
11
|
-
CommonMarginProps,
|
|
12
|
-
LiteralSpacing,
|
|
13
|
-
RadixThemesComponent,
|
|
14
|
-
)
|
|
10
|
+
from ..base import CommonMarginProps, CommonPaddingProps, RadixThemesComponent
|
|
15
11
|
|
|
16
12
|
LiteralBoolNumber = Literal["0", "1"]
|
|
17
13
|
|
|
18
14
|
|
|
19
|
-
class LayoutComponent(CommonMarginProps, RadixThemesComponent):
|
|
15
|
+
class LayoutComponent(CommonMarginProps, CommonPaddingProps, RadixThemesComponent):
|
|
20
16
|
"""Box, Flex and Grid are foundational elements you'll use to construct
|
|
21
17
|
layouts. Box provides block-level spacing and sizing, while Flex and Grid
|
|
22
18
|
let you create flexible columns, rows and grids.
|
|
23
19
|
"""
|
|
24
20
|
|
|
25
|
-
# Padding: "0" - "9"
|
|
26
|
-
p: Var[Responsive[LiteralSpacing]]
|
|
27
|
-
|
|
28
|
-
# Padding horizontal: "0" - "9"
|
|
29
|
-
px: Var[Responsive[LiteralSpacing]]
|
|
30
|
-
|
|
31
|
-
# Padding vertical: "0" - "9"
|
|
32
|
-
py: Var[Responsive[LiteralSpacing]]
|
|
33
|
-
|
|
34
|
-
# Padding top: "0" - "9"
|
|
35
|
-
pt: Var[Responsive[LiteralSpacing]]
|
|
36
|
-
|
|
37
|
-
# Padding right: "0" - "9"
|
|
38
|
-
pr: Var[Responsive[LiteralSpacing]]
|
|
39
|
-
|
|
40
|
-
# Padding bottom: "0" - "9"
|
|
41
|
-
pb: Var[Responsive[LiteralSpacing]]
|
|
42
|
-
|
|
43
|
-
# Padding left: "0" - "9"
|
|
44
|
-
pl: Var[Responsive[LiteralSpacing]]
|
|
45
|
-
|
|
46
21
|
# Whether the element will take up the smallest possible space: "0" | "1"
|
|
47
22
|
flex_shrink: Var[Responsive[LiteralBoolNumber]]
|
|
48
23
|
|
|
@@ -6,20 +6,76 @@
|
|
|
6
6
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.core.breakpoints import Breakpoints
|
|
9
|
-
from reflex.event import EventType
|
|
9
|
+
from reflex.event import BASE_STATE, EventType
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
|
-
from ..base import CommonMarginProps, RadixThemesComponent
|
|
13
|
+
from ..base import CommonMarginProps, CommonPaddingProps, RadixThemesComponent
|
|
14
14
|
|
|
15
15
|
LiteralBoolNumber = Literal["0", "1"]
|
|
16
16
|
|
|
17
|
-
class LayoutComponent(CommonMarginProps, RadixThemesComponent):
|
|
17
|
+
class LayoutComponent(CommonMarginProps, CommonPaddingProps, RadixThemesComponent):
|
|
18
18
|
@overload
|
|
19
19
|
@classmethod
|
|
20
20
|
def create( # type: ignore
|
|
21
21
|
cls,
|
|
22
22
|
*children,
|
|
23
|
+
flex_shrink: Optional[
|
|
24
|
+
Union[
|
|
25
|
+
Breakpoints[str, Literal["0", "1"]],
|
|
26
|
+
Literal["0", "1"],
|
|
27
|
+
Var[Union[Breakpoints[str, Literal["0", "1"]], Literal["0", "1"]]],
|
|
28
|
+
]
|
|
29
|
+
] = None,
|
|
30
|
+
flex_grow: Optional[
|
|
31
|
+
Union[
|
|
32
|
+
Breakpoints[str, Literal["0", "1"]],
|
|
33
|
+
Literal["0", "1"],
|
|
34
|
+
Var[Union[Breakpoints[str, Literal["0", "1"]], Literal["0", "1"]]],
|
|
35
|
+
]
|
|
36
|
+
] = None,
|
|
37
|
+
m: Optional[
|
|
38
|
+
Union[
|
|
39
|
+
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
40
|
+
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
41
|
+
]
|
|
42
|
+
] = None,
|
|
43
|
+
mx: Optional[
|
|
44
|
+
Union[
|
|
45
|
+
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
46
|
+
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
47
|
+
]
|
|
48
|
+
] = None,
|
|
49
|
+
my: Optional[
|
|
50
|
+
Union[
|
|
51
|
+
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
52
|
+
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
53
|
+
]
|
|
54
|
+
] = None,
|
|
55
|
+
mt: Optional[
|
|
56
|
+
Union[
|
|
57
|
+
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
58
|
+
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
59
|
+
]
|
|
60
|
+
] = None,
|
|
61
|
+
mr: Optional[
|
|
62
|
+
Union[
|
|
63
|
+
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
64
|
+
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
65
|
+
]
|
|
66
|
+
] = None,
|
|
67
|
+
mb: Optional[
|
|
68
|
+
Union[
|
|
69
|
+
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
70
|
+
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
71
|
+
]
|
|
72
|
+
] = None,
|
|
73
|
+
ml: Optional[
|
|
74
|
+
Union[
|
|
75
|
+
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
76
|
+
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
77
|
+
]
|
|
78
|
+
] = None,
|
|
23
79
|
p: Optional[
|
|
24
80
|
Union[
|
|
25
81
|
Breakpoints[
|
|
@@ -139,83 +195,27 @@ class LayoutComponent(CommonMarginProps, RadixThemesComponent):
|
|
|
139
195
|
],
|
|
140
196
|
]
|
|
141
197
|
] = None,
|
|
142
|
-
flex_shrink: Optional[
|
|
143
|
-
Union[
|
|
144
|
-
Breakpoints[str, Literal["0", "1"]],
|
|
145
|
-
Literal["0", "1"],
|
|
146
|
-
Var[Union[Breakpoints[str, Literal["0", "1"]], Literal["0", "1"]]],
|
|
147
|
-
]
|
|
148
|
-
] = None,
|
|
149
|
-
flex_grow: Optional[
|
|
150
|
-
Union[
|
|
151
|
-
Breakpoints[str, Literal["0", "1"]],
|
|
152
|
-
Literal["0", "1"],
|
|
153
|
-
Var[Union[Breakpoints[str, Literal["0", "1"]], Literal["0", "1"]]],
|
|
154
|
-
]
|
|
155
|
-
] = None,
|
|
156
|
-
m: Optional[
|
|
157
|
-
Union[
|
|
158
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
159
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
160
|
-
]
|
|
161
|
-
] = None,
|
|
162
|
-
mx: Optional[
|
|
163
|
-
Union[
|
|
164
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
165
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
166
|
-
]
|
|
167
|
-
] = None,
|
|
168
|
-
my: Optional[
|
|
169
|
-
Union[
|
|
170
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
171
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
172
|
-
]
|
|
173
|
-
] = None,
|
|
174
|
-
mt: Optional[
|
|
175
|
-
Union[
|
|
176
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
177
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
178
|
-
]
|
|
179
|
-
] = None,
|
|
180
|
-
mr: Optional[
|
|
181
|
-
Union[
|
|
182
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
183
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
184
|
-
]
|
|
185
|
-
] = None,
|
|
186
|
-
mb: Optional[
|
|
187
|
-
Union[
|
|
188
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
189
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
190
|
-
]
|
|
191
|
-
] = None,
|
|
192
|
-
ml: Optional[
|
|
193
|
-
Union[
|
|
194
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
195
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
196
|
-
]
|
|
197
|
-
] = None,
|
|
198
198
|
style: Optional[Style] = None,
|
|
199
199
|
key: Optional[Any] = None,
|
|
200
200
|
id: Optional[Any] = None,
|
|
201
201
|
class_name: Optional[Any] = None,
|
|
202
202
|
autofocus: Optional[bool] = None,
|
|
203
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
204
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
205
|
-
on_click: Optional[EventType[[]]] = None,
|
|
206
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
207
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
208
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
209
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
210
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
211
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
212
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
213
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
214
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
215
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
216
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
217
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
218
|
-
on_unmount: Optional[EventType[[]]] = None,
|
|
203
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
204
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
205
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
206
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
207
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
208
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
209
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
210
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
211
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
212
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
213
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
214
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
215
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
216
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
217
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
218
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
219
219
|
**props,
|
|
220
220
|
) -> "LayoutComponent":
|
|
221
221
|
"""Create a new component instance.
|
|
@@ -225,13 +225,6 @@ class LayoutComponent(CommonMarginProps, RadixThemesComponent):
|
|
|
225
225
|
|
|
226
226
|
Args:
|
|
227
227
|
*children: Child components.
|
|
228
|
-
p: Padding: "0" - "9"
|
|
229
|
-
px: Padding horizontal: "0" - "9"
|
|
230
|
-
py: Padding vertical: "0" - "9"
|
|
231
|
-
pt: Padding top: "0" - "9"
|
|
232
|
-
pr: Padding right: "0" - "9"
|
|
233
|
-
pb: Padding bottom: "0" - "9"
|
|
234
|
-
pl: Padding left: "0" - "9"
|
|
235
228
|
flex_shrink: Whether the element will take up the smallest possible space: "0" | "1"
|
|
236
229
|
flex_grow: Whether the element will take up the largest possible space: "0" | "1"
|
|
237
230
|
m: Margin: "0" - "9"
|
|
@@ -241,6 +234,13 @@ class LayoutComponent(CommonMarginProps, RadixThemesComponent):
|
|
|
241
234
|
mr: Margin right: "0" - "9"
|
|
242
235
|
mb: Margin bottom: "0" - "9"
|
|
243
236
|
ml: Margin left: "0" - "9"
|
|
237
|
+
p: Padding: "0" - "9"
|
|
238
|
+
px: Padding horizontal: "0" - "9"
|
|
239
|
+
py: Padding vertical: "0" - "9"
|
|
240
|
+
pt: Padding top: "0" - "9"
|
|
241
|
+
pr: Padding right: "0" - "9"
|
|
242
|
+
pb: Padding bottom: "0" - "9"
|
|
243
|
+
pl: Padding left: "0" - "9"
|
|
244
244
|
style: The style of the component.
|
|
245
245
|
key: A unique key for the component.
|
|
246
246
|
id: The id for the component.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, Optional, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.el import elements
|
|
9
|
-
from reflex.event import EventType
|
|
9
|
+
from reflex.event import BASE_STATE, EventType
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
@@ -47,22 +47,22 @@ class Box(elements.Div, RadixThemesComponent):
|
|
|
47
47
|
id: Optional[Any] = None,
|
|
48
48
|
class_name: Optional[Any] = None,
|
|
49
49
|
autofocus: Optional[bool] = None,
|
|
50
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
51
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
52
|
-
on_click: Optional[EventType[[]]] = None,
|
|
53
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
54
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
55
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
56
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
57
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
58
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
59
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
60
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
61
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
62
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
63
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
64
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
65
|
-
on_unmount: Optional[EventType[[]]] = None,
|
|
50
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
51
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
52
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
53
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
54
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
55
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
56
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
57
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
58
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
59
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
60
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
61
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
62
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
63
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
64
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
65
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
66
66
|
**props,
|
|
67
67
|
) -> "Box":
|
|
68
68
|
"""Create a new component instance.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.core.breakpoints import Breakpoints
|
|
9
|
-
from reflex.event import EventType
|
|
9
|
+
from reflex.event import BASE_STATE, EventType
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
@@ -124,22 +124,22 @@ class Center(Flex):
|
|
|
124
124
|
id: Optional[Any] = None,
|
|
125
125
|
class_name: Optional[Any] = None,
|
|
126
126
|
autofocus: Optional[bool] = None,
|
|
127
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
128
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
129
|
-
on_click: Optional[EventType[[]]] = None,
|
|
130
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
131
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
132
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
133
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
134
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
135
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
136
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
137
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
138
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
139
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
140
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
141
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
142
|
-
on_unmount: Optional[EventType[[]]] = None,
|
|
127
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
128
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
129
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
130
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
131
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
132
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
133
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
134
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
135
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
136
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
137
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
138
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
139
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
140
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
141
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
142
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
143
143
|
**props,
|
|
144
144
|
) -> "Center":
|
|
145
145
|
"""Create a new component instance.
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
7
7
|
|
|
8
8
|
from reflex.components.core.breakpoints import Breakpoints
|
|
9
9
|
from reflex.components.el import elements
|
|
10
|
-
from reflex.event import EventType
|
|
10
|
+
from reflex.event import BASE_STATE, EventType
|
|
11
11
|
from reflex.style import Style
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
@@ -64,22 +64,22 @@ class Container(elements.Div, RadixThemesComponent):
|
|
|
64
64
|
id: Optional[Any] = None,
|
|
65
65
|
class_name: Optional[Any] = None,
|
|
66
66
|
autofocus: Optional[bool] = None,
|
|
67
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
68
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
69
|
-
on_click: Optional[EventType[[]]] = None,
|
|
70
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
71
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
72
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
73
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
74
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
75
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
76
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
77
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
78
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
79
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
80
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
81
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
82
|
-
on_unmount: Optional[EventType[[]]] = None,
|
|
67
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
68
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
69
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
70
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
71
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
72
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
73
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
74
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
75
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
76
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
77
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
78
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
79
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
80
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
81
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
82
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
83
83
|
**props,
|
|
84
84
|
) -> "Container":
|
|
85
85
|
"""Create the container component.
|
|
@@ -8,12 +8,7 @@ from reflex.components.core.breakpoints import Responsive
|
|
|
8
8
|
from reflex.components.el import elements
|
|
9
9
|
from reflex.vars.base import Var
|
|
10
10
|
|
|
11
|
-
from ..base import
|
|
12
|
-
LiteralAlign,
|
|
13
|
-
LiteralJustify,
|
|
14
|
-
LiteralSpacing,
|
|
15
|
-
RadixThemesComponent,
|
|
16
|
-
)
|
|
11
|
+
from ..base import LiteralAlign, LiteralJustify, LiteralSpacing, RadixThemesComponent
|
|
17
12
|
|
|
18
13
|
LiteralFlexDirection = Literal["row", "column", "row-reverse", "column-reverse"]
|
|
19
14
|
LiteralFlexWrap = Literal["nowrap", "wrap", "wrap-reverse"]
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
7
7
|
|
|
8
8
|
from reflex.components.core.breakpoints import Breakpoints
|
|
9
9
|
from reflex.components.el import elements
|
|
10
|
-
from reflex.event import EventType
|
|
10
|
+
from reflex.event import BASE_STATE, EventType
|
|
11
11
|
from reflex.style import Style
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
@@ -127,22 +127,22 @@ class Flex(elements.Div, RadixThemesComponent):
|
|
|
127
127
|
id: Optional[Any] = None,
|
|
128
128
|
class_name: Optional[Any] = None,
|
|
129
129
|
autofocus: Optional[bool] = None,
|
|
130
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
131
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
132
|
-
on_click: Optional[EventType[[]]] = None,
|
|
133
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
134
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
135
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
136
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
137
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
138
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
139
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
140
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
141
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
142
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
143
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
144
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
145
|
-
on_unmount: Optional[EventType[[]]] = None,
|
|
130
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
131
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
132
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
133
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
134
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
135
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
136
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
137
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
138
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
139
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
140
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
141
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
142
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
143
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
144
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
145
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
146
146
|
**props,
|
|
147
147
|
) -> "Flex":
|
|
148
148
|
"""Create a new component instance.
|
|
@@ -8,12 +8,7 @@ from reflex.components.core.breakpoints import Responsive
|
|
|
8
8
|
from reflex.components.el import elements
|
|
9
9
|
from reflex.vars.base import Var
|
|
10
10
|
|
|
11
|
-
from ..base import
|
|
12
|
-
LiteralAlign,
|
|
13
|
-
LiteralJustify,
|
|
14
|
-
LiteralSpacing,
|
|
15
|
-
RadixThemesComponent,
|
|
16
|
-
)
|
|
11
|
+
from ..base import LiteralAlign, LiteralJustify, LiteralSpacing, RadixThemesComponent
|
|
17
12
|
|
|
18
13
|
LiteralGridFlow = Literal["row", "column", "dense", "row-dense", "column-dense"]
|
|
19
14
|
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
7
7
|
|
|
8
8
|
from reflex.components.core.breakpoints import Breakpoints
|
|
9
9
|
from reflex.components.el import elements
|
|
10
|
-
from reflex.event import EventType
|
|
10
|
+
from reflex.event import BASE_STATE, EventType
|
|
11
11
|
from reflex.style import Style
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
@@ -156,22 +156,22 @@ class Grid(elements.Div, RadixThemesComponent):
|
|
|
156
156
|
id: Optional[Any] = None,
|
|
157
157
|
class_name: Optional[Any] = None,
|
|
158
158
|
autofocus: Optional[bool] = None,
|
|
159
|
-
custom_attrs: Optional[Dict[str, Union[Var,
|
|
160
|
-
on_blur: Optional[EventType[[]]] = None,
|
|
161
|
-
on_click: Optional[EventType[[]]] = None,
|
|
162
|
-
on_context_menu: Optional[EventType[[]]] = None,
|
|
163
|
-
on_double_click: Optional[EventType[[]]] = None,
|
|
164
|
-
on_focus: Optional[EventType[[]]] = None,
|
|
165
|
-
on_mount: Optional[EventType[[]]] = None,
|
|
166
|
-
on_mouse_down: Optional[EventType[[]]] = None,
|
|
167
|
-
on_mouse_enter: Optional[EventType[[]]] = None,
|
|
168
|
-
on_mouse_leave: Optional[EventType[[]]] = None,
|
|
169
|
-
on_mouse_move: Optional[EventType[[]]] = None,
|
|
170
|
-
on_mouse_out: Optional[EventType[[]]] = None,
|
|
171
|
-
on_mouse_over: Optional[EventType[[]]] = None,
|
|
172
|
-
on_mouse_up: Optional[EventType[[]]] = None,
|
|
173
|
-
on_scroll: Optional[EventType[[]]] = None,
|
|
174
|
-
on_unmount: Optional[EventType[[]]] = None,
|
|
159
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
160
|
+
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
161
|
+
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
162
|
+
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|
|
163
|
+
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
164
|
+
on_focus: Optional[EventType[[], BASE_STATE]] = None,
|
|
165
|
+
on_mount: Optional[EventType[[], BASE_STATE]] = None,
|
|
166
|
+
on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
|
|
167
|
+
on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
|
|
168
|
+
on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
|
|
169
|
+
on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
|
|
170
|
+
on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
|
|
171
|
+
on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
|
|
172
|
+
on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
|
|
173
|
+
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
174
|
+
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
175
175
|
**props,
|
|
176
176
|
) -> "Grid":
|
|
177
177
|
"""Create a new component instance.
|