reflex 0.7.0a1__py3-none-any.whl → 0.7.0a3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of reflex might be problematic. Click here for more details.
- reflex/.templates/jinja/web/pages/utils.js.jinja2 +1 -1
- reflex/app.py +6 -8
- reflex/components/base/app_wrap.pyi +16 -16
- reflex/components/base/body.pyi +16 -16
- reflex/components/base/document.pyi +76 -76
- reflex/components/base/error_boundary.pyi +17 -21
- 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.pyi +61 -61
- reflex/components/base/script.pyi +19 -19
- reflex/components/base/strict_mode.pyi +16 -16
- reflex/components/core/banner.py +95 -19
- reflex/components/core/banner.pyi +91 -91
- reflex/components/core/client_side_routing.pyi +31 -31
- reflex/components/core/clipboard.pyi +17 -20
- reflex/components/core/debounce.pyi +17 -17
- reflex/components/core/foreach.py +5 -0
- reflex/components/core/html.pyi +16 -16
- reflex/components/core/sticky.pyi +61 -61
- reflex/components/core/upload.pyi +80 -88
- reflex/components/datadisplay/code.pyi +31 -31
- reflex/components/datadisplay/dataeditor.pyi +40 -54
- reflex/components/datadisplay/shiki_code_block.pyi +46 -46
- reflex/components/el/element.pyi +16 -16
- reflex/components/el/elements/base.pyi +16 -16
- reflex/components/el/elements/forms.pyi +222 -256
- 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.pyi +46 -46
- reflex/components/markdown/markdown.pyi +16 -16
- reflex/components/moment/moment.pyi +17 -19
- reflex/components/next/base.pyi +16 -16
- reflex/components/next/image.pyi +18 -18
- reflex/components/next/link.pyi +16 -16
- reflex/components/next/video.pyi +16 -16
- reflex/components/plotly/plotly.pyi +34 -44
- reflex/components/radix/primitives/accordion.pyi +107 -107
- reflex/components/radix/primitives/base.pyi +31 -31
- reflex/components/radix/primitives/drawer.pyi +175 -183
- reflex/components/radix/primitives/form.pyi +160 -172
- reflex/components/radix/primitives/progress.pyi +76 -76
- reflex/components/radix/primitives/slider.pyi +78 -82
- reflex/components/radix/themes/base.pyi +121 -121
- reflex/components/radix/themes/color_mode.pyi +47 -49
- 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.pyi +16 -16
- 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.pyi +149 -155
- reflex/components/radix/themes/components/data_list.pyi +61 -61
- reflex/components/radix/themes/components/dialog.pyi +113 -117
- reflex/components/radix/themes/components/dropdown_menu.pyi +133 -137
- reflex/components/radix/themes/components/hover_card.pyi +63 -67
- reflex/components/radix/themes/components/icon_button.pyi +16 -16
- reflex/components/radix/themes/components/inset.pyi +16 -16
- 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.pyi +32 -34
- 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 +1 -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.pyi +78 -82
- reflex/components/radix/themes/components/text_area.pyi +19 -33
- reflex/components/radix/themes/components/text_field.pyi +52 -80
- reflex/components/radix/themes/components/tooltip.py +3 -0
- reflex/components/radix/themes/components/tooltip.pyi +19 -21
- 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.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.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.pyi +16 -16
- reflex/components/radix/themes/typography/text.pyi +106 -106
- reflex/components/react_player/audio.pyi +33 -39
- reflex/components/react_player/react_player.pyi +32 -38
- reflex/components/react_player/video.pyi +33 -39
- reflex/components/recharts/cartesian.pyi +282 -282
- reflex/components/recharts/charts.pyi +164 -164
- reflex/components/recharts/general.pyi +92 -92
- reflex/components/recharts/polar.pyi +55 -55
- reflex/components/recharts/recharts.pyi +31 -31
- reflex/components/sonner/toast.pyi +16 -16
- reflex/components/suneditor/editor.pyi +24 -38
- reflex/custom_components/custom_components.py +10 -4
- reflex/event.py +89 -51
- reflex/experimental/layout.pyi +78 -82
- reflex/page.py +2 -2
- reflex/utils/exceptions.py +13 -0
- reflex/utils/format.py +1 -1
- reflex/utils/prerequisites.py +3 -3
- reflex/utils/pyi_generator.py +9 -8
- reflex/vars/base.py +10 -4
- {reflex-0.7.0a1.dist-info → reflex-0.7.0a3.dist-info}/METADATA +1 -1
- {reflex-0.7.0a1.dist-info → reflex-0.7.0a3.dist-info}/RECORD +129 -129
- {reflex-0.7.0a1.dist-info → reflex-0.7.0a3.dist-info}/LICENSE +0 -0
- {reflex-0.7.0a1.dist-info → reflex-0.7.0a3.dist-info}/WHEEL +0 -0
- {reflex-0.7.0a1.dist-info → reflex-0.7.0a3.dist-info}/entry_points.txt +0 -0
|
@@ -9,7 +9,7 @@ from typing import Any, ClassVar, Dict, Literal, Optional, Union, overload
|
|
|
9
9
|
from reflex.components.component import Component, ComponentNamespace
|
|
10
10
|
from reflex.components.markdown.markdown import MarkdownComponentMap
|
|
11
11
|
from reflex.constants.colors import Color
|
|
12
|
-
from reflex.event import
|
|
12
|
+
from reflex.event import EventType
|
|
13
13
|
from reflex.style import Style
|
|
14
14
|
from reflex.vars.base import Var
|
|
15
15
|
|
|
@@ -938,21 +938,21 @@ class CodeBlock(Component, MarkdownComponentMap):
|
|
|
938
938
|
class_name: Optional[Any] = None,
|
|
939
939
|
autofocus: Optional[bool] = None,
|
|
940
940
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
941
|
-
on_blur: Optional[EventType[
|
|
942
|
-
on_click: Optional[EventType[
|
|
943
|
-
on_context_menu: Optional[EventType[
|
|
944
|
-
on_double_click: Optional[EventType[
|
|
945
|
-
on_focus: Optional[EventType[
|
|
946
|
-
on_mount: Optional[EventType[
|
|
947
|
-
on_mouse_down: Optional[EventType[
|
|
948
|
-
on_mouse_enter: Optional[EventType[
|
|
949
|
-
on_mouse_leave: Optional[EventType[
|
|
950
|
-
on_mouse_move: Optional[EventType[
|
|
951
|
-
on_mouse_out: Optional[EventType[
|
|
952
|
-
on_mouse_over: Optional[EventType[
|
|
953
|
-
on_mouse_up: Optional[EventType[
|
|
954
|
-
on_scroll: Optional[EventType[
|
|
955
|
-
on_unmount: Optional[EventType[
|
|
941
|
+
on_blur: Optional[EventType[()]] = None,
|
|
942
|
+
on_click: Optional[EventType[()]] = None,
|
|
943
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
944
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
945
|
+
on_focus: Optional[EventType[()]] = None,
|
|
946
|
+
on_mount: Optional[EventType[()]] = None,
|
|
947
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
948
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
949
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
950
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
951
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
952
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
953
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
954
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
955
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
956
956
|
**props,
|
|
957
957
|
) -> "CodeBlock":
|
|
958
958
|
"""Create a text component.
|
|
@@ -1576,21 +1576,21 @@ class CodeblockNamespace(ComponentNamespace):
|
|
|
1576
1576
|
class_name: Optional[Any] = None,
|
|
1577
1577
|
autofocus: Optional[bool] = None,
|
|
1578
1578
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
1579
|
-
on_blur: Optional[EventType[
|
|
1580
|
-
on_click: Optional[EventType[
|
|
1581
|
-
on_context_menu: Optional[EventType[
|
|
1582
|
-
on_double_click: Optional[EventType[
|
|
1583
|
-
on_focus: Optional[EventType[
|
|
1584
|
-
on_mount: Optional[EventType[
|
|
1585
|
-
on_mouse_down: Optional[EventType[
|
|
1586
|
-
on_mouse_enter: Optional[EventType[
|
|
1587
|
-
on_mouse_leave: Optional[EventType[
|
|
1588
|
-
on_mouse_move: Optional[EventType[
|
|
1589
|
-
on_mouse_out: Optional[EventType[
|
|
1590
|
-
on_mouse_over: Optional[EventType[
|
|
1591
|
-
on_mouse_up: Optional[EventType[
|
|
1592
|
-
on_scroll: Optional[EventType[
|
|
1593
|
-
on_unmount: Optional[EventType[
|
|
1579
|
+
on_blur: Optional[EventType[()]] = None,
|
|
1580
|
+
on_click: Optional[EventType[()]] = None,
|
|
1581
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
1582
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
1583
|
+
on_focus: Optional[EventType[()]] = None,
|
|
1584
|
+
on_mount: Optional[EventType[()]] = None,
|
|
1585
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
1586
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
1587
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
1588
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
1589
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
1590
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
1591
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
1592
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
1593
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
1594
1594
|
**props,
|
|
1595
1595
|
) -> "CodeBlock":
|
|
1596
1596
|
"""Create a text component.
|
|
@@ -10,7 +10,7 @@ from typing_extensions import TypedDict
|
|
|
10
10
|
|
|
11
11
|
from reflex.base import Base
|
|
12
12
|
from reflex.components.component import NoSSRComponent
|
|
13
|
-
from reflex.event import
|
|
13
|
+
from reflex.event import EventType
|
|
14
14
|
from reflex.style import Style
|
|
15
15
|
from reflex.utils.imports import ImportDict
|
|
16
16
|
from reflex.utils.serializers import serializer
|
|
@@ -183,93 +183,79 @@ class DataEditor(NoSSRComponent):
|
|
|
183
183
|
class_name: Optional[Any] = None,
|
|
184
184
|
autofocus: Optional[bool] = None,
|
|
185
185
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
186
|
-
on_blur: Optional[EventType[
|
|
186
|
+
on_blur: Optional[EventType[()]] = None,
|
|
187
187
|
on_cell_activated: Optional[
|
|
188
|
-
Union[EventType[
|
|
188
|
+
Union[EventType[()], EventType[tuple[int, int]]]
|
|
189
189
|
] = None,
|
|
190
190
|
on_cell_clicked: Optional[
|
|
191
|
-
Union[EventType[
|
|
191
|
+
Union[EventType[()], EventType[tuple[int, int]]]
|
|
192
192
|
] = None,
|
|
193
193
|
on_cell_context_menu: Optional[
|
|
194
|
-
Union[EventType[
|
|
194
|
+
Union[EventType[()], EventType[tuple[int, int]]]
|
|
195
195
|
] = None,
|
|
196
196
|
on_cell_edited: Optional[
|
|
197
197
|
Union[
|
|
198
|
-
EventType[
|
|
199
|
-
EventType[
|
|
200
|
-
EventType[
|
|
198
|
+
EventType[()],
|
|
199
|
+
EventType[tuple[int, int]],
|
|
200
|
+
EventType[tuple[int, int], GridCell],
|
|
201
201
|
]
|
|
202
202
|
] = None,
|
|
203
|
-
on_click: Optional[EventType[
|
|
203
|
+
on_click: Optional[EventType[()]] = None,
|
|
204
204
|
on_column_resize: Optional[
|
|
205
|
-
Union[
|
|
206
|
-
EventType[[], BASE_STATE],
|
|
207
|
-
EventType[[GridColumn], BASE_STATE],
|
|
208
|
-
EventType[[GridColumn, int], BASE_STATE],
|
|
209
|
-
]
|
|
205
|
+
Union[EventType[()], EventType[GridColumn], EventType[GridColumn, int]]
|
|
210
206
|
] = None,
|
|
211
|
-
on_context_menu: Optional[EventType[
|
|
212
|
-
on_delete: Optional[
|
|
213
|
-
|
|
214
|
-
] = None,
|
|
215
|
-
on_double_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
207
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
208
|
+
on_delete: Optional[Union[EventType[()], EventType[GridSelection]]] = None,
|
|
209
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
216
210
|
on_finished_editing: Optional[
|
|
217
211
|
Union[
|
|
218
|
-
EventType[
|
|
219
|
-
EventType[
|
|
220
|
-
EventType[
|
|
212
|
+
EventType[()],
|
|
213
|
+
EventType[Union[GridCell, None]],
|
|
214
|
+
EventType[Union[GridCell, None], tuple[int, int]],
|
|
221
215
|
]
|
|
222
216
|
] = None,
|
|
223
|
-
on_focus: Optional[EventType[
|
|
217
|
+
on_focus: Optional[EventType[()]] = None,
|
|
224
218
|
on_group_header_clicked: Optional[
|
|
225
219
|
Union[
|
|
226
|
-
EventType[
|
|
227
|
-
EventType[
|
|
228
|
-
EventType[
|
|
220
|
+
EventType[()],
|
|
221
|
+
EventType[tuple[int, int]],
|
|
222
|
+
EventType[tuple[int, int], GridCell],
|
|
229
223
|
]
|
|
230
224
|
] = None,
|
|
231
225
|
on_group_header_context_menu: Optional[
|
|
232
226
|
Union[
|
|
233
|
-
EventType[
|
|
234
|
-
EventType[
|
|
235
|
-
EventType[
|
|
227
|
+
EventType[()],
|
|
228
|
+
EventType[int],
|
|
229
|
+
EventType[int, GroupHeaderClickedEventArgs],
|
|
236
230
|
]
|
|
237
231
|
] = None,
|
|
238
232
|
on_group_header_renamed: Optional[
|
|
239
|
-
Union[
|
|
240
|
-
EventType[[], BASE_STATE],
|
|
241
|
-
EventType[[str], BASE_STATE],
|
|
242
|
-
EventType[[str, str], BASE_STATE],
|
|
243
|
-
]
|
|
233
|
+
Union[EventType[()], EventType[str], EventType[str, str]]
|
|
244
234
|
] = None,
|
|
245
235
|
on_header_clicked: Optional[
|
|
246
|
-
Union[EventType[
|
|
236
|
+
Union[EventType[()], EventType[tuple[int, int]]]
|
|
247
237
|
] = None,
|
|
248
238
|
on_header_context_menu: Optional[
|
|
249
|
-
Union[EventType[
|
|
239
|
+
Union[EventType[()], EventType[tuple[int, int]]]
|
|
250
240
|
] = None,
|
|
251
241
|
on_header_menu_click: Optional[
|
|
252
|
-
Union[
|
|
253
|
-
EventType[[], BASE_STATE],
|
|
254
|
-
EventType[[int], BASE_STATE],
|
|
255
|
-
EventType[[int, Rectangle], BASE_STATE],
|
|
256
|
-
]
|
|
242
|
+
Union[EventType[()], EventType[int], EventType[int, Rectangle]]
|
|
257
243
|
] = None,
|
|
258
244
|
on_item_hovered: Optional[
|
|
259
|
-
Union[EventType[
|
|
245
|
+
Union[EventType[()], EventType[tuple[int, int]]]
|
|
260
246
|
] = None,
|
|
261
|
-
on_mount: Optional[EventType[
|
|
262
|
-
on_mouse_down: Optional[EventType[
|
|
263
|
-
on_mouse_enter: Optional[EventType[
|
|
264
|
-
on_mouse_leave: Optional[EventType[
|
|
265
|
-
on_mouse_move: Optional[EventType[
|
|
266
|
-
on_mouse_out: Optional[EventType[
|
|
267
|
-
on_mouse_over: Optional[EventType[
|
|
268
|
-
on_mouse_up: Optional[EventType[
|
|
269
|
-
on_row_appended: Optional[EventType[
|
|
270
|
-
on_scroll: Optional[EventType[
|
|
271
|
-
on_selection_cleared: Optional[EventType[
|
|
272
|
-
on_unmount: Optional[EventType[
|
|
247
|
+
on_mount: Optional[EventType[()]] = None,
|
|
248
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
249
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
250
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
251
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
252
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
253
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
254
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
255
|
+
on_row_appended: Optional[EventType[()]] = None,
|
|
256
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
257
|
+
on_selection_cleared: Optional[EventType[()]] = None,
|
|
258
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
273
259
|
**props,
|
|
274
260
|
) -> "DataEditor":
|
|
275
261
|
"""Create the DataEditor component.
|
|
@@ -9,7 +9,7 @@ from reflex.base import Base
|
|
|
9
9
|
from reflex.components.component import Component, ComponentNamespace
|
|
10
10
|
from reflex.components.markdown.markdown import MarkdownComponentMap
|
|
11
11
|
from reflex.components.props import NoExtrasAllowedProps
|
|
12
|
-
from reflex.event import
|
|
12
|
+
from reflex.event import EventType
|
|
13
13
|
from reflex.style import Style
|
|
14
14
|
from reflex.vars.base import Var
|
|
15
15
|
from reflex.vars.function import FunctionStringVar
|
|
@@ -928,21 +928,21 @@ class ShikiCodeBlock(Component, MarkdownComponentMap):
|
|
|
928
928
|
class_name: Optional[Any] = None,
|
|
929
929
|
autofocus: Optional[bool] = None,
|
|
930
930
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
931
|
-
on_blur: Optional[EventType[
|
|
932
|
-
on_click: Optional[EventType[
|
|
933
|
-
on_context_menu: Optional[EventType[
|
|
934
|
-
on_double_click: Optional[EventType[
|
|
935
|
-
on_focus: Optional[EventType[
|
|
936
|
-
on_mount: Optional[EventType[
|
|
937
|
-
on_mouse_down: Optional[EventType[
|
|
938
|
-
on_mouse_enter: Optional[EventType[
|
|
939
|
-
on_mouse_leave: Optional[EventType[
|
|
940
|
-
on_mouse_move: Optional[EventType[
|
|
941
|
-
on_mouse_out: Optional[EventType[
|
|
942
|
-
on_mouse_over: Optional[EventType[
|
|
943
|
-
on_mouse_up: Optional[EventType[
|
|
944
|
-
on_scroll: Optional[EventType[
|
|
945
|
-
on_unmount: Optional[EventType[
|
|
931
|
+
on_blur: Optional[EventType[()]] = None,
|
|
932
|
+
on_click: Optional[EventType[()]] = None,
|
|
933
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
934
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
935
|
+
on_focus: Optional[EventType[()]] = None,
|
|
936
|
+
on_mount: Optional[EventType[()]] = None,
|
|
937
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
938
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
939
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
940
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
941
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
942
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
943
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
944
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
945
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
946
946
|
**props,
|
|
947
947
|
) -> "ShikiCodeBlock":
|
|
948
948
|
"""Create a code block component using [shiki syntax highlighter](https://shiki.matsu.io/).
|
|
@@ -1555,21 +1555,21 @@ class ShikiHighLevelCodeBlock(ShikiCodeBlock):
|
|
|
1555
1555
|
class_name: Optional[Any] = None,
|
|
1556
1556
|
autofocus: Optional[bool] = None,
|
|
1557
1557
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
1558
|
-
on_blur: Optional[EventType[
|
|
1559
|
-
on_click: Optional[EventType[
|
|
1560
|
-
on_context_menu: Optional[EventType[
|
|
1561
|
-
on_double_click: Optional[EventType[
|
|
1562
|
-
on_focus: Optional[EventType[
|
|
1563
|
-
on_mount: Optional[EventType[
|
|
1564
|
-
on_mouse_down: Optional[EventType[
|
|
1565
|
-
on_mouse_enter: Optional[EventType[
|
|
1566
|
-
on_mouse_leave: Optional[EventType[
|
|
1567
|
-
on_mouse_move: Optional[EventType[
|
|
1568
|
-
on_mouse_out: Optional[EventType[
|
|
1569
|
-
on_mouse_over: Optional[EventType[
|
|
1570
|
-
on_mouse_up: Optional[EventType[
|
|
1571
|
-
on_scroll: Optional[EventType[
|
|
1572
|
-
on_unmount: Optional[EventType[
|
|
1558
|
+
on_blur: Optional[EventType[()]] = None,
|
|
1559
|
+
on_click: Optional[EventType[()]] = None,
|
|
1560
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
1561
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
1562
|
+
on_focus: Optional[EventType[()]] = None,
|
|
1563
|
+
on_mount: Optional[EventType[()]] = None,
|
|
1564
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
1565
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
1566
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
1567
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
1568
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
1569
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
1570
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
1571
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
1572
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
1573
1573
|
**props,
|
|
1574
1574
|
) -> "ShikiHighLevelCodeBlock":
|
|
1575
1575
|
"""Create a code block component using [shiki syntax highlighter](https://shiki.matsu.io/).
|
|
@@ -2185,21 +2185,21 @@ class CodeblockNamespace(ComponentNamespace):
|
|
|
2185
2185
|
class_name: Optional[Any] = None,
|
|
2186
2186
|
autofocus: Optional[bool] = None,
|
|
2187
2187
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
2188
|
-
on_blur: Optional[EventType[
|
|
2189
|
-
on_click: Optional[EventType[
|
|
2190
|
-
on_context_menu: Optional[EventType[
|
|
2191
|
-
on_double_click: Optional[EventType[
|
|
2192
|
-
on_focus: Optional[EventType[
|
|
2193
|
-
on_mount: Optional[EventType[
|
|
2194
|
-
on_mouse_down: Optional[EventType[
|
|
2195
|
-
on_mouse_enter: Optional[EventType[
|
|
2196
|
-
on_mouse_leave: Optional[EventType[
|
|
2197
|
-
on_mouse_move: Optional[EventType[
|
|
2198
|
-
on_mouse_out: Optional[EventType[
|
|
2199
|
-
on_mouse_over: Optional[EventType[
|
|
2200
|
-
on_mouse_up: Optional[EventType[
|
|
2201
|
-
on_scroll: Optional[EventType[
|
|
2202
|
-
on_unmount: Optional[EventType[
|
|
2188
|
+
on_blur: Optional[EventType[()]] = None,
|
|
2189
|
+
on_click: Optional[EventType[()]] = None,
|
|
2190
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
2191
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
2192
|
+
on_focus: Optional[EventType[()]] = None,
|
|
2193
|
+
on_mount: Optional[EventType[()]] = None,
|
|
2194
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
2195
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
2196
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
2197
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
2198
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
2199
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
2200
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
2201
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
2202
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
2203
2203
|
**props,
|
|
2204
2204
|
) -> "ShikiHighLevelCodeBlock":
|
|
2205
2205
|
"""Create a code block component using [shiki syntax highlighter](https://shiki.matsu.io/).
|
reflex/components/el/element.pyi
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, Optional, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
-
from reflex.event import
|
|
9
|
+
from reflex.event import EventType
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
@@ -22,21 +22,21 @@ class Element(Component):
|
|
|
22
22
|
class_name: Optional[Any] = None,
|
|
23
23
|
autofocus: Optional[bool] = None,
|
|
24
24
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
25
|
-
on_blur: Optional[EventType[
|
|
26
|
-
on_click: Optional[EventType[
|
|
27
|
-
on_context_menu: Optional[EventType[
|
|
28
|
-
on_double_click: Optional[EventType[
|
|
29
|
-
on_focus: Optional[EventType[
|
|
30
|
-
on_mount: Optional[EventType[
|
|
31
|
-
on_mouse_down: Optional[EventType[
|
|
32
|
-
on_mouse_enter: Optional[EventType[
|
|
33
|
-
on_mouse_leave: Optional[EventType[
|
|
34
|
-
on_mouse_move: Optional[EventType[
|
|
35
|
-
on_mouse_out: Optional[EventType[
|
|
36
|
-
on_mouse_over: Optional[EventType[
|
|
37
|
-
on_mouse_up: Optional[EventType[
|
|
38
|
-
on_scroll: Optional[EventType[
|
|
39
|
-
on_unmount: Optional[EventType[
|
|
25
|
+
on_blur: Optional[EventType[()]] = None,
|
|
26
|
+
on_click: Optional[EventType[()]] = None,
|
|
27
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
28
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
29
|
+
on_focus: Optional[EventType[()]] = None,
|
|
30
|
+
on_mount: Optional[EventType[()]] = None,
|
|
31
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
32
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
33
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
34
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
35
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
36
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
37
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
38
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
39
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
40
40
|
**props,
|
|
41
41
|
) -> "Element":
|
|
42
42
|
"""Create the component.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, Optional, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.el.element import Element
|
|
9
|
-
from reflex.event import
|
|
9
|
+
from reflex.event import EventType
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
@@ -46,21 +46,21 @@ class BaseHTML(Element):
|
|
|
46
46
|
class_name: Optional[Any] = None,
|
|
47
47
|
autofocus: Optional[bool] = None,
|
|
48
48
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
49
|
-
on_blur: Optional[EventType[
|
|
50
|
-
on_click: Optional[EventType[
|
|
51
|
-
on_context_menu: Optional[EventType[
|
|
52
|
-
on_double_click: Optional[EventType[
|
|
53
|
-
on_focus: Optional[EventType[
|
|
54
|
-
on_mount: Optional[EventType[
|
|
55
|
-
on_mouse_down: Optional[EventType[
|
|
56
|
-
on_mouse_enter: Optional[EventType[
|
|
57
|
-
on_mouse_leave: Optional[EventType[
|
|
58
|
-
on_mouse_move: Optional[EventType[
|
|
59
|
-
on_mouse_out: Optional[EventType[
|
|
60
|
-
on_mouse_over: Optional[EventType[
|
|
61
|
-
on_mouse_up: Optional[EventType[
|
|
62
|
-
on_scroll: Optional[EventType[
|
|
63
|
-
on_unmount: Optional[EventType[
|
|
49
|
+
on_blur: Optional[EventType[()]] = None,
|
|
50
|
+
on_click: Optional[EventType[()]] = None,
|
|
51
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
52
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
53
|
+
on_focus: Optional[EventType[()]] = None,
|
|
54
|
+
on_mount: Optional[EventType[()]] = None,
|
|
55
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
56
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
57
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
58
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
59
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
60
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
61
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
62
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
63
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
64
64
|
**props,
|
|
65
65
|
) -> "BaseHTML":
|
|
66
66
|
"""Create the component.
|