reflex 0.8.15a1__py3-none-any.whl → 0.8.16a1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of reflex might be problematic. Click here for more details.
- reflex/.templates/web/utils/state.js +68 -8
- reflex/app.py +45 -51
- reflex/app_mixins/lifespan.py +12 -5
- reflex/base.py +1 -0
- reflex/compiler/compiler.py +4 -6
- reflex/compiler/templates.py +25 -31
- reflex/compiler/utils.py +6 -5
- reflex/components/base/body.pyi +1 -195
- reflex/components/base/link.pyi +1 -407
- reflex/components/base/meta.pyi +1 -405
- reflex/components/base/script.pyi +1 -237
- reflex/components/component.py +41 -46
- reflex/components/core/auto_scroll.pyi +1 -195
- reflex/components/core/banner.pyi +1 -391
- reflex/components/core/breakpoints.py +14 -18
- reflex/components/core/html.pyi +1 -197
- reflex/components/core/match.py +2 -2
- reflex/components/core/sticky.py +11 -15
- reflex/components/core/sticky.pyi +0 -788
- reflex/components/core/upload.py +1 -3
- reflex/components/datadisplay/code.pyi +1 -0
- reflex/components/datadisplay/dataeditor.py +4 -6
- reflex/components/datadisplay/shiki_code_block.py +106 -110
- reflex/components/dynamic.py +4 -6
- reflex/components/el/elements/__init__.py +5 -7
- reflex/components/el/elements/__init__.pyi +5 -7
- reflex/components/el/elements/base.py +1 -1
- reflex/components/el/elements/base.pyi +1 -195
- reflex/components/el/elements/forms.py +7 -9
- reflex/components/el/elements/forms.pyi +12 -3112
- reflex/components/el/elements/inline.pyi +0 -5481
- reflex/components/el/elements/media.pyi +0 -10280
- reflex/components/el/elements/metadata.pyi +1 -835
- reflex/components/el/elements/other.pyi +1 -1365
- reflex/components/el/elements/scripts.pyi +1 -625
- reflex/components/el/elements/sectioning.pyi +1 -2911
- reflex/components/el/elements/tables.pyi +1 -1973
- reflex/components/el/elements/typography.pyi +1 -3125
- reflex/components/lucide/icon.py +4 -4
- reflex/components/lucide/icon.pyi +0 -4
- reflex/components/markdown/markdown.py +15 -19
- reflex/components/markdown/markdown.pyi +1 -0
- reflex/components/moment/moment.pyi +0 -49
- reflex/components/props.py +3 -3
- reflex/components/radix/primitives/accordion.py +4 -6
- reflex/components/radix/primitives/accordion.pyi +0 -14
- reflex/components/radix/primitives/base.pyi +0 -5
- reflex/components/radix/primitives/dialog.py +2 -0
- reflex/components/radix/primitives/dialog.pyi +1 -233
- reflex/components/radix/primitives/drawer.pyi +0 -18
- reflex/components/radix/primitives/form.pyi +30 -632
- reflex/components/radix/primitives/progress.pyi +0 -10
- reflex/components/radix/primitives/slider.pyi +0 -10
- reflex/components/radix/themes/color_mode.pyi +1 -284
- reflex/components/radix/themes/components/alert_dialog.pyi +0 -207
- reflex/components/radix/themes/components/aspect_ratio.pyi +0 -2
- reflex/components/radix/themes/components/avatar.pyi +0 -80
- reflex/components/radix/themes/components/badge.pyi +1 -270
- reflex/components/radix/themes/components/button.pyi +1 -274
- reflex/components/radix/themes/components/callout.pyi +0 -1197
- reflex/components/radix/themes/components/card.pyi +1 -209
- reflex/components/radix/themes/components/checkbox.pyi +0 -261
- reflex/components/radix/themes/components/checkbox_cards.pyi +1 -96
- reflex/components/radix/themes/components/checkbox_group.pyi +1 -80
- reflex/components/radix/themes/components/context_menu.pyi +13 -321
- reflex/components/radix/themes/components/data_list.pyi +1 -107
- reflex/components/radix/themes/components/dialog.pyi +1 -210
- reflex/components/radix/themes/components/dropdown_menu.pyi +0 -209
- reflex/components/radix/themes/components/hover_card.pyi +1 -246
- reflex/components/radix/themes/components/icon_button.pyi +1 -195
- reflex/components/radix/themes/components/inset.pyi +0 -252
- reflex/components/radix/themes/components/popover.pyi +1 -234
- reflex/components/radix/themes/components/progress.pyi +1 -84
- reflex/components/radix/themes/components/radio.pyi +1 -72
- reflex/components/radix/themes/components/radio_cards.pyi +1 -123
- reflex/components/radix/themes/components/scroll_area.pyi +1 -11
- reflex/components/radix/themes/components/select.pyi +1 -376
- reflex/components/radix/themes/components/separator.pyi +0 -77
- reflex/components/radix/themes/components/skeleton.pyi +0 -30
- reflex/components/radix/themes/components/slider.py +3 -5
- reflex/components/radix/themes/components/spinner.pyi +0 -5
- reflex/components/radix/themes/components/switch.pyi +0 -89
- reflex/components/radix/themes/components/table.pyi +0 -1453
- reflex/components/radix/themes/components/text_area.pyi +7 -282
- reflex/components/radix/themes/components/text_field.pyi +6 -392
- reflex/components/radix/themes/components/tooltip.pyi +0 -42
- reflex/components/radix/themes/layout/box.pyi +1 -195
- reflex/components/radix/themes/layout/center.pyi +0 -194
- reflex/components/radix/themes/layout/container.pyi +0 -178
- reflex/components/radix/themes/layout/flex.pyi +0 -194
- reflex/components/radix/themes/layout/grid.pyi +0 -194
- reflex/components/radix/themes/layout/list.pyi +0 -978
- reflex/components/radix/themes/layout/section.pyi +0 -194
- reflex/components/radix/themes/layout/spacer.pyi +0 -194
- reflex/components/radix/themes/layout/stack.pyi +0 -582
- reflex/components/radix/themes/typography/blockquote.pyi +0 -196
- reflex/components/radix/themes/typography/code.pyi +0 -194
- reflex/components/radix/themes/typography/heading.pyi +0 -194
- reflex/components/radix/themes/typography/link.pyi +0 -237
- reflex/components/radix/themes/typography/text.pyi +0 -1360
- reflex/components/react_router/dom.pyi +0 -237
- reflex/components/recharts/cartesian.py +12 -18
- reflex/components/recharts/general.py +12 -18
- reflex/constants/installer.py +5 -5
- reflex/custom_components/custom_components.py +6 -5
- reflex/environment.py +30 -7
- reflex/event.py +14 -12
- reflex/experimental/client_state.py +11 -12
- reflex/istate/data.py +8 -10
- reflex/istate/manager/__init__.py +3 -0
- reflex/istate/manager/disk.py +151 -5
- reflex/model.py +1 -1
- reflex/plugins/_screenshot.py +2 -2
- reflex/plugins/shared_tailwind.py +9 -14
- reflex/reflex.py +7 -9
- reflex/state.py +30 -37
- reflex/style.py +6 -6
- reflex/testing.py +54 -30
- reflex/utils/codespaces.py +31 -2
- reflex/utils/compat.py +1 -0
- reflex/utils/decorator.py +3 -3
- reflex/utils/format.py +18 -22
- reflex/utils/prerequisites.py +1 -1
- reflex/utils/pyi_generator.py +51 -57
- reflex/utils/serializers.py +1 -1
- reflex/utils/telemetry.py +1 -1
- reflex/utils/templates.py +4 -4
- reflex/utils/types.py +11 -4
- reflex/vars/base.py +26 -29
- reflex/vars/color.py +6 -8
- reflex/vars/dep_tracking.py +5 -3
- reflex/vars/function.py +3 -3
- reflex/vars/object.py +9 -13
- reflex/vars/sequence.py +18 -24
- {reflex-0.8.15a1.dist-info → reflex-0.8.16a1.dist-info}/METADATA +1 -1
- {reflex-0.8.15a1.dist-info → reflex-0.8.16a1.dist-info}/RECORD +139 -139
- {reflex-0.8.15a1.dist-info → reflex-0.8.16a1.dist-info}/WHEEL +0 -0
- {reflex-0.8.15a1.dist-info → reflex-0.8.16a1.dist-info}/entry_points.txt +0 -0
- {reflex-0.8.15a1.dist-info → reflex-0.8.16a1.dist-info}/licenses/LICENSE +0 -0
|
@@ -27,10 +27,6 @@ class DropdownMenuRoot(RadixThemesComponent):
|
|
|
27
27
|
def create(
|
|
28
28
|
cls,
|
|
29
29
|
*children,
|
|
30
|
-
default_open: Var[bool] | bool | None = None,
|
|
31
|
-
open: Var[bool] | bool | None = None,
|
|
32
|
-
modal: Var[bool] | bool | None = None,
|
|
33
|
-
dir: Literal["ltr", "rtl"] | Var[Literal["ltr", "rtl"]] | None = None,
|
|
34
30
|
style: Sequence[Mapping[str, Any]]
|
|
35
31
|
| Mapping[str, Any]
|
|
36
32
|
| Var[Mapping[str, Any]]
|
|
@@ -67,10 +63,6 @@ class DropdownMenuRoot(RadixThemesComponent):
|
|
|
67
63
|
|
|
68
64
|
Args:
|
|
69
65
|
*children: Child components.
|
|
70
|
-
default_open: The open state of the dropdown menu when it is initially rendered. Use when you do not need to control its open state.
|
|
71
|
-
open: The controlled open state of the dropdown menu. Must be used in conjunction with onOpenChange.
|
|
72
|
-
modal: The modality of the dropdown menu. When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers. Defaults to True.
|
|
73
|
-
dir: The reading direction of submenus when applicable. If omitted, inherits globally from DirectionProvider or assumes LTR (left-to-right) reading mode.
|
|
74
66
|
on_open_change: Fired when the open state changes.
|
|
75
67
|
style: The style of the component.
|
|
76
68
|
key: A unique key for the component.
|
|
@@ -89,7 +81,6 @@ class DropdownMenuTrigger(RadixThemesTriggerComponent):
|
|
|
89
81
|
def create(
|
|
90
82
|
cls,
|
|
91
83
|
*children,
|
|
92
|
-
as_child: Var[bool] | bool | None = None,
|
|
93
84
|
style: Sequence[Mapping[str, Any]]
|
|
94
85
|
| Mapping[str, Any]
|
|
95
86
|
| Var[Mapping[str, Any]]
|
|
@@ -133,92 +124,6 @@ class DropdownMenuContent(RadixThemesComponent):
|
|
|
133
124
|
def create(
|
|
134
125
|
cls,
|
|
135
126
|
*children,
|
|
136
|
-
size: Breakpoints[str, Literal["1", "2"]]
|
|
137
|
-
| Literal["1", "2"]
|
|
138
|
-
| Var[Breakpoints[str, Literal["1", "2"]] | Literal["1", "2"]]
|
|
139
|
-
| None = None,
|
|
140
|
-
variant: Literal["soft", "solid"] | Var[Literal["soft", "solid"]] | None = None,
|
|
141
|
-
color_scheme: Literal[
|
|
142
|
-
"amber",
|
|
143
|
-
"blue",
|
|
144
|
-
"bronze",
|
|
145
|
-
"brown",
|
|
146
|
-
"crimson",
|
|
147
|
-
"cyan",
|
|
148
|
-
"gold",
|
|
149
|
-
"grass",
|
|
150
|
-
"gray",
|
|
151
|
-
"green",
|
|
152
|
-
"indigo",
|
|
153
|
-
"iris",
|
|
154
|
-
"jade",
|
|
155
|
-
"lime",
|
|
156
|
-
"mint",
|
|
157
|
-
"orange",
|
|
158
|
-
"pink",
|
|
159
|
-
"plum",
|
|
160
|
-
"purple",
|
|
161
|
-
"red",
|
|
162
|
-
"ruby",
|
|
163
|
-
"sky",
|
|
164
|
-
"teal",
|
|
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
|
-
| None = None,
|
|
200
|
-
high_contrast: Var[bool] | bool | None = None,
|
|
201
|
-
as_child: Var[bool] | bool | None = None,
|
|
202
|
-
loop: Var[bool] | bool | None = None,
|
|
203
|
-
force_mount: Var[bool] | bool | None = None,
|
|
204
|
-
side: Literal["bottom", "left", "right", "top"]
|
|
205
|
-
| Var[Literal["bottom", "left", "right", "top"]]
|
|
206
|
-
| None = None,
|
|
207
|
-
side_offset: Var[float | int] | float | int | None = None,
|
|
208
|
-
align: Literal["center", "end", "start"]
|
|
209
|
-
| Var[Literal["center", "end", "start"]]
|
|
210
|
-
| None = None,
|
|
211
|
-
align_offset: Var[float | int] | float | int | None = None,
|
|
212
|
-
avoid_collisions: Var[bool] | bool | None = None,
|
|
213
|
-
collision_padding: Var[dict[str, float | int] | float | int]
|
|
214
|
-
| dict[str, float | int]
|
|
215
|
-
| float
|
|
216
|
-
| int
|
|
217
|
-
| None = None,
|
|
218
|
-
sticky: Literal["always", "partial"]
|
|
219
|
-
| Var[Literal["always", "partial"]]
|
|
220
|
-
| None = None,
|
|
221
|
-
hide_when_detached: Var[bool] | bool | None = None,
|
|
222
127
|
style: Sequence[Mapping[str, Any]]
|
|
223
128
|
| Mapping[str, Any]
|
|
224
129
|
| Var[Mapping[str, Any]]
|
|
@@ -259,21 +164,6 @@ class DropdownMenuContent(RadixThemesComponent):
|
|
|
259
164
|
|
|
260
165
|
Args:
|
|
261
166
|
*children: Child components.
|
|
262
|
-
size: Dropdown Menu Content size "1" - "2"
|
|
263
|
-
variant: Variant of Dropdown Menu Content: "solid" | "soft"
|
|
264
|
-
color_scheme: Override theme color for Dropdown Menu Content
|
|
265
|
-
high_contrast: Renders the Dropdown Menu Content in higher contrast
|
|
266
|
-
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
|
|
267
|
-
loop: When True, keyboard navigation will loop from last item to first, and vice versa. Defaults to False.
|
|
268
|
-
force_mount: Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries.
|
|
269
|
-
side: The preferred side of the trigger to render against when open. Will be reversed when collisions occur and `avoid_collisions` is enabled.The position of the tooltip. Defaults to "top".
|
|
270
|
-
side_offset: The distance in pixels from the trigger. Defaults to 0.
|
|
271
|
-
align: The preferred alignment against the trigger. May change when collisions occur. Defaults to "center".
|
|
272
|
-
align_offset: An offset in pixels from the "start" or "end" alignment options.
|
|
273
|
-
avoid_collisions: When true, overrides the side and align preferences to prevent collisions with boundary edges. Defaults to True.
|
|
274
|
-
collision_padding: 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 }. Defaults to 0.
|
|
275
|
-
sticky: 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. Defaults to "partial".
|
|
276
|
-
hide_when_detached: Whether to hide the content when the trigger becomes fully occluded. Defaults to False.
|
|
277
167
|
on_close_auto_focus: Fired when the dialog is closed.
|
|
278
168
|
on_escape_key_down: Fired when the escape key is pressed.
|
|
279
169
|
on_pointer_down_outside: Fired when the pointer is down outside the dialog.
|
|
@@ -296,9 +186,6 @@ class DropdownMenuSubTrigger(RadixThemesTriggerComponent):
|
|
|
296
186
|
def create(
|
|
297
187
|
cls,
|
|
298
188
|
*children,
|
|
299
|
-
as_child: Var[bool] | bool | None = None,
|
|
300
|
-
disabled: Var[bool] | bool | None = None,
|
|
301
|
-
text_value: Var[str] | str | None = None,
|
|
302
189
|
style: Sequence[Mapping[str, Any]]
|
|
303
190
|
| Mapping[str, Any]
|
|
304
191
|
| Var[Mapping[str, Any]]
|
|
@@ -342,8 +229,6 @@ class DropdownMenuSub(RadixThemesComponent):
|
|
|
342
229
|
def create(
|
|
343
230
|
cls,
|
|
344
231
|
*children,
|
|
345
|
-
open: Var[bool] | bool | None = None,
|
|
346
|
-
default_open: Var[bool] | bool | None = None,
|
|
347
232
|
style: Sequence[Mapping[str, Any]]
|
|
348
233
|
| Mapping[str, Any]
|
|
349
234
|
| Var[Mapping[str, Any]]
|
|
@@ -380,8 +265,6 @@ class DropdownMenuSub(RadixThemesComponent):
|
|
|
380
265
|
|
|
381
266
|
Args:
|
|
382
267
|
*children: Child components.
|
|
383
|
-
open: The controlled open state of the submenu. Must be used in conjunction with `on_open_change`.
|
|
384
|
-
default_open: The open state of the submenu when it is initially rendered. Use when you do not need to control its open state.
|
|
385
268
|
on_open_change: Fired when the open state changes.
|
|
386
269
|
style: The style of the component.
|
|
387
270
|
key: A unique key for the component.
|
|
@@ -400,21 +283,6 @@ class DropdownMenuSubContent(RadixThemesComponent):
|
|
|
400
283
|
def create(
|
|
401
284
|
cls,
|
|
402
285
|
*children,
|
|
403
|
-
as_child: Var[bool] | bool | None = None,
|
|
404
|
-
loop: Var[bool] | bool | None = None,
|
|
405
|
-
force_mount: Var[bool] | bool | None = None,
|
|
406
|
-
side_offset: Var[float | int] | float | int | None = None,
|
|
407
|
-
align_offset: Var[float | int] | float | int | None = None,
|
|
408
|
-
avoid_collisions: Var[bool] | bool | None = None,
|
|
409
|
-
collision_padding: Var[dict[str, float | int] | float | int]
|
|
410
|
-
| dict[str, float | int]
|
|
411
|
-
| float
|
|
412
|
-
| int
|
|
413
|
-
| None = None,
|
|
414
|
-
sticky: Literal["always", "partial"]
|
|
415
|
-
| Var[Literal["always", "partial"]]
|
|
416
|
-
| None = None,
|
|
417
|
-
hide_when_detached: Var[bool] | bool | None = None,
|
|
418
286
|
style: Sequence[Mapping[str, Any]]
|
|
419
287
|
| Mapping[str, Any]
|
|
420
288
|
| Var[Mapping[str, Any]]
|
|
@@ -454,15 +322,6 @@ class DropdownMenuSubContent(RadixThemesComponent):
|
|
|
454
322
|
|
|
455
323
|
Args:
|
|
456
324
|
*children: Child components.
|
|
457
|
-
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
|
|
458
|
-
loop: When True, keyboard navigation will loop from last item to first, and vice versa. Defaults to False.
|
|
459
|
-
force_mount: Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries.
|
|
460
|
-
side_offset: The distance in pixels from the trigger. Defaults to 0.
|
|
461
|
-
align_offset: An offset in pixels from the "start" or "end" alignment options.
|
|
462
|
-
avoid_collisions: When true, overrides the side and align preferences to prevent collisions with boundary edges. Defaults to True.
|
|
463
|
-
collision_padding: 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 }. Defaults to 0.
|
|
464
|
-
sticky: 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. Defaults to "partial".
|
|
465
|
-
hide_when_detached: Whether to hide the content when the trigger becomes fully occluded. Defaults to False.
|
|
466
325
|
on_escape_key_down: Fired when the escape key is pressed.
|
|
467
326
|
on_pointer_down_outside: Fired when the pointer is down outside the dialog.
|
|
468
327
|
on_focus_outside: Fired when focus moves outside the dialog.
|
|
@@ -484,69 +343,6 @@ class DropdownMenuItem(RadixThemesComponent):
|
|
|
484
343
|
def create(
|
|
485
344
|
cls,
|
|
486
345
|
*children,
|
|
487
|
-
color_scheme: Literal[
|
|
488
|
-
"amber",
|
|
489
|
-
"blue",
|
|
490
|
-
"bronze",
|
|
491
|
-
"brown",
|
|
492
|
-
"crimson",
|
|
493
|
-
"cyan",
|
|
494
|
-
"gold",
|
|
495
|
-
"grass",
|
|
496
|
-
"gray",
|
|
497
|
-
"green",
|
|
498
|
-
"indigo",
|
|
499
|
-
"iris",
|
|
500
|
-
"jade",
|
|
501
|
-
"lime",
|
|
502
|
-
"mint",
|
|
503
|
-
"orange",
|
|
504
|
-
"pink",
|
|
505
|
-
"plum",
|
|
506
|
-
"purple",
|
|
507
|
-
"red",
|
|
508
|
-
"ruby",
|
|
509
|
-
"sky",
|
|
510
|
-
"teal",
|
|
511
|
-
"tomato",
|
|
512
|
-
"violet",
|
|
513
|
-
"yellow",
|
|
514
|
-
]
|
|
515
|
-
| Var[
|
|
516
|
-
Literal[
|
|
517
|
-
"amber",
|
|
518
|
-
"blue",
|
|
519
|
-
"bronze",
|
|
520
|
-
"brown",
|
|
521
|
-
"crimson",
|
|
522
|
-
"cyan",
|
|
523
|
-
"gold",
|
|
524
|
-
"grass",
|
|
525
|
-
"gray",
|
|
526
|
-
"green",
|
|
527
|
-
"indigo",
|
|
528
|
-
"iris",
|
|
529
|
-
"jade",
|
|
530
|
-
"lime",
|
|
531
|
-
"mint",
|
|
532
|
-
"orange",
|
|
533
|
-
"pink",
|
|
534
|
-
"plum",
|
|
535
|
-
"purple",
|
|
536
|
-
"red",
|
|
537
|
-
"ruby",
|
|
538
|
-
"sky",
|
|
539
|
-
"teal",
|
|
540
|
-
"tomato",
|
|
541
|
-
"violet",
|
|
542
|
-
"yellow",
|
|
543
|
-
]
|
|
544
|
-
]
|
|
545
|
-
| None = None,
|
|
546
|
-
shortcut: Var[str] | str | None = None,
|
|
547
|
-
as_child: Var[bool] | bool | None = None,
|
|
548
|
-
disabled: Var[bool] | bool | None = None,
|
|
549
|
-
text_value: Var[str] | str | None = None,
|
|
550
346
|
style: Sequence[Mapping[str, Any]]
|
|
551
347
|
| Mapping[str, Any]
|
|
552
348
|
| Var[Mapping[str, Any]]
|
|
@@ -583,11 +379,6 @@ class DropdownMenuItem(RadixThemesComponent):
|
|
|
583
379
|
|
|
584
380
|
Args:
|
|
585
381
|
*children: Child components.
|
|
586
|
-
color_scheme: Override theme color for Dropdown Menu Item
|
|
587
|
-
shortcut: Shortcut to render a menu item as a link
|
|
588
|
-
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
|
|
589
|
-
disabled: When true, prevents the user from interacting with the item.
|
|
590
|
-
text_value: Optional text used for typeahead purposes. By default the typeahead behavior will use the .textContent of the item. Use this when the content is complex, or you have non-textual content inside.
|
|
591
382
|
on_select: Fired when the item is selected.
|
|
592
383
|
style: The style of the component.
|
|
593
384
|
key: A unique key for the component.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
6
|
from collections.abc import Mapping, Sequence
|
|
7
|
-
from typing import Any
|
|
7
|
+
from typing import Any
|
|
8
8
|
|
|
9
9
|
from reflex.components.component import ComponentNamespace
|
|
10
10
|
from reflex.components.core.breakpoints import Breakpoints
|
|
@@ -21,10 +21,6 @@ class HoverCardRoot(RadixThemesComponent):
|
|
|
21
21
|
def create(
|
|
22
22
|
cls,
|
|
23
23
|
*children,
|
|
24
|
-
default_open: Var[bool] | bool | None = None,
|
|
25
|
-
open: Var[bool] | bool | None = None,
|
|
26
|
-
open_delay: Var[int] | int | None = None,
|
|
27
|
-
close_delay: Var[int] | int | None = None,
|
|
28
24
|
style: Sequence[Mapping[str, Any]]
|
|
29
25
|
| Mapping[str, Any]
|
|
30
26
|
| Var[Mapping[str, Any]]
|
|
@@ -61,10 +57,6 @@ class HoverCardRoot(RadixThemesComponent):
|
|
|
61
57
|
|
|
62
58
|
Args:
|
|
63
59
|
*children: Child components.
|
|
64
|
-
default_open: The open state of the hover card when it is initially rendered. Use when you do not need to control its open state.
|
|
65
|
-
open: The controlled open state of the hover card. Must be used in conjunction with onOpenChange.
|
|
66
|
-
open_delay: The duration from when the mouse enters the trigger until the hover card opens.
|
|
67
|
-
close_delay: The duration from when the mouse leaves the trigger until the hover card closes.
|
|
68
60
|
on_open_change: Fired when the open state changes.
|
|
69
61
|
style: The style of the component.
|
|
70
62
|
key: A unique key for the component.
|
|
@@ -126,210 +118,6 @@ class HoverCardContent(elements.Div, RadixThemesComponent):
|
|
|
126
118
|
def create(
|
|
127
119
|
cls,
|
|
128
120
|
*children,
|
|
129
|
-
side: Breakpoints[str, Literal["bottom", "left", "right", "top"]]
|
|
130
|
-
| Literal["bottom", "left", "right", "top"]
|
|
131
|
-
| Var[
|
|
132
|
-
Breakpoints[str, Literal["bottom", "left", "right", "top"]]
|
|
133
|
-
| Literal["bottom", "left", "right", "top"]
|
|
134
|
-
]
|
|
135
|
-
| None = None,
|
|
136
|
-
side_offset: Var[int] | int | None = None,
|
|
137
|
-
align: Literal["center", "end", "start"]
|
|
138
|
-
| Var[Literal["center", "end", "start"]]
|
|
139
|
-
| None = None,
|
|
140
|
-
align_offset: Var[int] | int | None = None,
|
|
141
|
-
avoid_collisions: Var[bool] | bool | None = None,
|
|
142
|
-
collision_padding: Var[dict[str, float | int] | float | int]
|
|
143
|
-
| dict[str, float | int]
|
|
144
|
-
| float
|
|
145
|
-
| int
|
|
146
|
-
| None = None,
|
|
147
|
-
sticky: Literal["always", "partial"]
|
|
148
|
-
| Var[Literal["always", "partial"]]
|
|
149
|
-
| None = None,
|
|
150
|
-
hide_when_detached: Var[bool] | bool | None = None,
|
|
151
|
-
size: Breakpoints[str, Literal["1", "2", "3"]]
|
|
152
|
-
| Literal["1", "2", "3"]
|
|
153
|
-
| Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
|
|
154
|
-
| None = None,
|
|
155
|
-
access_key: Var[str] | str | None = None,
|
|
156
|
-
auto_capitalize: Literal[
|
|
157
|
-
"characters", "none", "off", "on", "sentences", "words"
|
|
158
|
-
]
|
|
159
|
-
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
160
|
-
| None = None,
|
|
161
|
-
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
162
|
-
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
163
|
-
| None = None,
|
|
164
|
-
context_menu: Var[str] | str | None = None,
|
|
165
|
-
dir: Var[str] | str | None = None,
|
|
166
|
-
draggable: Var[bool] | bool | None = None,
|
|
167
|
-
enter_key_hint: Literal[
|
|
168
|
-
"done", "enter", "go", "next", "previous", "search", "send"
|
|
169
|
-
]
|
|
170
|
-
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
171
|
-
| None = None,
|
|
172
|
-
hidden: Var[bool] | bool | None = None,
|
|
173
|
-
input_mode: Literal[
|
|
174
|
-
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
175
|
-
]
|
|
176
|
-
| Var[
|
|
177
|
-
Literal[
|
|
178
|
-
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
179
|
-
]
|
|
180
|
-
]
|
|
181
|
-
| None = None,
|
|
182
|
-
item_prop: Var[str] | str | None = None,
|
|
183
|
-
lang: Var[str] | str | None = None,
|
|
184
|
-
role: Literal[
|
|
185
|
-
"alert",
|
|
186
|
-
"alertdialog",
|
|
187
|
-
"application",
|
|
188
|
-
"article",
|
|
189
|
-
"banner",
|
|
190
|
-
"button",
|
|
191
|
-
"cell",
|
|
192
|
-
"checkbox",
|
|
193
|
-
"columnheader",
|
|
194
|
-
"combobox",
|
|
195
|
-
"complementary",
|
|
196
|
-
"contentinfo",
|
|
197
|
-
"definition",
|
|
198
|
-
"dialog",
|
|
199
|
-
"directory",
|
|
200
|
-
"document",
|
|
201
|
-
"feed",
|
|
202
|
-
"figure",
|
|
203
|
-
"form",
|
|
204
|
-
"grid",
|
|
205
|
-
"gridcell",
|
|
206
|
-
"group",
|
|
207
|
-
"heading",
|
|
208
|
-
"img",
|
|
209
|
-
"link",
|
|
210
|
-
"list",
|
|
211
|
-
"listbox",
|
|
212
|
-
"listitem",
|
|
213
|
-
"log",
|
|
214
|
-
"main",
|
|
215
|
-
"marquee",
|
|
216
|
-
"math",
|
|
217
|
-
"menu",
|
|
218
|
-
"menubar",
|
|
219
|
-
"menuitem",
|
|
220
|
-
"menuitemcheckbox",
|
|
221
|
-
"menuitemradio",
|
|
222
|
-
"navigation",
|
|
223
|
-
"none",
|
|
224
|
-
"note",
|
|
225
|
-
"option",
|
|
226
|
-
"presentation",
|
|
227
|
-
"progressbar",
|
|
228
|
-
"radio",
|
|
229
|
-
"radiogroup",
|
|
230
|
-
"region",
|
|
231
|
-
"row",
|
|
232
|
-
"rowgroup",
|
|
233
|
-
"rowheader",
|
|
234
|
-
"scrollbar",
|
|
235
|
-
"search",
|
|
236
|
-
"searchbox",
|
|
237
|
-
"separator",
|
|
238
|
-
"slider",
|
|
239
|
-
"spinbutton",
|
|
240
|
-
"status",
|
|
241
|
-
"switch",
|
|
242
|
-
"tab",
|
|
243
|
-
"table",
|
|
244
|
-
"tablist",
|
|
245
|
-
"tabpanel",
|
|
246
|
-
"term",
|
|
247
|
-
"textbox",
|
|
248
|
-
"timer",
|
|
249
|
-
"toolbar",
|
|
250
|
-
"tooltip",
|
|
251
|
-
"tree",
|
|
252
|
-
"treegrid",
|
|
253
|
-
"treeitem",
|
|
254
|
-
]
|
|
255
|
-
| Var[
|
|
256
|
-
Literal[
|
|
257
|
-
"alert",
|
|
258
|
-
"alertdialog",
|
|
259
|
-
"application",
|
|
260
|
-
"article",
|
|
261
|
-
"banner",
|
|
262
|
-
"button",
|
|
263
|
-
"cell",
|
|
264
|
-
"checkbox",
|
|
265
|
-
"columnheader",
|
|
266
|
-
"combobox",
|
|
267
|
-
"complementary",
|
|
268
|
-
"contentinfo",
|
|
269
|
-
"definition",
|
|
270
|
-
"dialog",
|
|
271
|
-
"directory",
|
|
272
|
-
"document",
|
|
273
|
-
"feed",
|
|
274
|
-
"figure",
|
|
275
|
-
"form",
|
|
276
|
-
"grid",
|
|
277
|
-
"gridcell",
|
|
278
|
-
"group",
|
|
279
|
-
"heading",
|
|
280
|
-
"img",
|
|
281
|
-
"link",
|
|
282
|
-
"list",
|
|
283
|
-
"listbox",
|
|
284
|
-
"listitem",
|
|
285
|
-
"log",
|
|
286
|
-
"main",
|
|
287
|
-
"marquee",
|
|
288
|
-
"math",
|
|
289
|
-
"menu",
|
|
290
|
-
"menubar",
|
|
291
|
-
"menuitem",
|
|
292
|
-
"menuitemcheckbox",
|
|
293
|
-
"menuitemradio",
|
|
294
|
-
"navigation",
|
|
295
|
-
"none",
|
|
296
|
-
"note",
|
|
297
|
-
"option",
|
|
298
|
-
"presentation",
|
|
299
|
-
"progressbar",
|
|
300
|
-
"radio",
|
|
301
|
-
"radiogroup",
|
|
302
|
-
"region",
|
|
303
|
-
"row",
|
|
304
|
-
"rowgroup",
|
|
305
|
-
"rowheader",
|
|
306
|
-
"scrollbar",
|
|
307
|
-
"search",
|
|
308
|
-
"searchbox",
|
|
309
|
-
"separator",
|
|
310
|
-
"slider",
|
|
311
|
-
"spinbutton",
|
|
312
|
-
"status",
|
|
313
|
-
"switch",
|
|
314
|
-
"tab",
|
|
315
|
-
"table",
|
|
316
|
-
"tablist",
|
|
317
|
-
"tabpanel",
|
|
318
|
-
"term",
|
|
319
|
-
"textbox",
|
|
320
|
-
"timer",
|
|
321
|
-
"toolbar",
|
|
322
|
-
"tooltip",
|
|
323
|
-
"tree",
|
|
324
|
-
"treegrid",
|
|
325
|
-
"treeitem",
|
|
326
|
-
]
|
|
327
|
-
]
|
|
328
|
-
| None = None,
|
|
329
|
-
slot: Var[str] | str | None = None,
|
|
330
|
-
spell_check: Var[bool] | bool | None = None,
|
|
331
|
-
tab_index: Var[int] | int | None = None,
|
|
332
|
-
title: Var[str] | str | None = None,
|
|
333
121
|
style: Sequence[Mapping[str, Any]]
|
|
334
122
|
| Mapping[str, Any]
|
|
335
123
|
| Var[Mapping[str, Any]]
|
|
@@ -365,31 +153,6 @@ class HoverCardContent(elements.Div, RadixThemesComponent):
|
|
|
365
153
|
|
|
366
154
|
Args:
|
|
367
155
|
*children: Child components.
|
|
368
|
-
side: The preferred side of the trigger to render against when open. Will be reversed when collisions occur and avoidCollisions is enabled.
|
|
369
|
-
side_offset: The distance in pixels from the trigger.
|
|
370
|
-
align: The preferred alignment against the trigger. May change when collisions occur.
|
|
371
|
-
align_offset: An offset in pixels from the "start" or "end" alignment options.
|
|
372
|
-
avoid_collisions: Whether or not the hover card should avoid collisions with its trigger.
|
|
373
|
-
collision_padding: 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 }.
|
|
374
|
-
sticky: 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
|
|
375
|
-
hide_when_detached: Whether to hide the content when the trigger becomes fully occluded.
|
|
376
|
-
size: Hovercard size "1" - "3"
|
|
377
|
-
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
378
|
-
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
379
|
-
content_editable: Indicates whether the element's content is editable.
|
|
380
|
-
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
381
|
-
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
382
|
-
draggable: Defines whether the element can be dragged.
|
|
383
|
-
enter_key_hint: Hints what media types the media element is able to play.
|
|
384
|
-
hidden: Defines whether the element is hidden.
|
|
385
|
-
input_mode: Defines the type of the element.
|
|
386
|
-
item_prop: Defines the name of the element for metadata purposes.
|
|
387
|
-
lang: Defines the language used in the element.
|
|
388
|
-
role: Defines the role of the element.
|
|
389
|
-
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
390
|
-
spell_check: Defines whether the element may be checked for spelling errors.
|
|
391
|
-
tab_index: Defines the position of the current element in the tabbing order.
|
|
392
|
-
title: Defines a tooltip for the element.
|
|
393
156
|
style: The style of the component.
|
|
394
157
|
key: A unique key for the component.
|
|
395
158
|
id: The id for the component.
|
|
@@ -410,10 +173,6 @@ class HoverCard(ComponentNamespace):
|
|
|
410
173
|
@staticmethod
|
|
411
174
|
def __call__(
|
|
412
175
|
*children,
|
|
413
|
-
default_open: Var[bool] | bool | None = None,
|
|
414
|
-
open: Var[bool] | bool | None = None,
|
|
415
|
-
open_delay: Var[int] | int | None = None,
|
|
416
|
-
close_delay: Var[int] | int | None = None,
|
|
417
176
|
style: Sequence[Mapping[str, Any]]
|
|
418
177
|
| Mapping[str, Any]
|
|
419
178
|
| Var[Mapping[str, Any]]
|
|
@@ -450,10 +209,6 @@ class HoverCard(ComponentNamespace):
|
|
|
450
209
|
|
|
451
210
|
Args:
|
|
452
211
|
*children: Child components.
|
|
453
|
-
default_open: The open state of the hover card when it is initially rendered. Use when you do not need to control its open state.
|
|
454
|
-
open: The controlled open state of the hover card. Must be used in conjunction with onOpenChange.
|
|
455
|
-
open_delay: The duration from when the mouse enters the trigger until the hover card opens.
|
|
456
|
-
close_delay: The duration from when the mouse leaves the trigger until the hover card closes.
|
|
457
212
|
on_open_change: Fired when the open state changes.
|
|
458
213
|
style: The style of the component.
|
|
459
214
|
key: A unique key for the component.
|