reflex 0.6.8a1__py3-none-any.whl → 0.7.0__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/custom_components/pyproject.toml.jinja2 +1 -1
- reflex/.templates/jinja/web/pages/_app.js.jinja2 +7 -7
- reflex/.templates/jinja/web/pages/utils.js.jinja2 +3 -3
- reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +1 -4
- reflex/.templates/web/utils/state.js +65 -36
- reflex/__init__.py +4 -17
- reflex/__init__.pyi +1 -2
- reflex/app.py +286 -135
- reflex/app_mixins/lifespan.py +9 -9
- reflex/app_mixins/middleware.py +6 -6
- reflex/app_module_for_backend.py +3 -7
- reflex/base.py +7 -7
- reflex/compiler/compiler.py +8 -0
- reflex/compiler/utils.py +57 -18
- reflex/components/base/app_wrap.pyi +16 -16
- reflex/components/base/bare.py +1 -1
- reflex/components/base/body.pyi +16 -16
- reflex/components/base/document.pyi +76 -76
- reflex/components/base/error_boundary.py +2 -1
- reflex/components/base/error_boundary.pyi +19 -22
- reflex/components/base/fragment.pyi +16 -16
- reflex/components/base/head.pyi +31 -31
- reflex/components/base/link.pyi +31 -31
- reflex/components/base/meta.py +2 -2
- reflex/components/base/meta.pyi +61 -61
- reflex/components/base/script.pyi +19 -19
- reflex/components/base/strict_mode.py +10 -0
- reflex/components/base/strict_mode.pyi +57 -0
- reflex/components/component.py +38 -77
- reflex/components/core/banner.py +159 -4
- reflex/components/core/banner.pyi +162 -76
- reflex/components/core/breakpoints.py +3 -1
- reflex/components/core/client_side_routing.py +1 -1
- reflex/components/core/client_side_routing.pyi +32 -32
- reflex/components/core/clipboard.pyi +17 -20
- reflex/components/core/cond.py +9 -10
- reflex/components/core/debounce.py +1 -1
- reflex/components/core/debounce.pyi +17 -17
- reflex/components/core/foreach.py +28 -3
- reflex/components/core/html.py +1 -1
- reflex/components/core/html.pyi +16 -16
- reflex/components/core/match.py +5 -5
- reflex/components/core/sticky.py +134 -0
- reflex/components/core/sticky.pyi +449 -0
- reflex/components/core/upload.py +2 -2
- reflex/components/core/upload.pyi +80 -88
- reflex/components/datadisplay/code.py +5 -14
- reflex/components/datadisplay/code.pyi +31 -31
- reflex/components/datadisplay/dataeditor.py +7 -4
- reflex/components/datadisplay/dataeditor.pyi +40 -54
- reflex/components/datadisplay/logo.py +13 -8
- reflex/components/datadisplay/shiki_code_block.py +14 -9
- reflex/components/datadisplay/shiki_code_block.pyi +46 -46
- reflex/components/dynamic.py +22 -3
- reflex/components/el/constants/reflex.py +1 -1
- reflex/components/el/element.py +1 -1
- reflex/components/el/element.pyi +16 -16
- reflex/components/el/elements/base.pyi +16 -16
- reflex/components/el/elements/forms.py +4 -4
- reflex/components/el/elements/forms.pyi +224 -258
- reflex/components/el/elements/inline.pyi +421 -421
- reflex/components/el/elements/media.pyi +376 -376
- reflex/components/el/elements/metadata.pyi +91 -91
- reflex/components/el/elements/other.pyi +106 -106
- reflex/components/el/elements/scripts.pyi +46 -46
- reflex/components/el/elements/sectioning.pyi +226 -226
- reflex/components/el/elements/tables.pyi +151 -151
- reflex/components/el/elements/typography.pyi +226 -226
- reflex/components/gridjs/datatable.pyi +31 -31
- reflex/components/lucide/icon.py +46 -8
- reflex/components/lucide/icon.pyi +85 -31
- reflex/components/markdown/markdown.py +10 -8
- reflex/components/markdown/markdown.pyi +16 -16
- reflex/components/moment/moment.py +2 -2
- reflex/components/moment/moment.pyi +17 -19
- reflex/components/next/base.pyi +16 -16
- reflex/components/next/image.py +16 -4
- reflex/components/next/image.pyi +22 -20
- reflex/components/next/link.py +1 -1
- reflex/components/next/link.pyi +16 -16
- reflex/components/next/video.pyi +16 -16
- reflex/components/plotly/__init__.py +29 -2
- reflex/components/plotly/plotly.py +240 -5
- reflex/components/plotly/plotly.pyi +799 -44
- reflex/components/props.py +3 -3
- reflex/components/radix/__init__.pyi +1 -1
- reflex/components/radix/primitives/accordion.py +9 -5
- reflex/components/radix/primitives/accordion.pyi +110 -108
- reflex/components/radix/primitives/base.pyi +31 -31
- reflex/components/radix/primitives/drawer.py +5 -2
- reflex/components/radix/primitives/drawer.pyi +179 -187
- reflex/components/radix/primitives/form.pyi +160 -172
- reflex/components/radix/primitives/progress.py +1 -1
- reflex/components/radix/primitives/progress.pyi +76 -76
- reflex/components/radix/primitives/slider.py +1 -1
- reflex/components/radix/primitives/slider.pyi +78 -82
- reflex/components/radix/themes/base.pyi +121 -121
- reflex/components/radix/themes/color_mode.py +11 -9
- reflex/components/radix/themes/color_mode.pyi +47 -49
- reflex/components/radix/themes/components/alert_dialog.py +3 -0
- reflex/components/radix/themes/components/alert_dialog.pyi +110 -112
- reflex/components/radix/themes/components/aspect_ratio.pyi +16 -16
- reflex/components/radix/themes/components/avatar.pyi +16 -16
- reflex/components/radix/themes/components/badge.pyi +16 -16
- reflex/components/radix/themes/components/button.pyi +16 -16
- reflex/components/radix/themes/components/callout.pyi +76 -76
- reflex/components/radix/themes/components/card.py +1 -1
- reflex/components/radix/themes/components/card.pyi +17 -17
- reflex/components/radix/themes/components/checkbox.pyi +49 -55
- reflex/components/radix/themes/components/checkbox_cards.pyi +31 -31
- reflex/components/radix/themes/components/checkbox_group.pyi +31 -31
- reflex/components/radix/themes/components/context_menu.py +5 -0
- reflex/components/radix/themes/components/context_menu.pyi +149 -155
- reflex/components/radix/themes/components/data_list.pyi +61 -61
- reflex/components/radix/themes/components/dialog.py +3 -0
- reflex/components/radix/themes/components/dialog.pyi +113 -117
- reflex/components/radix/themes/components/dropdown_menu.py +5 -0
- reflex/components/radix/themes/components/dropdown_menu.pyi +133 -137
- reflex/components/radix/themes/components/hover_card.py +3 -0
- reflex/components/radix/themes/components/hover_card.pyi +63 -67
- reflex/components/radix/themes/components/icon_button.py +2 -2
- reflex/components/radix/themes/components/icon_button.pyi +17 -16
- reflex/components/radix/themes/components/inset.pyi +16 -16
- reflex/components/radix/themes/components/popover.py +3 -0
- reflex/components/radix/themes/components/popover.pyi +68 -70
- reflex/components/radix/themes/components/progress.pyi +16 -16
- reflex/components/radix/themes/components/radio.pyi +16 -16
- reflex/components/radix/themes/components/radio_cards.py +2 -0
- reflex/components/radix/themes/components/radio_cards.pyi +32 -34
- reflex/components/radix/themes/components/radio_group.py +1 -1
- reflex/components/radix/themes/components/radio_group.pyi +62 -64
- reflex/components/radix/themes/components/scroll_area.pyi +16 -16
- reflex/components/radix/themes/components/segmented_control.pyi +32 -35
- reflex/components/radix/themes/components/select.py +4 -0
- reflex/components/radix/themes/components/select.pyi +145 -157
- reflex/components/radix/themes/components/separator.pyi +16 -16
- reflex/components/radix/themes/components/skeleton.py +3 -0
- reflex/components/radix/themes/components/skeleton.pyi +16 -16
- reflex/components/radix/themes/components/slider.pyi +22 -28
- reflex/components/radix/themes/components/spinner.pyi +16 -16
- reflex/components/radix/themes/components/switch.pyi +17 -19
- reflex/components/radix/themes/components/table.pyi +106 -106
- reflex/components/radix/themes/components/tabs.py +3 -0
- reflex/components/radix/themes/components/tabs.pyi +78 -82
- reflex/components/radix/themes/components/text_area.py +12 -0
- reflex/components/radix/themes/components/text_area.pyi +21 -33
- reflex/components/radix/themes/components/text_field.py +1 -1
- reflex/components/radix/themes/components/text_field.pyi +52 -80
- reflex/components/radix/themes/components/tooltip.py +6 -1
- reflex/components/radix/themes/components/tooltip.pyi +20 -21
- reflex/components/radix/themes/layout/__init__.pyi +1 -1
- reflex/components/radix/themes/layout/base.pyi +16 -16
- reflex/components/radix/themes/layout/box.pyi +16 -16
- reflex/components/radix/themes/layout/center.pyi +16 -16
- reflex/components/radix/themes/layout/container.pyi +16 -16
- reflex/components/radix/themes/layout/flex.pyi +16 -16
- reflex/components/radix/themes/layout/grid.pyi +16 -16
- reflex/components/radix/themes/layout/list.py +2 -2
- reflex/components/radix/themes/layout/list.pyi +76 -76
- reflex/components/radix/themes/layout/section.pyi +16 -16
- reflex/components/radix/themes/layout/spacer.pyi +16 -16
- reflex/components/radix/themes/layout/stack.py +2 -2
- reflex/components/radix/themes/layout/stack.pyi +46 -46
- reflex/components/radix/themes/typography/blockquote.pyi +16 -16
- reflex/components/radix/themes/typography/code.pyi +16 -16
- reflex/components/radix/themes/typography/heading.pyi +16 -16
- reflex/components/radix/themes/typography/link.py +1 -1
- reflex/components/radix/themes/typography/link.pyi +16 -16
- reflex/components/radix/themes/typography/text.py +2 -2
- reflex/components/radix/themes/typography/text.pyi +106 -106
- reflex/components/react_player/audio.pyi +33 -39
- reflex/components/react_player/react_player.py +1 -1
- reflex/components/react_player/react_player.pyi +32 -38
- reflex/components/react_player/video.pyi +33 -39
- reflex/components/recharts/__init__.py +2 -0
- reflex/components/recharts/__init__.pyi +2 -0
- reflex/components/recharts/cartesian.pyi +282 -282
- reflex/components/recharts/charts.py +15 -15
- reflex/components/recharts/charts.pyi +164 -164
- reflex/components/recharts/general.py +19 -4
- reflex/components/recharts/general.pyi +132 -81
- reflex/components/recharts/polar.py +2 -2
- reflex/components/recharts/polar.pyi +55 -55
- reflex/components/recharts/recharts.py +4 -4
- reflex/components/recharts/recharts.pyi +31 -31
- reflex/components/sonner/toast.py +15 -13
- reflex/components/sonner/toast.pyi +22 -22
- reflex/components/suneditor/editor.py +6 -4
- reflex/components/suneditor/editor.pyi +26 -40
- reflex/components/tags/iter_tag.py +3 -3
- reflex/components/tags/tag.py +25 -3
- reflex/config.py +48 -20
- reflex/constants/__init__.py +1 -0
- reflex/constants/base.py +4 -1
- reflex/constants/compiler.py +5 -2
- reflex/constants/config.py +8 -1
- reflex/constants/installer.py +9 -9
- reflex/constants/style.py +1 -1
- reflex/custom_components/custom_components.py +18 -10
- reflex/event.py +228 -233
- reflex/experimental/__init__.py +19 -11
- reflex/experimental/client_state.py +53 -28
- reflex/experimental/hooks.py +5 -5
- reflex/experimental/layout.py +8 -5
- reflex/experimental/layout.pyi +79 -83
- reflex/experimental/misc.py +3 -3
- reflex/istate/wrappers.py +1 -1
- reflex/middleware/hydrate_middleware.py +2 -2
- reflex/model.py +11 -6
- reflex/page.py +5 -5
- reflex/reflex.py +104 -26
- reflex/route.py +1 -1
- reflex/state.py +358 -401
- reflex/style.py +27 -3
- reflex/testing.py +34 -39
- reflex/utils/build.py +6 -2
- reflex/utils/codespaces.py +1 -4
- reflex/utils/compat.py +6 -5
- reflex/utils/console.py +71 -21
- reflex/utils/exceptions.py +89 -26
- reflex/utils/exec.py +69 -74
- reflex/utils/export.py +6 -1
- reflex/utils/format.py +8 -40
- reflex/utils/imports.py +5 -2
- reflex/utils/lazy_loader.py +7 -1
- reflex/utils/path_ops.py +74 -14
- reflex/utils/prerequisites.py +345 -68
- reflex/utils/processes.py +45 -32
- reflex/utils/pyi_generator.py +39 -33
- reflex/utils/registry.py +4 -4
- reflex/utils/serializers.py +1 -1
- reflex/utils/telemetry.py +5 -4
- reflex/utils/types.py +42 -18
- reflex/vars/base.py +695 -330
- reflex/vars/datetime.py +6 -7
- reflex/vars/dep_tracking.py +344 -0
- reflex/vars/function.py +11 -5
- reflex/vars/number.py +31 -43
- reflex/vars/object.py +74 -64
- reflex/vars/sequence.py +79 -67
- {reflex-0.6.8a1.dist-info → reflex-0.7.0.dist-info}/METADATA +7 -10
- reflex-0.7.0.dist-info/RECORD +401 -0
- {reflex-0.6.8a1.dist-info → reflex-0.7.0.dist-info}/WHEEL +1 -1
- reflex/experimental/assets.py +0 -37
- reflex/proxy.py +0 -119
- reflex-0.6.8a1.dist-info/RECORD +0 -398
- {reflex-0.6.8a1.dist-info → reflex-0.7.0.dist-info}/LICENSE +0 -0
- {reflex-0.6.8a1.dist-info → reflex-0.7.0.dist-info}/entry_points.txt +0 -0
|
@@ -8,7 +8,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
8
8
|
from reflex.components.component import ComponentNamespace
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
10
|
from reflex.components.el import elements
|
|
11
|
-
from reflex.event import
|
|
11
|
+
from reflex.event import EventType
|
|
12
12
|
from reflex.style import Style
|
|
13
13
|
from reflex.vars.base import Var
|
|
14
14
|
|
|
@@ -133,21 +133,21 @@ class CalloutRoot(elements.Div, RadixThemesComponent):
|
|
|
133
133
|
class_name: Optional[Any] = None,
|
|
134
134
|
autofocus: Optional[bool] = None,
|
|
135
135
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
136
|
-
on_blur: Optional[EventType[
|
|
137
|
-
on_click: Optional[EventType[
|
|
138
|
-
on_context_menu: Optional[EventType[
|
|
139
|
-
on_double_click: Optional[EventType[
|
|
140
|
-
on_focus: Optional[EventType[
|
|
141
|
-
on_mount: Optional[EventType[
|
|
142
|
-
on_mouse_down: Optional[EventType[
|
|
143
|
-
on_mouse_enter: Optional[EventType[
|
|
144
|
-
on_mouse_leave: Optional[EventType[
|
|
145
|
-
on_mouse_move: Optional[EventType[
|
|
146
|
-
on_mouse_out: Optional[EventType[
|
|
147
|
-
on_mouse_over: Optional[EventType[
|
|
148
|
-
on_mouse_up: Optional[EventType[
|
|
149
|
-
on_scroll: Optional[EventType[
|
|
150
|
-
on_unmount: Optional[EventType[
|
|
136
|
+
on_blur: Optional[EventType[()]] = None,
|
|
137
|
+
on_click: Optional[EventType[()]] = None,
|
|
138
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
139
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
140
|
+
on_focus: Optional[EventType[()]] = None,
|
|
141
|
+
on_mount: Optional[EventType[()]] = None,
|
|
142
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
143
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
144
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
145
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
146
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
147
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
148
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
149
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
150
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
151
151
|
**props,
|
|
152
152
|
) -> "CalloutRoot":
|
|
153
153
|
"""Create a new component instance.
|
|
@@ -227,21 +227,21 @@ class CalloutIcon(elements.Div, RadixThemesComponent):
|
|
|
227
227
|
class_name: Optional[Any] = None,
|
|
228
228
|
autofocus: Optional[bool] = None,
|
|
229
229
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
230
|
-
on_blur: Optional[EventType[
|
|
231
|
-
on_click: Optional[EventType[
|
|
232
|
-
on_context_menu: Optional[EventType[
|
|
233
|
-
on_double_click: Optional[EventType[
|
|
234
|
-
on_focus: Optional[EventType[
|
|
235
|
-
on_mount: Optional[EventType[
|
|
236
|
-
on_mouse_down: Optional[EventType[
|
|
237
|
-
on_mouse_enter: Optional[EventType[
|
|
238
|
-
on_mouse_leave: Optional[EventType[
|
|
239
|
-
on_mouse_move: Optional[EventType[
|
|
240
|
-
on_mouse_out: Optional[EventType[
|
|
241
|
-
on_mouse_over: Optional[EventType[
|
|
242
|
-
on_mouse_up: Optional[EventType[
|
|
243
|
-
on_scroll: Optional[EventType[
|
|
244
|
-
on_unmount: Optional[EventType[
|
|
230
|
+
on_blur: Optional[EventType[()]] = None,
|
|
231
|
+
on_click: Optional[EventType[()]] = None,
|
|
232
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
233
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
234
|
+
on_focus: Optional[EventType[()]] = None,
|
|
235
|
+
on_mount: Optional[EventType[()]] = None,
|
|
236
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
237
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
238
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
239
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
240
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
241
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
242
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
243
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
244
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
245
245
|
**props,
|
|
246
246
|
) -> "CalloutIcon":
|
|
247
247
|
"""Create a new component instance.
|
|
@@ -316,21 +316,21 @@ class CalloutText(elements.P, RadixThemesComponent):
|
|
|
316
316
|
class_name: Optional[Any] = None,
|
|
317
317
|
autofocus: Optional[bool] = None,
|
|
318
318
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
319
|
-
on_blur: Optional[EventType[
|
|
320
|
-
on_click: Optional[EventType[
|
|
321
|
-
on_context_menu: Optional[EventType[
|
|
322
|
-
on_double_click: Optional[EventType[
|
|
323
|
-
on_focus: Optional[EventType[
|
|
324
|
-
on_mount: Optional[EventType[
|
|
325
|
-
on_mouse_down: Optional[EventType[
|
|
326
|
-
on_mouse_enter: Optional[EventType[
|
|
327
|
-
on_mouse_leave: Optional[EventType[
|
|
328
|
-
on_mouse_move: Optional[EventType[
|
|
329
|
-
on_mouse_out: Optional[EventType[
|
|
330
|
-
on_mouse_over: Optional[EventType[
|
|
331
|
-
on_mouse_up: Optional[EventType[
|
|
332
|
-
on_scroll: Optional[EventType[
|
|
333
|
-
on_unmount: Optional[EventType[
|
|
319
|
+
on_blur: Optional[EventType[()]] = None,
|
|
320
|
+
on_click: Optional[EventType[()]] = None,
|
|
321
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
322
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
323
|
+
on_focus: Optional[EventType[()]] = None,
|
|
324
|
+
on_mount: Optional[EventType[()]] = None,
|
|
325
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
326
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
327
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
328
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
329
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
330
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
331
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
332
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
333
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
334
334
|
**props,
|
|
335
335
|
) -> "CalloutText":
|
|
336
336
|
"""Create a new component instance.
|
|
@@ -488,21 +488,21 @@ class Callout(CalloutRoot):
|
|
|
488
488
|
class_name: Optional[Any] = None,
|
|
489
489
|
autofocus: Optional[bool] = None,
|
|
490
490
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
491
|
-
on_blur: Optional[EventType[
|
|
492
|
-
on_click: Optional[EventType[
|
|
493
|
-
on_context_menu: Optional[EventType[
|
|
494
|
-
on_double_click: Optional[EventType[
|
|
495
|
-
on_focus: Optional[EventType[
|
|
496
|
-
on_mount: Optional[EventType[
|
|
497
|
-
on_mouse_down: Optional[EventType[
|
|
498
|
-
on_mouse_enter: Optional[EventType[
|
|
499
|
-
on_mouse_leave: Optional[EventType[
|
|
500
|
-
on_mouse_move: Optional[EventType[
|
|
501
|
-
on_mouse_out: Optional[EventType[
|
|
502
|
-
on_mouse_over: Optional[EventType[
|
|
503
|
-
on_mouse_up: Optional[EventType[
|
|
504
|
-
on_scroll: Optional[EventType[
|
|
505
|
-
on_unmount: Optional[EventType[
|
|
491
|
+
on_blur: Optional[EventType[()]] = None,
|
|
492
|
+
on_click: Optional[EventType[()]] = None,
|
|
493
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
494
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
495
|
+
on_focus: Optional[EventType[()]] = None,
|
|
496
|
+
on_mount: Optional[EventType[()]] = None,
|
|
497
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
498
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
499
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
500
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
501
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
502
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
503
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
504
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
505
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
506
506
|
**props,
|
|
507
507
|
) -> "Callout":
|
|
508
508
|
"""Create a callout component.
|
|
@@ -666,21 +666,21 @@ class CalloutNamespace(ComponentNamespace):
|
|
|
666
666
|
class_name: Optional[Any] = None,
|
|
667
667
|
autofocus: Optional[bool] = None,
|
|
668
668
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
669
|
-
on_blur: Optional[EventType[
|
|
670
|
-
on_click: Optional[EventType[
|
|
671
|
-
on_context_menu: Optional[EventType[
|
|
672
|
-
on_double_click: Optional[EventType[
|
|
673
|
-
on_focus: Optional[EventType[
|
|
674
|
-
on_mount: Optional[EventType[
|
|
675
|
-
on_mouse_down: Optional[EventType[
|
|
676
|
-
on_mouse_enter: Optional[EventType[
|
|
677
|
-
on_mouse_leave: Optional[EventType[
|
|
678
|
-
on_mouse_move: Optional[EventType[
|
|
679
|
-
on_mouse_out: Optional[EventType[
|
|
680
|
-
on_mouse_over: Optional[EventType[
|
|
681
|
-
on_mouse_up: Optional[EventType[
|
|
682
|
-
on_scroll: Optional[EventType[
|
|
683
|
-
on_unmount: Optional[EventType[
|
|
669
|
+
on_blur: Optional[EventType[()]] = None,
|
|
670
|
+
on_click: Optional[EventType[()]] = None,
|
|
671
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
672
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
673
|
+
on_focus: Optional[EventType[()]] = None,
|
|
674
|
+
on_mount: Optional[EventType[()]] = None,
|
|
675
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
676
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
677
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
678
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
679
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
680
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
681
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
682
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
683
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
684
684
|
**props,
|
|
685
685
|
) -> "Callout":
|
|
686
686
|
"""Create a callout component.
|
|
@@ -20,7 +20,7 @@ class Card(elements.Div, RadixThemesComponent):
|
|
|
20
20
|
# Card size: "1" - "5"
|
|
21
21
|
size: Var[Responsive[Literal["1", "2", "3", "4", "5"],]]
|
|
22
22
|
|
|
23
|
-
# Variant of Card: "
|
|
23
|
+
# Variant of Card: "surface" | "classic" | "ghost"
|
|
24
24
|
variant: Var[Literal["surface", "classic", "ghost"]]
|
|
25
25
|
|
|
26
26
|
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
7
7
|
|
|
8
8
|
from reflex.components.core.breakpoints import Breakpoints
|
|
9
9
|
from reflex.components.el import elements
|
|
10
|
-
from reflex.event import
|
|
10
|
+
from reflex.event import EventType
|
|
11
11
|
from reflex.style import Style
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
@@ -68,21 +68,21 @@ class Card(elements.Div, RadixThemesComponent):
|
|
|
68
68
|
class_name: Optional[Any] = None,
|
|
69
69
|
autofocus: Optional[bool] = None,
|
|
70
70
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
71
|
-
on_blur: Optional[EventType[
|
|
72
|
-
on_click: Optional[EventType[
|
|
73
|
-
on_context_menu: Optional[EventType[
|
|
74
|
-
on_double_click: Optional[EventType[
|
|
75
|
-
on_focus: Optional[EventType[
|
|
76
|
-
on_mount: Optional[EventType[
|
|
77
|
-
on_mouse_down: Optional[EventType[
|
|
78
|
-
on_mouse_enter: Optional[EventType[
|
|
79
|
-
on_mouse_leave: Optional[EventType[
|
|
80
|
-
on_mouse_move: Optional[EventType[
|
|
81
|
-
on_mouse_out: Optional[EventType[
|
|
82
|
-
on_mouse_over: Optional[EventType[
|
|
83
|
-
on_mouse_up: Optional[EventType[
|
|
84
|
-
on_scroll: Optional[EventType[
|
|
85
|
-
on_unmount: Optional[EventType[
|
|
71
|
+
on_blur: Optional[EventType[()]] = None,
|
|
72
|
+
on_click: Optional[EventType[()]] = None,
|
|
73
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
74
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
75
|
+
on_focus: Optional[EventType[()]] = None,
|
|
76
|
+
on_mount: Optional[EventType[()]] = None,
|
|
77
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
78
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
79
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
80
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
81
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
82
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
83
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
84
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
85
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
86
86
|
**props,
|
|
87
87
|
) -> "Card":
|
|
88
88
|
"""Create a new component instance.
|
|
@@ -94,7 +94,7 @@ class Card(elements.Div, RadixThemesComponent):
|
|
|
94
94
|
*children: Child components.
|
|
95
95
|
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
96
96
|
size: Card size: "1" - "5"
|
|
97
|
-
variant: Variant of Card: "
|
|
97
|
+
variant: Variant of Card: "surface" | "classic" | "ghost"
|
|
98
98
|
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
99
99
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
100
100
|
content_editable: Indicates whether the element's content is editable.
|
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import ComponentNamespace
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
|
-
from reflex.event import
|
|
10
|
+
from reflex.event import EventType
|
|
11
11
|
from reflex.style import Style
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
@@ -115,24 +115,22 @@ class Checkbox(RadixThemesComponent):
|
|
|
115
115
|
class_name: Optional[Any] = None,
|
|
116
116
|
autofocus: Optional[bool] = None,
|
|
117
117
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
118
|
-
on_blur: Optional[EventType[
|
|
119
|
-
on_change: Optional[
|
|
120
|
-
|
|
121
|
-
] = None,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
135
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
118
|
+
on_blur: Optional[EventType[()]] = None,
|
|
119
|
+
on_change: Optional[Union[EventType[()], EventType[bool]]] = None,
|
|
120
|
+
on_click: Optional[EventType[()]] = None,
|
|
121
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
122
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
123
|
+
on_focus: Optional[EventType[()]] = None,
|
|
124
|
+
on_mount: Optional[EventType[()]] = None,
|
|
125
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
126
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
127
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
128
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
129
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
130
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
131
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
132
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
133
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
136
134
|
**props,
|
|
137
135
|
) -> "Checkbox":
|
|
138
136
|
"""Create a new component instance.
|
|
@@ -265,24 +263,22 @@ class HighLevelCheckbox(RadixThemesComponent):
|
|
|
265
263
|
class_name: Optional[Any] = None,
|
|
266
264
|
autofocus: Optional[bool] = None,
|
|
267
265
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
268
|
-
on_blur: Optional[EventType[
|
|
269
|
-
on_change: Optional[
|
|
270
|
-
|
|
271
|
-
] = None,
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
285
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
266
|
+
on_blur: Optional[EventType[()]] = None,
|
|
267
|
+
on_change: Optional[Union[EventType[()], EventType[bool]]] = None,
|
|
268
|
+
on_click: Optional[EventType[()]] = None,
|
|
269
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
270
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
271
|
+
on_focus: Optional[EventType[()]] = None,
|
|
272
|
+
on_mount: Optional[EventType[()]] = None,
|
|
273
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
274
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
275
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
276
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
277
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
278
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
279
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
280
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
281
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
286
282
|
**props,
|
|
287
283
|
) -> "HighLevelCheckbox":
|
|
288
284
|
"""Create a checkbox with a label.
|
|
@@ -412,24 +408,22 @@ class CheckboxNamespace(ComponentNamespace):
|
|
|
412
408
|
class_name: Optional[Any] = None,
|
|
413
409
|
autofocus: Optional[bool] = None,
|
|
414
410
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
415
|
-
on_blur: Optional[EventType[
|
|
416
|
-
on_change: Optional[
|
|
417
|
-
|
|
418
|
-
] = None,
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
on_scroll: Optional[EventType[[], BASE_STATE]] = None,
|
|
432
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
411
|
+
on_blur: Optional[EventType[()]] = None,
|
|
412
|
+
on_change: Optional[Union[EventType[()], EventType[bool]]] = None,
|
|
413
|
+
on_click: Optional[EventType[()]] = None,
|
|
414
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
415
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
416
|
+
on_focus: Optional[EventType[()]] = None,
|
|
417
|
+
on_mount: Optional[EventType[()]] = None,
|
|
418
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
419
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
420
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
421
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
422
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
423
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
424
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
425
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
426
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
433
427
|
**props,
|
|
434
428
|
) -> "HighLevelCheckbox":
|
|
435
429
|
"""Create a checkbox with a label.
|
|
@@ -7,7 +7,7 @@ from types import SimpleNamespace
|
|
|
7
7
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
|
8
8
|
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
|
-
from reflex.event import
|
|
10
|
+
from reflex.event import EventType
|
|
11
11
|
from reflex.style import Style
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
@@ -148,21 +148,21 @@ class CheckboxCardsRoot(RadixThemesComponent):
|
|
|
148
148
|
class_name: Optional[Any] = None,
|
|
149
149
|
autofocus: Optional[bool] = None,
|
|
150
150
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
151
|
-
on_blur: Optional[EventType[
|
|
152
|
-
on_click: Optional[EventType[
|
|
153
|
-
on_context_menu: Optional[EventType[
|
|
154
|
-
on_double_click: Optional[EventType[
|
|
155
|
-
on_focus: Optional[EventType[
|
|
156
|
-
on_mount: Optional[EventType[
|
|
157
|
-
on_mouse_down: Optional[EventType[
|
|
158
|
-
on_mouse_enter: Optional[EventType[
|
|
159
|
-
on_mouse_leave: Optional[EventType[
|
|
160
|
-
on_mouse_move: Optional[EventType[
|
|
161
|
-
on_mouse_out: Optional[EventType[
|
|
162
|
-
on_mouse_over: Optional[EventType[
|
|
163
|
-
on_mouse_up: Optional[EventType[
|
|
164
|
-
on_scroll: Optional[EventType[
|
|
165
|
-
on_unmount: Optional[EventType[
|
|
151
|
+
on_blur: Optional[EventType[()]] = None,
|
|
152
|
+
on_click: Optional[EventType[()]] = None,
|
|
153
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
154
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
155
|
+
on_focus: Optional[EventType[()]] = None,
|
|
156
|
+
on_mount: Optional[EventType[()]] = None,
|
|
157
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
158
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
159
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
160
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
161
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
162
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
163
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
164
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
165
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
166
166
|
**props,
|
|
167
167
|
) -> "CheckboxCardsRoot":
|
|
168
168
|
"""Create a new component instance.
|
|
@@ -203,21 +203,21 @@ class CheckboxCardsItem(RadixThemesComponent):
|
|
|
203
203
|
class_name: Optional[Any] = None,
|
|
204
204
|
autofocus: Optional[bool] = None,
|
|
205
205
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
206
|
-
on_blur: Optional[EventType[
|
|
207
|
-
on_click: Optional[EventType[
|
|
208
|
-
on_context_menu: Optional[EventType[
|
|
209
|
-
on_double_click: Optional[EventType[
|
|
210
|
-
on_focus: Optional[EventType[
|
|
211
|
-
on_mount: Optional[EventType[
|
|
212
|
-
on_mouse_down: Optional[EventType[
|
|
213
|
-
on_mouse_enter: Optional[EventType[
|
|
214
|
-
on_mouse_leave: Optional[EventType[
|
|
215
|
-
on_mouse_move: Optional[EventType[
|
|
216
|
-
on_mouse_out: Optional[EventType[
|
|
217
|
-
on_mouse_over: Optional[EventType[
|
|
218
|
-
on_mouse_up: Optional[EventType[
|
|
219
|
-
on_scroll: Optional[EventType[
|
|
220
|
-
on_unmount: Optional[EventType[
|
|
206
|
+
on_blur: Optional[EventType[()]] = None,
|
|
207
|
+
on_click: Optional[EventType[()]] = None,
|
|
208
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
209
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
210
|
+
on_focus: Optional[EventType[()]] = None,
|
|
211
|
+
on_mount: Optional[EventType[()]] = None,
|
|
212
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
213
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
214
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
215
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
216
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
217
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
218
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
219
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
220
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
221
221
|
**props,
|
|
222
222
|
) -> "CheckboxCardsItem":
|
|
223
223
|
"""Create a new component instance.
|
|
@@ -7,7 +7,7 @@ from types import SimpleNamespace
|
|
|
7
7
|
from typing import Any, Dict, List, Literal, Optional, Union, overload
|
|
8
8
|
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
|
-
from reflex.event import
|
|
10
|
+
from reflex.event import EventType
|
|
11
11
|
from reflex.style import Style
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
@@ -107,21 +107,21 @@ class CheckboxGroupRoot(RadixThemesComponent):
|
|
|
107
107
|
class_name: Optional[Any] = None,
|
|
108
108
|
autofocus: Optional[bool] = None,
|
|
109
109
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
110
|
-
on_blur: Optional[EventType[
|
|
111
|
-
on_click: Optional[EventType[
|
|
112
|
-
on_context_menu: Optional[EventType[
|
|
113
|
-
on_double_click: Optional[EventType[
|
|
114
|
-
on_focus: Optional[EventType[
|
|
115
|
-
on_mount: Optional[EventType[
|
|
116
|
-
on_mouse_down: Optional[EventType[
|
|
117
|
-
on_mouse_enter: Optional[EventType[
|
|
118
|
-
on_mouse_leave: Optional[EventType[
|
|
119
|
-
on_mouse_move: Optional[EventType[
|
|
120
|
-
on_mouse_out: Optional[EventType[
|
|
121
|
-
on_mouse_over: Optional[EventType[
|
|
122
|
-
on_mouse_up: Optional[EventType[
|
|
123
|
-
on_scroll: Optional[EventType[
|
|
124
|
-
on_unmount: Optional[EventType[
|
|
110
|
+
on_blur: Optional[EventType[()]] = None,
|
|
111
|
+
on_click: Optional[EventType[()]] = None,
|
|
112
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
113
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
114
|
+
on_focus: Optional[EventType[()]] = None,
|
|
115
|
+
on_mount: Optional[EventType[()]] = None,
|
|
116
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
117
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
118
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
119
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
120
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
121
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
122
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
123
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
124
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
125
125
|
**props,
|
|
126
126
|
) -> "CheckboxGroupRoot":
|
|
127
127
|
"""Create a new component instance.
|
|
@@ -164,21 +164,21 @@ class CheckboxGroupItem(RadixThemesComponent):
|
|
|
164
164
|
class_name: Optional[Any] = None,
|
|
165
165
|
autofocus: Optional[bool] = None,
|
|
166
166
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
167
|
-
on_blur: Optional[EventType[
|
|
168
|
-
on_click: Optional[EventType[
|
|
169
|
-
on_context_menu: Optional[EventType[
|
|
170
|
-
on_double_click: Optional[EventType[
|
|
171
|
-
on_focus: Optional[EventType[
|
|
172
|
-
on_mount: Optional[EventType[
|
|
173
|
-
on_mouse_down: Optional[EventType[
|
|
174
|
-
on_mouse_enter: Optional[EventType[
|
|
175
|
-
on_mouse_leave: Optional[EventType[
|
|
176
|
-
on_mouse_move: Optional[EventType[
|
|
177
|
-
on_mouse_out: Optional[EventType[
|
|
178
|
-
on_mouse_over: Optional[EventType[
|
|
179
|
-
on_mouse_up: Optional[EventType[
|
|
180
|
-
on_scroll: Optional[EventType[
|
|
181
|
-
on_unmount: Optional[EventType[
|
|
167
|
+
on_blur: Optional[EventType[()]] = None,
|
|
168
|
+
on_click: Optional[EventType[()]] = None,
|
|
169
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
170
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
171
|
+
on_focus: Optional[EventType[()]] = None,
|
|
172
|
+
on_mount: Optional[EventType[()]] = None,
|
|
173
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
174
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
175
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
176
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
177
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
178
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
179
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
180
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
181
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
182
182
|
**props,
|
|
183
183
|
) -> "CheckboxGroupItem":
|
|
184
184
|
"""Create a new component instance.
|
|
@@ -4,6 +4,7 @@ from typing import Dict, List, Literal, Union
|
|
|
4
4
|
|
|
5
5
|
from reflex.components.component import ComponentNamespace
|
|
6
6
|
from reflex.components.core.breakpoints import Responsive
|
|
7
|
+
from reflex.constants.compiler import MemoizationMode
|
|
7
8
|
from reflex.event import EventHandler, no_args_event_spec, passthrough_event_spec
|
|
8
9
|
from reflex.vars.base import Var
|
|
9
10
|
|
|
@@ -55,6 +56,8 @@ class ContextMenuTrigger(RadixThemesComponent):
|
|
|
55
56
|
|
|
56
57
|
_invalid_children: List[str] = ["ContextMenuContent"]
|
|
57
58
|
|
|
59
|
+
_memoization_mode = MemoizationMode(recursive=False)
|
|
60
|
+
|
|
58
61
|
|
|
59
62
|
class ContextMenuContent(RadixThemesComponent):
|
|
60
63
|
"""The component that pops out when the context menu is open."""
|
|
@@ -153,6 +156,8 @@ class ContextMenuSubTrigger(RadixThemesComponent):
|
|
|
153
156
|
|
|
154
157
|
_valid_parents: List[str] = ["ContextMenuContent", "ContextMenuSub"]
|
|
155
158
|
|
|
159
|
+
_memoization_mode = MemoizationMode(recursive=False)
|
|
160
|
+
|
|
156
161
|
|
|
157
162
|
class ContextMenuSubContent(RadixThemesComponent):
|
|
158
163
|
"""The component that pops out when a submenu is open."""
|