reflex 0.8.0a4__py3-none-any.whl → 0.8.0a6__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/_app.js.jinja2 +1 -1
- reflex/.templates/jinja/web/styles/styles.css.jinja2 +1 -0
- reflex/.templates/web/app/routes.js +3 -3
- reflex/.templates/web/utils/client_side_routing.js +1 -1
- reflex/.templates/web/utils/state.js +110 -52
- reflex/__init__.pyi +327 -188
- reflex/app.py +50 -48
- reflex/compiler/compiler.py +6 -2
- reflex/compiler/utils.py +32 -14
- reflex/components/__init__.pyi +34 -15
- reflex/components/base/__init__.pyi +30 -19
- reflex/components/base/app_wrap.pyi +2 -3
- reflex/components/base/body.pyi +2 -3
- reflex/components/base/document.pyi +7 -13
- reflex/components/base/error_boundary.pyi +2 -3
- reflex/components/base/fragment.pyi +2 -3
- reflex/components/base/link.pyi +3 -5
- reflex/components/base/meta.py +4 -15
- reflex/components/base/meta.pyi +14 -18
- reflex/components/base/script.pyi +2 -3
- reflex/components/base/strict_mode.pyi +2 -3
- reflex/components/core/__init__.pyi +77 -38
- reflex/components/core/auto_scroll.pyi +2 -3
- reflex/components/core/banner.pyi +8 -14
- reflex/components/core/client_side_routing.pyi +2 -3
- reflex/components/core/clipboard.pyi +2 -3
- reflex/components/core/debounce.pyi +2 -3
- reflex/components/core/foreach.py +2 -2
- reflex/components/core/helmet.pyi +2 -3
- reflex/components/core/html.pyi +2 -3
- reflex/components/core/match.py +3 -3
- reflex/components/core/sticky.pyi +4 -7
- reflex/components/core/upload.py +2 -1
- reflex/components/core/upload.pyi +5 -9
- reflex/components/datadisplay/__init__.pyi +13 -7
- reflex/components/datadisplay/code.py +12 -7
- reflex/components/datadisplay/code.pyi +2 -3
- reflex/components/datadisplay/dataeditor.pyi +33 -11
- reflex/components/datadisplay/shiki_code_block.py +5 -3
- reflex/components/datadisplay/shiki_code_block.pyi +3 -5
- reflex/components/el/__init__.pyi +506 -246
- reflex/components/el/element.pyi +2 -3
- reflex/components/el/elements/__init__.pyi +504 -245
- reflex/components/el/elements/base.pyi +2 -3
- reflex/components/el/elements/forms.pyi +77 -49
- reflex/components/el/elements/inline.pyi +29 -57
- reflex/components/el/elements/media.pyi +26 -51
- reflex/components/el/elements/metadata.pyi +7 -13
- reflex/components/el/elements/other.pyi +8 -15
- reflex/components/el/elements/scripts.pyi +4 -7
- reflex/components/el/elements/sectioning.pyi +16 -31
- reflex/components/el/elements/tables.pyi +11 -21
- reflex/components/el/elements/typography.pyi +16 -31
- reflex/components/gridjs/datatable.pyi +3 -5
- reflex/components/lucide/icon.pyi +4 -7
- reflex/components/markdown/markdown.py +5 -3
- reflex/components/markdown/markdown.pyi +2 -3
- reflex/components/moment/moment.py +1 -1
- reflex/components/moment/moment.pyi +2 -3
- reflex/components/plotly/plotly.py +12 -6
- reflex/components/plotly/plotly.pyi +31 -39
- reflex/components/radix/__init__.pyi +123 -65
- reflex/components/radix/primitives/__init__.pyi +6 -4
- reflex/components/radix/primitives/accordion.pyi +8 -15
- reflex/components/radix/primitives/base.pyi +3 -5
- reflex/components/radix/primitives/drawer.pyi +11 -21
- reflex/components/radix/primitives/form.pyi +22 -22
- reflex/components/radix/primitives/progress.pyi +5 -9
- reflex/components/radix/primitives/slider.pyi +6 -11
- reflex/components/radix/themes/__init__.pyi +5 -6
- reflex/components/radix/themes/base.pyi +9 -17
- reflex/components/radix/themes/color_mode.py +5 -6
- reflex/components/radix/themes/color_mode.pyi +4 -7
- reflex/components/radix/themes/components/__init__.pyi +75 -38
- reflex/components/radix/themes/components/alert_dialog.pyi +8 -15
- reflex/components/radix/themes/components/aspect_ratio.pyi +2 -3
- reflex/components/radix/themes/components/avatar.pyi +2 -3
- reflex/components/radix/themes/components/badge.pyi +2 -3
- reflex/components/radix/themes/components/button.pyi +2 -3
- reflex/components/radix/themes/components/callout.pyi +5 -9
- reflex/components/radix/themes/components/card.pyi +2 -3
- reflex/components/radix/themes/components/checkbox.pyi +3 -5
- reflex/components/radix/themes/components/checkbox_cards.pyi +3 -5
- reflex/components/radix/themes/components/checkbox_group.pyi +3 -5
- reflex/components/radix/themes/components/context_menu.pyi +14 -27
- reflex/components/radix/themes/components/data_list.pyi +5 -9
- reflex/components/radix/themes/components/dialog.pyi +7 -13
- reflex/components/radix/themes/components/dropdown_menu.pyi +9 -17
- reflex/components/radix/themes/components/hover_card.pyi +4 -7
- reflex/components/radix/themes/components/icon_button.pyi +2 -3
- reflex/components/radix/themes/components/inset.pyi +2 -3
- reflex/components/radix/themes/components/popover.pyi +5 -9
- reflex/components/radix/themes/components/progress.pyi +2 -3
- reflex/components/radix/themes/components/radio.pyi +2 -3
- reflex/components/radix/themes/components/radio_cards.pyi +3 -5
- reflex/components/radix/themes/components/radio_group.pyi +4 -7
- reflex/components/radix/themes/components/scroll_area.pyi +2 -3
- reflex/components/radix/themes/components/segmented_control.pyi +3 -5
- reflex/components/radix/themes/components/select.pyi +9 -17
- reflex/components/radix/themes/components/separator.pyi +2 -3
- reflex/components/radix/themes/components/skeleton.pyi +2 -3
- reflex/components/radix/themes/components/slider.pyi +12 -5
- reflex/components/radix/themes/components/spinner.pyi +2 -3
- reflex/components/radix/themes/components/switch.pyi +2 -3
- reflex/components/radix/themes/components/table.pyi +8 -15
- reflex/components/radix/themes/components/tabs.pyi +5 -9
- reflex/components/radix/themes/components/text_area.pyi +10 -5
- reflex/components/radix/themes/components/text_field.pyi +19 -9
- reflex/components/radix/themes/components/tooltip.pyi +2 -3
- reflex/components/radix/themes/layout/__init__.pyi +27 -14
- reflex/components/radix/themes/layout/base.pyi +2 -3
- reflex/components/radix/themes/layout/box.pyi +2 -3
- reflex/components/radix/themes/layout/center.pyi +2 -3
- reflex/components/radix/themes/layout/container.pyi +2 -3
- reflex/components/radix/themes/layout/flex.pyi +2 -3
- reflex/components/radix/themes/layout/grid.pyi +2 -3
- reflex/components/radix/themes/layout/list.pyi +5 -9
- reflex/components/radix/themes/layout/section.pyi +2 -3
- reflex/components/radix/themes/layout/spacer.pyi +2 -3
- reflex/components/radix/themes/layout/stack.pyi +4 -7
- reflex/components/radix/themes/typography/__init__.pyi +7 -5
- reflex/components/radix/themes/typography/blockquote.pyi +2 -3
- reflex/components/radix/themes/typography/code.pyi +2 -3
- reflex/components/radix/themes/typography/heading.pyi +2 -3
- reflex/components/radix/themes/typography/link.pyi +3 -5
- reflex/components/radix/themes/typography/text.pyi +7 -13
- reflex/components/react_player/audio.pyi +5 -4
- reflex/components/react_player/react_player.pyi +2 -3
- reflex/components/react_player/video.pyi +5 -4
- reflex/components/recharts/__init__.pyi +208 -100
- reflex/components/recharts/cartesian.py +8 -7
- reflex/components/recharts/cartesian.pyi +25 -48
- reflex/components/recharts/charts.pyi +13 -25
- reflex/components/recharts/general.pyi +7 -13
- reflex/components/recharts/polar.pyi +7 -13
- reflex/components/recharts/recharts.py +2 -2
- reflex/components/recharts/recharts.pyi +3 -5
- reflex/components/sonner/toast.py +1 -1
- reflex/components/sonner/toast.pyi +2 -3
- reflex/constants/installer.py +7 -8
- reflex/constants/route.py +13 -6
- reflex/istate/__init__.py +69 -0
- reflex/istate/manager.py +1 -0
- reflex/plugins/shared_tailwind.py +58 -1
- reflex/plugins/tailwind_v3.py +4 -4
- reflex/plugins/tailwind_v4.py +6 -5
- reflex/route.py +159 -71
- reflex/state.py +38 -16
- reflex/testing.py +2 -1
- reflex/utils/exec.py +18 -13
- reflex/utils/format.py +1 -5
- reflex/utils/imports.py +5 -12
- reflex/utils/misc.py +40 -0
- reflex/utils/prerequisites.py +7 -12
- reflex/utils/processes.py +8 -41
- reflex/utils/pyi_generator.py +23 -40
- reflex/utils/telemetry.py +0 -15
- reflex/utils/types.py +1 -1
- {reflex-0.8.0a4.dist-info → reflex-0.8.0a6.dist-info}/METADATA +3 -3
- {reflex-0.8.0a4.dist-info → reflex-0.8.0a6.dist-info}/RECORD +163 -163
- {reflex-0.8.0a4.dist-info → reflex-0.8.0a6.dist-info}/WHEEL +0 -0
- {reflex-0.8.0a4.dist-info → reflex-0.8.0a6.dist-info}/entry_points.txt +0 -0
- {reflex-0.8.0a4.dist-info → reflex-0.8.0a6.dist-info}/licenses/LICENSE +0 -0
|
@@ -3,106 +3,214 @@
|
|
|
3
3
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
4
4
|
# ------------------------------------------------------
|
|
5
5
|
|
|
6
|
-
from .cartesian import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
from .charts import
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
from .general import
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
from .polar import
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
from .recharts import LiteralIconType as LiteralIconType
|
|
89
|
-
from .recharts import LiteralIfOverflow as LiteralIfOverflow
|
|
90
|
-
from .recharts import LiteralInterval as LiteralInterval
|
|
91
|
-
from .recharts import LiteralLayout as LiteralLayout
|
|
92
|
-
from .recharts import LiteralLegendAlign as LiteralLegendAlign
|
|
93
|
-
from .recharts import LiteralLegendType as LiteralLegendType
|
|
94
|
-
from .recharts import LiteralLineType as LiteralLineType
|
|
95
|
-
from .recharts import LiteralOrientation as LiteralOrientation
|
|
96
|
-
from .recharts import (
|
|
97
|
-
LiteralOrientationLeftRightMiddle as LiteralOrientationLeftRightMiddle,
|
|
6
|
+
from .cartesian import (
|
|
7
|
+
Area,
|
|
8
|
+
Bar,
|
|
9
|
+
Brush,
|
|
10
|
+
CartesianAxis,
|
|
11
|
+
CartesianGrid,
|
|
12
|
+
ErrorBar,
|
|
13
|
+
Funnel,
|
|
14
|
+
Line,
|
|
15
|
+
ReferenceArea,
|
|
16
|
+
ReferenceDot,
|
|
17
|
+
ReferenceLine,
|
|
18
|
+
Scatter,
|
|
19
|
+
XAxis,
|
|
20
|
+
YAxis,
|
|
21
|
+
ZAxis,
|
|
22
|
+
area,
|
|
23
|
+
bar,
|
|
24
|
+
brush,
|
|
25
|
+
cartesian_axis,
|
|
26
|
+
cartesian_grid,
|
|
27
|
+
error_bar,
|
|
28
|
+
funnel,
|
|
29
|
+
line,
|
|
30
|
+
reference_area,
|
|
31
|
+
reference_dot,
|
|
32
|
+
reference_line,
|
|
33
|
+
scatter,
|
|
34
|
+
x_axis,
|
|
35
|
+
y_axis,
|
|
36
|
+
z_axis,
|
|
37
|
+
)
|
|
38
|
+
from .charts import (
|
|
39
|
+
AreaChart,
|
|
40
|
+
BarChart,
|
|
41
|
+
ComposedChart,
|
|
42
|
+
FunnelChart,
|
|
43
|
+
LineChart,
|
|
44
|
+
PieChart,
|
|
45
|
+
RadarChart,
|
|
46
|
+
RadialBarChart,
|
|
47
|
+
ScatterChart,
|
|
48
|
+
Treemap,
|
|
49
|
+
area_chart,
|
|
50
|
+
bar_chart,
|
|
51
|
+
composed_chart,
|
|
52
|
+
funnel_chart,
|
|
53
|
+
line_chart,
|
|
54
|
+
pie_chart,
|
|
55
|
+
radar_chart,
|
|
56
|
+
radial_bar_chart,
|
|
57
|
+
scatter_chart,
|
|
58
|
+
treemap,
|
|
59
|
+
)
|
|
60
|
+
from .general import (
|
|
61
|
+
Cell,
|
|
62
|
+
GraphingTooltip,
|
|
63
|
+
Label,
|
|
64
|
+
LabelList,
|
|
65
|
+
Legend,
|
|
66
|
+
ResponsiveContainer,
|
|
67
|
+
cell,
|
|
68
|
+
graphing_tooltip,
|
|
69
|
+
label,
|
|
70
|
+
label_list,
|
|
71
|
+
legend,
|
|
72
|
+
responsive_container,
|
|
73
|
+
tooltip,
|
|
74
|
+
)
|
|
75
|
+
from .polar import (
|
|
76
|
+
Pie,
|
|
77
|
+
PolarAngleAxis,
|
|
78
|
+
PolarGrid,
|
|
79
|
+
PolarRadiusAxis,
|
|
80
|
+
Radar,
|
|
81
|
+
RadialBar,
|
|
82
|
+
pie,
|
|
83
|
+
polar_angle_axis,
|
|
84
|
+
polar_grid,
|
|
85
|
+
polar_radius_axis,
|
|
86
|
+
radar,
|
|
87
|
+
radial_bar,
|
|
98
88
|
)
|
|
99
|
-
from .recharts import LiteralOrientationTopBottom as LiteralOrientationTopBottom
|
|
100
89
|
from .recharts import (
|
|
101
|
-
|
|
90
|
+
LiteralAnimationEasing,
|
|
91
|
+
LiteralAxisType,
|
|
92
|
+
LiteralBarChartStackOffset,
|
|
93
|
+
LiteralComposedChartBaseValue,
|
|
94
|
+
LiteralCurveType,
|
|
95
|
+
LiteralDirection,
|
|
96
|
+
LiteralGridType,
|
|
97
|
+
LiteralIconType,
|
|
98
|
+
LiteralIfOverflow,
|
|
99
|
+
LiteralInterval,
|
|
100
|
+
LiteralLayout,
|
|
101
|
+
LiteralLegendAlign,
|
|
102
|
+
LiteralLegendType,
|
|
103
|
+
LiteralLineType,
|
|
104
|
+
LiteralOrientation,
|
|
105
|
+
LiteralOrientationLeftRightMiddle,
|
|
106
|
+
LiteralOrientationTopBottom,
|
|
107
|
+
LiteralOrientationTopBottomLeftRight,
|
|
108
|
+
LiteralPolarRadiusType,
|
|
109
|
+
LiteralScale,
|
|
110
|
+
LiteralShape,
|
|
111
|
+
LiteralStackOffset,
|
|
112
|
+
LiteralSyncMethod,
|
|
113
|
+
LiteralVerticalAlign,
|
|
102
114
|
)
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
115
|
+
|
|
116
|
+
__all__ = [
|
|
117
|
+
"Area",
|
|
118
|
+
"AreaChart",
|
|
119
|
+
"Bar",
|
|
120
|
+
"BarChart",
|
|
121
|
+
"Brush",
|
|
122
|
+
"CartesianAxis",
|
|
123
|
+
"CartesianGrid",
|
|
124
|
+
"Cell",
|
|
125
|
+
"ComposedChart",
|
|
126
|
+
"ErrorBar",
|
|
127
|
+
"Funnel",
|
|
128
|
+
"FunnelChart",
|
|
129
|
+
"GraphingTooltip",
|
|
130
|
+
"Label",
|
|
131
|
+
"LabelList",
|
|
132
|
+
"Legend",
|
|
133
|
+
"Line",
|
|
134
|
+
"LineChart",
|
|
135
|
+
"LiteralAnimationEasing",
|
|
136
|
+
"LiteralAxisType",
|
|
137
|
+
"LiteralBarChartStackOffset",
|
|
138
|
+
"LiteralComposedChartBaseValue",
|
|
139
|
+
"LiteralCurveType",
|
|
140
|
+
"LiteralDirection",
|
|
141
|
+
"LiteralGridType",
|
|
142
|
+
"LiteralIconType",
|
|
143
|
+
"LiteralIfOverflow",
|
|
144
|
+
"LiteralInterval",
|
|
145
|
+
"LiteralLayout",
|
|
146
|
+
"LiteralLegendAlign",
|
|
147
|
+
"LiteralLegendType",
|
|
148
|
+
"LiteralLineType",
|
|
149
|
+
"LiteralOrientation",
|
|
150
|
+
"LiteralOrientationLeftRightMiddle",
|
|
151
|
+
"LiteralOrientationTopBottom",
|
|
152
|
+
"LiteralOrientationTopBottomLeftRight",
|
|
153
|
+
"LiteralPolarRadiusType",
|
|
154
|
+
"LiteralScale",
|
|
155
|
+
"LiteralShape",
|
|
156
|
+
"LiteralStackOffset",
|
|
157
|
+
"LiteralSyncMethod",
|
|
158
|
+
"LiteralVerticalAlign",
|
|
159
|
+
"Pie",
|
|
160
|
+
"PieChart",
|
|
161
|
+
"PolarAngleAxis",
|
|
162
|
+
"PolarGrid",
|
|
163
|
+
"PolarRadiusAxis",
|
|
164
|
+
"Radar",
|
|
165
|
+
"RadarChart",
|
|
166
|
+
"RadialBar",
|
|
167
|
+
"RadialBarChart",
|
|
168
|
+
"ReferenceArea",
|
|
169
|
+
"ReferenceDot",
|
|
170
|
+
"ReferenceLine",
|
|
171
|
+
"ResponsiveContainer",
|
|
172
|
+
"Scatter",
|
|
173
|
+
"ScatterChart",
|
|
174
|
+
"Treemap",
|
|
175
|
+
"XAxis",
|
|
176
|
+
"YAxis",
|
|
177
|
+
"ZAxis",
|
|
178
|
+
"area",
|
|
179
|
+
"area_chart",
|
|
180
|
+
"bar",
|
|
181
|
+
"bar_chart",
|
|
182
|
+
"brush",
|
|
183
|
+
"cartesian_axis",
|
|
184
|
+
"cartesian_grid",
|
|
185
|
+
"cell",
|
|
186
|
+
"composed_chart",
|
|
187
|
+
"error_bar",
|
|
188
|
+
"funnel",
|
|
189
|
+
"funnel_chart",
|
|
190
|
+
"graphing_tooltip",
|
|
191
|
+
"label",
|
|
192
|
+
"label_list",
|
|
193
|
+
"legend",
|
|
194
|
+
"line",
|
|
195
|
+
"line_chart",
|
|
196
|
+
"pie",
|
|
197
|
+
"pie_chart",
|
|
198
|
+
"polar_angle_axis",
|
|
199
|
+
"polar_grid",
|
|
200
|
+
"polar_radius_axis",
|
|
201
|
+
"radar",
|
|
202
|
+
"radar_chart",
|
|
203
|
+
"radial_bar",
|
|
204
|
+
"radial_bar_chart",
|
|
205
|
+
"reference_area",
|
|
206
|
+
"reference_dot",
|
|
207
|
+
"reference_line",
|
|
208
|
+
"responsive_container",
|
|
209
|
+
"scatter",
|
|
210
|
+
"scatter_chart",
|
|
211
|
+
"tooltip",
|
|
212
|
+
"treemap",
|
|
213
|
+
"x_axis",
|
|
214
|
+
"y_axis",
|
|
215
|
+
"z_axis",
|
|
216
|
+
]
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from collections.abc import Sequence
|
|
6
|
-
from typing import Any, ClassVar
|
|
6
|
+
from typing import Any, ClassVar, TypedDict
|
|
7
7
|
|
|
8
8
|
from reflex.constants import EventTriggers
|
|
9
9
|
from reflex.constants.colors import Color
|
|
@@ -659,8 +659,12 @@ class Reference(Recharts):
|
|
|
659
659
|
# If set a string or a number, default label will be drawn, and the option is content.
|
|
660
660
|
label: Var[str | int]
|
|
661
661
|
|
|
662
|
-
|
|
663
|
-
|
|
662
|
+
|
|
663
|
+
class Segment(TypedDict):
|
|
664
|
+
"""A segment in a ReferenceLine or ReferenceArea."""
|
|
665
|
+
|
|
666
|
+
x: str | int
|
|
667
|
+
y: str | int
|
|
664
668
|
|
|
665
669
|
|
|
666
670
|
class ReferenceLine(Reference):
|
|
@@ -686,7 +690,7 @@ class ReferenceLine(Reference):
|
|
|
686
690
|
_valid_children: ClassVar[list[str]] = ["Label"]
|
|
687
691
|
|
|
688
692
|
# Array of endpoints in { x, y } format. These endpoints would be used to draw the ReferenceLine.
|
|
689
|
-
segment: Sequence[
|
|
693
|
+
segment: Var[Sequence[Segment]]
|
|
690
694
|
|
|
691
695
|
|
|
692
696
|
class ReferenceDot(Reference):
|
|
@@ -776,9 +780,6 @@ class ReferenceArea(Recharts):
|
|
|
776
780
|
# Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. Default: "discard"
|
|
777
781
|
if_overflow: Var[LiteralIfOverflow]
|
|
778
782
|
|
|
779
|
-
# If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
|
|
780
|
-
is_front: Var[bool]
|
|
781
|
-
|
|
782
783
|
# Valid children components
|
|
783
784
|
_valid_children: ClassVar[list[str]] = ["Label"]
|
|
784
785
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
6
|
from collections.abc import Mapping, Sequence
|
|
7
|
-
from typing import Any, Literal,
|
|
7
|
+
from typing import Any, Literal, TypedDict
|
|
8
8
|
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
10
|
from reflex.constants.colors import Color
|
|
@@ -14,9 +14,8 @@ from reflex.vars.base import Var
|
|
|
14
14
|
from .recharts import Recharts
|
|
15
15
|
|
|
16
16
|
class Axis(Recharts):
|
|
17
|
-
@overload
|
|
18
17
|
@classmethod
|
|
19
|
-
def create(
|
|
18
|
+
def create(
|
|
20
19
|
cls,
|
|
21
20
|
*children,
|
|
22
21
|
data_key: Var[int | str] | int | str | None = None,
|
|
@@ -183,9 +182,8 @@ class Axis(Recharts):
|
|
|
183
182
|
"""
|
|
184
183
|
|
|
185
184
|
class XAxis(Axis):
|
|
186
|
-
@overload
|
|
187
185
|
@classmethod
|
|
188
|
-
def create(
|
|
186
|
+
def create(
|
|
189
187
|
cls,
|
|
190
188
|
*children,
|
|
191
189
|
orientation: Literal["bottom", "top"]
|
|
@@ -364,9 +362,8 @@ class XAxis(Axis):
|
|
|
364
362
|
"""
|
|
365
363
|
|
|
366
364
|
class YAxis(Axis):
|
|
367
|
-
@overload
|
|
368
365
|
@classmethod
|
|
369
|
-
def create(
|
|
366
|
+
def create(
|
|
370
367
|
cls,
|
|
371
368
|
*children,
|
|
372
369
|
orientation: Literal["left", "right"]
|
|
@@ -541,9 +538,8 @@ class YAxis(Axis):
|
|
|
541
538
|
"""
|
|
542
539
|
|
|
543
540
|
class ZAxis(Recharts):
|
|
544
|
-
@overload
|
|
545
541
|
@classmethod
|
|
546
|
-
def create(
|
|
542
|
+
def create(
|
|
547
543
|
cls,
|
|
548
544
|
*children,
|
|
549
545
|
data_key: Var[int | str] | int | str | None = None,
|
|
@@ -643,9 +639,8 @@ class ZAxis(Recharts):
|
|
|
643
639
|
class Brush(Recharts):
|
|
644
640
|
@classmethod
|
|
645
641
|
def get_event_triggers(cls) -> dict[str, Var | Any]: ...
|
|
646
|
-
@overload
|
|
647
642
|
@classmethod
|
|
648
|
-
def create(
|
|
643
|
+
def create(
|
|
649
644
|
cls,
|
|
650
645
|
*children,
|
|
651
646
|
stroke: Color | Var[Color | str] | str | None = None,
|
|
@@ -704,9 +699,8 @@ class Brush(Recharts):
|
|
|
704
699
|
"""
|
|
705
700
|
|
|
706
701
|
class Cartesian(Recharts):
|
|
707
|
-
@overload
|
|
708
702
|
@classmethod
|
|
709
|
-
def create(
|
|
703
|
+
def create(
|
|
710
704
|
cls,
|
|
711
705
|
*children,
|
|
712
706
|
layout: Literal["horizontal", "vertical"]
|
|
@@ -826,9 +820,8 @@ class Cartesian(Recharts):
|
|
|
826
820
|
"""
|
|
827
821
|
|
|
828
822
|
class Area(Cartesian):
|
|
829
|
-
@overload
|
|
830
823
|
@classmethod
|
|
831
|
-
def create(
|
|
824
|
+
def create(
|
|
832
825
|
cls,
|
|
833
826
|
*children,
|
|
834
827
|
stroke: Color | Var[Color | str] | str | None = None,
|
|
@@ -1007,9 +1000,8 @@ class Area(Cartesian):
|
|
|
1007
1000
|
"""
|
|
1008
1001
|
|
|
1009
1002
|
class Bar(Cartesian):
|
|
1010
|
-
@overload
|
|
1011
1003
|
@classmethod
|
|
1012
|
-
def create(
|
|
1004
|
+
def create(
|
|
1013
1005
|
cls,
|
|
1014
1006
|
*children,
|
|
1015
1007
|
stroke: Color | Var[Color | str] | str | None = None,
|
|
@@ -1147,9 +1139,8 @@ class Bar(Cartesian):
|
|
|
1147
1139
|
"""
|
|
1148
1140
|
|
|
1149
1141
|
class Line(Cartesian):
|
|
1150
|
-
@overload
|
|
1151
1142
|
@classmethod
|
|
1152
|
-
def create(
|
|
1143
|
+
def create(
|
|
1153
1144
|
cls,
|
|
1154
1145
|
*children,
|
|
1155
1146
|
type_: Literal[
|
|
@@ -1323,9 +1314,8 @@ class Line(Cartesian):
|
|
|
1323
1314
|
"""
|
|
1324
1315
|
|
|
1325
1316
|
class Scatter(Recharts):
|
|
1326
|
-
@overload
|
|
1327
1317
|
@classmethod
|
|
1328
|
-
def create(
|
|
1318
|
+
def create(
|
|
1329
1319
|
cls,
|
|
1330
1320
|
*children,
|
|
1331
1321
|
data: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
@@ -1451,9 +1441,8 @@ class Scatter(Recharts):
|
|
|
1451
1441
|
"""
|
|
1452
1442
|
|
|
1453
1443
|
class Funnel(Recharts):
|
|
1454
|
-
@overload
|
|
1455
1444
|
@classmethod
|
|
1456
|
-
def create(
|
|
1445
|
+
def create(
|
|
1457
1446
|
cls,
|
|
1458
1447
|
*children,
|
|
1459
1448
|
data: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
@@ -1569,9 +1558,8 @@ class Funnel(Recharts):
|
|
|
1569
1558
|
"""
|
|
1570
1559
|
|
|
1571
1560
|
class ErrorBar(Recharts):
|
|
1572
|
-
@overload
|
|
1573
1561
|
@classmethod
|
|
1574
|
-
def create(
|
|
1562
|
+
def create(
|
|
1575
1563
|
cls,
|
|
1576
1564
|
*children,
|
|
1577
1565
|
direction: Literal["x", "y"] | Var[Literal["x", "y"]] | None = None,
|
|
@@ -1631,9 +1619,8 @@ class ErrorBar(Recharts):
|
|
|
1631
1619
|
"""
|
|
1632
1620
|
|
|
1633
1621
|
class Reference(Recharts):
|
|
1634
|
-
@overload
|
|
1635
1622
|
@classmethod
|
|
1636
|
-
def create(
|
|
1623
|
+
def create(
|
|
1637
1624
|
cls,
|
|
1638
1625
|
*children,
|
|
1639
1626
|
x_axis_id: Var[int | str] | int | str | None = None,
|
|
@@ -1642,7 +1629,6 @@ class Reference(Recharts):
|
|
|
1642
1629
|
| Var[Literal["discard", "extendDomain", "hidden", "visible"]]
|
|
1643
1630
|
| None = None,
|
|
1644
1631
|
label: Var[int | str] | int | str | None = None,
|
|
1645
|
-
is_front: Var[bool] | bool | None = None,
|
|
1646
1632
|
style: Sequence[Mapping[str, Any]]
|
|
1647
1633
|
| Mapping[str, Any]
|
|
1648
1634
|
| Var[Mapping[str, Any]]
|
|
@@ -1680,7 +1666,6 @@ class Reference(Recharts):
|
|
|
1680
1666
|
y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
|
|
1681
1667
|
if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. Default: "discard"
|
|
1682
1668
|
label: If set a string or a number, default label will be drawn, and the option is content.
|
|
1683
|
-
is_front: If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
|
|
1684
1669
|
style: The style of the component.
|
|
1685
1670
|
key: A unique key for the component.
|
|
1686
1671
|
id: The id for the component.
|
|
@@ -1694,24 +1679,26 @@ class Reference(Recharts):
|
|
|
1694
1679
|
The component.
|
|
1695
1680
|
"""
|
|
1696
1681
|
|
|
1682
|
+
class Segment(TypedDict):
|
|
1683
|
+
x: str | int
|
|
1684
|
+
y: str | int
|
|
1685
|
+
|
|
1697
1686
|
class ReferenceLine(Reference):
|
|
1698
|
-
@overload
|
|
1699
1687
|
@classmethod
|
|
1700
|
-
def create(
|
|
1688
|
+
def create(
|
|
1701
1689
|
cls,
|
|
1702
1690
|
*children,
|
|
1703
1691
|
x: Var[int | str] | int | str | None = None,
|
|
1704
1692
|
y: Var[int | str] | int | str | None = None,
|
|
1705
1693
|
stroke: Color | Var[Color | str] | str | None = None,
|
|
1706
1694
|
stroke_width: Var[float | int | str] | float | int | str | None = None,
|
|
1707
|
-
segment: Sequence[
|
|
1695
|
+
segment: Sequence[Segment] | Var[Sequence[Segment]] | None = None,
|
|
1708
1696
|
x_axis_id: Var[int | str] | int | str | None = None,
|
|
1709
1697
|
y_axis_id: Var[int | str] | int | str | None = None,
|
|
1710
1698
|
if_overflow: Literal["discard", "extendDomain", "hidden", "visible"]
|
|
1711
1699
|
| Var[Literal["discard", "extendDomain", "hidden", "visible"]]
|
|
1712
1700
|
| None = None,
|
|
1713
1701
|
label: Var[int | str] | int | str | None = None,
|
|
1714
|
-
is_front: Var[bool] | bool | None = None,
|
|
1715
1702
|
style: Sequence[Mapping[str, Any]]
|
|
1716
1703
|
| Mapping[str, Any]
|
|
1717
1704
|
| Var[Mapping[str, Any]]
|
|
@@ -1754,7 +1741,6 @@ class ReferenceLine(Reference):
|
|
|
1754
1741
|
y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
|
|
1755
1742
|
if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. Default: "discard"
|
|
1756
1743
|
label: If set a string or a number, default label will be drawn, and the option is content.
|
|
1757
|
-
is_front: If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
|
|
1758
1744
|
style: The style of the component.
|
|
1759
1745
|
key: A unique key for the component.
|
|
1760
1746
|
id: The id for the component.
|
|
@@ -1769,9 +1755,8 @@ class ReferenceLine(Reference):
|
|
|
1769
1755
|
"""
|
|
1770
1756
|
|
|
1771
1757
|
class ReferenceDot(Reference):
|
|
1772
|
-
@overload
|
|
1773
1758
|
@classmethod
|
|
1774
|
-
def create(
|
|
1759
|
+
def create(
|
|
1775
1760
|
cls,
|
|
1776
1761
|
*children,
|
|
1777
1762
|
x: Var[int | str] | int | str | None = None,
|
|
@@ -1785,7 +1770,6 @@ class ReferenceDot(Reference):
|
|
|
1785
1770
|
| Var[Literal["discard", "extendDomain", "hidden", "visible"]]
|
|
1786
1771
|
| None = None,
|
|
1787
1772
|
label: Var[int | str] | int | str | None = None,
|
|
1788
|
-
is_front: Var[bool] | bool | None = None,
|
|
1789
1773
|
style: Sequence[Mapping[str, Any]]
|
|
1790
1774
|
| Mapping[str, Any]
|
|
1791
1775
|
| Var[Mapping[str, Any]]
|
|
@@ -1836,7 +1820,6 @@ class ReferenceDot(Reference):
|
|
|
1836
1820
|
y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
|
|
1837
1821
|
if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. Default: "discard"
|
|
1838
1822
|
label: If set a string or a number, default label will be drawn, and the option is content.
|
|
1839
|
-
is_front: If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
|
|
1840
1823
|
style: The style of the component.
|
|
1841
1824
|
key: A unique key for the component.
|
|
1842
1825
|
id: The id for the component.
|
|
@@ -1851,9 +1834,8 @@ class ReferenceDot(Reference):
|
|
|
1851
1834
|
"""
|
|
1852
1835
|
|
|
1853
1836
|
class ReferenceArea(Recharts):
|
|
1854
|
-
@overload
|
|
1855
1837
|
@classmethod
|
|
1856
|
-
def create(
|
|
1838
|
+
def create(
|
|
1857
1839
|
cls,
|
|
1858
1840
|
*children,
|
|
1859
1841
|
stroke: Color | Var[Color | str] | str | None = None,
|
|
@@ -1868,7 +1850,6 @@ class ReferenceArea(Recharts):
|
|
|
1868
1850
|
if_overflow: Literal["discard", "extendDomain", "hidden", "visible"]
|
|
1869
1851
|
| Var[Literal["discard", "extendDomain", "hidden", "visible"]]
|
|
1870
1852
|
| None = None,
|
|
1871
|
-
is_front: Var[bool] | bool | None = None,
|
|
1872
1853
|
style: Sequence[Mapping[str, Any]]
|
|
1873
1854
|
| Mapping[str, Any]
|
|
1874
1855
|
| Var[Mapping[str, Any]]
|
|
@@ -1912,7 +1893,6 @@ class ReferenceArea(Recharts):
|
|
|
1912
1893
|
y1: A boundary value of the area. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys. If one of y1 or y2 is invalidate, the area will cover along y-axis.
|
|
1913
1894
|
y2: A boundary value of the area. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys. If one of y1 or y2 is invalidate, the area will cover along y-axis.
|
|
1914
1895
|
if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. Default: "discard"
|
|
1915
|
-
is_front: If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
|
|
1916
1896
|
style: The style of the component.
|
|
1917
1897
|
key: A unique key for the component.
|
|
1918
1898
|
id: The id for the component.
|
|
@@ -1927,9 +1907,8 @@ class ReferenceArea(Recharts):
|
|
|
1927
1907
|
"""
|
|
1928
1908
|
|
|
1929
1909
|
class Grid(Recharts):
|
|
1930
|
-
@overload
|
|
1931
1910
|
@classmethod
|
|
1932
|
-
def create(
|
|
1911
|
+
def create(
|
|
1933
1912
|
cls,
|
|
1934
1913
|
*children,
|
|
1935
1914
|
x: Var[int] | int | None = None,
|
|
@@ -1987,9 +1966,8 @@ class Grid(Recharts):
|
|
|
1987
1966
|
"""
|
|
1988
1967
|
|
|
1989
1968
|
class CartesianGrid(Grid):
|
|
1990
|
-
@overload
|
|
1991
1969
|
@classmethod
|
|
1992
|
-
def create(
|
|
1970
|
+
def create(
|
|
1993
1971
|
cls,
|
|
1994
1972
|
*children,
|
|
1995
1973
|
horizontal: Var[bool] | bool | None = None,
|
|
@@ -2063,9 +2041,8 @@ class CartesianGrid(Grid):
|
|
|
2063
2041
|
"""
|
|
2064
2042
|
|
|
2065
2043
|
class CartesianAxis(Grid):
|
|
2066
|
-
@overload
|
|
2067
2044
|
@classmethod
|
|
2068
|
-
def create(
|
|
2045
|
+
def create(
|
|
2069
2046
|
cls,
|
|
2070
2047
|
*children,
|
|
2071
2048
|
orientation: Literal["bottom", "left", "right", "top"]
|