reflex 0.8.0a5__py3-none-any.whl → 0.8.0a7__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 (148) hide show
  1. reflex/.templates/jinja/web/pages/_app.js.jinja2 +1 -1
  2. reflex/.templates/web/utils/state.js +78 -31
  3. reflex/__init__.pyi +327 -188
  4. reflex/app.py +17 -7
  5. reflex/compiler/compiler.py +3 -1
  6. reflex/compiler/utils.py +28 -12
  7. reflex/components/__init__.pyi +34 -15
  8. reflex/components/base/__init__.pyi +30 -19
  9. reflex/components/base/app_wrap.pyi +2 -3
  10. reflex/components/base/body.pyi +2 -3
  11. reflex/components/base/document.pyi +7 -13
  12. reflex/components/base/error_boundary.pyi +2 -3
  13. reflex/components/base/fragment.pyi +2 -3
  14. reflex/components/base/link.pyi +3 -5
  15. reflex/components/base/meta.pyi +14 -18
  16. reflex/components/base/script.pyi +2 -3
  17. reflex/components/base/strict_mode.pyi +2 -3
  18. reflex/components/core/__init__.pyi +77 -38
  19. reflex/components/core/auto_scroll.pyi +2 -3
  20. reflex/components/core/banner.pyi +8 -14
  21. reflex/components/core/client_side_routing.pyi +2 -3
  22. reflex/components/core/clipboard.pyi +2 -3
  23. reflex/components/core/debounce.pyi +2 -3
  24. reflex/components/core/helmet.pyi +2 -3
  25. reflex/components/core/html.pyi +2 -3
  26. reflex/components/core/sticky.pyi +4 -7
  27. reflex/components/core/upload.pyi +5 -9
  28. reflex/components/datadisplay/__init__.pyi +13 -7
  29. reflex/components/datadisplay/code.pyi +2 -3
  30. reflex/components/datadisplay/dataeditor.pyi +33 -11
  31. reflex/components/datadisplay/shiki_code_block.pyi +3 -5
  32. reflex/components/el/__init__.pyi +506 -246
  33. reflex/components/el/element.pyi +2 -3
  34. reflex/components/el/elements/__init__.pyi +504 -245
  35. reflex/components/el/elements/base.pyi +2 -3
  36. reflex/components/el/elements/forms.pyi +77 -49
  37. reflex/components/el/elements/inline.pyi +29 -57
  38. reflex/components/el/elements/media.pyi +26 -51
  39. reflex/components/el/elements/metadata.pyi +7 -13
  40. reflex/components/el/elements/other.pyi +8 -15
  41. reflex/components/el/elements/scripts.pyi +4 -7
  42. reflex/components/el/elements/sectioning.pyi +16 -31
  43. reflex/components/el/elements/tables.pyi +11 -21
  44. reflex/components/el/elements/typography.pyi +16 -31
  45. reflex/components/gridjs/datatable.pyi +3 -5
  46. reflex/components/lucide/icon.pyi +4 -7
  47. reflex/components/markdown/markdown.pyi +2 -3
  48. reflex/components/moment/moment.py +1 -1
  49. reflex/components/moment/moment.pyi +2 -3
  50. reflex/components/plotly/plotly.pyi +31 -39
  51. reflex/components/radix/__init__.pyi +123 -65
  52. reflex/components/radix/primitives/__init__.pyi +6 -4
  53. reflex/components/radix/primitives/accordion.pyi +8 -15
  54. reflex/components/radix/primitives/base.pyi +3 -5
  55. reflex/components/radix/primitives/drawer.pyi +11 -21
  56. reflex/components/radix/primitives/form.pyi +22 -22
  57. reflex/components/radix/primitives/progress.pyi +5 -9
  58. reflex/components/radix/primitives/slider.pyi +6 -11
  59. reflex/components/radix/themes/__init__.pyi +5 -6
  60. reflex/components/radix/themes/base.pyi +9 -17
  61. reflex/components/radix/themes/color_mode.pyi +4 -7
  62. reflex/components/radix/themes/components/__init__.pyi +75 -38
  63. reflex/components/radix/themes/components/alert_dialog.pyi +8 -15
  64. reflex/components/radix/themes/components/aspect_ratio.pyi +2 -3
  65. reflex/components/radix/themes/components/avatar.pyi +2 -3
  66. reflex/components/radix/themes/components/badge.pyi +2 -3
  67. reflex/components/radix/themes/components/button.pyi +2 -3
  68. reflex/components/radix/themes/components/callout.pyi +5 -9
  69. reflex/components/radix/themes/components/card.pyi +2 -3
  70. reflex/components/radix/themes/components/checkbox.pyi +3 -5
  71. reflex/components/radix/themes/components/checkbox_cards.pyi +3 -5
  72. reflex/components/radix/themes/components/checkbox_group.pyi +3 -5
  73. reflex/components/radix/themes/components/context_menu.pyi +14 -27
  74. reflex/components/radix/themes/components/data_list.pyi +5 -9
  75. reflex/components/radix/themes/components/dialog.pyi +7 -13
  76. reflex/components/radix/themes/components/dropdown_menu.pyi +9 -17
  77. reflex/components/radix/themes/components/hover_card.pyi +4 -7
  78. reflex/components/radix/themes/components/icon_button.pyi +2 -3
  79. reflex/components/radix/themes/components/inset.pyi +2 -3
  80. reflex/components/radix/themes/components/popover.pyi +5 -9
  81. reflex/components/radix/themes/components/progress.pyi +2 -3
  82. reflex/components/radix/themes/components/radio.pyi +2 -3
  83. reflex/components/radix/themes/components/radio_cards.pyi +3 -5
  84. reflex/components/radix/themes/components/radio_group.pyi +4 -7
  85. reflex/components/radix/themes/components/scroll_area.pyi +2 -3
  86. reflex/components/radix/themes/components/segmented_control.pyi +3 -5
  87. reflex/components/radix/themes/components/select.pyi +9 -17
  88. reflex/components/radix/themes/components/separator.pyi +2 -3
  89. reflex/components/radix/themes/components/skeleton.pyi +2 -3
  90. reflex/components/radix/themes/components/slider.pyi +12 -5
  91. reflex/components/radix/themes/components/spinner.pyi +2 -3
  92. reflex/components/radix/themes/components/switch.pyi +2 -3
  93. reflex/components/radix/themes/components/table.pyi +8 -15
  94. reflex/components/radix/themes/components/tabs.pyi +5 -9
  95. reflex/components/radix/themes/components/text_area.pyi +10 -5
  96. reflex/components/radix/themes/components/text_field.pyi +19 -9
  97. reflex/components/radix/themes/components/tooltip.pyi +2 -3
  98. reflex/components/radix/themes/layout/__init__.pyi +27 -14
  99. reflex/components/radix/themes/layout/base.pyi +2 -3
  100. reflex/components/radix/themes/layout/box.pyi +2 -3
  101. reflex/components/radix/themes/layout/center.pyi +2 -3
  102. reflex/components/radix/themes/layout/container.pyi +2 -3
  103. reflex/components/radix/themes/layout/flex.pyi +2 -3
  104. reflex/components/radix/themes/layout/grid.pyi +2 -3
  105. reflex/components/radix/themes/layout/list.pyi +5 -9
  106. reflex/components/radix/themes/layout/section.pyi +2 -3
  107. reflex/components/radix/themes/layout/spacer.pyi +2 -3
  108. reflex/components/radix/themes/layout/stack.pyi +4 -7
  109. reflex/components/radix/themes/typography/__init__.pyi +7 -5
  110. reflex/components/radix/themes/typography/blockquote.pyi +2 -3
  111. reflex/components/radix/themes/typography/code.pyi +2 -3
  112. reflex/components/radix/themes/typography/heading.pyi +2 -3
  113. reflex/components/radix/themes/typography/link.pyi +3 -5
  114. reflex/components/radix/themes/typography/text.pyi +7 -13
  115. reflex/components/react_player/audio.pyi +5 -4
  116. reflex/components/react_player/react_player.pyi +2 -3
  117. reflex/components/react_player/video.pyi +5 -4
  118. reflex/components/recharts/__init__.pyi +208 -100
  119. reflex/components/recharts/cartesian.py +0 -6
  120. reflex/components/recharts/cartesian.pyi +25 -48
  121. reflex/components/recharts/charts.pyi +13 -25
  122. reflex/components/recharts/general.pyi +7 -13
  123. reflex/components/recharts/polar.pyi +7 -13
  124. reflex/components/recharts/recharts.py +2 -2
  125. reflex/components/recharts/recharts.pyi +3 -5
  126. reflex/components/sonner/toast.py +1 -1
  127. reflex/components/sonner/toast.pyi +2 -3
  128. reflex/config.py +7 -36
  129. reflex/constants/installer.py +7 -8
  130. reflex/environment.py +70 -0
  131. reflex/istate/__init__.py +69 -0
  132. reflex/istate/manager.py +1 -0
  133. reflex/plugins/shared_tailwind.py +58 -1
  134. reflex/plugins/tailwind_v3.py +4 -4
  135. reflex/plugins/tailwind_v4.py +6 -5
  136. reflex/state.py +17 -12
  137. reflex/testing.py +2 -1
  138. reflex/utils/exec.py +16 -6
  139. reflex/utils/imports.py +5 -12
  140. reflex/utils/misc.py +1 -2
  141. reflex/utils/prerequisites.py +1 -1
  142. reflex/utils/processes.py +14 -39
  143. reflex/utils/telemetry.py +0 -15
  144. {reflex-0.8.0a5.dist-info → reflex-0.8.0a7.dist-info}/METADATA +3 -3
  145. {reflex-0.8.0a5.dist-info → reflex-0.8.0a7.dist-info}/RECORD +148 -148
  146. {reflex-0.8.0a5.dist-info → reflex-0.8.0a7.dist-info}/WHEEL +0 -0
  147. {reflex-0.8.0a5.dist-info → reflex-0.8.0a7.dist-info}/entry_points.txt +0 -0
  148. {reflex-0.8.0a5.dist-info → reflex-0.8.0a7.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
+ ]
@@ -659,9 +659,6 @@ 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
- # If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
663
- is_front: Var[bool]
664
-
665
662
 
666
663
  class Segment(TypedDict):
667
664
  """A segment in a ReferenceLine or ReferenceArea."""
@@ -783,9 +780,6 @@ class ReferenceArea(Recharts):
783
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"
784
781
  if_overflow: Var[LiteralIfOverflow]
785
782
 
786
- # If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
787
- is_front: Var[bool]
788
-
789
783
  # Valid children components
790
784
  _valid_children: ClassVar[list[str]] = ["Label"]
791
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, overload
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( # type: ignore
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( # type: ignore
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( # type: ignore
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( # type: ignore
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( # type: ignore
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( # type: ignore
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( # type: ignore
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( # type: ignore
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( # type: ignore
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( # type: ignore
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( # type: ignore
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( # type: ignore
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( # type: ignore
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( # type: ignore
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[Any] | None = None,
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( # type: ignore
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( # type: ignore
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( # type: ignore
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( # type: ignore
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( # type: ignore
2045
+ def create(
2069
2046
  cls,
2070
2047
  *children,
2071
2048
  orientation: Literal["bottom", "left", "right", "top"]