reflex 0.5.5a2__py3-none-any.whl → 0.5.6a1__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/_app.js.jinja2 +0 -1
- reflex/.templates/jinja/web/utils/context.js.jinja2 +2 -0
- reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +20 -2
- reflex/.templates/web/utils/helpers/paste.js +59 -0
- reflex/__init__.py +2 -0
- reflex/__init__.pyi +86 -87
- reflex/app.py +64 -126
- reflex/app_mixins/__init__.py +5 -0
- reflex/app_mixins/lifespan.py +57 -0
- reflex/app_mixins/middleware.py +93 -0
- reflex/app_mixins/mixin.py +14 -0
- reflex/compiler/compiler.py +6 -1
- reflex/components/__init__.pyi +0 -2
- reflex/components/base/__init__.pyi +1 -3
- reflex/components/base/app_wrap.pyi +21 -22
- reflex/components/base/body.pyi +21 -20
- reflex/components/base/document.pyi +85 -85
- reflex/components/base/fragment.pyi +21 -20
- reflex/components/base/head.pyi +37 -36
- reflex/components/base/link.pyi +37 -37
- reflex/components/base/meta.pyi +69 -70
- reflex/components/base/script.py +6 -2
- reflex/components/base/script.pyi +31 -27
- reflex/components/chakra/base.pyi +54 -56
- reflex/components/chakra/datadisplay/badge.pyi +21 -21
- reflex/components/chakra/datadisplay/code.pyi +21 -20
- reflex/components/chakra/datadisplay/divider.pyi +21 -22
- reflex/components/chakra/datadisplay/keyboard_key.pyi +21 -20
- reflex/components/chakra/datadisplay/list.pyi +69 -71
- reflex/components/chakra/datadisplay/stat.pyi +101 -102
- reflex/components/chakra/datadisplay/table.pyi +149 -153
- reflex/components/chakra/datadisplay/tag.pyi +85 -89
- reflex/components/chakra/disclosure/accordion.pyi +87 -93
- reflex/components/chakra/disclosure/tabs.pyi +85 -90
- reflex/components/chakra/disclosure/transition.pyi +104 -105
- reflex/components/chakra/disclosure/visuallyhidden.pyi +21 -20
- reflex/components/chakra/feedback/alert.pyi +69 -70
- reflex/components/chakra/feedback/circularprogress.pyi +38 -40
- reflex/components/chakra/feedback/progress.pyi +22 -23
- reflex/components/chakra/feedback/skeleton.pyi +53 -53
- reflex/components/chakra/feedback/spinner.pyi +21 -21
- reflex/components/chakra/forms/button.pyi +37 -42
- reflex/components/chakra/forms/checkbox.pyi +38 -39
- reflex/components/chakra/forms/colormodeswitch.pyi +72 -71
- reflex/components/chakra/forms/date_picker.pyi +24 -24
- reflex/components/chakra/forms/date_time_picker.pyi +24 -24
- reflex/components/chakra/forms/editable.pyi +73 -74
- reflex/components/chakra/forms/email.pyi +24 -24
- reflex/components/chakra/forms/form.pyi +112 -141
- reflex/components/chakra/forms/iconbutton.pyi +21 -22
- reflex/components/chakra/forms/input.pyi +104 -111
- reflex/components/chakra/forms/numberinput.pyi +87 -91
- reflex/components/chakra/forms/password.pyi +24 -24
- reflex/components/chakra/forms/pininput.pyi +39 -45
- reflex/components/chakra/forms/radio.pyi +38 -43
- reflex/components/chakra/forms/rangeslider.pyi +72 -76
- reflex/components/chakra/forms/select.pyi +39 -44
- reflex/components/chakra/forms/slider.pyi +88 -91
- reflex/components/chakra/forms/switch.pyi +22 -23
- reflex/components/chakra/forms/textarea.pyi +24 -27
- reflex/components/chakra/forms/time_picker.pyi +24 -24
- reflex/components/chakra/layout/aspect_ratio.pyi +21 -21
- reflex/components/chakra/layout/box.pyi +21 -22
- reflex/components/chakra/layout/card.pyi +69 -73
- reflex/components/chakra/layout/center.pyi +53 -52
- reflex/components/chakra/layout/container.pyi +21 -21
- reflex/components/chakra/layout/flex.pyi +23 -26
- reflex/components/chakra/layout/grid.pyi +53 -54
- reflex/components/chakra/layout/spacer.pyi +21 -20
- reflex/components/chakra/layout/stack.pyi +62 -60
- reflex/components/chakra/layout/wrap.pyi +37 -38
- reflex/components/chakra/media/avatar.pyi +54 -55
- reflex/components/chakra/media/icon.pyi +37 -38
- reflex/components/chakra/media/image.pyi +24 -26
- reflex/components/chakra/navigation/breadcrumb.pyi +69 -71
- reflex/components/chakra/navigation/link.pyi +20 -21
- reflex/components/chakra/navigation/linkoverlay.pyi +37 -37
- reflex/components/chakra/navigation/stepper.pyi +149 -151
- reflex/components/chakra/overlay/alertdialog.pyi +121 -124
- reflex/components/chakra/overlay/drawer.pyi +121 -126
- reflex/components/chakra/overlay/menu.pyi +135 -141
- reflex/components/chakra/overlay/modal.pyi +121 -124
- reflex/components/chakra/overlay/popover.pyi +151 -156
- reflex/components/chakra/overlay/tooltip.pyi +23 -24
- reflex/components/chakra/typography/heading.pyi +21 -21
- reflex/components/chakra/typography/highlight.pyi +21 -23
- reflex/components/chakra/typography/span.pyi +21 -21
- reflex/components/chakra/typography/text.pyi +21 -21
- reflex/components/component.py +6 -2
- reflex/components/core/__init__.py +2 -0
- reflex/components/core/__init__.pyi +9 -7
- reflex/components/core/banner.pyi +118 -146
- reflex/components/core/breakpoints.py +95 -0
- reflex/components/core/client_side_routing.pyi +37 -39
- reflex/components/core/clipboard.py +95 -0
- reflex/components/core/clipboard.pyi +102 -0
- reflex/components/core/debounce.pyi +23 -28
- reflex/components/core/html.pyi +38 -55
- reflex/components/core/upload.pyi +74 -91
- reflex/components/datadisplay/__init__.pyi +2 -3
- reflex/components/datadisplay/code.py +3 -3
- reflex/components/datadisplay/code.pyi +22 -31
- reflex/components/datadisplay/dataeditor.pyi +41 -45
- reflex/components/el/__init__.pyi +131 -135
- reflex/components/el/element.pyi +21 -20
- reflex/components/el/elements/__init__.pyi +131 -132
- reflex/components/el/elements/base.pyi +38 -55
- reflex/components/el/elements/forms.pyi +558 -878
- reflex/components/el/elements/inline.pyi +941 -1403
- reflex/components/el/elements/media.pyi +645 -994
- reflex/components/el/elements/metadata.pyi +186 -268
- reflex/components/el/elements/other.pyi +239 -353
- reflex/components/el/elements/scripts.pyi +113 -171
- reflex/components/el/elements/sectioning.pyi +500 -739
- reflex/components/el/elements/tables.pyi +355 -551
- reflex/components/el/elements/typography.pyi +510 -760
- reflex/components/gridjs/datatable.pyi +38 -42
- reflex/components/lucide/icon.pyi +37 -38
- reflex/components/markdown/markdown.pyi +23 -36
- reflex/components/moment/moment.pyi +23 -25
- reflex/components/next/base.pyi +21 -20
- reflex/components/next/image.pyi +25 -27
- reflex/components/next/link.pyi +21 -21
- reflex/components/next/video.pyi +22 -22
- reflex/components/plotly/plotly.pyi +42 -45
- reflex/components/radix/__init__.pyi +26 -30
- reflex/components/radix/primitives/__init__.pyi +0 -2
- reflex/components/radix/primitives/accordion.pyi +119 -127
- reflex/components/radix/primitives/base.pyi +37 -40
- reflex/components/radix/primitives/drawer.pyi +175 -179
- reflex/components/radix/primitives/form.pyi +250 -336
- reflex/components/radix/primitives/progress.pyi +92 -96
- reflex/components/radix/primitives/slider.pyi +87 -89
- reflex/components/radix/themes/__init__.pyi +0 -2
- reflex/components/radix/themes/base.pyi +118 -121
- reflex/components/radix/themes/color_mode.pyi +103 -117
- reflex/components/radix/themes/components/__init__.pyi +12 -14
- reflex/components/radix/themes/components/alert_dialog.py +2 -1
- reflex/components/radix/themes/components/alert_dialog.pyi +150 -157
- reflex/components/radix/themes/components/aspect_ratio.pyi +22 -22
- reflex/components/radix/themes/components/avatar.py +2 -1
- reflex/components/radix/themes/components/avatar.pyi +32 -23
- reflex/components/radix/themes/components/badge.py +2 -1
- reflex/components/radix/themes/components/badge.pyi +50 -57
- reflex/components/radix/themes/components/button.py +2 -1
- reflex/components/radix/themes/components/button.pyi +60 -79
- reflex/components/radix/themes/components/callout.py +2 -1
- reflex/components/radix/themes/components/callout.pyi +201 -258
- reflex/components/radix/themes/components/card.py +2 -1
- reflex/components/radix/themes/components/card.pyi +48 -56
- reflex/components/radix/themes/components/checkbox.py +2 -1
- reflex/components/radix/themes/components/checkbox.pyi +68 -62
- reflex/components/radix/themes/components/checkbox_cards.py +8 -3
- reflex/components/radix/themes/components/checkbox_cards.pyi +87 -44
- reflex/components/radix/themes/components/checkbox_group.py +2 -1
- reflex/components/radix/themes/components/checkbox_group.pyi +49 -40
- reflex/components/radix/themes/components/context_menu.py +2 -1
- reflex/components/radix/themes/components/context_menu.pyi +153 -147
- reflex/components/radix/themes/components/data_list.py +8 -7
- reflex/components/radix/themes/components/data_list.pyi +116 -78
- reflex/components/radix/themes/components/dialog.py +2 -1
- reflex/components/radix/themes/components/dialog.pyi +154 -161
- reflex/components/radix/themes/components/dropdown_menu.py +2 -1
- reflex/components/radix/themes/components/dropdown_menu.pyi +169 -163
- reflex/components/radix/themes/components/hover_card.py +2 -1
- reflex/components/radix/themes/components/hover_card.pyi +97 -107
- reflex/components/radix/themes/components/icon_button.py +2 -1
- reflex/components/radix/themes/components/icon_button.pyi +59 -82
- reflex/components/radix/themes/components/inset.py +10 -9
- reflex/components/radix/themes/components/inset.pyi +109 -61
- reflex/components/radix/themes/components/popover.py +2 -1
- reflex/components/radix/themes/components/popover.pyi +105 -112
- reflex/components/radix/themes/components/progress.py +2 -1
- reflex/components/radix/themes/components/progress.pyi +32 -24
- reflex/components/radix/themes/components/radio.py +2 -1
- reflex/components/radix/themes/components/radio.pyi +32 -23
- reflex/components/radix/themes/components/radio_cards.py +51 -3
- reflex/components/radix/themes/components/radio_cards.pyi +120 -44
- reflex/components/radix/themes/components/radio_group.py +5 -2
- reflex/components/radix/themes/components/radio_group.pyi +82 -77
- reflex/components/radix/themes/components/scroll_area.pyi +21 -21
- reflex/components/radix/themes/components/segmented_control.py +2 -1
- reflex/components/radix/themes/components/segmented_control.pyi +52 -46
- reflex/components/radix/themes/components/select.py +2 -1
- reflex/components/radix/themes/components/select.pyi +188 -164
- reflex/components/radix/themes/components/separator.py +5 -2
- reflex/components/radix/themes/components/separator.pyi +40 -24
- reflex/components/radix/themes/components/skeleton.py +7 -6
- reflex/components/radix/themes/components/skeleton.pyi +40 -26
- reflex/components/radix/themes/components/slider.py +2 -1
- reflex/components/radix/themes/components/slider.pyi +40 -31
- reflex/components/radix/themes/components/spinner.py +2 -1
- reflex/components/radix/themes/components/spinner.pyi +31 -22
- reflex/components/radix/themes/components/switch.py +2 -1
- reflex/components/radix/themes/components/switch.pyi +33 -25
- reflex/components/radix/themes/components/table.py +2 -1
- reflex/components/radix/themes/components/table.pyi +265 -404
- reflex/components/radix/themes/components/tabs.py +14 -1
- reflex/components/radix/themes/components/tabs.pyi +113 -92
- reflex/components/radix/themes/components/text_area.py +3 -2
- reflex/components/radix/themes/components/text_area.pyi +64 -66
- reflex/components/radix/themes/components/text_field.py +2 -1
- reflex/components/radix/themes/components/text_field.pyi +116 -140
- reflex/components/radix/themes/components/tooltip.pyi +32 -37
- reflex/components/radix/themes/layout/__init__.pyi +4 -7
- reflex/components/radix/themes/layout/base.py +10 -9
- reflex/components/radix/themes/layout/base.pyi +121 -31
- reflex/components/radix/themes/layout/box.pyi +39 -53
- reflex/components/radix/themes/layout/center.pyi +89 -58
- reflex/components/radix/themes/layout/container.py +4 -1
- reflex/components/radix/themes/layout/container.pyi +51 -58
- reflex/components/radix/themes/layout/flex.py +6 -5
- reflex/components/radix/themes/layout/flex.pyi +91 -61
- reflex/components/radix/themes/layout/grid.py +9 -8
- reflex/components/radix/themes/layout/grid.pyi +116 -64
- reflex/components/radix/themes/layout/list.pyi +173 -233
- reflex/components/radix/themes/layout/section.py +4 -1
- reflex/components/radix/themes/layout/section.pyi +50 -57
- reflex/components/radix/themes/layout/spacer.pyi +89 -58
- reflex/components/radix/themes/layout/stack.pyi +160 -160
- reflex/components/radix/themes/typography/__init__.pyi +0 -2
- reflex/components/radix/themes/typography/blockquote.py +3 -2
- reflex/components/radix/themes/typography/blockquote.pyi +58 -59
- reflex/components/radix/themes/typography/code.py +3 -2
- reflex/components/radix/themes/typography/code.pyi +57 -58
- reflex/components/radix/themes/typography/heading.py +5 -4
- reflex/components/radix/themes/typography/heading.pyi +71 -60
- reflex/components/radix/themes/typography/link.py +4 -3
- reflex/components/radix/themes/typography/link.pyi +74 -82
- reflex/components/radix/themes/typography/text.py +5 -4
- reflex/components/radix/themes/typography/text.pyi +330 -364
- reflex/components/react_player/audio.pyi +37 -36
- reflex/components/react_player/react_player.pyi +37 -38
- reflex/components/react_player/video.pyi +37 -36
- reflex/components/recharts/__init__.pyi +41 -42
- reflex/components/recharts/cartesian.pyi +384 -400
- reflex/components/recharts/charts.pyi +224 -231
- reflex/components/recharts/general.pyi +89 -96
- reflex/components/recharts/polar.pyi +97 -104
- reflex/components/recharts/recharts.pyi +37 -37
- reflex/components/sonner/toast.pyi +22 -27
- reflex/components/suneditor/editor.pyi +53 -58
- reflex/config.py +6 -0
- reflex/constants/event.py +1 -0
- reflex/experimental/layout.pyi +140 -194
- reflex/model.py +14 -2
- reflex/state.py +38 -45
- reflex/style.py +24 -13
- reflex/utils/codespaces.py +94 -0
- reflex/utils/compat.py +21 -0
- reflex/utils/exceptions.py +4 -0
- reflex/utils/format.py +25 -4
- reflex/utils/prerequisites.py +0 -13
- reflex/utils/pyi_generator.py +88 -61
- reflex/utils/types.py +83 -5
- reflex/vars.py +62 -5
- reflex/vars.pyi +23 -11
- {reflex-0.5.5a2.dist-info → reflex-0.5.6a1.dist-info}/METADATA +4 -5
- {reflex-0.5.5a2.dist-info → reflex-0.5.6a1.dist-info}/RECORD +262 -253
- {reflex-0.5.5a2.dist-info → reflex-0.5.6a1.dist-info}/LICENSE +0 -0
- {reflex-0.5.5a2.dist-info → reflex-0.5.6a1.dist-info}/WHEEL +0 -0
- {reflex-0.5.5a2.dist-info → reflex-0.5.6a1.dist-info}/entry_points.txt +0 -0
|
@@ -1,28 +1,23 @@
|
|
|
1
1
|
"""Stub file for reflex/components/radix/themes/color_mode.py"""
|
|
2
|
+
|
|
2
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
3
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
4
5
|
# ------------------------------------------------------
|
|
5
|
-
|
|
6
|
-
from typing import Any, Dict, Literal, Optional, Union, overload
|
|
7
|
-
from reflex.vars import Var, BaseVar, ComputedVar
|
|
8
|
-
from reflex.event import EventChain, EventHandler, EventSpec
|
|
9
|
-
from reflex.style import Style
|
|
10
6
|
import dataclasses
|
|
11
|
-
from typing import Literal, get_args
|
|
7
|
+
from typing import Any, Callable, Dict, Literal, Optional, Union, get_args, overload
|
|
8
|
+
|
|
12
9
|
from reflex.components.component import BaseComponent
|
|
13
|
-
from reflex.components.core.
|
|
10
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
11
|
+
from reflex.components.core.cond import Cond
|
|
14
12
|
from reflex.components.lucide.icon import Icon
|
|
15
|
-
from reflex.components.radix.themes.components.dropdown_menu import dropdown_menu
|
|
16
13
|
from reflex.components.radix.themes.components.switch import Switch
|
|
14
|
+
from reflex.event import EventHandler, EventSpec
|
|
17
15
|
from reflex.style import (
|
|
18
|
-
|
|
16
|
+
Style,
|
|
19
17
|
color_mode,
|
|
20
|
-
resolved_color_mode,
|
|
21
|
-
set_color_mode,
|
|
22
|
-
toggle_color_mode,
|
|
23
18
|
)
|
|
24
|
-
from reflex.utils import console
|
|
25
19
|
from reflex.vars import BaseVar, Var
|
|
20
|
+
|
|
26
21
|
from .components.icon_button import IconButton
|
|
27
22
|
|
|
28
23
|
DEFAULT_LIGHT_ICON: Icon
|
|
@@ -44,51 +39,51 @@ class ColorModeIcon(Cond):
|
|
|
44
39
|
autofocus: Optional[bool] = None,
|
|
45
40
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
46
41
|
on_blur: Optional[
|
|
47
|
-
Union[EventHandler, EventSpec, list,
|
|
42
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
48
43
|
] = None,
|
|
49
44
|
on_click: Optional[
|
|
50
|
-
Union[EventHandler, EventSpec, list,
|
|
45
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
51
46
|
] = None,
|
|
52
47
|
on_context_menu: Optional[
|
|
53
|
-
Union[EventHandler, EventSpec, list,
|
|
48
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
54
49
|
] = None,
|
|
55
50
|
on_double_click: Optional[
|
|
56
|
-
Union[EventHandler, EventSpec, list,
|
|
51
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
57
52
|
] = None,
|
|
58
53
|
on_focus: Optional[
|
|
59
|
-
Union[EventHandler, EventSpec, list,
|
|
54
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
60
55
|
] = None,
|
|
61
56
|
on_mount: Optional[
|
|
62
|
-
Union[EventHandler, EventSpec, list,
|
|
57
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
63
58
|
] = None,
|
|
64
59
|
on_mouse_down: Optional[
|
|
65
|
-
Union[EventHandler, EventSpec, list,
|
|
60
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
66
61
|
] = None,
|
|
67
62
|
on_mouse_enter: Optional[
|
|
68
|
-
Union[EventHandler, EventSpec, list,
|
|
63
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
69
64
|
] = None,
|
|
70
65
|
on_mouse_leave: Optional[
|
|
71
|
-
Union[EventHandler, EventSpec, list,
|
|
66
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
72
67
|
] = None,
|
|
73
68
|
on_mouse_move: Optional[
|
|
74
|
-
Union[EventHandler, EventSpec, list,
|
|
69
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
75
70
|
] = None,
|
|
76
71
|
on_mouse_out: Optional[
|
|
77
|
-
Union[EventHandler, EventSpec, list,
|
|
72
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
78
73
|
] = None,
|
|
79
74
|
on_mouse_over: Optional[
|
|
80
|
-
Union[EventHandler, EventSpec, list,
|
|
75
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
81
76
|
] = None,
|
|
82
77
|
on_mouse_up: Optional[
|
|
83
|
-
Union[EventHandler, EventSpec, list,
|
|
78
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
84
79
|
] = None,
|
|
85
80
|
on_scroll: Optional[
|
|
86
|
-
Union[EventHandler, EventSpec, list,
|
|
81
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
87
82
|
] = None,
|
|
88
83
|
on_unmount: Optional[
|
|
89
|
-
Union[EventHandler, EventSpec, list,
|
|
84
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
90
85
|
] = None,
|
|
91
|
-
**props
|
|
86
|
+
**props,
|
|
92
87
|
) -> "ColorModeIcon":
|
|
93
88
|
"""Create an icon component based on color_mode.
|
|
94
89
|
|
|
@@ -123,7 +118,16 @@ class ColorModeIconButton(IconButton):
|
|
|
123
118
|
allow_system: Optional[bool] = False,
|
|
124
119
|
as_child: Optional[Union[Var[bool], bool]] = None,
|
|
125
120
|
size: Optional[
|
|
126
|
-
Union[
|
|
121
|
+
Union[
|
|
122
|
+
Var[
|
|
123
|
+
Union[
|
|
124
|
+
Breakpoints[str, Literal["1", "2", "3", "4"]],
|
|
125
|
+
Literal["1", "2", "3", "4"],
|
|
126
|
+
]
|
|
127
|
+
],
|
|
128
|
+
Literal["1", "2", "3", "4"],
|
|
129
|
+
Breakpoints[str, Literal["1", "2", "3", "4"]],
|
|
130
|
+
]
|
|
127
131
|
] = None,
|
|
128
132
|
variant: Optional[
|
|
129
133
|
Union[
|
|
@@ -200,71 +204,45 @@ class ColorModeIconButton(IconButton):
|
|
|
200
204
|
Literal["none", "small", "medium", "large", "full"],
|
|
201
205
|
]
|
|
202
206
|
] = None,
|
|
203
|
-
auto_focus: Optional[
|
|
204
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
205
|
-
] = None,
|
|
207
|
+
auto_focus: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
206
208
|
disabled: Optional[Union[Var[bool], bool]] = None,
|
|
207
|
-
form: Optional[Union[Var[Union[
|
|
208
|
-
form_action: Optional[
|
|
209
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
210
|
-
] = None,
|
|
209
|
+
form: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
210
|
+
form_action: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
211
211
|
form_enc_type: Optional[
|
|
212
|
-
Union[Var[Union[
|
|
213
|
-
] = None,
|
|
214
|
-
form_method: Optional[
|
|
215
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
212
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
216
213
|
] = None,
|
|
214
|
+
form_method: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
217
215
|
form_no_validate: Optional[
|
|
218
|
-
Union[Var[Union[
|
|
219
|
-
] = None,
|
|
220
|
-
form_target: Optional[
|
|
221
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
222
|
-
] = None,
|
|
223
|
-
name: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
224
|
-
type: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
225
|
-
value: Optional[
|
|
226
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
227
|
-
] = None,
|
|
228
|
-
access_key: Optional[
|
|
229
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
216
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
230
217
|
] = None,
|
|
218
|
+
form_target: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
219
|
+
name: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
220
|
+
type: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
221
|
+
value: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
222
|
+
access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
231
223
|
auto_capitalize: Optional[
|
|
232
|
-
Union[Var[Union[
|
|
224
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
233
225
|
] = None,
|
|
234
226
|
content_editable: Optional[
|
|
235
|
-
Union[Var[Union[
|
|
227
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
236
228
|
] = None,
|
|
237
229
|
context_menu: Optional[
|
|
238
|
-
Union[Var[Union[
|
|
239
|
-
] = None,
|
|
240
|
-
dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
241
|
-
draggable: Optional[
|
|
242
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
230
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
243
231
|
] = None,
|
|
232
|
+
dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
233
|
+
draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
244
234
|
enter_key_hint: Optional[
|
|
245
|
-
Union[Var[Union[
|
|
246
|
-
] = None,
|
|
247
|
-
hidden: Optional[
|
|
248
|
-
|
|
249
|
-
] = None,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
] = None,
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
] = None,
|
|
256
|
-
lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
257
|
-
role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
258
|
-
slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
259
|
-
spell_check: Optional[
|
|
260
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
261
|
-
] = None,
|
|
262
|
-
tab_index: Optional[
|
|
263
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
264
|
-
] = None,
|
|
265
|
-
title: Optional[
|
|
266
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
267
|
-
] = None,
|
|
235
|
+
Union[Var[Union[bool, int, str]], str, int, bool]
|
|
236
|
+
] = None,
|
|
237
|
+
hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
238
|
+
input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
239
|
+
item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
240
|
+
lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
241
|
+
role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
242
|
+
slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
243
|
+
spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
244
|
+
tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
245
|
+
title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
268
246
|
loading: Optional[Union[Var[bool], bool]] = None,
|
|
269
247
|
style: Optional[Style] = None,
|
|
270
248
|
key: Optional[Any] = None,
|
|
@@ -273,51 +251,51 @@ class ColorModeIconButton(IconButton):
|
|
|
273
251
|
autofocus: Optional[bool] = None,
|
|
274
252
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
275
253
|
on_blur: Optional[
|
|
276
|
-
Union[EventHandler, EventSpec, list,
|
|
254
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
277
255
|
] = None,
|
|
278
256
|
on_click: Optional[
|
|
279
|
-
Union[EventHandler, EventSpec, list,
|
|
257
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
280
258
|
] = None,
|
|
281
259
|
on_context_menu: Optional[
|
|
282
|
-
Union[EventHandler, EventSpec, list,
|
|
260
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
283
261
|
] = None,
|
|
284
262
|
on_double_click: Optional[
|
|
285
|
-
Union[EventHandler, EventSpec, list,
|
|
263
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
286
264
|
] = None,
|
|
287
265
|
on_focus: Optional[
|
|
288
|
-
Union[EventHandler, EventSpec, list,
|
|
266
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
289
267
|
] = None,
|
|
290
268
|
on_mount: Optional[
|
|
291
|
-
Union[EventHandler, EventSpec, list,
|
|
269
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
292
270
|
] = None,
|
|
293
271
|
on_mouse_down: Optional[
|
|
294
|
-
Union[EventHandler, EventSpec, list,
|
|
272
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
295
273
|
] = None,
|
|
296
274
|
on_mouse_enter: Optional[
|
|
297
|
-
Union[EventHandler, EventSpec, list,
|
|
275
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
298
276
|
] = None,
|
|
299
277
|
on_mouse_leave: Optional[
|
|
300
|
-
Union[EventHandler, EventSpec, list,
|
|
278
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
301
279
|
] = None,
|
|
302
280
|
on_mouse_move: Optional[
|
|
303
|
-
Union[EventHandler, EventSpec, list,
|
|
281
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
304
282
|
] = None,
|
|
305
283
|
on_mouse_out: Optional[
|
|
306
|
-
Union[EventHandler, EventSpec, list,
|
|
284
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
307
285
|
] = None,
|
|
308
286
|
on_mouse_over: Optional[
|
|
309
|
-
Union[EventHandler, EventSpec, list,
|
|
287
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
310
288
|
] = None,
|
|
311
289
|
on_mouse_up: Optional[
|
|
312
|
-
Union[EventHandler, EventSpec, list,
|
|
290
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
313
291
|
] = None,
|
|
314
292
|
on_scroll: Optional[
|
|
315
|
-
Union[EventHandler, EventSpec, list,
|
|
293
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
316
294
|
] = None,
|
|
317
295
|
on_unmount: Optional[
|
|
318
|
-
Union[EventHandler, EventSpec, list,
|
|
296
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
319
297
|
] = None,
|
|
320
|
-
**props
|
|
298
|
+
**props,
|
|
321
299
|
) -> "ColorModeIconButton":
|
|
322
300
|
"""Create a icon button component that calls toggle_color_mode on click.
|
|
323
301
|
|
|
@@ -386,7 +364,15 @@ class ColorModeSwitch(Switch):
|
|
|
386
364
|
name: Optional[Union[Var[str], str]] = None,
|
|
387
365
|
value: Optional[Union[Var[str], str]] = None,
|
|
388
366
|
size: Optional[
|
|
389
|
-
Union[
|
|
367
|
+
Union[
|
|
368
|
+
Var[
|
|
369
|
+
Union[
|
|
370
|
+
Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
|
|
371
|
+
]
|
|
372
|
+
],
|
|
373
|
+
Literal["1", "2", "3"],
|
|
374
|
+
Breakpoints[str, Literal["1", "2", "3"]],
|
|
375
|
+
]
|
|
390
376
|
] = None,
|
|
391
377
|
variant: Optional[
|
|
392
378
|
Union[
|
|
@@ -469,54 +455,54 @@ class ColorModeSwitch(Switch):
|
|
|
469
455
|
autofocus: Optional[bool] = None,
|
|
470
456
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
471
457
|
on_blur: Optional[
|
|
472
|
-
Union[EventHandler, EventSpec, list,
|
|
458
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
473
459
|
] = None,
|
|
474
460
|
on_change: Optional[
|
|
475
|
-
Union[EventHandler, EventSpec, list,
|
|
461
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
476
462
|
] = None,
|
|
477
463
|
on_click: Optional[
|
|
478
|
-
Union[EventHandler, EventSpec, list,
|
|
464
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
479
465
|
] = None,
|
|
480
466
|
on_context_menu: Optional[
|
|
481
|
-
Union[EventHandler, EventSpec, list,
|
|
467
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
482
468
|
] = None,
|
|
483
469
|
on_double_click: Optional[
|
|
484
|
-
Union[EventHandler, EventSpec, list,
|
|
470
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
485
471
|
] = None,
|
|
486
472
|
on_focus: Optional[
|
|
487
|
-
Union[EventHandler, EventSpec, list,
|
|
473
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
488
474
|
] = None,
|
|
489
475
|
on_mount: Optional[
|
|
490
|
-
Union[EventHandler, EventSpec, list,
|
|
476
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
491
477
|
] = None,
|
|
492
478
|
on_mouse_down: Optional[
|
|
493
|
-
Union[EventHandler, EventSpec, list,
|
|
479
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
494
480
|
] = None,
|
|
495
481
|
on_mouse_enter: Optional[
|
|
496
|
-
Union[EventHandler, EventSpec, list,
|
|
482
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
497
483
|
] = None,
|
|
498
484
|
on_mouse_leave: Optional[
|
|
499
|
-
Union[EventHandler, EventSpec, list,
|
|
485
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
500
486
|
] = None,
|
|
501
487
|
on_mouse_move: Optional[
|
|
502
|
-
Union[EventHandler, EventSpec, list,
|
|
488
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
503
489
|
] = None,
|
|
504
490
|
on_mouse_out: Optional[
|
|
505
|
-
Union[EventHandler, EventSpec, list,
|
|
491
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
506
492
|
] = None,
|
|
507
493
|
on_mouse_over: Optional[
|
|
508
|
-
Union[EventHandler, EventSpec, list,
|
|
494
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
509
495
|
] = None,
|
|
510
496
|
on_mouse_up: Optional[
|
|
511
|
-
Union[EventHandler, EventSpec, list,
|
|
497
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
512
498
|
] = None,
|
|
513
499
|
on_scroll: Optional[
|
|
514
|
-
Union[EventHandler, EventSpec, list,
|
|
500
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
515
501
|
] = None,
|
|
516
502
|
on_unmount: Optional[
|
|
517
|
-
Union[EventHandler, EventSpec, list,
|
|
503
|
+
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
518
504
|
] = None,
|
|
519
|
-
**props
|
|
505
|
+
**props,
|
|
520
506
|
) -> "ColorModeSwitch":
|
|
521
507
|
"""Create a switch component bound to color_mode.
|
|
522
508
|
|
|
@@ -11,16 +11,25 @@ from .button import button as button
|
|
|
11
11
|
from .callout import callout as callout
|
|
12
12
|
from .card import card as card
|
|
13
13
|
from .checkbox import checkbox as checkbox
|
|
14
|
+
from .checkbox_cards import checkbox_cards as checkbox_cards
|
|
15
|
+
from .checkbox_group import checkbox_group as checkbox_group
|
|
14
16
|
from .context_menu import context_menu as context_menu
|
|
15
17
|
from .data_list import data_list as data_list
|
|
16
18
|
from .dialog import dialog as dialog
|
|
19
|
+
from .dropdown_menu import dropdown_menu as dropdown_menu
|
|
20
|
+
from .dropdown_menu import menu as menu
|
|
17
21
|
from .hover_card import hover_card as hover_card
|
|
18
22
|
from .icon_button import icon_button as icon_button
|
|
19
|
-
from .text_field import input as input
|
|
20
23
|
from .inset import inset as inset
|
|
21
24
|
from .popover import popover as popover
|
|
25
|
+
from .radio_cards import radio_cards as radio_cards
|
|
26
|
+
from .radio_group import radio as radio
|
|
27
|
+
from .radio_group import radio_group as radio_group
|
|
22
28
|
from .scroll_area import scroll_area as scroll_area
|
|
29
|
+
from .segmented_control import segmented_control as segmented_control
|
|
23
30
|
from .select import select as select
|
|
31
|
+
from .separator import divider as divider
|
|
32
|
+
from .separator import separator as separator
|
|
24
33
|
from .skeleton import skeleton as skeleton
|
|
25
34
|
from .slider import slider as slider
|
|
26
35
|
from .spinner import spinner as spinner
|
|
@@ -28,17 +37,6 @@ from .switch import switch as switch
|
|
|
28
37
|
from .table import table as table
|
|
29
38
|
from .tabs import tabs as tabs
|
|
30
39
|
from .text_area import text_area as text_area
|
|
31
|
-
from .
|
|
32
|
-
from .segmented_control import segmented_control as segmented_control
|
|
33
|
-
from .radio_cards import radio_cards as radio_cards
|
|
34
|
-
from .checkbox_cards import checkbox_cards as checkbox_cards
|
|
35
|
-
from .checkbox_group import checkbox_group as checkbox_group
|
|
40
|
+
from .text_field import input as input
|
|
36
41
|
from .text_field import text_field as text_field
|
|
37
|
-
from .
|
|
38
|
-
from .radio_group import radio_group as radio_group
|
|
39
|
-
from .dropdown_menu import menu as menu
|
|
40
|
-
from .dropdown_menu import dropdown_menu as dropdown_menu
|
|
41
|
-
from .separator import divider as divider
|
|
42
|
-
from .separator import separator as separator
|
|
43
|
-
from reflex import RADIX_THEMES_COMPONENTS_MAPPING
|
|
44
|
-
from reflex.utils import lazy_loader
|
|
42
|
+
from .tooltip import tooltip as tooltip
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
from typing import Literal
|
|
4
4
|
|
|
5
5
|
from reflex.components.component import ComponentNamespace
|
|
6
|
+
from reflex.components.core.breakpoints import Responsive
|
|
6
7
|
from reflex.components.el import elements
|
|
7
8
|
from reflex.event import EventHandler
|
|
8
9
|
from reflex.vars import Var
|
|
@@ -36,7 +37,7 @@ class AlertDialogContent(elements.Div, RadixThemesComponent):
|
|
|
36
37
|
tag = "AlertDialog.Content"
|
|
37
38
|
|
|
38
39
|
# The size of the content.
|
|
39
|
-
size: Var[LiteralContentSize]
|
|
40
|
+
size: Var[Responsive[LiteralContentSize]]
|
|
40
41
|
|
|
41
42
|
# Whether to force mount the content on open.
|
|
42
43
|
force_mount: Var[bool]
|