reflex 0.7.0a4__py3-none-any.whl → 0.7.1a1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of reflex might be problematic. Click here for more details.
- reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +3 -1
- reflex/__init__.py +1 -0
- reflex/__init__.pyi +1 -0
- reflex/app.py +251 -68
- reflex/base.py +4 -10
- reflex/compiler/compiler.py +46 -12
- reflex/compiler/templates.py +1 -2
- reflex/compiler/utils.py +23 -14
- reflex/components/base/bare.py +109 -16
- reflex/components/component.py +179 -124
- reflex/components/core/__init__.py +1 -0
- reflex/components/core/__init__.pyi +1 -0
- reflex/components/core/auto_scroll.py +111 -0
- reflex/components/core/auto_scroll.pyi +284 -0
- reflex/components/core/banner.py +35 -5
- reflex/components/core/banner.pyi +398 -36
- reflex/components/core/breakpoints.py +1 -1
- reflex/components/core/cond.py +0 -8
- reflex/components/core/foreach.py +12 -2
- reflex/components/core/html.pyi +200 -19
- reflex/components/core/match.py +4 -4
- reflex/components/core/sticky.py +4 -30
- reflex/components/core/sticky.pyi +874 -90
- reflex/components/core/upload.py +3 -5
- reflex/components/core/upload.pyi +2 -4
- reflex/components/datadisplay/code.py +36 -10
- reflex/components/datadisplay/code.pyi +1 -1
- reflex/components/datadisplay/dataeditor.py +1 -3
- reflex/components/datadisplay/dataeditor.pyi +1 -3
- reflex/components/el/elements/base.py +95 -17
- reflex/components/el/elements/base.pyi +278 -19
- reflex/components/el/elements/forms.py +124 -102
- reflex/components/el/elements/forms.pyi +2787 -365
- reflex/components/el/elements/inline.py +24 -15
- reflex/components/el/elements/inline.pyi +5655 -546
- reflex/components/el/elements/media.py +79 -95
- reflex/components/el/elements/media.pyi +5167 -565
- reflex/components/el/elements/metadata.py +19 -17
- reflex/components/el/elements/metadata.pyi +841 -89
- reflex/components/el/elements/other.py +3 -5
- reflex/components/el/elements/other.pyi +1404 -137
- reflex/components/el/elements/scripts.py +10 -13
- reflex/components/el/elements/scripts.pyi +634 -65
- reflex/components/el/elements/sectioning.pyi +3001 -286
- reflex/components/el/elements/tables.py +14 -35
- reflex/components/el/elements/tables.pyi +2029 -218
- reflex/components/el/elements/typography.py +10 -13
- reflex/components/el/elements/typography.pyi +3014 -297
- reflex/components/lucide/icon.py +22 -6
- reflex/components/markdown/markdown.py +30 -10
- reflex/components/markdown/markdown.pyi +3 -2
- reflex/components/plotly/plotly.py +1 -3
- reflex/components/plotly/plotly.pyi +1 -3
- reflex/components/radix/primitives/form.pyi +624 -93
- reflex/components/radix/themes/color_mode.py +1 -1
- reflex/components/radix/themes/color_mode.pyi +213 -31
- reflex/components/radix/themes/components/alert_dialog.pyi +199 -18
- reflex/components/radix/themes/components/badge.pyi +199 -18
- reflex/components/radix/themes/components/button.pyi +213 -31
- reflex/components/radix/themes/components/callout.pyi +1000 -95
- reflex/components/radix/themes/components/card.pyi +199 -18
- reflex/components/radix/themes/components/context_menu.py +79 -1
- reflex/components/radix/themes/components/context_menu.pyi +320 -1
- reflex/components/radix/themes/components/dialog.pyi +199 -18
- reflex/components/radix/themes/components/hover_card.pyi +199 -18
- reflex/components/radix/themes/components/icon_button.pyi +213 -31
- reflex/components/radix/themes/components/inset.pyi +199 -18
- reflex/components/radix/themes/components/popover.pyi +199 -18
- reflex/components/radix/themes/components/table.pyi +1437 -154
- reflex/components/radix/themes/components/text_area.py +2 -2
- reflex/components/radix/themes/components/text_area.pyi +201 -20
- reflex/components/radix/themes/components/text_field.py +1 -1
- reflex/components/radix/themes/components/text_field.pyi +444 -88
- reflex/components/radix/themes/layout/box.pyi +200 -19
- reflex/components/radix/themes/layout/center.pyi +199 -18
- reflex/components/radix/themes/layout/container.pyi +199 -18
- reflex/components/radix/themes/layout/flex.pyi +199 -18
- reflex/components/radix/themes/layout/grid.pyi +199 -18
- reflex/components/radix/themes/layout/list.pyi +604 -57
- reflex/components/radix/themes/layout/section.pyi +199 -18
- reflex/components/radix/themes/layout/spacer.pyi +199 -18
- reflex/components/radix/themes/layout/stack.pyi +597 -54
- reflex/components/radix/themes/typography/blockquote.pyi +200 -19
- reflex/components/radix/themes/typography/code.pyi +199 -18
- reflex/components/radix/themes/typography/heading.pyi +199 -18
- reflex/components/radix/themes/typography/link.pyi +238 -28
- reflex/components/radix/themes/typography/text.pyi +1394 -127
- reflex/components/react_player/react_player.py +1 -1
- reflex/components/react_player/react_player.pyi +1 -3
- reflex/components/sonner/toast.py +19 -1
- reflex/components/sonner/toast.pyi +10 -1
- reflex/components/tags/iter_tag.py +4 -0
- reflex/components/tags/tag.py +3 -3
- reflex/config.py +187 -28
- reflex/constants/__init__.py +2 -0
- reflex/constants/base.py +6 -0
- reflex/constants/compiler.py +9 -0
- reflex/constants/event.py +1 -0
- reflex/constants/installer.py +4 -5
- reflex/constants/utils.py +1 -3
- reflex/event.py +7 -16
- reflex/experimental/layout.pyi +597 -54
- reflex/py.typed +0 -0
- reflex/reflex.py +44 -48
- reflex/state.py +49 -44
- reflex/style.py +6 -4
- reflex/testing.py +2 -0
- reflex/utils/build.py +12 -0
- reflex/utils/console.py +4 -0
- reflex/utils/decorator.py +25 -0
- reflex/utils/exec.py +92 -34
- reflex/utils/format.py +35 -6
- reflex/utils/path_ops.py +32 -1
- reflex/utils/prerequisites.py +54 -10
- reflex/utils/processes.py +12 -13
- reflex/utils/serializers.py +20 -43
- reflex/utils/telemetry.py +4 -15
- reflex/utils/types.py +36 -66
- reflex/vars/base.py +53 -76
- reflex/vars/function.py +17 -5
- reflex/vars/number.py +1 -1
- reflex/vars/sequence.py +80 -4
- {reflex-0.7.0a4.dist-info → reflex-0.7.1a1.dist-info}/METADATA +4 -5
- {reflex-0.7.0a4.dist-info → reflex-0.7.1a1.dist-info}/RECORD +127 -123
- {reflex-0.7.0a4.dist-info → reflex-0.7.1a1.dist-info}/LICENSE +0 -0
- {reflex-0.7.0a4.dist-info → reflex-0.7.1a1.dist-info}/WHEEL +0 -0
- {reflex-0.7.0a4.dist-info → reflex-0.7.1a1.dist-info}/entry_points.txt +0 -0
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"""Metadata classes."""
|
|
2
2
|
|
|
3
|
-
from typing import List
|
|
3
|
+
from typing import List
|
|
4
4
|
|
|
5
5
|
from reflex.components.el.element import Element
|
|
6
|
+
from reflex.components.el.elements.inline import ReferrerPolicy
|
|
7
|
+
from reflex.components.el.elements.media import CrossOrigin
|
|
6
8
|
from reflex.vars.base import Var
|
|
7
9
|
|
|
8
10
|
from .base import BaseHTML
|
|
@@ -14,8 +16,8 @@ class Base(BaseHTML):
|
|
|
14
16
|
tag = "base"
|
|
15
17
|
|
|
16
18
|
tag = "base"
|
|
17
|
-
href: Var[
|
|
18
|
-
target: Var[
|
|
19
|
+
href: Var[str]
|
|
20
|
+
target: Var[str]
|
|
19
21
|
|
|
20
22
|
|
|
21
23
|
class Head(BaseHTML):
|
|
@@ -30,31 +32,31 @@ class Link(BaseHTML):
|
|
|
30
32
|
tag = "link"
|
|
31
33
|
|
|
32
34
|
# Specifies the CORS settings for the linked resource
|
|
33
|
-
cross_origin: Var[
|
|
35
|
+
cross_origin: Var[CrossOrigin]
|
|
34
36
|
|
|
35
37
|
# Specifies the URL of the linked document/resource
|
|
36
|
-
href: Var[
|
|
38
|
+
href: Var[str]
|
|
37
39
|
|
|
38
40
|
# Specifies the language of the text in the linked document
|
|
39
|
-
href_lang: Var[
|
|
41
|
+
href_lang: Var[str]
|
|
40
42
|
|
|
41
43
|
# Allows a browser to check the fetched link for integrity
|
|
42
|
-
integrity: Var[
|
|
44
|
+
integrity: Var[str]
|
|
43
45
|
|
|
44
46
|
# Specifies on what device the linked document will be displayed
|
|
45
|
-
media: Var[
|
|
47
|
+
media: Var[str]
|
|
46
48
|
|
|
47
49
|
# Specifies the referrer policy of the linked document
|
|
48
|
-
referrer_policy: Var[
|
|
50
|
+
referrer_policy: Var[ReferrerPolicy]
|
|
49
51
|
|
|
50
52
|
# Specifies the relationship between the current document and the linked one
|
|
51
|
-
rel: Var[
|
|
53
|
+
rel: Var[str]
|
|
52
54
|
|
|
53
55
|
# Specifies the sizes of icons for visual media
|
|
54
|
-
sizes: Var[
|
|
56
|
+
sizes: Var[str]
|
|
55
57
|
|
|
56
58
|
# Specifies the MIME type of the linked document
|
|
57
|
-
type: Var[
|
|
59
|
+
type: Var[str]
|
|
58
60
|
|
|
59
61
|
|
|
60
62
|
class Meta(BaseHTML): # Inherits common attributes from BaseHTML
|
|
@@ -63,16 +65,16 @@ class Meta(BaseHTML): # Inherits common attributes from BaseHTML
|
|
|
63
65
|
tag = "meta" # The HTML tag for this element is <meta>
|
|
64
66
|
|
|
65
67
|
# Specifies the character encoding for the HTML document
|
|
66
|
-
char_set: Var[
|
|
68
|
+
char_set: Var[str]
|
|
67
69
|
|
|
68
70
|
# Defines the content of the metadata
|
|
69
|
-
content: Var[
|
|
71
|
+
content: Var[str]
|
|
70
72
|
|
|
71
73
|
# Provides an HTTP header for the information/value of the content attribute
|
|
72
|
-
http_equiv: Var[
|
|
74
|
+
http_equiv: Var[str]
|
|
73
75
|
|
|
74
76
|
# Specifies a name for the metadata
|
|
75
|
-
name: Var[
|
|
77
|
+
name: Var[str]
|
|
76
78
|
|
|
77
79
|
|
|
78
80
|
class Title(Element):
|
|
@@ -87,7 +89,7 @@ class StyleEl(Element):
|
|
|
87
89
|
|
|
88
90
|
tag = "style"
|
|
89
91
|
|
|
90
|
-
media: Var[
|
|
92
|
+
media: Var[str]
|
|
91
93
|
|
|
92
94
|
special_props: List[Var] = [Var(_js_expr="suppressHydrationWarning")]
|
|
93
95
|
|