reflex 0.7.0a5__py3-none-any.whl → 0.7.1__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/package.json.jinja2 +7 -1
- 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 +268 -85
- 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 +114 -0
- reflex/components/core/auto_scroll.pyi +284 -0
- reflex/components/core/banner.py +40 -9
- reflex/components/core/banner.pyi +400 -87
- 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.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 +41 -12
- reflex/components/sonner/toast.pyi +20 -6
- 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 +8 -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 +30 -41
- reflex/state.py +49 -44
- reflex/style.py +15 -22
- 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 +16 -1
- reflex/utils/prerequisites.py +25 -33
- 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.0a5.dist-info → reflex-0.7.1.dist-info}/METADATA +4 -5
- {reflex-0.7.0a5.dist-info → reflex-0.7.1.dist-info}/RECORD +127 -123
- {reflex-0.7.0a5.dist-info → reflex-0.7.1.dist-info}/LICENSE +0 -0
- {reflex-0.7.0a5.dist-info → reflex-0.7.1.dist-info}/WHEEL +0 -0
- {reflex-0.7.0a5.dist-info → reflex-0.7.1.dist-info}/entry_points.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Tables classes."""
|
|
2
2
|
|
|
3
|
-
from typing import
|
|
3
|
+
from typing import Literal
|
|
4
4
|
|
|
5
5
|
from reflex.vars.base import Var
|
|
6
6
|
|
|
@@ -12,20 +12,14 @@ class Caption(BaseHTML):
|
|
|
12
12
|
|
|
13
13
|
tag = "caption"
|
|
14
14
|
|
|
15
|
-
# Alignment of the caption
|
|
16
|
-
align: Var[Union[str, int, bool]]
|
|
17
|
-
|
|
18
15
|
|
|
19
16
|
class Col(BaseHTML):
|
|
20
17
|
"""Display the col element."""
|
|
21
18
|
|
|
22
19
|
tag = "col"
|
|
23
20
|
|
|
24
|
-
# Alignment of the content within the column
|
|
25
|
-
align: Var[Union[str, int, bool]]
|
|
26
|
-
|
|
27
21
|
# Number of columns the col element spans
|
|
28
|
-
span: Var[
|
|
22
|
+
span: Var[int]
|
|
29
23
|
|
|
30
24
|
|
|
31
25
|
class Colgroup(BaseHTML):
|
|
@@ -33,11 +27,8 @@ class Colgroup(BaseHTML):
|
|
|
33
27
|
|
|
34
28
|
tag = "colgroup"
|
|
35
29
|
|
|
36
|
-
# Alignment of the content within the column group
|
|
37
|
-
align: Var[Union[str, int, bool]]
|
|
38
|
-
|
|
39
30
|
# Number of columns the colgroup element spans
|
|
40
|
-
span: Var[
|
|
31
|
+
span: Var[int]
|
|
41
32
|
|
|
42
33
|
|
|
43
34
|
class Table(BaseHTML):
|
|
@@ -46,10 +37,10 @@ class Table(BaseHTML):
|
|
|
46
37
|
tag = "table"
|
|
47
38
|
|
|
48
39
|
# Alignment of the table
|
|
49
|
-
align: Var[
|
|
40
|
+
align: Var[Literal["left", "center", "right"]]
|
|
50
41
|
|
|
51
42
|
# Provides a summary of the table's purpose and structure
|
|
52
|
-
summary: Var[
|
|
43
|
+
summary: Var[str]
|
|
53
44
|
|
|
54
45
|
|
|
55
46
|
class Tbody(BaseHTML):
|
|
@@ -57,9 +48,6 @@ class Tbody(BaseHTML):
|
|
|
57
48
|
|
|
58
49
|
tag = "tbody"
|
|
59
50
|
|
|
60
|
-
# Alignment of the content within the table body
|
|
61
|
-
align: Var[Union[str, int, bool]]
|
|
62
|
-
|
|
63
51
|
|
|
64
52
|
class Td(BaseHTML):
|
|
65
53
|
"""Display the td element."""
|
|
@@ -67,16 +55,16 @@ class Td(BaseHTML):
|
|
|
67
55
|
tag = "td"
|
|
68
56
|
|
|
69
57
|
# Alignment of the content within the table cell
|
|
70
|
-
align: Var[
|
|
58
|
+
align: Var[Literal["left", "center", "right", "justify", "char"]]
|
|
71
59
|
|
|
72
60
|
# Number of columns a cell should span
|
|
73
|
-
col_span: Var[
|
|
61
|
+
col_span: Var[int]
|
|
74
62
|
|
|
75
63
|
# IDs of the headers associated with this cell
|
|
76
|
-
headers: Var[
|
|
64
|
+
headers: Var[str]
|
|
77
65
|
|
|
78
66
|
# Number of rows a cell should span
|
|
79
|
-
row_span: Var[
|
|
67
|
+
row_span: Var[int]
|
|
80
68
|
|
|
81
69
|
|
|
82
70
|
class Tfoot(BaseHTML):
|
|
@@ -84,9 +72,6 @@ class Tfoot(BaseHTML):
|
|
|
84
72
|
|
|
85
73
|
tag = "tfoot"
|
|
86
74
|
|
|
87
|
-
# Alignment of the content within the table footer
|
|
88
|
-
align: Var[Union[str, int, bool]]
|
|
89
|
-
|
|
90
75
|
|
|
91
76
|
class Th(BaseHTML):
|
|
92
77
|
"""Display the th element."""
|
|
@@ -94,19 +79,19 @@ class Th(BaseHTML):
|
|
|
94
79
|
tag = "th"
|
|
95
80
|
|
|
96
81
|
# Alignment of the content within the table header cell
|
|
97
|
-
align: Var[
|
|
82
|
+
align: Var[Literal["left", "center", "right", "justify", "char"]]
|
|
98
83
|
|
|
99
84
|
# Number of columns a header cell should span
|
|
100
|
-
col_span: Var[
|
|
85
|
+
col_span: Var[int]
|
|
101
86
|
|
|
102
87
|
# IDs of the headers associated with this header cell
|
|
103
|
-
headers: Var[
|
|
88
|
+
headers: Var[str]
|
|
104
89
|
|
|
105
90
|
# Number of rows a header cell should span
|
|
106
|
-
row_span: Var[
|
|
91
|
+
row_span: Var[int]
|
|
107
92
|
|
|
108
93
|
# Scope of the header cell (row, col, rowgroup, colgroup)
|
|
109
|
-
scope: Var[
|
|
94
|
+
scope: Var[str]
|
|
110
95
|
|
|
111
96
|
|
|
112
97
|
class Thead(BaseHTML):
|
|
@@ -114,18 +99,12 @@ class Thead(BaseHTML):
|
|
|
114
99
|
|
|
115
100
|
tag = "thead"
|
|
116
101
|
|
|
117
|
-
# Alignment of the content within the table header
|
|
118
|
-
align: Var[Union[str, int, bool]]
|
|
119
|
-
|
|
120
102
|
|
|
121
103
|
class Tr(BaseHTML):
|
|
122
104
|
"""Display the tr element."""
|
|
123
105
|
|
|
124
106
|
tag = "tr"
|
|
125
107
|
|
|
126
|
-
# Alignment of the content within the table row
|
|
127
|
-
align: Var[Union[str, int, bool]]
|
|
128
|
-
|
|
129
108
|
|
|
130
109
|
caption = Caption.create
|
|
131
110
|
col = Col.create
|