reflex 0.2.9a2__py3-none-any.whl → 0.3.0a2__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 (34) hide show
  1. reflex/__init__.py +0 -1
  2. reflex/components/__init__.py +42 -15
  3. reflex/components/base/script.py +1 -1
  4. reflex/components/datadisplay/code.py +1 -1
  5. reflex/components/datadisplay/datatable.py +2 -2
  6. reflex/components/forms/debounce.py +1 -1
  7. reflex/components/forms/upload.py +1 -1
  8. reflex/components/graphing/__init__.py +1 -16
  9. reflex/components/graphing/plotly.py +2 -2
  10. reflex/components/graphing/recharts/__init__.py +41 -0
  11. reflex/components/graphing/recharts/cartesian.py +530 -0
  12. reflex/components/graphing/recharts/charts.py +456 -0
  13. reflex/components/graphing/recharts/general.py +166 -0
  14. reflex/components/graphing/recharts/polar.py +306 -0
  15. reflex/components/graphing/recharts/recharts.py +21 -0
  16. reflex/components/libs/react_player.py +1 -1
  17. reflex/components/media/icon.py +1 -1
  18. reflex/components/media/image.py +14 -5
  19. reflex/components/overlay/menu.py +26 -2
  20. reflex/components/typography/markdown.py +9 -5
  21. reflex/constants/installer.py +17 -16
  22. reflex/constants/style.py +1 -1
  23. reflex/event.py +12 -0
  24. reflex/utils/console.py +1 -1
  25. reflex/utils/exec.py +1 -1
  26. reflex/vars.py +6 -0
  27. {reflex-0.2.9a2.dist-info → reflex-0.3.0a2.dist-info}/METADATA +1 -1
  28. {reflex-0.2.9a2.dist-info → reflex-0.3.0a2.dist-info}/RECORD +31 -28
  29. reflex/.templates/web/bun.lockb +0 -0
  30. reflex/components/graphing/victory.py +0 -608
  31. reflex/components/graphing/victory.pyi +0 -308
  32. {reflex-0.2.9a2.dist-info → reflex-0.3.0a2.dist-info}/LICENSE +0 -0
  33. {reflex-0.2.9a2.dist-info → reflex-0.3.0a2.dist-info}/WHEEL +0 -0
  34. {reflex-0.2.9a2.dist-info → reflex-0.3.0a2.dist-info}/entry_points.txt +0 -0
reflex/__init__.py CHANGED
@@ -14,7 +14,6 @@ from .compiler.utils import get_asset_path
14
14
  from .components import *
15
15
  from .components.base.script import client_side
16
16
  from .components.component import custom_component as memo
17
- from .components.graphing.victory import data as data
18
17
  from .config import Config as Config
19
18
  from .config import DBConfig as DBConfig
20
19
  from .constants import Env as Env
@@ -140,21 +140,7 @@ slider_track = SliderTrack.create
140
140
  switch = Switch.create
141
141
  text_area = TextArea.create
142
142
  upload = Upload.create
143
- area = Area.create
144
- bar = Bar.create
145
- box_plot = BoxPlot.create
146
- candlestick = Candlestick.create
147
- chart = Chart.create
148
- chart_group = ChartGroup.create
149
- chart_stack = ChartStack.create
150
- error_bar = ErrorBar.create
151
- histogram = Histogram.create
152
- line = Line.create
153
- pie = Pie.create
154
- plotly = Plotly.create
155
- polar = Polar.create
156
- scatter = Scatter.create
157
- voronoi = Voronoi.create
143
+
158
144
  box = Box.create
159
145
  center = Center.create
160
146
  circle = Circle.create
@@ -246,3 +232,44 @@ kbd = KeyboardKey.create
246
232
  color_mode_button = ColorModeButton.create
247
233
  color_mode_icon = ColorModeIcon.create
248
234
  color_mode_switch = ColorModeSwitch.create
