reflex 0.7.14a5__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.

Files changed (236) hide show
  1. reflex/.templates/jinja/app/rxconfig.py.jinja2 +4 -1
  2. reflex/.templates/jinja/web/package.json.jinja2 +1 -1
  3. reflex/.templates/jinja/web/pages/_app.js.jinja2 +21 -11
  4. reflex/.templates/jinja/web/pages/_document.js.jinja2 +1 -1
  5. reflex/.templates/jinja/web/pages/base_page.js.jinja2 +0 -1
  6. reflex/.templates/jinja/web/pages/stateful_component.js.jinja2 +4 -0
  7. reflex/.templates/jinja/web/styles/styles.css.jinja2 +1 -0
  8. reflex/.templates/jinja/web/utils/context.js.jinja2 +25 -8
  9. reflex/.templates/web/app/entry.client.js +8 -0
  10. reflex/.templates/web/app/routes.js +10 -0
  11. reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +12 -37
  12. reflex/.templates/web/postcss.config.js +1 -1
  13. reflex/.templates/web/react-router.config.js +6 -0
  14. reflex/.templates/web/styles/__reflex_style_reset.css +399 -0
  15. reflex/.templates/web/utils/client_side_routing.js +21 -19
  16. reflex/.templates/web/utils/react-theme.js +92 -0
  17. reflex/.templates/web/utils/state.js +251 -100
  18. reflex/.templates/web/vite-plugin-safari-cachebust.js +160 -0
  19. reflex/.templates/web/vite.config.js +39 -0
  20. reflex/__init__.py +1 -6
  21. reflex/__init__.pyi +327 -192
  22. reflex/app.py +103 -152
  23. reflex/base.py +1 -87
  24. reflex/compiler/compiler.py +70 -19
  25. reflex/compiler/templates.py +3 -3
  26. reflex/compiler/utils.py +91 -33
  27. reflex/components/__init__.py +0 -2
  28. reflex/components/__init__.pyi +34 -18
  29. reflex/components/base/__init__.py +1 -5
  30. reflex/components/base/__init__.pyi +30 -21
  31. reflex/components/base/app_wrap.pyi +7 -7
  32. reflex/components/base/body.pyi +7 -7
  33. reflex/components/base/document.py +18 -14
  34. reflex/components/base/document.pyi +88 -38
  35. reflex/components/base/error_boundary.pyi +7 -7
  36. reflex/components/base/fragment.pyi +7 -7
  37. reflex/components/base/link.pyi +12 -12
  38. reflex/components/base/meta.py +4 -15
  39. reflex/components/base/meta.pyi +31 -31
  40. reflex/components/base/script.py +60 -58
  41. reflex/components/base/script.pyi +248 -34
  42. reflex/components/base/strict_mode.pyi +7 -7
  43. reflex/components/component.py +146 -217
  44. reflex/components/core/__init__.py +1 -0
  45. reflex/components/core/__init__.pyi +77 -37
  46. reflex/components/core/auto_scroll.pyi +7 -7
  47. reflex/components/core/banner.pyi +33 -33
  48. reflex/components/core/client_side_routing.py +7 -6
  49. reflex/components/core/client_side_routing.pyi +8 -59
  50. reflex/components/core/clipboard.pyi +7 -7
  51. reflex/components/core/debounce.py +1 -0
  52. reflex/components/core/debounce.pyi +7 -7
  53. reflex/components/core/foreach.py +5 -4
  54. reflex/components/core/helmet.py +14 -0
  55. reflex/components/{next/base.pyi → core/helmet.pyi} +12 -10
  56. reflex/components/core/html.pyi +7 -7
  57. reflex/components/core/match.py +3 -3
  58. reflex/components/core/sticky.pyi +21 -20
  59. reflex/components/core/upload.py +4 -2
  60. reflex/components/core/upload.pyi +26 -25
  61. reflex/components/datadisplay/__init__.pyi +13 -7
  62. reflex/components/datadisplay/code.py +14 -79
  63. reflex/components/datadisplay/code.pyi +11 -13
  64. reflex/components/datadisplay/dataeditor.pyi +38 -15
  65. reflex/components/datadisplay/shiki_code_block.py +5 -3
  66. reflex/components/datadisplay/shiki_code_block.pyi +16 -15
  67. reflex/components/dynamic.py +5 -5
  68. reflex/components/el/__init__.pyi +506 -246
  69. reflex/components/el/element.pyi +7 -7
  70. reflex/components/el/elements/__init__.pyi +504 -245
  71. reflex/components/el/elements/base.pyi +7 -7
  72. reflex/components/el/elements/forms.pyi +146 -101
  73. reflex/components/el/elements/inline.pyi +142 -142
  74. reflex/components/el/elements/media.pyi +131 -130
  75. reflex/components/el/elements/metadata.pyi +32 -32
  76. reflex/components/el/elements/other.pyi +37 -37
  77. reflex/components/el/elements/scripts.pyi +17 -17
  78. reflex/components/el/elements/sectioning.pyi +77 -77
  79. reflex/components/el/elements/tables.pyi +52 -52
  80. reflex/components/el/elements/typography.pyi +77 -77
  81. reflex/components/field.py +175 -0
  82. reflex/components/gridjs/datatable.py +2 -2
  83. reflex/components/gridjs/datatable.pyi +14 -14
  84. reflex/components/lucide/icon.py +6 -2
  85. reflex/components/lucide/icon.pyi +19 -17
  86. reflex/components/markdown/markdown.py +5 -3
  87. reflex/components/markdown/markdown.pyi +7 -7
  88. reflex/components/moment/moment.py +1 -1
  89. reflex/components/moment/moment.pyi +7 -7
  90. reflex/components/plotly/plotly.py +12 -6
  91. reflex/components/plotly/plotly.pyi +50 -49
  92. reflex/components/props.py +376 -27
  93. reflex/components/radix/__init__.pyi +123 -65
  94. reflex/components/radix/primitives/__init__.pyi +6 -4
  95. reflex/components/radix/primitives/accordion.py +8 -1
  96. reflex/components/radix/primitives/accordion.pyi +37 -37
  97. reflex/components/radix/primitives/base.pyi +12 -12
  98. reflex/components/radix/primitives/drawer.pyi +56 -55
  99. reflex/components/radix/primitives/form.pyi +63 -53
  100. reflex/components/radix/primitives/progress.pyi +26 -25
  101. reflex/components/radix/primitives/slider.pyi +27 -27
  102. reflex/components/radix/themes/__init__.pyi +5 -6
  103. reflex/components/radix/themes/base.py +3 -3
  104. reflex/components/radix/themes/base.pyi +42 -42
  105. reflex/components/radix/themes/color_mode.py +5 -6
  106. reflex/components/radix/themes/color_mode.pyi +17 -17
  107. reflex/components/radix/themes/components/__init__.pyi +75 -38
  108. reflex/components/radix/themes/components/alert_dialog.pyi +37 -37
  109. reflex/components/radix/themes/components/aspect_ratio.pyi +7 -7
  110. reflex/components/radix/themes/components/avatar.pyi +7 -7
  111. reflex/components/radix/themes/components/badge.pyi +7 -7
  112. reflex/components/radix/themes/components/button.pyi +7 -7
  113. reflex/components/radix/themes/components/callout.pyi +26 -25
  114. reflex/components/radix/themes/components/card.pyi +7 -7
  115. reflex/components/radix/themes/components/checkbox.pyi +16 -15
  116. reflex/components/radix/themes/components/checkbox_cards.pyi +12 -12
  117. reflex/components/radix/themes/components/checkbox_group.pyi +12 -12
  118. reflex/components/radix/themes/components/context_menu.pyi +67 -67
  119. reflex/components/radix/themes/components/data_list.pyi +22 -22
  120. reflex/components/radix/themes/components/dialog.pyi +36 -35
  121. reflex/components/radix/themes/components/dropdown_menu.pyi +42 -42
  122. reflex/components/radix/themes/components/hover_card.pyi +21 -20
  123. reflex/components/radix/themes/components/icon_button.pyi +7 -7
  124. reflex/components/radix/themes/components/inset.pyi +7 -7
  125. reflex/components/radix/themes/components/popover.pyi +22 -22
  126. reflex/components/radix/themes/components/progress.pyi +7 -7
  127. reflex/components/radix/themes/components/radio.pyi +7 -7
  128. reflex/components/radix/themes/components/radio_cards.pyi +12 -12
  129. reflex/components/radix/themes/components/radio_group.pyi +21 -20
  130. reflex/components/radix/themes/components/scroll_area.pyi +7 -7
  131. reflex/components/radix/themes/components/segmented_control.pyi +12 -12
  132. reflex/components/radix/themes/components/select.pyi +46 -45
  133. reflex/components/radix/themes/components/separator.pyi +7 -7
  134. reflex/components/radix/themes/components/skeleton.pyi +7 -7
  135. reflex/components/radix/themes/components/slider.pyi +17 -9
  136. reflex/components/radix/themes/components/spinner.pyi +7 -7
  137. reflex/components/radix/themes/components/switch.pyi +7 -7
  138. reflex/components/radix/themes/components/table.pyi +37 -37
  139. reflex/components/radix/themes/components/tabs.pyi +26 -25
  140. reflex/components/radix/themes/components/text_area.pyi +15 -9
  141. reflex/components/radix/themes/components/text_field.pyi +32 -19
  142. reflex/components/radix/themes/components/tooltip.pyi +7 -7
  143. reflex/components/radix/themes/layout/__init__.pyi +27 -14
  144. reflex/components/radix/themes/layout/base.pyi +7 -7
  145. reflex/components/radix/themes/layout/box.pyi +7 -7
  146. reflex/components/radix/themes/layout/center.pyi +7 -7
  147. reflex/components/radix/themes/layout/container.pyi +7 -7
  148. reflex/components/radix/themes/layout/flex.pyi +7 -7
  149. reflex/components/radix/themes/layout/grid.pyi +7 -7
  150. reflex/components/radix/themes/layout/list.pyi +26 -25
  151. reflex/components/radix/themes/layout/section.pyi +7 -7
  152. reflex/components/radix/themes/layout/spacer.pyi +7 -7
  153. reflex/components/radix/themes/layout/stack.pyi +17 -17
  154. reflex/components/radix/themes/typography/__init__.pyi +7 -5
  155. reflex/components/radix/themes/typography/blockquote.pyi +7 -7
  156. reflex/components/radix/themes/typography/code.pyi +7 -7
  157. reflex/components/radix/themes/typography/heading.pyi +7 -7
  158. reflex/components/radix/themes/typography/link.py +46 -11
  159. reflex/components/radix/themes/typography/link.pyi +312 -9
  160. reflex/components/radix/themes/typography/text.pyi +36 -35
  161. reflex/components/react_player/audio.pyi +10 -8
  162. reflex/components/react_player/react_player.pyi +7 -7
  163. reflex/components/react_player/video.pyi +10 -8
  164. reflex/components/recharts/__init__.pyi +208 -100
  165. reflex/components/recharts/cartesian.py +10 -8
  166. reflex/components/recharts/cartesian.pyi +90 -94
  167. reflex/components/recharts/charts.py +4 -2
  168. reflex/components/recharts/charts.pyi +49 -49
  169. reflex/components/recharts/general.pyi +31 -31
  170. reflex/components/recharts/polar.py +8 -4
  171. reflex/components/recharts/polar.pyi +23 -23
  172. reflex/components/recharts/recharts.py +2 -2
  173. reflex/components/recharts/recharts.pyi +12 -12
  174. reflex/components/sonner/toast.py +3 -3
  175. reflex/components/sonner/toast.pyi +9 -9
  176. reflex/config.py +10 -113
  177. reflex/constants/__init__.py +2 -2
  178. reflex/constants/base.py +28 -11
  179. reflex/constants/compiler.py +12 -3
  180. reflex/constants/event.py +1 -0
  181. reflex/constants/installer.py +26 -20
  182. reflex/constants/route.py +27 -8
  183. reflex/constants/state.py +2 -0
  184. reflex/custom_components/custom_components.py +0 -14
  185. reflex/environment.py +77 -5
  186. reflex/event.py +178 -81
  187. reflex/experimental/__init__.py +0 -30
  188. reflex/istate/__init__.py +69 -0
  189. reflex/istate/manager.py +1 -0
  190. reflex/istate/proxy.py +5 -3
  191. reflex/page.py +0 -27
  192. reflex/plugins/__init__.py +3 -2
  193. reflex/plugins/base.py +5 -1
  194. reflex/plugins/shared_tailwind.py +215 -0
  195. reflex/plugins/sitemap.py +206 -0
  196. reflex/plugins/tailwind_v3.py +15 -108
  197. reflex/plugins/tailwind_v4.py +18 -110
  198. reflex/reflex.py +1 -0
  199. reflex/route.py +157 -75
  200. reflex/state.py +171 -155
  201. reflex/testing.py +86 -16
  202. reflex/utils/build.py +38 -82
  203. reflex/utils/exec.py +83 -175
  204. reflex/utils/export.py +2 -2
  205. reflex/utils/format.py +1 -5
  206. reflex/utils/imports.py +5 -16
  207. reflex/utils/misc.py +67 -0
  208. reflex/utils/prerequisites.py +66 -68
  209. reflex/utils/processes.py +24 -47
  210. reflex/utils/pyi_generator.py +44 -49
  211. reflex/utils/serializers.py +14 -1
  212. reflex/utils/telemetry.py +0 -15
  213. reflex/utils/types.py +197 -62
  214. reflex/vars/__init__.py +2 -0
  215. reflex/vars/base.py +367 -134
  216. {reflex-0.7.14a5.dist-info → reflex-0.8.0.dist-info}/METADATA +15 -8
  217. reflex-0.8.0.dist-info/RECORD +403 -0
  218. reflex/.templates/web/next.config.js +0 -7
  219. reflex/components/base/head.py +0 -20
  220. reflex/components/base/head.pyi +0 -116
  221. reflex/components/next/__init__.py +0 -10
  222. reflex/components/next/base.py +0 -7
  223. reflex/components/next/image.py +0 -117
  224. reflex/components/next/image.pyi +0 -94
  225. reflex/components/next/link.py +0 -20
  226. reflex/components/next/link.pyi +0 -67
  227. reflex/components/next/video.py +0 -38
  228. reflex/components/next/video.pyi +0 -68
  229. reflex/components/suneditor/__init__.py +0 -5
  230. reflex/components/suneditor/editor.py +0 -269
  231. reflex/components/suneditor/editor.pyi +0 -199
  232. reflex/experimental/layout.py +0 -254
  233. reflex-0.7.14a5.dist-info/RECORD +0 -407
  234. {reflex-0.7.14a5.dist-info → reflex-0.8.0.dist-info}/WHEEL +0 -0
  235. {reflex-0.7.14a5.dist-info → reflex-0.8.0.dist-info}/entry_points.txt +0 -0
  236. {reflex-0.7.14a5.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 Area as Area
7
- from .cartesian import Bar as Bar
8
- from .cartesian import Brush as Brush
9
- from .cartesian import CartesianAxis as CartesianAxis
10
- from .cartesian import CartesianGrid as CartesianGrid
11
- from .cartesian import ErrorBar as ErrorBar
12
- from .cartesian import Funnel as Funnel
13
- from .cartesian import Line as Line
14
- from .cartesian import ReferenceArea as ReferenceArea
15
- from .cartesian import ReferenceDot as ReferenceDot
16
- from .cartesian import ReferenceLine as ReferenceLine
17
- from .cartesian import Scatter as Scatter
18
- from .cartesian import XAxis as XAxis
19
- from .cartesian import YAxis as YAxis
20
- from .cartesian import ZAxis as ZAxis
21
- from .cartesian import area as area
22
- from .cartesian import bar as bar
23
- from .cartesian import brush as brush
24
- from .cartesian import cartesian_axis as cartesian_axis
25
- from .cartesian import cartesian_grid as cartesian_grid
26
- from .cartesian import error_bar as error_bar
27
- from .cartesian import funnel as funnel
28
- from .cartesian import line as line
29
- from .cartesian import reference_area as reference_area
30
- from .cartesian import reference_dot as reference_dot
31
- from .cartesian import reference_line as reference_line
32
- from .cartesian import scatter as scatter
33
- from .cartesian import x_axis as x_axis
34
- from .cartesian import y_axis as y_axis
35
- from .cartesian import z_axis as z_axis
36
- from .charts import AreaChart as AreaChart
37
- from .charts import BarChart as BarChart
38
- from .charts import ComposedChart as ComposedChart
39
- from .charts import FunnelChart as FunnelChart
40
- from .charts import LineChart as LineChart
41
- from .charts import PieChart as PieChart
42
- from .charts import RadarChart as RadarChart
43
- from .charts import RadialBarChart as RadialBarChart
44
- from .charts import ScatterChart as ScatterChart
45
- from .charts import Treemap as Treemap
46
- from .charts import area_chart as area_chart
47
- from .charts import bar_chart as bar_chart
48
- from .charts import composed_chart as composed_chart
49
- from .charts import funnel_chart as funnel_chart
50
- from .charts import line_chart as line_chart
51
- from .charts import pie_chart as pie_chart
52
- from .charts import radar_chart as radar_chart
53
- from .charts import radial_bar_chart as radial_bar_chart
54
- from .charts import scatter_chart as scatter_chart
55
- from .charts import treemap as treemap
56
- from .general import Cell as Cell
57
- from .general import GraphingTooltip as GraphingTooltip
58
- from .general import Label as Label
59
- from .general import LabelList as LabelList
60
- from .general import Legend as Legend
61
- from .general import ResponsiveContainer as ResponsiveContainer
62
- from .general import cell as cell
63
- from .general import graphing_tooltip as graphing_tooltip
64
- from .general import label as label
65
- from .general import label_list as label_list
66
- from .general import legend as legend
67
- from .general import responsive_container as responsive_container
68
- from .general import tooltip as tooltip
69
- from .polar import Pie as Pie
70
- from .polar import PolarAngleAxis as PolarAngleAxis
71
- from .polar import PolarGrid as PolarGrid
72
- from .polar import PolarRadiusAxis as PolarRadiusAxis
73
- from .polar import Radar as Radar
74
- from .polar import RadialBar as RadialBar
75
- from .polar import pie as pie
76
- from .polar import polar_angle_axis as polar_angle_axis
77
- from .polar import polar_grid as polar_grid
78
- from .polar import polar_radius_axis as polar_radius_axis
79
- from .polar import radar as radar
80
- from .polar import radial_bar as radial_bar
81
- from .recharts import LiteralAnimationEasing as LiteralAnimationEasing
82
- from .recharts import LiteralAxisType as LiteralAxisType
83
- from .recharts import LiteralBarChartStackOffset as LiteralBarChartStackOffset
84
- from .recharts import LiteralComposedChartBaseValue as LiteralComposedChartBaseValue
85
- from .recharts import LiteralCurveType as LiteralCurveType
86
- from .recharts import LiteralDirection as LiteralDirection
87
- from .recharts import LiteralGridType as LiteralGridType
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
- LiteralOrientationTopBottomLeftRight as LiteralOrientationTopBottomLeftRight,
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
- from .recharts import LiteralPolarRadiusType as LiteralPolarRadiusType
104
- from .recharts import LiteralScale as LiteralScale
105
- from .recharts import LiteralShape as LiteralShape
106
- from .recharts import LiteralStackOffset as LiteralStackOffset
107
- from .recharts import LiteralSyncMethod as LiteralSyncMethod
108
- from .recharts import LiteralVerticalAlign as LiteralVerticalAlign
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
- def get_event_triggers(self) -> dict[str, Var | Any]:
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
- # If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
662
- is_front: Var[bool]
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[Any] = []
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