|
@@ -3,7 +3,7 @@
|
|
|
# ------------------- DO NOT EDIT ----------------------
|
|
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
|
# ------------------------------------------------------
|
|
|
-from typing import Any, List, Literal, Optional, overload
|
|
|
+from typing import Any, Literal, Optional, Sequence, overload
|
|
|
|
|
|
from reflex.constants.colors import Color
|
|
|
from reflex.event import EventType
|
|
@@ -45,7 +45,7 @@ class Axis(Recharts):
|
|
|
allow_decimals: Var[bool] | bool | None = None,
|
|
|
allow_data_overflow: Var[bool] | bool | None = None,
|
|
|
allow_duplicated_category: Var[bool] | bool | None = None,
|
|
|
- domain: List | Var[List] | None = None,
|
|
|
+ domain: Sequence | Var[Sequence] | None = None,
|
|
|
axis_line: Var[bool] | bool | None = None,
|
|
|
mirror: Var[bool] | bool | None = None,
|
|
|
reversed: Var[bool] | bool | None = None,
|
|
@@ -93,7 +93,7 @@ class Axis(Recharts):
|
|
|
| None = None,
|
|
|
unit: Var[int | str] | int | str | None = None,
|
|
|
name: Var[int | str] | int | str | None = None,
|
|
|
- ticks: Var[list[int | str]] | list[int | str] | None = None,
|
|
|
+ ticks: Sequence[int | str] | Var[Sequence[int | str]] | None = None,
|
|
|
tick: Var[bool] | bool | None = None,
|
|
|
tick_count: Var[int] | int | None = None,
|
|
|
tick_line: Var[bool] | bool | None = None,
|
|
@@ -215,7 +215,7 @@ class XAxis(Axis):
|
|
|
allow_decimals: Var[bool] | bool | None = None,
|
|
|
allow_data_overflow: Var[bool] | bool | None = None,
|
|
|
allow_duplicated_category: Var[bool] | bool | None = None,
|
|
|
- domain: List | Var[List] | None = None,
|
|
|
+ domain: Sequence | Var[Sequence] | None = None,
|
|
|
axis_line: Var[bool] | bool | None = None,
|
|
|
mirror: Var[bool] | bool | None = None,
|
|
|
reversed: Var[bool] | bool | None = None,
|
|
@@ -263,7 +263,7 @@ class XAxis(Axis):
|
|
|
| None = None,
|
|
|
unit: Var[int | str] | int | str | None = None,
|
|
|
name: Var[int | str] | int | str | None = None,
|
|
|
- ticks: Var[list[int | str]] | list[int | str] | None = None,
|
|
|
+ ticks: Sequence[int | str] | Var[Sequence[int | str]] | None = None,
|
|
|
tick: Var[bool] | bool | None = None,
|
|
|
tick_count: Var[int] | int | None = None,
|
|
|
tick_line: Var[bool] | bool | None = None,
|
|
@@ -388,7 +388,7 @@ class YAxis(Axis):
|
|
|
allow_decimals: Var[bool] | bool | None = None,
|
|
|
allow_data_overflow: Var[bool] | bool | None = None,
|
|
|
allow_duplicated_category: Var[bool] | bool | None = None,
|
|
|
- domain: List | Var[List] | None = None,
|
|
|
+ domain: Sequence | Var[Sequence] | None = None,
|
|
|
axis_line: Var[bool] | bool | None = None,
|
|
|
mirror: Var[bool] | bool | None = None,
|
|
|
reversed: Var[bool] | bool | None = None,
|
|
@@ -436,7 +436,7 @@ class YAxis(Axis):
|
|
|
| None = None,
|
|
|
unit: Var[int | str] | int | str | None = None,
|
|
|
name: Var[int | str] | int | str | None = None,
|
|
|
- ticks: Var[list[int | str]] | list[int | str] | None = None,
|
|
|
+ ticks: Sequence[int | str] | Var[Sequence[int | str]] | None = None,
|
|
|
tick: Var[bool] | bool | None = None,
|
|
|
tick_count: Var[int] | int | None = None,
|
|
|
tick_line: Var[bool] | bool | None = None,
|
|
@@ -529,7 +529,7 @@ class ZAxis(Recharts):
|
|
|
*children,
|
|
|
data_key: Var[int | str] | int | str | None = None,
|
|
|
z_axis_id: Var[int | str] | int | str | None = None,
|
|
|
- range: Var[list[int]] | list[int] | None = None,
|
|
|
+ range: Sequence[int] | Var[Sequence[int]] | None = None,
|
|
|
unit: Var[int | str] | int | str | None = None,
|
|
|
name: Var[int | str] | int | str | None = None,
|
|
|
scale: Literal[
|
|
@@ -629,7 +629,7 @@ class Brush(Recharts):
|
|
|
y: Var[int] | int | None = None,
|
|
|
width: Var[int] | int | None = None,
|
|
|
height: Var[int] | int | None = None,
|
|
|
- data: Var[list[Any]] | list[Any] | None = None,
|
|
|
+ data: Sequence[Any] | Var[Sequence[Any]] | None = None,
|
|
|
traveller_width: Var[int] | int | None = None,
|
|
|
gap: Var[int] | int | None = None,
|
|
|
start_index: Var[int] | int | None = None,
|
|
@@ -835,11 +835,11 @@ class Area(Cartesian):
|
|
|
dot: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
|
active_dot: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
|
label: Var[bool] | bool | None = None,
|
|
|
- base_line: Var[list[dict[str, Any]] | str]
|
|
|
- | list[dict[str, Any]]
|
|
|
+ base_line: Sequence[dict[str, Any]]
|
|
|
+ | Var[Sequence[dict[str, Any]] | str]
|
|
|
| str
|
|
|
| None = None,
|
|
|
- points: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
|
+ points: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
|
stack_id: Var[int | str] | int | str | None = None,
|
|
|
connect_nulls: Var[bool] | bool | None = None,
|
|
|
layout: Literal["horizontal", "vertical"]
|
|
@@ -978,7 +978,7 @@ class Bar(Cartesian):
|
|
|
name: Var[int | str] | int | str | None = None,
|
|
|
bar_size: Var[int] | int | None = None,
|
|
|
max_bar_size: Var[int] | int | None = None,
|
|
|
- radius: Var[int | list[int]] | int | list[int] | None = None,
|
|
|
+ radius: Sequence[int] | Var[Sequence[int] | int] | int | None = None,
|
|
|
layout: Literal["horizontal", "vertical"]
|
|
|
| Var[Literal["horizontal", "vertical"]]
|
|
|
| None = None,
|
|
@@ -1146,7 +1146,7 @@ class Line(Cartesian):
|
|
|
hide: Var[bool] | bool | None = None,
|
|
|
connect_nulls: Var[bool] | bool | None = None,
|
|
|
unit: Var[int | str] | int | str | None = None,
|
|
|
- points: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
|
+ points: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
|
stroke_dasharray: Var[str] | str | None = None,
|
|
|
layout: Literal["horizontal", "vertical"]
|
|
|
| Var[Literal["horizontal", "vertical"]]
|
|
@@ -1271,7 +1271,7 @@ class Scatter(Recharts):
|
|
|
def create( # type: ignore
|
|
|
cls,
|
|
|
*children,
|
|
|
- data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
|
+ data: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
|
legend_type: Literal[
|
|
|
"circle",
|
|
|
"cross",
|
|
@@ -1391,7 +1391,7 @@ class Funnel(Recharts):
|
|
|
def create( # type: ignore
|
|
|
cls,
|
|
|
*children,
|
|
|
- data: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
|
+ data: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
|
data_key: Var[int | str] | int | str | None = None,
|
|
|
name_key: Var[str] | str | None = None,
|
|
|
legend_type: Literal[
|
|
@@ -1432,7 +1432,9 @@ class Funnel(Recharts):
|
|
|
| Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]]
|
|
|
| None = None,
|
|
|
stroke: Color | Var[Color | str] | str | None = None,
|
|
|
- trapezoids: Var[list[dict[str, Any]]] | list[dict[str, Any]] | None = None,
|
|
|
+ trapezoids: Sequence[dict[str, Any]]
|
|
|
+ | Var[Sequence[dict[str, Any]]]
|
|
|
+ | None = None,
|
|
|
style: Style | None = None,
|
|
|
key: Any | None = None,
|
|
|
id: Any | None = None,
|
|
@@ -1619,7 +1621,7 @@ class ReferenceLine(Reference):
|
|
|
y: Var[int | str] | int | str | None = None,
|
|
|
stroke: Color | Var[Color | str] | str | None = None,
|
|
|
stroke_width: Var[int | str] | int | str | None = None,
|
|
|
- segment: list[Any] | None = None,
|
|
|
+ segment: Sequence[Any] | None = None,
|
|
|
x_axis_id: Var[int | str] | int | str | None = None,
|
|
|
y_axis_id: Var[int | str] | int | str | None = None,
|
|
|
if_overflow: Literal["discard", "extendDomain", "hidden", "visible"]
|
|
@@ -1885,8 +1887,8 @@ class CartesianGrid(Grid):
|
|
|
*children,
|
|
|
horizontal: Var[bool] | bool | None = None,
|
|
|
vertical: Var[bool] | bool | None = None,
|
|
|
- vertical_points: Var[list[int | str]] | list[int | str] | None = None,
|
|
|
- horizontal_points: Var[list[int | str]] | list[int | str] | None = None,
|
|
|
+ vertical_points: Sequence[int | str] | Var[Sequence[int | str]] | None = None,
|
|
|
+ horizontal_points: Sequence[int | str] | Var[Sequence[int | str]] | None = None,
|
|
|
fill: Color | Var[Color | str] | str | None = None,
|
|
|
fill_opacity: Var[float] | float | None = None,
|
|
|
stroke_dasharray: Var[str] | str | None = None,
|