235
+
236
+ area_chart = AreaChart.create
237
+ bar_chart = BarChart.create
238
+ line_chart = LineChart.create
239
+ composed_chart = ComposedChart.create
240
+ pie_chart = PieChart.create
241
+ radar_chart = RadarChart.create
242
+ radial_bar_chart = RadialBarChart.create
243
+ scatter_chart = ScatterChart.create
244
+ funnel_chart = FunnelChart.create
245
+ treemap = Treemap.create
246
+
247
+
248
+ area = Area.create
249
+ bar = Bar.create
250
+ line = Line.create
251
+ scatter = Scatter.create
252
+ x_axis = XAxis.create
253
+ y_axis = YAxis.create
254
+ z_axis = ZAxis.create
255
+ brush = Brush.create
256
+ cartesian_axis = CartesianAxis.create
257
+ cartesian_grid = CartesianGrid.create
258
+ reference_line = ReferenceLine.create
259
+ reference_dot = ReferenceDot.create
260
+ reference_area = ReferenceArea.create
261
+ error_bar = ErrorBar.create
262
+ funnel = Funnel.create
263
+
264
+ responsive_container = ResponsiveContainer.create
265
+ legend = Legend.create
266
+ graphing_tooltip = GraphingTooltip.create
267
+ label = Label.create
268
+ label_list = LabelList.create
269
+
270
+ pie = Pie.create
271
+ radar = Radar.create
272
+ radial_bar = RadialBar.create
273
+ polar_angle_axis = PolarAngleAxis.create
274
+ polar_grid = PolarGrid.create
275
+ polar_radius_axis = PolarRadiusAxis.create
@@ -90,7 +90,7 @@ def client_side(javascript_code) -> Var[EventChain]:
90
90
  """
91
91
  console.deprecate(
92
92
  feature_name="rx.client_side",
93
- reason="Replaced by rx.call_script, which can be used from backend EventHandler too",
93
+ reason="and has been replaced by rx.call_script, which can be used from backend EventHandler too",
94
94
  deprecation_version="0.2.9",
95
95
  removal_version="0.2.10",
96
96
  )
@@ -19,7 +19,7 @@ PRISM_STYLES_PATH: str = "/styles/code/prism"
19
19
  class CodeBlock(Component):
20
20
  """A code block."""
21
21
 
22
- library = "react-syntax-highlighter@^15.5.0"
22
+ library = "react-syntax-highlighter@==15.5.0"
23
23
 
24
24
  tag = "Prism"
25
25
 
@@ -14,9 +14,9 @@ from reflex.vars import BaseVar, ComputedVar, ImportVar, Var
14
14
  class Gridjs(Component):
15
15
  """A component that wraps a nivo bar component."""
16
16
 
17
- library = "gridjs-react@^6.0.1"
17
+ library = "gridjs-react@==6.0.1"
18
18
 
19
- lib_dependencies: List[str] = ["gridjs@^6.0.6"]
19
+ lib_dependencies: List[str] = ["gridjs@==6.0.6"]
20
20
 
21
21
 
22
22
  class DataTable(Gridjs):
@@ -16,7 +16,7 @@ class DebounceInput(Component):
16
16
  is experiencing high latency.
17
17
  """
18
18
 
19
- library = "react-debounce-input@^3.3.0"
19
+ library = "react-debounce-input@==3.3.0"
20
20
  tag = "DebounceInput"
21
21
 
22
22
  # Minimum input characters before triggering the on_change event
@@ -24,7 +24,7 @@ clear_selected_files: BaseVar = BaseVar(
24
24
  class Upload(Component):
25
25
  """A file upload component."""
26
26
 
27
- library = "react-dropzone@^14.2.3"
27
+ library = "react-dropzone@==14.2.3"
28
28
 
29
29
  tag = "ReactDropzone"
30
30
 
@@ -1,21 +1,6 @@
1
1
  """Convenience functions to define layout components."""
2
2
 
3
3
  from .plotly import Plotly
4
- from .victory import (
5
- Area,
6
- Bar,
7
- BoxPlot,
8
- Candlestick,
9
- Chart,
10
- ChartGroup,
11
- ChartStack,
12
- ErrorBar,
13
- Histogram,
14
- Line,
15
- Pie,
16
- Polar,
17
- Scatter,
18
- Voronoi,
19
- )
4
+ from .recharts import *
20
5
 
21
6
  __all__ = [f for f in dir() if f[0].isupper()] # type: ignore
@@ -16,9 +16,9 @@ except ImportError:
16
16
  class PlotlyLib(NoSSRComponent):
17
17
  """A component that wraps a plotly lib."""
18
18
 
19
- library = "react-plotly.js@^2.6.0"
19
+ library = "react-plotly.js@==2.6.0"
20
20
 
21
- lib_dependencies: List[str] = ["plotly.js@^2.22.0"]
21
+ lib_dependencies: List[str] = ["plotly.js@==2.22.0"]
22
22
 
23
23
 
24
24
  class Plotly(PlotlyLib):
@@ -0,0 +1,41 @@
1
+ """Recharts components."""
2
+
3
+ from .cartesian import (
4
+ Area,
5
+ Bar,
6
+ Brush,
7
+ Cartesian,
8
+ CartesianAxis,
9
+ CartesianGrid,
10
+ ErrorBar,
11
+ Funnel,
12
+ Line,
13
+ ReferenceArea,
14
+ ReferenceDot,
15
+ ReferenceLine,
16
+ Scatter,
17
+ XAxis,
18
+ YAxis,
19
+ ZAxis,
20
+ )
21
+ from .charts import (
22
+ AreaChart,
23
+ BarChart,
24
+ ComposedChart,
25
+ FunnelChart,
26
+ LineChart,
27
+ PieChart,
28
+ RadarChart,
29
+ RadialBarChart,
30
+ ScatterChart,
31
+ Treemap,
32
+ )
33
+ from .general import GraphingTooltip, Label, LabelList, Legend, ResponsiveContainer
34
+ from .polar import (
35
+ Pie,
36
+ PolarAngleAxis,
37
+ PolarGrid,
38
+ PolarRadiusAxis,
39
+ Radar,
40
+ RadialBar,
41
+ )