reflex 0.7.4a2__py3-none-any.whl → 0.7.5__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/__init__.py +1 -0
- reflex/__init__.pyi +1 -0
- reflex/app.py +10 -8
- reflex/app_mixins/middleware.py +13 -20
- reflex/compiler/compiler.py +10 -3
- reflex/compiler/utils.py +4 -4
- reflex/components/base/app_wrap.pyi +7 -3
- reflex/components/base/body.pyi +7 -3
- reflex/components/base/document.pyi +27 -7
- reflex/components/base/error_boundary.pyi +7 -3
- reflex/components/base/fragment.pyi +7 -3
- reflex/components/base/head.pyi +12 -4
- reflex/components/base/link.pyi +12 -4
- reflex/components/base/meta.pyi +22 -6
- reflex/components/base/script.pyi +7 -3
- reflex/components/base/strict_mode.pyi +7 -3
- reflex/components/component.py +64 -23
- reflex/components/core/auto_scroll.pyi +7 -3
- reflex/components/core/banner.py +6 -2
- reflex/components/core/banner.pyi +32 -8
- reflex/components/core/client_side_routing.pyi +12 -4
- reflex/components/core/clipboard.pyi +7 -3
- reflex/components/core/debounce.pyi +7 -3
- reflex/components/core/foreach.py +5 -1
- reflex/components/core/html.pyi +7 -3
- reflex/components/core/match.py +5 -5
- reflex/components/core/sticky.pyi +21 -6
- reflex/components/core/upload.pyi +27 -7
- reflex/components/datadisplay/code.pyi +12 -4
- reflex/components/datadisplay/dataeditor.py +2 -2
- reflex/components/datadisplay/dataeditor.pyi +17 -3
- reflex/components/datadisplay/shiki_code_block.pyi +17 -4
- reflex/components/el/__init__.pyi +1 -1
- reflex/components/el/element.pyi +7 -3
- reflex/components/el/elements/__init__.py +3 -1
- reflex/components/el/elements/__init__.pyi +3 -2
- reflex/components/el/elements/base.pyi +7 -3
- reflex/components/el/elements/forms.py +1 -1
- reflex/components/el/elements/forms.pyi +72 -16
- reflex/components/el/elements/inline.pyi +142 -30
- reflex/components/el/elements/media.pyi +127 -27
- reflex/components/el/elements/metadata.pyi +32 -8
- reflex/components/el/elements/other.pyi +37 -9
- reflex/components/el/elements/scripts.pyi +17 -5
- reflex/components/el/elements/sectioning.pyi +77 -17
- reflex/components/el/elements/tables.pyi +52 -12
- reflex/components/el/elements/typography.pyi +77 -17
- reflex/components/gridjs/datatable.py +2 -2
- reflex/components/gridjs/datatable.pyi +12 -4
- reflex/components/lucide/icon.py +7 -6
- reflex/components/lucide/icon.pyi +22 -7
- reflex/components/markdown/markdown.py +1 -1
- reflex/components/markdown/markdown.pyi +7 -3
- reflex/components/moment/moment.pyi +7 -3
- reflex/components/next/base.pyi +7 -3
- reflex/components/next/image.pyi +7 -3
- reflex/components/next/link.pyi +7 -3
- reflex/components/next/video.pyi +7 -3
- reflex/components/plotly/plotly.pyi +47 -11
- reflex/components/radix/primitives/accordion.pyi +37 -9
- reflex/components/radix/primitives/base.pyi +12 -4
- reflex/components/radix/primitives/drawer.pyi +57 -13
- reflex/components/radix/primitives/form.pyi +52 -12
- reflex/components/radix/primitives/progress.pyi +27 -7
- reflex/components/radix/primitives/slider.pyi +27 -7
- reflex/components/radix/themes/base.pyi +41 -10
- reflex/components/radix/themes/color_mode.py +2 -2
- reflex/components/radix/themes/color_mode.pyi +17 -5
- reflex/components/radix/themes/components/alert_dialog.pyi +36 -9
- reflex/components/radix/themes/components/aspect_ratio.pyi +7 -3
- reflex/components/radix/themes/components/avatar.pyi +6 -3
- reflex/components/radix/themes/components/badge.pyi +6 -3
- reflex/components/radix/themes/components/button.pyi +6 -3
- reflex/components/radix/themes/components/callout.pyi +26 -7
- reflex/components/radix/themes/components/card.pyi +6 -3
- reflex/components/radix/themes/components/checkbox.pyi +16 -5
- reflex/components/radix/themes/components/checkbox_cards.pyi +11 -4
- reflex/components/radix/themes/components/checkbox_group.pyi +11 -4
- reflex/components/radix/themes/components/context_menu.pyi +66 -15
- reflex/components/radix/themes/components/data_list.pyi +21 -6
- reflex/components/radix/themes/components/dialog.pyi +36 -9
- reflex/components/radix/themes/components/dropdown_menu.pyi +41 -10
- reflex/components/radix/themes/components/hover_card.pyi +21 -6
- reflex/components/radix/themes/components/icon_button.pyi +6 -3
- reflex/components/radix/themes/components/inset.pyi +6 -3
- reflex/components/radix/themes/components/popover.pyi +21 -6
- reflex/components/radix/themes/components/progress.pyi +6 -3
- reflex/components/radix/themes/components/radio.pyi +6 -3
- reflex/components/radix/themes/components/radio_cards.pyi +11 -4
- reflex/components/radix/themes/components/radio_group.py +6 -1
- reflex/components/radix/themes/components/radio_group.pyi +21 -6
- reflex/components/radix/themes/components/scroll_area.pyi +7 -3
- reflex/components/radix/themes/components/segmented_control.pyi +11 -4
- reflex/components/radix/themes/components/select.pyi +46 -11
- reflex/components/radix/themes/components/separator.pyi +6 -3
- reflex/components/radix/themes/components/skeleton.pyi +6 -3
- reflex/components/radix/themes/components/slider.pyi +6 -3
- reflex/components/radix/themes/components/spinner.pyi +6 -3
- reflex/components/radix/themes/components/switch.pyi +6 -3
- reflex/components/radix/themes/components/table.pyi +36 -9
- reflex/components/radix/themes/components/tabs.pyi +26 -7
- reflex/components/radix/themes/components/text_area.pyi +6 -3
- reflex/components/radix/themes/components/text_field.py +3 -2
- reflex/components/radix/themes/components/text_field.pyi +16 -5
- reflex/components/radix/themes/components/tooltip.pyi +7 -3
- reflex/components/radix/themes/layout/base.pyi +6 -3
- reflex/components/radix/themes/layout/box.pyi +7 -3
- reflex/components/radix/themes/layout/center.pyi +6 -3
- reflex/components/radix/themes/layout/container.pyi +6 -3
- reflex/components/radix/themes/layout/flex.pyi +6 -3
- reflex/components/radix/themes/layout/grid.pyi +6 -3
- reflex/components/radix/themes/layout/list.pyi +27 -7
- reflex/components/radix/themes/layout/section.pyi +6 -3
- reflex/components/radix/themes/layout/spacer.pyi +6 -3
- reflex/components/radix/themes/layout/stack.pyi +16 -5
- reflex/components/radix/themes/typography/blockquote.pyi +6 -3
- reflex/components/radix/themes/typography/code.pyi +6 -3
- reflex/components/radix/themes/typography/heading.pyi +6 -3
- reflex/components/radix/themes/typography/link.pyi +6 -3
- reflex/components/radix/themes/typography/text.pyi +36 -9
- reflex/components/react_player/audio.pyi +7 -3
- reflex/components/react_player/react_player.pyi +7 -3
- reflex/components/react_player/video.pyi +7 -3
- reflex/components/recharts/cartesian.pyi +97 -21
- reflex/components/recharts/charts.pyi +62 -14
- reflex/components/recharts/general.pyi +32 -8
- reflex/components/recharts/polar.py +1 -1
- reflex/components/recharts/polar.pyi +33 -9
- reflex/components/recharts/recharts.pyi +12 -4
- reflex/components/sonner/toast.pyi +7 -2
- reflex/components/suneditor/editor.pyi +7 -3
- reflex/config.py +18 -1
- reflex/constants/installer.py +22 -1
- reflex/custom_components/custom_components.py +12 -7
- reflex/event.py +26 -10
- reflex/experimental/__init__.py +17 -6
- reflex/experimental/layout.pyi +27 -7
- reflex/model.py +3 -3
- reflex/reflex.py +33 -18
- reflex/state.py +4 -4
- reflex/style.py +2 -2
- reflex/testing.py +17 -5
- reflex/utils/console.py +2 -3
- reflex/utils/exec.py +4 -0
- reflex/utils/imports.py +14 -7
- reflex/utils/net.py +107 -18
- reflex/utils/prerequisites.py +92 -13
- reflex/utils/processes.py +52 -19
- reflex/utils/pyi_generator.py +66 -53
- reflex/utils/redir.py +3 -1
- reflex/utils/registry.py +15 -5
- reflex/utils/serializers.py +1 -2
- reflex/utils/types.py +4 -4
- reflex/vars/base.py +58 -22
- reflex/vars/number.py +23 -6
- reflex/vars/sequence.py +2 -0
- {reflex-0.7.4a2.dist-info → reflex-0.7.5.dist-info}/METADATA +2 -2
- {reflex-0.7.4a2.dist-info → reflex-0.7.5.dist-info}/RECORD +162 -162
- /reflex/{experimental → utils}/misc.py +0 -0
- {reflex-0.7.4a2.dist-info → reflex-0.7.5.dist-info}/WHEEL +0 -0
- {reflex-0.7.4a2.dist-info → reflex-0.7.5.dist-info}/entry_points.txt +0 -0
- {reflex-0.7.4a2.dist-info → reflex-0.7.5.dist-info}/licenses/LICENSE +0 -0
reflex/__init__.py
CHANGED
|
@@ -344,6 +344,7 @@ _MAPPING: dict = {
|
|
|
344
344
|
"istate.wrappers": ["get_state"],
|
|
345
345
|
"style": ["Style", "toggle_color_mode"],
|
|
346
346
|
"utils.imports": ["ImportDict", "ImportVar"],
|
|
347
|
+
"utils.misc": ["run_in_thread"],
|
|
347
348
|
"utils.serializers": ["serializer"],
|
|
348
349
|
"vars": ["Var", "field", "Field"],
|
|
349
350
|
}
|
reflex/__init__.pyi
CHANGED
|
@@ -197,6 +197,7 @@ from .style import Style as Style
|
|
|
197
197
|
from .style import toggle_color_mode as toggle_color_mode
|
|
198
198
|
from .utils.imports import ImportDict as ImportDict
|
|
199
199
|
from .utils.imports import ImportVar as ImportVar
|
|
200
|
+
from .utils.misc import run_in_thread as run_in_thread
|
|
200
201
|
from .utils.serializers import serializer as serializer
|
|
201
202
|
from .vars import Field as Field
|
|
202
203
|
from .vars import Var as Var
|
reflex/app.py
CHANGED
|
@@ -114,9 +114,11 @@ from reflex.utils.imports import ImportVar
|
|
|
114
114
|
if TYPE_CHECKING:
|
|
115
115
|
from reflex.vars import Var
|
|
116
116
|
|
|
117
|
+
# Define custom types.
|
|
118
|
+
ComponentCallable = Callable[[], Component | tuple[Component, ...] | str | Var]
|
|
119
|
+
else:
|
|
120
|
+
ComponentCallable = Callable[[], Component | tuple[Component, ...] | str]
|
|
117
121
|
|
|
118
|
-
# Define custom types.
|
|
119
|
-
ComponentCallable = Callable[[], Component]
|
|
120
122
|
Reducer = Callable[[Event], Coroutine[Any, Any, StateUpdate]]
|
|
121
123
|
|
|
122
124
|
|
|
@@ -498,9 +500,9 @@ class App(MiddlewareMixin, LifespanMixin):
|
|
|
498
500
|
else config.cors_allowed_origins
|
|
499
501
|
),
|
|
500
502
|
cors_credentials=True,
|
|
501
|
-
max_http_buffer_size=
|
|
502
|
-
ping_interval=
|
|
503
|
-
ping_timeout=
|
|
503
|
+
max_http_buffer_size=environment.REFLEX_SOCKET_MAX_HTTP_BUFFER_SIZE.get(),
|
|
504
|
+
ping_interval=environment.REFLEX_SOCKET_INTERVAL.get(),
|
|
505
|
+
ping_timeout=environment.REFLEX_SOCKET_TIMEOUT.get(),
|
|
504
506
|
json=SimpleNamespace(
|
|
505
507
|
dumps=staticmethod(format.json_dumps),
|
|
506
508
|
loads=staticmethod(json.loads),
|
|
@@ -1108,8 +1110,6 @@ class App(MiddlewareMixin, LifespanMixin):
|
|
|
1108
1110
|
if config.react_strict_mode:
|
|
1109
1111
|
app_wrappers[(200, "StrictMode")] = StrictMode.create()
|
|
1110
1112
|
|
|
1111
|
-
should_compile = self._should_compile()
|
|
1112
|
-
|
|
1113
1113
|
if not should_compile:
|
|
1114
1114
|
with console.timing("Evaluate Pages (Backend)"):
|
|
1115
1115
|
for route in self._unevaluated_pages:
|
|
@@ -1226,13 +1226,15 @@ class App(MiddlewareMixin, LifespanMixin):
|
|
|
1226
1226
|
custom_components |= component._get_all_custom_components()
|
|
1227
1227
|
|
|
1228
1228
|
if self.error_boundary:
|
|
1229
|
+
from reflex.compiler.compiler import into_component
|
|
1230
|
+
|
|
1229
1231
|
console.deprecate(
|
|
1230
1232
|
feature_name="App.error_boundary",
|
|
1231
1233
|
reason="Use app_wraps instead.",
|
|
1232
1234
|
deprecation_version="0.7.1",
|
|
1233
1235
|
removal_version="0.8.0",
|
|
1234
1236
|
)
|
|
1235
|
-
app_wrappers[(55, "ErrorBoundary")] = self.error_boundary
|
|
1237
|
+
app_wrappers[(55, "ErrorBoundary")] = into_component(self.error_boundary)
|
|
1236
1238
|
|
|
1237
1239
|
# Perform auto-memoization of stateful components.
|
|
1238
1240
|
with console.timing("Auto-memoize StatefulComponents"):
|
reflex/app_mixins/middleware.py
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
import asyncio
|
|
6
5
|
import dataclasses
|
|
6
|
+
import inspect
|
|
7
7
|
|
|
8
8
|
from reflex.event import Event
|
|
9
9
|
from reflex.middleware import HydrateMiddleware, Middleware
|
|
@@ -51,12 +51,11 @@ class MiddlewareMixin(AppMixin):
|
|
|
51
51
|
An optional state to return.
|
|
52
52
|
"""
|
|
53
53
|
for middleware in self._middlewares:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
out = middleware.preprocess(app=self, state=state, event=event) # pyright: ignore [reportArgumentType]
|
|
54
|
+
out = middleware.preprocess(app=self, state=state, event=event) # pyright: ignore [reportArgumentType]
|
|
55
|
+
if inspect.isawaitable(out):
|
|
56
|
+
out = await out
|
|
58
57
|
if out is not None:
|
|
59
|
-
return out
|
|
58
|
+
return out
|
|
60
59
|
|
|
61
60
|
async def _postprocess(
|
|
62
61
|
self, state: BaseState, event: Event, update: StateUpdate
|
|
@@ -76,18 +75,12 @@ class MiddlewareMixin(AppMixin):
|
|
|
76
75
|
"""
|
|
77
76
|
out = update
|
|
78
77
|
for middleware in self._middlewares:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
out = middleware.postprocess(
|
|
88
|
-
app=self, # pyright: ignore [reportArgumentType]
|
|
89
|
-
state=state,
|
|
90
|
-
event=event,
|
|
91
|
-
update=update,
|
|
92
|
-
)
|
|
78
|
+
out = middleware.postprocess(
|
|
79
|
+
app=self, # pyright: ignore [reportArgumentType]
|
|
80
|
+
state=state,
|
|
81
|
+
event=event,
|
|
82
|
+
update=update,
|
|
83
|
+
)
|
|
84
|
+
if inspect.isawaitable(out):
|
|
85
|
+
out = await out
|
|
93
86
|
return out # pyright: ignore[reportReturnType]
|
reflex/compiler/compiler.py
CHANGED
|
@@ -224,8 +224,7 @@ def _compile_root_stylesheet(stylesheets: list[str]) -> str:
|
|
|
224
224
|
in constants.Reflex.STYLESHEETS_SUPPORTED
|
|
225
225
|
):
|
|
226
226
|
target = (
|
|
227
|
-
|
|
228
|
-
/ constants.Dirs.WEB
|
|
227
|
+
get_web_dir()
|
|
229
228
|
/ constants.Dirs.STYLES
|
|
230
229
|
/ (stylesheet.rsplit(".", 1)[0].strip("/") + ".css")
|
|
231
230
|
)
|
|
@@ -611,7 +610,15 @@ if TYPE_CHECKING:
|
|
|
611
610
|
from reflex.app import ComponentCallable, UnevaluatedPage
|
|
612
611
|
|
|
613
612
|
|
|
614
|
-
def _into_component_once(
|
|
613
|
+
def _into_component_once(
|
|
614
|
+
component: Component
|
|
615
|
+
| ComponentCallable
|
|
616
|
+
| tuple[Component, ...]
|
|
617
|
+
| str
|
|
618
|
+
| Var
|
|
619
|
+
| int
|
|
620
|
+
| float,
|
|
621
|
+
) -> Component | None:
|
|
615
622
|
"""Convert a component to a Component.
|
|
616
623
|
|
|
617
624
|
Args:
|
reflex/compiler/utils.py
CHANGED
|
@@ -7,7 +7,7 @@ import concurrent.futures
|
|
|
7
7
|
import traceback
|
|
8
8
|
from datetime import datetime
|
|
9
9
|
from pathlib import Path
|
|
10
|
-
from typing import Any,
|
|
10
|
+
from typing import Any, Sequence, Type
|
|
11
11
|
from urllib.parse import urlparse
|
|
12
12
|
|
|
13
13
|
from pydantic.v1.fields import ModelField
|
|
@@ -318,7 +318,7 @@ def compile_custom_component(
|
|
|
318
318
|
}
|
|
319
319
|
|
|
320
320
|
# Concatenate the props.
|
|
321
|
-
props =
|
|
321
|
+
props = list(component.props)
|
|
322
322
|
|
|
323
323
|
# Compile the component.
|
|
324
324
|
return (
|
|
@@ -335,7 +335,7 @@ def compile_custom_component(
|
|
|
335
335
|
|
|
336
336
|
|
|
337
337
|
def create_document_root(
|
|
338
|
-
head_components:
|
|
338
|
+
head_components: Sequence[Component] | None = None,
|
|
339
339
|
html_lang: str | None = None,
|
|
340
340
|
html_custom_attrs: dict[str, Var | str] | None = None,
|
|
341
341
|
) -> Component:
|
|
@@ -371,7 +371,7 @@ def create_theme(style: ComponentStyle) -> dict:
|
|
|
371
371
|
The base style for the app.
|
|
372
372
|
"""
|
|
373
373
|
# Get the global style from the style dict.
|
|
374
|
-
style_rules = Style({k: v for k, v in style.items() if
|
|
374
|
+
style_rules = Style({k: v for k, v in style.items() if isinstance(k, str)})
|
|
375
375
|
|
|
376
376
|
root_style = {
|
|
377
377
|
# Root styles.
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Optional, overload
|
|
6
|
+
from typing import Any, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.base.fragment import Fragment
|
|
9
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
9
10
|
from reflex.event import EventType
|
|
10
|
-
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
13
|
class AppWrap(Fragment):
|
|
@@ -16,7 +16,11 @@ class AppWrap(Fragment):
|
|
|
16
16
|
def create( # type: ignore
|
|
17
17
|
cls,
|
|
18
18
|
*children,
|
|
19
|
-
style:
|
|
19
|
+
style: Sequence[Mapping[str, Any]]
|
|
20
|
+
| Mapping[str, Any]
|
|
21
|
+
| Var[Mapping[str, Any]]
|
|
22
|
+
| Breakpoints
|
|
23
|
+
| None = None,
|
|
20
24
|
key: Any | None = None,
|
|
21
25
|
id: Any | None = None,
|
|
22
26
|
class_name: Any | None = None,
|
reflex/components/base/body.pyi
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Optional, overload
|
|
6
|
+
from typing import Any, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
9
10
|
from reflex.event import EventType
|
|
10
|
-
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
13
|
class Body(Component):
|
|
@@ -16,7 +16,11 @@ class Body(Component):
|
|
|
16
16
|
def create( # type: ignore
|
|
17
17
|
cls,
|
|
18
18
|
*children,
|
|
19
|
-
style:
|
|
19
|
+
style: Sequence[Mapping[str, Any]]
|
|
20
|
+
| Mapping[str, Any]
|
|
21
|
+
| Var[Mapping[str, Any]]
|
|
22
|
+
| Breakpoints
|
|
23
|
+
| None = None,
|
|
20
24
|
key: Any | None = None,
|
|
21
25
|
id: Any | None = None,
|
|
22
26
|
class_name: Any | None = None,
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Optional, overload
|
|
6
|
+
from typing import Any, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
9
10
|
from reflex.event import EventType
|
|
10
|
-
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
13
|
class NextDocumentLib(Component):
|
|
@@ -16,7 +16,11 @@ class NextDocumentLib(Component):
|
|
|
16
16
|
def create( # type: ignore
|
|
17
17
|
cls,
|
|
18
18
|
*children,
|
|
19
|
-
style:
|
|
19
|
+
style: Sequence[Mapping[str, Any]]
|
|
20
|
+
| Mapping[str, Any]
|
|
21
|
+
| Var[Mapping[str, Any]]
|
|
22
|
+
| Breakpoints
|
|
23
|
+
| None = None,
|
|
20
24
|
key: Any | None = None,
|
|
21
25
|
id: Any | None = None,
|
|
22
26
|
class_name: Any | None = None,
|
|
@@ -63,7 +67,11 @@ class Html(NextDocumentLib):
|
|
|
63
67
|
cls,
|
|
64
68
|
*children,
|
|
65
69
|
lang: str | None = None,
|
|
66
|
-
style:
|
|
70
|
+
style: Sequence[Mapping[str, Any]]
|
|
71
|
+
| Mapping[str, Any]
|
|
72
|
+
| Var[Mapping[str, Any]]
|
|
73
|
+
| Breakpoints
|
|
74
|
+
| None = None,
|
|
67
75
|
key: Any | None = None,
|
|
68
76
|
id: Any | None = None,
|
|
69
77
|
class_name: Any | None = None,
|
|
@@ -109,7 +117,11 @@ class DocumentHead(NextDocumentLib):
|
|
|
109
117
|
def create( # type: ignore
|
|
110
118
|
cls,
|
|
111
119
|
*children,
|
|
112
|
-
style:
|
|
120
|
+
style: Sequence[Mapping[str, Any]]
|
|
121
|
+
| Mapping[str, Any]
|
|
122
|
+
| Var[Mapping[str, Any]]
|
|
123
|
+
| Breakpoints
|
|
124
|
+
| None = None,
|
|
113
125
|
key: Any | None = None,
|
|
114
126
|
id: Any | None = None,
|
|
115
127
|
class_name: Any | None = None,
|
|
@@ -155,7 +167,11 @@ class Main(NextDocumentLib):
|
|
|
155
167
|
def create( # type: ignore
|
|
156
168
|
cls,
|
|
157
169
|
*children,
|
|
158
|
-
style:
|
|
170
|
+
style: Sequence[Mapping[str, Any]]
|
|
171
|
+
| Mapping[str, Any]
|
|
172
|
+
| Var[Mapping[str, Any]]
|
|
173
|
+
| Breakpoints
|
|
174
|
+
| None = None,
|
|
159
175
|
key: Any | None = None,
|
|
160
176
|
id: Any | None = None,
|
|
161
177
|
class_name: Any | None = None,
|
|
@@ -201,7 +217,11 @@ class NextScript(NextDocumentLib):
|
|
|
201
217
|
def create( # type: ignore
|
|
202
218
|
cls,
|
|
203
219
|
*children,
|
|
204
|
-
style:
|
|
220
|
+
style: Sequence[Mapping[str, Any]]
|
|
221
|
+
| Mapping[str, Any]
|
|
222
|
+
| Var[Mapping[str, Any]]
|
|
223
|
+
| Breakpoints
|
|
224
|
+
| None = None,
|
|
205
225
|
key: Any | None = None,
|
|
206
226
|
id: Any | None = None,
|
|
207
227
|
class_name: Any | None = None,
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Optional, overload
|
|
6
|
+
from typing import Any, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
9
10
|
from reflex.event import EventType
|
|
10
|
-
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
from reflex.vars.object import ObjectVar
|
|
13
13
|
|
|
@@ -22,7 +22,11 @@ class ErrorBoundary(Component):
|
|
|
22
22
|
cls,
|
|
23
23
|
*children,
|
|
24
24
|
fallback_render: Component | Var[Component] | None = None,
|
|
25
|
-
style:
|
|
25
|
+
style: Sequence[Mapping[str, Any]]
|
|
26
|
+
| Mapping[str, Any]
|
|
27
|
+
| Var[Mapping[str, Any]]
|
|
28
|
+
| Breakpoints
|
|
29
|
+
| None = None,
|
|
26
30
|
key: Any | None = None,
|
|
27
31
|
id: Any | None = None,
|
|
28
32
|
class_name: Any | None = None,
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Optional, overload
|
|
6
|
+
from typing import Any, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
9
10
|
from reflex.event import EventType
|
|
10
|
-
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
13
|
class Fragment(Component):
|
|
@@ -16,7 +16,11 @@ class Fragment(Component):
|
|
|
16
16
|
def create( # type: ignore
|
|
17
17
|
cls,
|
|
18
18
|
*children,
|
|
19
|
-
style:
|
|
19
|
+
style: Sequence[Mapping[str, Any]]
|
|
20
|
+
| Mapping[str, Any]
|
|
21
|
+
| Var[Mapping[str, Any]]
|
|
22
|
+
| Breakpoints
|
|
23
|
+
| None = None,
|
|
20
24
|
key: Any | None = None,
|
|
21
25
|
id: Any | None = None,
|
|
22
26
|
class_name: Any | None = None,
|
reflex/components/base/head.pyi
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Optional, overload
|
|
6
|
+
from typing import Any, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component, MemoizationLeaf
|
|
9
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
9
10
|
from reflex.event import EventType
|
|
10
|
-
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
13
|
class NextHeadLib(Component):
|
|
@@ -16,7 +16,11 @@ class NextHeadLib(Component):
|
|
|
16
16
|
def create( # type: ignore
|
|
17
17
|
cls,
|
|
18
18
|
*children,
|
|
19
|
-
style:
|
|
19
|
+
style: Sequence[Mapping[str, Any]]
|
|
20
|
+
| Mapping[str, Any]
|
|
21
|
+
| Var[Mapping[str, Any]]
|
|
22
|
+
| Breakpoints
|
|
23
|
+
| None = None,
|
|
20
24
|
key: Any | None = None,
|
|
21
25
|
id: Any | None = None,
|
|
22
26
|
class_name: Any | None = None,
|
|
@@ -62,7 +66,11 @@ class Head(NextHeadLib, MemoizationLeaf):
|
|
|
62
66
|
def create( # type: ignore
|
|
63
67
|
cls,
|
|
64
68
|
*children,
|
|
65
|
-
style:
|
|
69
|
+
style: Sequence[Mapping[str, Any]]
|
|
70
|
+
| Mapping[str, Any]
|
|
71
|
+
| Var[Mapping[str, Any]]
|
|
72
|
+
| Breakpoints
|
|
73
|
+
| None = None,
|
|
66
74
|
key: Any | None = None,
|
|
67
75
|
id: Any | None = None,
|
|
68
76
|
class_name: Any | None = None,
|
reflex/components/base/link.pyi
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Optional, overload
|
|
6
|
+
from typing import Any, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
9
10
|
from reflex.event import EventType
|
|
10
|
-
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
13
|
class RawLink(Component):
|
|
@@ -18,7 +18,11 @@ class RawLink(Component):
|
|
|
18
18
|
*children,
|
|
19
19
|
href: Var[str] | str | None = None,
|
|
20
20
|
rel: Var[str] | str | None = None,
|
|
21
|
-
style:
|
|
21
|
+
style: Sequence[Mapping[str, Any]]
|
|
22
|
+
| Mapping[str, Any]
|
|
23
|
+
| Var[Mapping[str, Any]]
|
|
24
|
+
| Breakpoints
|
|
25
|
+
| None = None,
|
|
22
26
|
key: Any | None = None,
|
|
23
27
|
id: Any | None = None,
|
|
24
28
|
class_name: Any | None = None,
|
|
@@ -73,7 +77,11 @@ class ScriptTag(Component):
|
|
|
73
77
|
referrer_policy: Var[str] | str | None = None,
|
|
74
78
|
is_async: Var[bool] | bool | None = None,
|
|
75
79
|
defer: Var[bool] | bool | None = None,
|
|
76
|
-
style:
|
|
80
|
+
style: Sequence[Mapping[str, Any]]
|
|
81
|
+
| Mapping[str, Any]
|
|
82
|
+
| Var[Mapping[str, Any]]
|
|
83
|
+
| Breakpoints
|
|
84
|
+
| None = None,
|
|
77
85
|
key: Any | None = None,
|
|
78
86
|
id: Any | None = None,
|
|
79
87
|
class_name: Any | None = None,
|
reflex/components/base/meta.pyi
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Optional, overload
|
|
6
|
+
from typing import Any, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
9
10
|
from reflex.event import EventType
|
|
10
|
-
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
13
|
class Title(Component):
|
|
@@ -17,7 +17,11 @@ class Title(Component):
|
|
|
17
17
|
def create( # type: ignore
|
|
18
18
|
cls,
|
|
19
19
|
*children,
|
|
20
|
-
style:
|
|
20
|
+
style: Sequence[Mapping[str, Any]]
|
|
21
|
+
| Mapping[str, Any]
|
|
22
|
+
| Var[Mapping[str, Any]]
|
|
23
|
+
| Breakpoints
|
|
24
|
+
| None = None,
|
|
21
25
|
key: Any | None = None,
|
|
22
26
|
id: Any | None = None,
|
|
23
27
|
class_name: Any | None = None,
|
|
@@ -68,7 +72,11 @@ class Meta(Component):
|
|
|
68
72
|
name: str | None = None,
|
|
69
73
|
property: str | None = None,
|
|
70
74
|
http_equiv: str | None = None,
|
|
71
|
-
style:
|
|
75
|
+
style: Sequence[Mapping[str, Any]]
|
|
76
|
+
| Mapping[str, Any]
|
|
77
|
+
| Var[Mapping[str, Any]]
|
|
78
|
+
| Breakpoints
|
|
79
|
+
| None = None,
|
|
72
80
|
key: Any | None = None,
|
|
73
81
|
id: Any | None = None,
|
|
74
82
|
class_name: Any | None = None,
|
|
@@ -124,7 +132,11 @@ class Description(Meta):
|
|
|
124
132
|
content: str | None = None,
|
|
125
133
|
property: str | None = None,
|
|
126
134
|
http_equiv: str | None = None,
|
|
127
|
-
style:
|
|
135
|
+
style: Sequence[Mapping[str, Any]]
|
|
136
|
+
| Mapping[str, Any]
|
|
137
|
+
| Var[Mapping[str, Any]]
|
|
138
|
+
| Breakpoints
|
|
139
|
+
| None = None,
|
|
128
140
|
key: Any | None = None,
|
|
129
141
|
id: Any | None = None,
|
|
130
142
|
class_name: Any | None = None,
|
|
@@ -180,7 +192,11 @@ class Image(Meta):
|
|
|
180
192
|
content: str | None = None,
|
|
181
193
|
name: str | None = None,
|
|
182
194
|
http_equiv: str | None = None,
|
|
183
|
-
style:
|
|
195
|
+
style: Sequence[Mapping[str, Any]]
|
|
196
|
+
| Mapping[str, Any]
|
|
197
|
+
| Var[Mapping[str, Any]]
|
|
198
|
+
| Breakpoints
|
|
199
|
+
| None = None,
|
|
184
200
|
key: Any | None = None,
|
|
185
201
|
id: Any | None = None,
|
|
186
202
|
class_name: Any | None = None,
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Literal, Optional, overload
|
|
6
|
+
from typing import Any, Literal, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
9
10
|
from reflex.event import EventType
|
|
10
|
-
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
13
|
class Script(Component):
|
|
@@ -20,7 +20,11 @@ class Script(Component):
|
|
|
20
20
|
strategy: Literal["afterInteractive", "beforeInteractive", "lazyOnload"]
|
|
21
21
|
| Var[Literal["afterInteractive", "beforeInteractive", "lazyOnload"]]
|
|
22
22
|
| None = None,
|
|
23
|
-
style:
|
|
23
|
+
style: Sequence[Mapping[str, Any]]
|
|
24
|
+
| Mapping[str, Any]
|
|
25
|
+
| Var[Mapping[str, Any]]
|
|
26
|
+
| Breakpoints
|
|
27
|
+
| None = None,
|
|
24
28
|
key: Any | None = None,
|
|
25
29
|
id: Any | None = None,
|
|
26
30
|
class_name: Any | None = None,
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Optional, overload
|
|
6
|
+
from typing import Any, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
9
10
|
from reflex.event import EventType
|
|
10
|
-
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
13
|
class StrictMode(Component):
|
|
@@ -16,7 +16,11 @@ class StrictMode(Component):
|
|
|
16
16
|
def create( # type: ignore
|
|
17
17
|
cls,
|
|
18
18
|
*children,
|
|
19
|
-
style:
|
|
19
|
+
style: Sequence[Mapping[str, Any]]
|
|
20
|
+
| Mapping[str, Any]
|
|
21
|
+
| Var[Mapping[str, Any]]
|
|
22
|
+
| Breakpoints
|
|
23
|
+
| None = None,
|
|
20
24
|
key: Any | None = None,
|
|
21
25
|
id: Any | None = None,
|
|
22
26
|
class_name: Any | None = None,
|