reflex 0.7.1a4__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 +46 -49
- 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.1a4.dist-info → reflex-0.7.2.dist-info}/METADATA +3 -6
- reflex-0.7.2.dist-info/RECORD +405 -0
- {reflex-0.7.1a4.dist-info → reflex-0.7.2.dist-info}/WHEEL +1 -1
- reflex-0.7.1a4.dist-info/RECORD +0 -405
- {reflex-0.7.1a4.dist-info → reflex-0.7.2.dist-info}/LICENSE +0 -0
- {reflex-0.7.1a4.dist-info → reflex-0.7.2.dist-info}/entry_points.txt +0 -0
|
@@ -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, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import ComponentNamespace
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
@@ -26,16 +26,16 @@ class DropdownMenuRoot(RadixThemesComponent):
|
|
|
26
26
|
def create( # type: ignore
|
|
27
27
|
cls,
|
|
28
28
|
*children,
|
|
29
|
-
default_open:
|
|
30
|
-
open:
|
|
31
|
-
modal:
|
|
32
|
-
dir:
|
|
33
|
-
style:
|
|
34
|
-
key:
|
|
35
|
-
id:
|
|
36
|
-
class_name:
|
|
37
|
-
autofocus:
|
|
38
|
-
custom_attrs:
|
|
29
|
+
default_open: Var[bool] | bool | None = None,
|
|
30
|
+
open: Var[bool] | bool | None = None,
|
|
31
|
+
modal: Var[bool] | bool | None = None,
|
|
32
|
+
dir: Literal["ltr", "rtl"] | Var[Literal["ltr", "rtl"]] | None = None,
|
|
33
|
+
style: Style | None = None,
|
|
34
|
+
key: Any | None = None,
|
|
35
|
+
id: Any | None = None,
|
|
36
|
+
class_name: Any | None = None,
|
|
37
|
+
autofocus: bool | None = None,
|
|
38
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
39
39
|
on_blur: Optional[EventType[()]] = None,
|
|
40
40
|
on_click: Optional[EventType[()]] = None,
|
|
41
41
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -49,7 +49,7 @@ class DropdownMenuRoot(RadixThemesComponent):
|
|
|
49
49
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
50
50
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
51
51
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
52
|
-
on_open_change: Optional[
|
|
52
|
+
on_open_change: Optional[EventType[()] | EventType[bool]] = None,
|
|
53
53
|
on_scroll: Optional[EventType[()]] = None,
|
|
54
54
|
on_unmount: Optional[EventType[()]] = None,
|
|
55
55
|
**props,
|
|
@@ -85,13 +85,13 @@ class DropdownMenuTrigger(RadixThemesTriggerComponent):
|
|
|
85
85
|
def create( # type: ignore
|
|
86
86
|
cls,
|
|
87
87
|
*children,
|
|
88
|
-
as_child:
|
|
89
|
-
style:
|
|
90
|
-
key:
|
|
91
|
-
id:
|
|
92
|
-
class_name:
|
|
93
|
-
autofocus:
|
|
94
|
-
custom_attrs:
|
|
88
|
+
as_child: Var[bool] | bool | None = None,
|
|
89
|
+
style: Style | None = None,
|
|
90
|
+
key: Any | None = None,
|
|
91
|
+
id: Any | None = None,
|
|
92
|
+
class_name: Any | None = None,
|
|
93
|
+
autofocus: bool | None = None,
|
|
94
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
95
95
|
on_blur: Optional[EventType[()]] = None,
|
|
96
96
|
on_click: Optional[EventType[()]] = None,
|
|
97
97
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -126,115 +126,98 @@ class DropdownMenuContent(RadixThemesComponent):
|
|
|
126
126
|
def create( # type: ignore
|
|
127
127
|
cls,
|
|
128
128
|
*children,
|
|
129
|
-
size:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
129
|
+
size: Breakpoints[str, Literal["1", "2"]]
|
|
130
|
+
| Literal["1", "2"]
|
|
131
|
+
| Var[Breakpoints[str, Literal["1", "2"]] | Literal["1", "2"]]
|
|
132
|
+
| None = None,
|
|
133
|
+
variant: Literal["soft", "solid"] | Var[Literal["soft", "solid"]] | None = None,
|
|
134
|
+
color_scheme: Literal[
|
|
135
|
+
"amber",
|
|
136
|
+
"blue",
|
|
137
|
+
"bronze",
|
|
138
|
+
"brown",
|
|
139
|
+
"crimson",
|
|
140
|
+
"cyan",
|
|
141
|
+
"gold",
|
|
142
|
+
"grass",
|
|
143
|
+
"gray",
|
|
144
|
+
"green",
|
|
145
|
+
"indigo",
|
|
146
|
+
"iris",
|
|
147
|
+
"jade",
|
|
148
|
+
"lime",
|
|
149
|
+
"mint",
|
|
150
|
+
"orange",
|
|
151
|
+
"pink",
|
|
152
|
+
"plum",
|
|
153
|
+
"purple",
|
|
154
|
+
"red",
|
|
155
|
+
"ruby",
|
|
156
|
+
"sky",
|
|
157
|
+
"teal",
|
|
158
|
+
"tomato",
|
|
159
|
+
"violet",
|
|
160
|
+
"yellow",
|
|
161
|
+
]
|
|
162
|
+
| Var[
|
|
163
|
+
Literal[
|
|
164
|
+
"amber",
|
|
165
|
+
"blue",
|
|
166
|
+
"bronze",
|
|
167
|
+
"brown",
|
|
168
|
+
"crimson",
|
|
169
|
+
"cyan",
|
|
170
|
+
"gold",
|
|
171
|
+
"grass",
|
|
172
|
+
"gray",
|
|
173
|
+
"green",
|
|
174
|
+
"indigo",
|
|
175
|
+
"iris",
|
|
176
|
+
"jade",
|
|
177
|
+
"lime",
|
|
178
|
+
"mint",
|
|
179
|
+
"orange",
|
|
180
|
+
"pink",
|
|
181
|
+
"plum",
|
|
182
|
+
"purple",
|
|
183
|
+
"red",
|
|
184
|
+
"ruby",
|
|
185
|
+
"sky",
|
|
186
|
+
"teal",
|
|
187
|
+
"tomato",
|
|
188
|
+
"violet",
|
|
189
|
+
"yellow",
|
|
134
190
|
]
|
|
135
|
-
]
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
] = None,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
"tomato",
|
|
166
|
-
"violet",
|
|
167
|
-
"yellow",
|
|
168
|
-
],
|
|
169
|
-
Var[
|
|
170
|
-
Literal[
|
|
171
|
-
"amber",
|
|
172
|
-
"blue",
|
|
173
|
-
"bronze",
|
|
174
|
-
"brown",
|
|
175
|
-
"crimson",
|
|
176
|
-
"cyan",
|
|
177
|
-
"gold",
|
|
178
|
-
"grass",
|
|
179
|
-
"gray",
|
|
180
|
-
"green",
|
|
181
|
-
"indigo",
|
|
182
|
-
"iris",
|
|
183
|
-
"jade",
|
|
184
|
-
"lime",
|
|
185
|
-
"mint",
|
|
186
|
-
"orange",
|
|
187
|
-
"pink",
|
|
188
|
-
"plum",
|
|
189
|
-
"purple",
|
|
190
|
-
"red",
|
|
191
|
-
"ruby",
|
|
192
|
-
"sky",
|
|
193
|
-
"teal",
|
|
194
|
-
"tomato",
|
|
195
|
-
"violet",
|
|
196
|
-
"yellow",
|
|
197
|
-
]
|
|
198
|
-
],
|
|
199
|
-
]
|
|
200
|
-
] = None,
|
|
201
|
-
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
|
202
|
-
as_child: Optional[Union[Var[bool], bool]] = None,
|
|
203
|
-
loop: Optional[Union[Var[bool], bool]] = None,
|
|
204
|
-
force_mount: Optional[Union[Var[bool], bool]] = None,
|
|
205
|
-
side: Optional[
|
|
206
|
-
Union[
|
|
207
|
-
Literal["bottom", "left", "right", "top"],
|
|
208
|
-
Var[Literal["bottom", "left", "right", "top"]],
|
|
209
|
-
]
|
|
210
|
-
] = None,
|
|
211
|
-
side_offset: Optional[Union[Var[Union[float, int]], float, int]] = None,
|
|
212
|
-
align: Optional[
|
|
213
|
-
Union[
|
|
214
|
-
Literal["center", "end", "start"],
|
|
215
|
-
Var[Literal["center", "end", "start"]],
|
|
216
|
-
]
|
|
217
|
-
] = None,
|
|
218
|
-
align_offset: Optional[Union[Var[Union[float, int]], float, int]] = None,
|
|
219
|
-
avoid_collisions: Optional[Union[Var[bool], bool]] = None,
|
|
220
|
-
collision_padding: Optional[
|
|
221
|
-
Union[
|
|
222
|
-
Dict[str, Union[float, int]],
|
|
223
|
-
Var[Union[Dict[str, Union[float, int]], float, int]],
|
|
224
|
-
float,
|
|
225
|
-
int,
|
|
226
|
-
]
|
|
227
|
-
] = None,
|
|
228
|
-
sticky: Optional[
|
|
229
|
-
Union[Literal["always", "partial"], Var[Literal["always", "partial"]]]
|
|
230
|
-
] = None,
|
|
231
|
-
hide_when_detached: Optional[Union[Var[bool], bool]] = None,
|
|
232
|
-
style: Optional[Style] = None,
|
|
233
|
-
key: Optional[Any] = None,
|
|
234
|
-
id: Optional[Any] = None,
|
|
235
|
-
class_name: Optional[Any] = None,
|
|
236
|
-
autofocus: Optional[bool] = None,
|
|
237
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
191
|
+
]
|
|
192
|
+
| None = None,
|
|
193
|
+
high_contrast: Var[bool] | bool | None = None,
|
|
194
|
+
as_child: Var[bool] | bool | None = None,
|
|
195
|
+
loop: Var[bool] | bool | None = None,
|
|
196
|
+
force_mount: Var[bool] | bool | None = None,
|
|
197
|
+
side: Literal["bottom", "left", "right", "top"]
|
|
198
|
+
| Var[Literal["bottom", "left", "right", "top"]]
|
|
199
|
+
| None = None,
|
|
200
|
+
side_offset: Var[float | int] | float | int | None = None,
|
|
201
|
+
align: Literal["center", "end", "start"]
|
|
202
|
+
| Var[Literal["center", "end", "start"]]
|
|
203
|
+
| None = None,
|
|
204
|
+
align_offset: Var[float | int] | float | int | None = None,
|
|
205
|
+
avoid_collisions: Var[bool] | bool | None = None,
|
|
206
|
+
collision_padding: Var[dict[str, float | int] | float | int]
|
|
207
|
+
| dict[str, float | int]
|
|
208
|
+
| float
|
|
209
|
+
| int
|
|
210
|
+
| None = None,
|
|
211
|
+
sticky: Literal["always", "partial"]
|
|
212
|
+
| Var[Literal["always", "partial"]]
|
|
213
|
+
| None = None,
|
|
214
|
+
hide_when_detached: Var[bool] | bool | None = None,
|
|
215
|
+
style: Style | None = None,
|
|
216
|
+
key: Any | None = None,
|
|
217
|
+
id: Any | None = None,
|
|
218
|
+
class_name: Any | None = None,
|
|
219
|
+
autofocus: bool | None = None,
|
|
220
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
238
221
|
on_blur: Optional[EventType[()]] = None,
|
|
239
222
|
on_click: Optional[EventType[()]] = None,
|
|
240
223
|
on_close_auto_focus: Optional[EventType[()]] = None,
|
|
@@ -303,15 +286,15 @@ class DropdownMenuSubTrigger(RadixThemesTriggerComponent):
|
|
|
303
286
|
def create( # type: ignore
|
|
304
287
|
cls,
|
|
305
288
|
*children,
|
|
306
|
-
as_child:
|
|
307
|
-
disabled:
|
|
308
|
-
text_value:
|
|
309
|
-
style:
|
|
310
|
-
key:
|
|
311
|
-
id:
|
|
312
|
-
class_name:
|
|
313
|
-
autofocus:
|
|
314
|
-
custom_attrs:
|
|
289
|
+
as_child: Var[bool] | bool | None = None,
|
|
290
|
+
disabled: Var[bool] | bool | None = None,
|
|
291
|
+
text_value: Var[str] | str | None = None,
|
|
292
|
+
style: Style | None = None,
|
|
293
|
+
key: Any | None = None,
|
|
294
|
+
id: Any | None = None,
|
|
295
|
+
class_name: Any | None = None,
|
|
296
|
+
autofocus: bool | None = None,
|
|
297
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
315
298
|
on_blur: Optional[EventType[()]] = None,
|
|
316
299
|
on_click: Optional[EventType[()]] = None,
|
|
317
300
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -346,14 +329,14 @@ class DropdownMenuSub(RadixThemesComponent):
|
|
|
346
329
|
def create( # type: ignore
|
|
347
330
|
cls,
|
|
348
331
|
*children,
|
|
349
|
-
open:
|
|
350
|
-
default_open:
|
|
351
|
-
style:
|
|
352
|
-
key:
|
|
353
|
-
id:
|
|
354
|
-
class_name:
|
|
355
|
-
autofocus:
|
|
356
|
-
custom_attrs:
|
|
332
|
+
open: Var[bool] | bool | None = None,
|
|
333
|
+
default_open: Var[bool] | bool | None = None,
|
|
334
|
+
style: Style | None = None,
|
|
335
|
+
key: Any | None = None,
|
|
336
|
+
id: Any | None = None,
|
|
337
|
+
class_name: Any | None = None,
|
|
338
|
+
autofocus: bool | None = None,
|
|
339
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
357
340
|
on_blur: Optional[EventType[()]] = None,
|
|
358
341
|
on_click: Optional[EventType[()]] = None,
|
|
359
342
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -367,7 +350,7 @@ class DropdownMenuSub(RadixThemesComponent):
|
|
|
367
350
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
368
351
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
369
352
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
370
|
-
on_open_change: Optional[
|
|
353
|
+
on_open_change: Optional[EventType[()] | EventType[bool]] = None,
|
|
371
354
|
on_scroll: Optional[EventType[()]] = None,
|
|
372
355
|
on_unmount: Optional[EventType[()]] = None,
|
|
373
356
|
**props,
|
|
@@ -401,30 +384,27 @@ class DropdownMenuSubContent(RadixThemesComponent):
|
|
|
401
384
|
def create( # type: ignore
|
|
402
385
|
cls,
|
|
403
386
|
*children,
|
|
404
|
-
as_child:
|
|
405
|
-
loop:
|
|
406
|
-
force_mount:
|
|
407
|
-
side_offset:
|
|
408
|
-
align_offset:
|
|
409
|
-
avoid_collisions:
|
|
410
|
-
collision_padding:
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
class_name: Optional[Any] = None,
|
|
426
|
-
autofocus: Optional[bool] = None,
|
|
427
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
387
|
+
as_child: Var[bool] | bool | None = None,
|
|
388
|
+
loop: Var[bool] | bool | None = None,
|
|
389
|
+
force_mount: Var[bool] | bool | None = None,
|
|
390
|
+
side_offset: Var[float | int] | float | int | None = None,
|
|
391
|
+
align_offset: Var[float | int] | float | int | None = None,
|
|
392
|
+
avoid_collisions: Var[bool] | bool | None = None,
|
|
393
|
+
collision_padding: Var[dict[str, float | int] | float | int]
|
|
394
|
+
| dict[str, float | int]
|
|
395
|
+
| float
|
|
396
|
+
| int
|
|
397
|
+
| None = None,
|
|
398
|
+
sticky: Literal["always", "partial"]
|
|
399
|
+
| Var[Literal["always", "partial"]]
|
|
400
|
+
| None = None,
|
|
401
|
+
hide_when_detached: Var[bool] | bool | None = None,
|
|
402
|
+
style: Style | None = None,
|
|
403
|
+
key: Any | None = None,
|
|
404
|
+
id: Any | None = None,
|
|
405
|
+
class_name: Any | None = None,
|
|
406
|
+
autofocus: bool | None = None,
|
|
407
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
428
408
|
on_blur: Optional[EventType[()]] = None,
|
|
429
409
|
on_click: Optional[EventType[()]] = None,
|
|
430
410
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -485,78 +465,75 @@ class DropdownMenuItem(RadixThemesComponent):
|
|
|
485
465
|
def create( # type: ignore
|
|
486
466
|
cls,
|
|
487
467
|
*children,
|
|
488
|
-
color_scheme:
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
"violet",
|
|
545
|
-
"yellow",
|
|
546
|
-
]
|
|
547
|
-
],
|
|
468
|
+
color_scheme: Literal[
|
|
469
|
+
"amber",
|
|
470
|
+
"blue",
|
|
471
|
+
"bronze",
|
|
472
|
+
"brown",
|
|
473
|
+
"crimson",
|
|
474
|
+
"cyan",
|
|
475
|
+
"gold",
|
|
476
|
+
"grass",
|
|
477
|
+
"gray",
|
|
478
|
+
"green",
|
|
479
|
+
"indigo",
|
|
480
|
+
"iris",
|
|
481
|
+
"jade",
|
|
482
|
+
"lime",
|
|
483
|
+
"mint",
|
|
484
|
+
"orange",
|
|
485
|
+
"pink",
|
|
486
|
+
"plum",
|
|
487
|
+
"purple",
|
|
488
|
+
"red",
|
|
489
|
+
"ruby",
|
|
490
|
+
"sky",
|
|
491
|
+
"teal",
|
|
492
|
+
"tomato",
|
|
493
|
+
"violet",
|
|
494
|
+
"yellow",
|
|
495
|
+
]
|
|
496
|
+
| Var[
|
|
497
|
+
Literal[
|
|
498
|
+
"amber",
|
|
499
|
+
"blue",
|
|
500
|
+
"bronze",
|
|
501
|
+
"brown",
|
|
502
|
+
"crimson",
|
|
503
|
+
"cyan",
|
|
504
|
+
"gold",
|
|
505
|
+
"grass",
|
|
506
|
+
"gray",
|
|
507
|
+
"green",
|
|
508
|
+
"indigo",
|
|
509
|
+
"iris",
|
|
510
|
+
"jade",
|
|
511
|
+
"lime",
|
|
512
|
+
"mint",
|
|
513
|
+
"orange",
|
|
514
|
+
"pink",
|
|
515
|
+
"plum",
|
|
516
|
+
"purple",
|
|
517
|
+
"red",
|
|
518
|
+
"ruby",
|
|
519
|
+
"sky",
|
|
520
|
+
"teal",
|
|
521
|
+
"tomato",
|
|
522
|
+
"violet",
|
|
523
|
+
"yellow",
|
|
548
524
|
]
|
|
549
|
-
]
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
525
|
+
]
|
|
526
|
+
| None = None,
|
|
527
|
+
shortcut: Var[str] | str | None = None,
|
|
528
|
+
as_child: Var[bool] | bool | None = None,
|
|
529
|
+
disabled: Var[bool] | bool | None = None,
|
|
530
|
+
text_value: Var[str] | str | None = None,
|
|
531
|
+
style: Style | None = None,
|
|
532
|
+
key: Any | None = None,
|
|
533
|
+
id: Any | None = None,
|
|
534
|
+
class_name: Any | None = None,
|
|
535
|
+
autofocus: bool | None = None,
|
|
536
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
560
537
|
on_blur: Optional[EventType[()]] = None,
|
|
561
538
|
on_click: Optional[EventType[()]] = None,
|
|
562
539
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -607,12 +584,12 @@ class DropdownMenuSeparator(RadixThemesComponent):
|
|
|
607
584
|
def create( # type: ignore
|
|
608
585
|
cls,
|
|
609
586
|
*children,
|
|
610
|
-
style:
|
|
611
|
-
key:
|
|
612
|
-
id:
|
|
613
|
-
class_name:
|
|
614
|
-
autofocus:
|
|
615
|
-
custom_attrs:
|
|
587
|
+
style: Style | None = None,
|
|
588
|
+
key: Any | None = None,
|
|
589
|
+
id: Any | None = None,
|
|
590
|
+
class_name: Any | None = None,
|
|
591
|
+
autofocus: bool | None = None,
|
|
592
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
616
593
|
on_blur: Optional[EventType[()]] = None,
|
|
617
594
|
on_click: Optional[EventType[()]] = None,
|
|
618
595
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Interactive components provided by @radix-ui/themes."""
|
|
2
2
|
|
|
3
|
-
from typing import
|
|
3
|
+
from typing import Literal
|
|
4
4
|
|
|
5
5
|
from reflex.components.component import ComponentNamespace
|
|
6
6
|
from reflex.components.core.breakpoints import Responsive
|
|
@@ -62,7 +62,7 @@ class HoverCardContent(elements.Div, RadixThemesComponent):
|
|
|
62
62
|
avoid_collisions: Var[bool]
|
|
63
63
|
|
|
64
64
|
# The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for all sides), or a partial padding object, for example: { top: 20, left: 20 }.
|
|
65
|
-
collision_padding: Var[
|
|
65
|
+
collision_padding: Var[float | int | dict[str, float | int]]
|
|
66
66
|
|
|
67
67
|
# The sticky behavior on the align axis. "partial" will keep the content in the boundary as long as the trigger is at least partially in the boundary whilst "always" will keep the content in the boundary regardless
|
|
68
68
|
sticky: Var[Literal["partial", "always"]]
|