reflex 0.7.14a6__py3-none-any.whl → 0.8.0__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/app/rxconfig.py.jinja2 +4 -1
- reflex/.templates/jinja/web/package.json.jinja2 +1 -1
- reflex/.templates/jinja/web/pages/_app.js.jinja2 +21 -11
- reflex/.templates/jinja/web/pages/_document.js.jinja2 +1 -1
- reflex/.templates/jinja/web/pages/base_page.js.jinja2 +0 -1
- reflex/.templates/jinja/web/pages/stateful_component.js.jinja2 +4 -0
- reflex/.templates/jinja/web/styles/styles.css.jinja2 +1 -0
- reflex/.templates/jinja/web/utils/context.js.jinja2 +25 -8
- reflex/.templates/web/app/entry.client.js +8 -0
- reflex/.templates/web/app/routes.js +10 -0
- reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +12 -37
- reflex/.templates/web/postcss.config.js +1 -1
- reflex/.templates/web/react-router.config.js +6 -0
- reflex/.templates/web/styles/__reflex_style_reset.css +399 -0
- reflex/.templates/web/utils/client_side_routing.js +21 -19
- reflex/.templates/web/utils/react-theme.js +92 -0
- reflex/.templates/web/utils/state.js +251 -100
- reflex/.templates/web/vite-plugin-safari-cachebust.js +160 -0
- reflex/.templates/web/vite.config.js +39 -0
- reflex/__init__.py +1 -6
- reflex/__init__.pyi +327 -192
- reflex/app.py +86 -135
- reflex/base.py +1 -87
- reflex/compiler/compiler.py +70 -19
- reflex/compiler/templates.py +3 -3
- reflex/compiler/utils.py +91 -33
- reflex/components/__init__.py +0 -2
- reflex/components/__init__.pyi +34 -18
- reflex/components/base/__init__.py +1 -5
- reflex/components/base/__init__.pyi +30 -21
- reflex/components/base/app_wrap.pyi +7 -7
- reflex/components/base/body.pyi +7 -7
- reflex/components/base/document.py +18 -14
- reflex/components/base/document.pyi +88 -38
- reflex/components/base/error_boundary.pyi +7 -7
- reflex/components/base/fragment.pyi +7 -7
- reflex/components/base/link.pyi +12 -12
- reflex/components/base/meta.py +4 -15
- reflex/components/base/meta.pyi +31 -31
- reflex/components/base/script.py +60 -58
- reflex/components/base/script.pyi +248 -34
- reflex/components/base/strict_mode.pyi +7 -7
- reflex/components/component.py +146 -217
- reflex/components/core/__init__.py +1 -0
- reflex/components/core/__init__.pyi +77 -37
- reflex/components/core/auto_scroll.pyi +7 -7
- reflex/components/core/banner.pyi +33 -33
- reflex/components/core/client_side_routing.py +7 -6
- reflex/components/core/client_side_routing.pyi +8 -59
- reflex/components/core/clipboard.pyi +7 -7
- reflex/components/core/debounce.py +1 -0
- reflex/components/core/debounce.pyi +7 -7
- reflex/components/core/foreach.py +5 -4
- reflex/components/core/helmet.py +14 -0
- reflex/components/{next/base.pyi → core/helmet.pyi} +12 -10
- reflex/components/core/html.pyi +7 -7
- reflex/components/core/match.py +3 -3
- reflex/components/core/sticky.pyi +21 -20
- reflex/components/core/upload.py +4 -2
- reflex/components/core/upload.pyi +26 -25
- reflex/components/datadisplay/__init__.pyi +13 -7
- reflex/components/datadisplay/code.py +14 -79
- reflex/components/datadisplay/code.pyi +11 -13
- reflex/components/datadisplay/dataeditor.pyi +38 -15
- reflex/components/datadisplay/shiki_code_block.py +5 -3
- reflex/components/datadisplay/shiki_code_block.pyi +16 -15
- reflex/components/dynamic.py +5 -5
- reflex/components/el/__init__.pyi +506 -246
- reflex/components/el/element.pyi +7 -7
- reflex/components/el/elements/__init__.pyi +504 -245
- reflex/components/el/elements/base.pyi +7 -7
- reflex/components/el/elements/forms.pyi +146 -101
- reflex/components/el/elements/inline.pyi +142 -142
- reflex/components/el/elements/media.pyi +131 -130
- reflex/components/el/elements/metadata.pyi +32 -32
- reflex/components/el/elements/other.pyi +37 -37
- reflex/components/el/elements/scripts.pyi +17 -17
- reflex/components/el/elements/sectioning.pyi +77 -77
- reflex/components/el/elements/tables.pyi +52 -52
- reflex/components/el/elements/typography.pyi +77 -77
- reflex/components/field.py +175 -0
- reflex/components/gridjs/datatable.py +2 -2
- reflex/components/gridjs/datatable.pyi +14 -14
- reflex/components/lucide/icon.py +6 -2
- reflex/components/lucide/icon.pyi +19 -17
- reflex/components/markdown/markdown.py +5 -3
- reflex/components/markdown/markdown.pyi +7 -7
- reflex/components/moment/moment.py +1 -1
- reflex/components/moment/moment.pyi +7 -7
- reflex/components/plotly/plotly.py +12 -6
- reflex/components/plotly/plotly.pyi +50 -49
- reflex/components/props.py +376 -27
- reflex/components/radix/__init__.pyi +123 -65
- reflex/components/radix/primitives/__init__.pyi +6 -4
- reflex/components/radix/primitives/accordion.py +8 -1
- reflex/components/radix/primitives/accordion.pyi +37 -37
- reflex/components/radix/primitives/base.pyi +12 -12
- reflex/components/radix/primitives/drawer.pyi +56 -55
- reflex/components/radix/primitives/form.pyi +63 -53
- reflex/components/radix/primitives/progress.pyi +26 -25
- reflex/components/radix/primitives/slider.pyi +27 -27
- reflex/components/radix/themes/__init__.pyi +5 -6
- reflex/components/radix/themes/base.py +3 -3
- reflex/components/radix/themes/base.pyi +42 -42
- reflex/components/radix/themes/color_mode.py +5 -6
- reflex/components/radix/themes/color_mode.pyi +17 -17
- reflex/components/radix/themes/components/__init__.pyi +75 -38
- reflex/components/radix/themes/components/alert_dialog.pyi +37 -37
- reflex/components/radix/themes/components/aspect_ratio.pyi +7 -7
- reflex/components/radix/themes/components/avatar.pyi +7 -7
- reflex/components/radix/themes/components/badge.pyi +7 -7
- reflex/components/radix/themes/components/button.pyi +7 -7
- reflex/components/radix/themes/components/callout.pyi +26 -25
- reflex/components/radix/themes/components/card.pyi +7 -7
- reflex/components/radix/themes/components/checkbox.pyi +16 -15
- reflex/components/radix/themes/components/checkbox_cards.pyi +12 -12
- reflex/components/radix/themes/components/checkbox_group.pyi +12 -12
- reflex/components/radix/themes/components/context_menu.pyi +67 -67
- reflex/components/radix/themes/components/data_list.pyi +22 -22
- reflex/components/radix/themes/components/dialog.pyi +36 -35
- reflex/components/radix/themes/components/dropdown_menu.pyi +42 -42
- reflex/components/radix/themes/components/hover_card.pyi +21 -20
- reflex/components/radix/themes/components/icon_button.pyi +7 -7
- reflex/components/radix/themes/components/inset.pyi +7 -7
- reflex/components/radix/themes/components/popover.pyi +22 -22
- reflex/components/radix/themes/components/progress.pyi +7 -7
- reflex/components/radix/themes/components/radio.pyi +7 -7
- reflex/components/radix/themes/components/radio_cards.pyi +12 -12
- reflex/components/radix/themes/components/radio_group.pyi +21 -20
- reflex/components/radix/themes/components/scroll_area.pyi +7 -7
- reflex/components/radix/themes/components/segmented_control.pyi +12 -12
- reflex/components/radix/themes/components/select.pyi +46 -45
- reflex/components/radix/themes/components/separator.pyi +7 -7
- reflex/components/radix/themes/components/skeleton.pyi +7 -7
- reflex/components/radix/themes/components/slider.pyi +17 -9
- reflex/components/radix/themes/components/spinner.pyi +7 -7
- reflex/components/radix/themes/components/switch.pyi +7 -7
- reflex/components/radix/themes/components/table.pyi +37 -37
- reflex/components/radix/themes/components/tabs.pyi +26 -25
- reflex/components/radix/themes/components/text_area.pyi +15 -9
- reflex/components/radix/themes/components/text_field.pyi +32 -19
- reflex/components/radix/themes/components/tooltip.pyi +7 -7
- reflex/components/radix/themes/layout/__init__.pyi +27 -14
- reflex/components/radix/themes/layout/base.pyi +7 -7
- reflex/components/radix/themes/layout/box.pyi +7 -7
- reflex/components/radix/themes/layout/center.pyi +7 -7
- reflex/components/radix/themes/layout/container.pyi +7 -7
- reflex/components/radix/themes/layout/flex.pyi +7 -7
- reflex/components/radix/themes/layout/grid.pyi +7 -7
- reflex/components/radix/themes/layout/list.pyi +26 -25
- reflex/components/radix/themes/layout/section.pyi +7 -7
- reflex/components/radix/themes/layout/spacer.pyi +7 -7
- reflex/components/radix/themes/layout/stack.pyi +17 -17
- reflex/components/radix/themes/typography/__init__.pyi +7 -5
- reflex/components/radix/themes/typography/blockquote.pyi +7 -7
- reflex/components/radix/themes/typography/code.pyi +7 -7
- reflex/components/radix/themes/typography/heading.pyi +7 -7
- reflex/components/radix/themes/typography/link.py +46 -11
- reflex/components/radix/themes/typography/link.pyi +312 -9
- reflex/components/radix/themes/typography/text.pyi +36 -35
- reflex/components/react_player/audio.pyi +10 -8
- reflex/components/react_player/react_player.pyi +7 -7
- reflex/components/react_player/video.pyi +10 -8
- reflex/components/recharts/__init__.pyi +208 -100
- reflex/components/recharts/cartesian.py +10 -8
- reflex/components/recharts/cartesian.pyi +90 -94
- reflex/components/recharts/charts.py +4 -2
- reflex/components/recharts/charts.pyi +49 -49
- reflex/components/recharts/general.pyi +31 -31
- reflex/components/recharts/polar.py +8 -4
- reflex/components/recharts/polar.pyi +23 -23
- reflex/components/recharts/recharts.py +2 -2
- reflex/components/recharts/recharts.pyi +12 -12
- reflex/components/sonner/toast.py +3 -3
- reflex/components/sonner/toast.pyi +9 -9
- reflex/config.py +10 -113
- reflex/constants/__init__.py +2 -2
- reflex/constants/base.py +28 -11
- reflex/constants/compiler.py +12 -3
- reflex/constants/event.py +1 -0
- reflex/constants/installer.py +26 -20
- reflex/constants/route.py +27 -8
- reflex/constants/state.py +2 -0
- reflex/custom_components/custom_components.py +0 -14
- reflex/environment.py +77 -5
- reflex/event.py +178 -81
- reflex/experimental/__init__.py +0 -30
- reflex/istate/__init__.py +69 -0
- reflex/istate/manager.py +1 -0
- reflex/istate/proxy.py +5 -3
- reflex/page.py +0 -27
- reflex/plugins/__init__.py +3 -2
- reflex/plugins/base.py +5 -1
- reflex/plugins/shared_tailwind.py +215 -0
- reflex/plugins/sitemap.py +206 -0
- reflex/plugins/tailwind_v3.py +15 -108
- reflex/plugins/tailwind_v4.py +18 -110
- reflex/reflex.py +1 -0
- reflex/route.py +157 -75
- reflex/state.py +171 -155
- reflex/testing.py +86 -16
- reflex/utils/build.py +38 -82
- reflex/utils/exec.py +83 -175
- reflex/utils/export.py +2 -2
- reflex/utils/format.py +1 -5
- reflex/utils/imports.py +5 -16
- reflex/utils/misc.py +67 -0
- reflex/utils/prerequisites.py +66 -68
- reflex/utils/processes.py +24 -47
- reflex/utils/pyi_generator.py +44 -49
- reflex/utils/serializers.py +14 -1
- reflex/utils/telemetry.py +0 -15
- reflex/utils/types.py +197 -62
- reflex/vars/__init__.py +2 -0
- reflex/vars/base.py +367 -134
- {reflex-0.7.14a6.dist-info → reflex-0.8.0.dist-info}/METADATA +15 -8
- reflex-0.8.0.dist-info/RECORD +403 -0
- reflex/.templates/web/next.config.js +0 -7
- reflex/components/base/head.py +0 -20
- reflex/components/base/head.pyi +0 -116
- reflex/components/next/__init__.py +0 -10
- reflex/components/next/base.py +0 -7
- reflex/components/next/image.py +0 -117
- reflex/components/next/image.pyi +0 -94
- reflex/components/next/link.py +0 -20
- reflex/components/next/link.pyi +0 -67
- reflex/components/next/video.py +0 -38
- reflex/components/next/video.pyi +0 -68
- reflex/components/suneditor/__init__.py +0 -5
- reflex/components/suneditor/editor.py +0 -269
- reflex/components/suneditor/editor.pyi +0 -199
- reflex/experimental/layout.py +0 -254
- reflex/experimental/layout.pyi +0 -814
- reflex-0.7.14a6.dist-info/RECORD +0 -408
- {reflex-0.7.14a6.dist-info → reflex-0.8.0.dist-info}/WHEEL +0 -0
- {reflex-0.7.14a6.dist-info → reflex-0.8.0.dist-info}/entry_points.txt +0 -0
- {reflex-0.7.14a6.dist-info → reflex-0.8.0.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
|
|
@@ -247,7 +247,8 @@ class Brush(Recharts):
|
|
|
247
247
|
# The stroke color of brush
|
|
248
248
|
stroke: Var[str | Color]
|
|
249
249
|
|
|
250
|
-
|
|
250
|
+
@classmethod
|
|
251
|
+
def get_event_triggers(cls) -> dict[str, Var | Any]:
|
|
251
252
|
"""Get the event triggers that pass the component's value to the handler.
|
|
252
253
|
|
|
253
254
|
Returns:
|
|
@@ -658,8 +659,12 @@ class Reference(Recharts):
|
|
|
658
659
|
# If set a string or a number, default label will be drawn, and the option is content.
|
|
659
660
|
label: Var[str | int]
|
|
660
661
|
|
|
661
|
-
|
|
662
|
-
|
|
662
|
+
|
|
663
|
+
class Segment(TypedDict):
|
|
664
|
+
"""A segment in a ReferenceLine or ReferenceArea."""
|
|
665
|
+
|
|
666
|
+
x: str | int
|
|
667
|
+
y: str | int
|
|
663
668
|
|
|
664
669
|
|
|
665
670
|
class ReferenceLine(Reference):
|
|
@@ -685,7 +690,7 @@ class ReferenceLine(Reference):
|
|
|
685
690
|
_valid_children: ClassVar[list[str]] = ["Label"]
|
|
686
691
|
|
|
687
692
|
# Array of endpoints in { x, y } format. These endpoints would be used to draw the ReferenceLine.
|
|
688
|
-
segment: Sequence[
|
|
693
|
+
segment: Var[Sequence[Segment]]
|
|
689
694
|
|
|
690
695
|
|
|
691
696
|
class ReferenceDot(Reference):
|
|
@@ -775,9 +780,6 @@ class ReferenceArea(Recharts):
|
|
|
775
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"
|
|
776
781
|
if_overflow: Var[LiteralIfOverflow]
|
|
777
782
|
|
|
778
|
-
# If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
|
|
779
|
-
is_front: Var[bool]
|
|
780
|
-
|
|
781
783
|
# Valid children components
|
|
782
784
|
_valid_children: ClassVar[list[str]] = ["Label"]
|
|
783
785
|
|