reflex 0.7.1a4__py3-none-any.whl → 0.7.2a1__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/web/utils/context.js.jinja2 +8 -8
- reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +3 -3
- reflex/admin.py +1 -2
- reflex/app.py +46 -49
- reflex/app_mixins/lifespan.py +2 -2
- reflex/app_mixins/middleware.py +1 -2
- reflex/assets.py +1 -2
- reflex/base.py +2 -2
- reflex/compiler/compiler.py +51 -16
- reflex/compiler/utils.py +4 -13
- reflex/components/base/app_wrap.pyi +7 -7
- reflex/components/base/bare.py +3 -3
- reflex/components/base/body.pyi +7 -7
- reflex/components/base/document.py +1 -3
- reflex/components/base/document.pyi +32 -32
- reflex/components/base/error_boundary.py +2 -4
- reflex/components/base/error_boundary.pyi +11 -13
- reflex/components/base/fragment.pyi +7 -7
- reflex/components/base/head.pyi +13 -13
- reflex/components/base/link.pyi +22 -22
- reflex/components/base/meta.py +5 -7
- reflex/components/base/meta.pyi +40 -40
- reflex/components/base/script.pyi +11 -14
- reflex/components/base/strict_mode.pyi +7 -7
- reflex/components/component.py +188 -113
- reflex/components/core/auto_scroll.py +8 -1
- reflex/components/core/auto_scroll.pyi +183 -210
- reflex/components/core/banner.py +2 -4
- reflex/components/core/banner.pyi +390 -444
- reflex/components/core/breakpoints.py +5 -5
- reflex/components/core/client_side_routing.pyi +14 -14
- reflex/components/core/clipboard.py +4 -4
- reflex/components/core/clipboard.pyi +12 -14
- reflex/components/core/cond.py +17 -25
- reflex/components/core/debounce.py +3 -3
- reflex/components/core/debounce.pyi +14 -14
- reflex/components/core/foreach.py +7 -2
- reflex/components/core/html.py +1 -3
- reflex/components/core/html.pyi +184 -213
- reflex/components/core/match.py +15 -19
- reflex/components/core/sticky.pyi +930 -1078
- reflex/components/core/upload.py +4 -4
- reflex/components/core/upload.pyi +62 -62
- reflex/components/datadisplay/code.py +6 -6
- reflex/components/datadisplay/code.pyi +1159 -1165
- reflex/components/datadisplay/dataeditor.py +49 -49
- reflex/components/datadisplay/dataeditor.pyi +95 -123
- reflex/components/datadisplay/logo.py +1 -3
- reflex/components/datadisplay/shiki_code_block.py +8 -10
- reflex/components/datadisplay/shiki_code_block.pyi +1678 -1720
- reflex/components/el/element.pyi +7 -7
- reflex/components/el/elements/base.pyi +183 -210
- reflex/components/el/elements/forms.py +23 -23
- reflex/components/el/elements/forms.pyi +2571 -2933
- reflex/components/el/elements/inline.py +4 -4
- reflex/components/el/elements/inline.pyi +5191 -5953
- reflex/components/el/elements/media.py +47 -47
- reflex/components/el/elements/media.pyi +4802 -5500
- reflex/components/el/elements/metadata.py +1 -3
- reflex/components/el/elements/metadata.pyi +782 -896
- reflex/components/el/elements/other.pyi +1278 -1467
- reflex/components/el/elements/scripts.pyi +580 -667
- reflex/components/el/elements/sectioning.pyi +2761 -3166
- reflex/components/el/elements/tables.pyi +1840 -2119
- reflex/components/el/elements/typography.pyi +2772 -3179
- reflex/components/gridjs/datatable.py +7 -7
- reflex/components/gridjs/datatable.pyi +19 -19
- reflex/components/lucide/icon.pyi +21 -21
- reflex/components/markdown/markdown.py +2 -2
- reflex/components/markdown/markdown.pyi +9 -9
- reflex/components/moment/moment.py +11 -12
- reflex/components/moment/moment.pyi +44 -47
- reflex/components/next/base.pyi +7 -7
- reflex/components/next/image.py +3 -3
- reflex/components/next/image.pyi +19 -21
- reflex/components/next/link.pyi +9 -9
- reflex/components/next/video.py +1 -3
- reflex/components/next/video.pyi +9 -9
- reflex/components/plotly/plotly.py +22 -45
- reflex/components/plotly/plotly.pyi +164 -164
- reflex/components/radix/primitives/accordion.py +14 -14
- reflex/components/radix/primitives/accordion.pyi +439 -487
- reflex/components/radix/primitives/base.py +1 -3
- reflex/components/radix/primitives/base.pyi +15 -15
- reflex/components/radix/primitives/drawer.py +3 -3
- reflex/components/radix/primitives/drawer.pyi +110 -116
- reflex/components/radix/primitives/form.py +1 -1
- reflex/components/radix/primitives/form.pyi +668 -752
- reflex/components/radix/primitives/progress.py +6 -6
- reflex/components/radix/primitives/progress.pyi +225 -243
- reflex/components/radix/primitives/slider.py +6 -6
- reflex/components/radix/primitives/slider.pyi +52 -55
- reflex/components/radix/themes/base.py +3 -6
- reflex/components/radix/themes/base.pyi +197 -303
- reflex/components/radix/themes/color_mode.py +5 -5
- reflex/components/radix/themes/color_mode.pyi +366 -436
- reflex/components/radix/themes/components/alert_dialog.pyi +229 -262
- reflex/components/radix/themes/components/aspect_ratio.py +1 -3
- reflex/components/radix/themes/components/aspect_ratio.pyi +8 -8
- reflex/components/radix/themes/components/avatar.pyi +79 -94
- reflex/components/radix/themes/components/badge.pyi +252 -295
- reflex/components/radix/themes/components/button.pyi +269 -314
- reflex/components/radix/themes/components/callout.py +2 -2
- reflex/components/radix/themes/components/callout.pyi +1116 -1290
- reflex/components/radix/themes/components/card.pyi +194 -229
- reflex/components/radix/themes/components/checkbox.pyi +243 -278
- reflex/components/radix/themes/components/checkbox_cards.py +3 -7
- reflex/components/radix/themes/components/checkbox_cards.pyi +101 -135
- reflex/components/radix/themes/components/checkbox_group.py +2 -2
- reflex/components/radix/themes/components/checkbox_group.pyi +83 -96
- reflex/components/radix/themes/components/context_menu.py +18 -15
- reflex/components/radix/themes/components/context_menu.pyi +408 -458
- reflex/components/radix/themes/components/data_list.pyi +122 -147
- reflex/components/radix/themes/components/dialog.pyi +231 -264
- reflex/components/radix/themes/components/dropdown_menu.py +16 -13
- reflex/components/radix/themes/components/dropdown_menu.pyi +223 -246
- reflex/components/radix/themes/components/hover_card.py +2 -2
- reflex/components/radix/themes/components/hover_card.pyi +237 -282
- reflex/components/radix/themes/components/icon_button.pyi +269 -314
- reflex/components/radix/themes/components/inset.py +8 -8
- reflex/components/radix/themes/components/inset.pyi +232 -292
- reflex/components/radix/themes/components/popover.py +2 -2
- reflex/components/radix/themes/components/popover.pyi +229 -271
- reflex/components/radix/themes/components/progress.pyi +80 -96
- reflex/components/radix/themes/components/radio.pyi +73 -86
- reflex/components/radix/themes/components/radio_cards.py +4 -8
- reflex/components/radix/themes/components/radio_cards.pyi +117 -154
- reflex/components/radix/themes/components/radio_group.py +3 -3
- reflex/components/radix/themes/components/radio_group.pyi +250 -291
- reflex/components/radix/themes/components/scroll_area.pyi +14 -20
- reflex/components/radix/themes/components/segmented_control.py +6 -6
- reflex/components/radix/themes/components/segmented_control.pyi +89 -108
- reflex/components/radix/themes/components/select.py +7 -7
- reflex/components/radix/themes/components/select.pyi +376 -444
- reflex/components/radix/themes/components/separator.pyi +79 -93
- reflex/components/radix/themes/components/skeleton.pyi +32 -26
- reflex/components/radix/themes/components/slider.py +8 -8
- reflex/components/radix/themes/components/slider.pyi +99 -122
- reflex/components/radix/themes/components/spinner.pyi +12 -19
- reflex/components/radix/themes/components/switch.pyi +84 -99
- reflex/components/radix/themes/components/table.py +9 -9
- reflex/components/radix/themes/components/table.pyi +1440 -1794
- reflex/components/radix/themes/components/tabs.py +4 -4
- reflex/components/radix/themes/components/tabs.pyi +120 -132
- reflex/components/radix/themes/components/text_area.pyi +281 -331
- reflex/components/radix/themes/components/text_field.py +2 -2
- reflex/components/radix/themes/components/text_field.pyi +639 -734
- reflex/components/radix/themes/components/tooltip.py +6 -6
- reflex/components/radix/themes/components/tooltip.pyi +34 -43
- reflex/components/radix/themes/layout/base.pyi +85 -182
- reflex/components/radix/themes/layout/box.pyi +183 -210
- reflex/components/radix/themes/layout/center.pyi +225 -286
- reflex/components/radix/themes/layout/container.pyi +191 -224
- reflex/components/radix/themes/layout/flex.py +2 -2
- reflex/components/radix/themes/layout/flex.pyi +225 -286
- reflex/components/radix/themes/layout/grid.py +2 -2
- reflex/components/radix/themes/layout/grid.pyi +245 -315
- reflex/components/radix/themes/layout/list.py +2 -2
- reflex/components/radix/themes/layout/list.pyi +712 -815
- reflex/components/radix/themes/layout/section.pyi +187 -221
- reflex/components/radix/themes/layout/spacer.pyi +225 -286
- reflex/components/radix/themes/layout/stack.pyi +625 -768
- reflex/components/radix/themes/typography/blockquote.pyi +257 -299
- reflex/components/radix/themes/typography/code.pyi +259 -304
- reflex/components/radix/themes/typography/heading.pyi +272 -324
- reflex/components/radix/themes/typography/link.pyi +302 -358
- reflex/components/radix/themes/typography/text.pyi +1669 -1945
- reflex/components/react_player/audio.pyi +20 -22
- reflex/components/react_player/react_player.pyi +19 -19
- reflex/components/react_player/video.pyi +20 -22
- reflex/components/recharts/cartesian.py +100 -97
- reflex/components/recharts/cartesian.pyi +891 -1007
- reflex/components/recharts/charts.py +42 -42
- reflex/components/recharts/charts.pyi +212 -249
- reflex/components/recharts/general.py +22 -21
- reflex/components/recharts/general.pyi +198 -223
- reflex/components/recharts/polar.py +42 -45
- reflex/components/recharts/polar.pyi +254 -288
- reflex/components/recharts/recharts.pyi +13 -13
- reflex/components/sonner/toast.py +20 -20
- reflex/components/sonner/toast.pyi +58 -61
- reflex/components/suneditor/editor.py +9 -9
- reflex/components/suneditor/editor.pyi +78 -83
- reflex/components/tags/cond_tag.py +2 -2
- reflex/components/tags/iter_tag.py +10 -14
- reflex/components/tags/match_tag.py +2 -2
- reflex/components/tags/tag.py +10 -10
- reflex/config.py +36 -35
- reflex/constants/__init__.py +56 -53
- reflex/custom_components/custom_components.py +6 -7
- reflex/event.py +38 -42
- reflex/experimental/client_state.py +2 -4
- reflex/experimental/layout.py +2 -2
- reflex/experimental/layout.pyi +579 -663
- reflex/istate/data.py +4 -5
- reflex/middleware/hydrate_middleware.py +2 -2
- reflex/middleware/middleware.py +2 -2
- reflex/model.py +3 -5
- reflex/page.py +2 -2
- reflex/reflex.py +9 -10
- reflex/state.py +77 -49
- reflex/style.py +9 -3
- reflex/testing.py +21 -24
- reflex/utils/console.py +1 -1
- reflex/utils/decorator.py +26 -1
- reflex/utils/exec.py +6 -11
- reflex/utils/export.py +2 -3
- reflex/utils/format.py +4 -4
- reflex/utils/imports.py +12 -12
- reflex/utils/prerequisites.py +35 -84
- reflex/utils/processes.py +5 -5
- reflex/utils/pyi_generator.py +33 -22
- reflex/utils/serializers.py +60 -15
- reflex/utils/types.py +237 -56
- reflex/vars/base.py +122 -72
- reflex/vars/datetime.py +2 -2
- reflex/vars/function.py +52 -55
- reflex/vars/number.py +59 -5
- reflex/vars/object.py +57 -26
- reflex/vars/sequence.py +983 -958
- {reflex-0.7.1a4.dist-info → reflex-0.7.2a1.dist-info}/METADATA +3 -6
- reflex-0.7.2a1.dist-info/RECORD +405 -0
- {reflex-0.7.1a4.dist-info → reflex-0.7.2a1.dist-info}/WHEEL +1 -1
- reflex-0.7.1a4.dist-info/RECORD +0 -405
- {reflex-0.7.1a4.dist-info → reflex-0.7.2a1.dist-info}/LICENSE +0 -0
- {reflex-0.7.1a4.dist-info → reflex-0.7.2a1.dist-info}/entry_points.txt +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any,
|
|
6
|
+
from typing import Any, Literal, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
from reflex.constants.colors import Color
|
|
9
9
|
from reflex.event import EventType
|
|
@@ -13,75 +13,71 @@ from reflex.vars.base import Var
|
|
|
13
13
|
from .recharts import Recharts
|
|
14
14
|
|
|
15
15
|
class Pie(Recharts):
|
|
16
|
-
def get_event_triggers(self) -> dict[str,
|
|
16
|
+
def get_event_triggers(self) -> dict[str, Var | Any]: ...
|
|
17
17
|
@overload
|
|
18
18
|
@classmethod
|
|
19
19
|
def create( # type: ignore
|
|
20
20
|
cls,
|
|
21
21
|
*children,
|
|
22
|
-
data:
|
|
23
|
-
data_key:
|
|
24
|
-
cx:
|
|
25
|
-
cy:
|
|
26
|
-
inner_radius:
|
|
27
|
-
outer_radius:
|
|
28
|
-
start_angle:
|
|
29
|
-
end_angle:
|
|
30
|
-
min_angle:
|
|
31
|
-
padding_angle:
|
|
32
|
-
name_key:
|
|
33
|
-
legend_type:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"triangle",
|
|
60
|
-
"wye",
|
|
61
|
-
]
|
|
62
|
-
],
|
|
22
|
+
data: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
23
|
+
data_key: Var[int | str] | int | str | None = None,
|
|
24
|
+
cx: Var[int | str] | int | str | None = None,
|
|
25
|
+
cy: Var[int | str] | int | str | None = None,
|
|
26
|
+
inner_radius: Var[int | str] | int | str | None = None,
|
|
27
|
+
outer_radius: Var[int | str] | int | str | None = None,
|
|
28
|
+
start_angle: Var[int] | int | None = None,
|
|
29
|
+
end_angle: Var[int] | int | None = None,
|
|
30
|
+
min_angle: Var[int] | int | None = None,
|
|
31
|
+
padding_angle: Var[int] | int | None = None,
|
|
32
|
+
name_key: Var[str] | str | None = None,
|
|
33
|
+
legend_type: Literal[
|
|
34
|
+
"circle",
|
|
35
|
+
"cross",
|
|
36
|
+
"diamond",
|
|
37
|
+
"line",
|
|
38
|
+
"none",
|
|
39
|
+
"plainline",
|
|
40
|
+
"rect",
|
|
41
|
+
"square",
|
|
42
|
+
"star",
|
|
43
|
+
"triangle",
|
|
44
|
+
"wye",
|
|
45
|
+
]
|
|
46
|
+
| Var[
|
|
47
|
+
Literal[
|
|
48
|
+
"circle",
|
|
49
|
+
"cross",
|
|
50
|
+
"diamond",
|
|
51
|
+
"line",
|
|
52
|
+
"none",
|
|
53
|
+
"plainline",
|
|
54
|
+
"rect",
|
|
55
|
+
"square",
|
|
56
|
+
"star",
|
|
57
|
+
"triangle",
|
|
58
|
+
"wye",
|
|
63
59
|
]
|
|
64
|
-
]
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
root_tab_index:
|
|
79
|
-
style:
|
|
80
|
-
key:
|
|
81
|
-
id:
|
|
82
|
-
class_name:
|
|
83
|
-
autofocus:
|
|
84
|
-
custom_attrs:
|
|
60
|
+
]
|
|
61
|
+
| None = None,
|
|
62
|
+
label: Var[bool] | bool | None = None,
|
|
63
|
+
label_line: Var[bool] | bool | None = None,
|
|
64
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
65
|
+
fill: Color | Var[Color | str] | str | None = None,
|
|
66
|
+
is_animation_active: Var[bool] | bool | None = None,
|
|
67
|
+
animation_begin: Var[int] | int | None = None,
|
|
68
|
+
animation_duration: Var[int] | int | None = None,
|
|
69
|
+
animation_easing: Literal[
|
|
70
|
+
"ease", "ease-in", "ease-in-out", "ease-out", "linear"
|
|
71
|
+
]
|
|
72
|
+
| Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]]
|
|
73
|
+
| None = None,
|
|
74
|
+
root_tab_index: Var[int] | int | None = None,
|
|
75
|
+
style: Style | None = None,
|
|
76
|
+
key: Any | None = None,
|
|
77
|
+
id: Any | None = None,
|
|
78
|
+
class_name: Any | None = None,
|
|
79
|
+
autofocus: bool | None = None,
|
|
80
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
85
81
|
on_animation_end: Optional[EventType[()]] = None,
|
|
86
82
|
on_animation_start: Optional[EventType[()]] = None,
|
|
87
83
|
on_click: Optional[EventType[()]] = None,
|
|
@@ -96,7 +92,7 @@ class Pie(Recharts):
|
|
|
96
92
|
|
|
97
93
|
Args:
|
|
98
94
|
*children: The children of the component.
|
|
99
|
-
data: The
|
|
95
|
+
data: The source data which each element is an object.
|
|
100
96
|
data_key: The key of each sector's value.
|
|
101
97
|
cx: The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width. Default: "50%"
|
|
102
98
|
cy: The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height. Default: "50%"
|
|
@@ -131,66 +127,62 @@ class Pie(Recharts):
|
|
|
131
127
|
...
|
|
132
128
|
|
|
133
129
|
class Radar(Recharts):
|
|
134
|
-
def get_event_triggers(self) -> dict[str,
|
|
130
|
+
def get_event_triggers(self) -> dict[str, Var | Any]: ...
|
|
135
131
|
@overload
|
|
136
132
|
@classmethod
|
|
137
133
|
def create( # type: ignore
|
|
138
134
|
cls,
|
|
139
135
|
*children,
|
|
140
|
-
data_key:
|
|
141
|
-
points:
|
|
142
|
-
dot:
|
|
143
|
-
stroke:
|
|
144
|
-
fill:
|
|
145
|
-
fill_opacity:
|
|
146
|
-
legend_type:
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
"triangle",
|
|
173
|
-
"wye",
|
|
174
|
-
]
|
|
175
|
-
],
|
|
176
|
-
]
|
|
177
|
-
] = None,
|
|
178
|
-
label: Optional[Union[Var[bool], bool]] = None,
|
|
179
|
-
is_animation_active: Optional[Union[Var[bool], bool]] = None,
|
|
180
|
-
animation_begin: Optional[Union[Var[int], int]] = None,
|
|
181
|
-
animation_duration: Optional[Union[Var[int], int]] = None,
|
|
182
|
-
animation_easing: Optional[
|
|
183
|
-
Union[
|
|
184
|
-
Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
|
|
185
|
-
Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
|
|
136
|
+
data_key: Var[int | str] | int | str | None = None,
|
|
137
|
+
points: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
138
|
+
dot: Var[bool] | bool | None = None,
|
|
139
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
140
|
+
fill: Var[str] | str | None = None,
|
|
141
|
+
fill_opacity: Var[float] | float | None = None,
|
|
142
|
+
legend_type: Literal[
|
|
143
|
+
"circle",
|
|
144
|
+
"cross",
|
|
145
|
+
"diamond",
|
|
146
|
+
"line",
|
|
147
|
+
"none",
|
|
148
|
+
"plainline",
|
|
149
|
+
"rect",
|
|
150
|
+
"square",
|
|
151
|
+
"star",
|
|
152
|
+
"triangle",
|
|
153
|
+
"wye",
|
|
154
|
+
]
|
|
155
|
+
| Var[
|
|
156
|
+
Literal[
|
|
157
|
+
"circle",
|
|
158
|
+
"cross",
|
|
159
|
+
"diamond",
|
|
160
|
+
"line",
|
|
161
|
+
"none",
|
|
162
|
+
"plainline",
|
|
163
|
+
"rect",
|
|
164
|
+
"square",
|
|
165
|
+
"star",
|
|
166
|
+
"triangle",
|
|
167
|
+
"wye",
|
|
186
168
|
]
|
|
187
|
-
]
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
169
|
+
]
|
|
170
|
+
| None = None,
|
|
171
|
+
label: Var[bool] | bool | None = None,
|
|
172
|
+
is_animation_active: Var[bool] | bool | None = None,
|
|
173
|
+
animation_begin: Var[int] | int | None = None,
|
|
174
|
+
animation_duration: Var[int] | int | None = None,
|
|
175
|
+
animation_easing: Literal[
|
|
176
|
+
"ease", "ease-in", "ease-in-out", "ease-out", "linear"
|
|
177
|
+
]
|
|
178
|
+
| Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]]
|
|
179
|
+
| None = None,
|
|
180
|
+
style: Style | None = None,
|
|
181
|
+
key: Any | None = None,
|
|
182
|
+
id: Any | None = None,
|
|
183
|
+
class_name: Any | None = None,
|
|
184
|
+
autofocus: bool | None = None,
|
|
185
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
194
186
|
on_animation_end: Optional[EventType[()]] = None,
|
|
195
187
|
on_animation_start: Optional[EventType[()]] = None,
|
|
196
188
|
**props,
|
|
@@ -225,68 +217,60 @@ class Radar(Recharts):
|
|
|
225
217
|
...
|
|
226
218
|
|
|
227
219
|
class RadialBar(Recharts):
|
|
228
|
-
def get_event_triggers(self) -> dict[str,
|
|
220
|
+
def get_event_triggers(self) -> dict[str, Var | Any]: ...
|
|
229
221
|
@overload
|
|
230
222
|
@classmethod
|
|
231
223
|
def create( # type: ignore
|
|
232
224
|
cls,
|
|
233
225
|
*children,
|
|
234
|
-
data:
|
|
235
|
-
data_key:
|
|
236
|
-
min_angle:
|
|
237
|
-
legend_type:
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
"triangle",
|
|
264
|
-
"wye",
|
|
265
|
-
]
|
|
266
|
-
],
|
|
226
|
+
data: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
227
|
+
data_key: Var[int | str] | int | str | None = None,
|
|
228
|
+
min_angle: Var[int] | int | None = None,
|
|
229
|
+
legend_type: Literal[
|
|
230
|
+
"circle",
|
|
231
|
+
"cross",
|
|
232
|
+
"diamond",
|
|
233
|
+
"line",
|
|
234
|
+
"none",
|
|
235
|
+
"plainline",
|
|
236
|
+
"rect",
|
|
237
|
+
"square",
|
|
238
|
+
"star",
|
|
239
|
+
"triangle",
|
|
240
|
+
"wye",
|
|
241
|
+
]
|
|
242
|
+
| Var[
|
|
243
|
+
Literal[
|
|
244
|
+
"circle",
|
|
245
|
+
"cross",
|
|
246
|
+
"diamond",
|
|
247
|
+
"line",
|
|
248
|
+
"none",
|
|
249
|
+
"plainline",
|
|
250
|
+
"rect",
|
|
251
|
+
"square",
|
|
252
|
+
"star",
|
|
253
|
+
"triangle",
|
|
254
|
+
"wye",
|
|
267
255
|
]
|
|
268
|
-
]
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
] = None,
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
] = None,
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
id: Optional[Any] = None,
|
|
287
|
-
class_name: Optional[Any] = None,
|
|
288
|
-
autofocus: Optional[bool] = None,
|
|
289
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
256
|
+
]
|
|
257
|
+
| None = None,
|
|
258
|
+
label: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
259
|
+
background: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
260
|
+
is_animation_active: Var[bool] | bool | None = None,
|
|
261
|
+
animation_begin: Var[int] | int | None = None,
|
|
262
|
+
animation_duration: Var[int] | int | None = None,
|
|
263
|
+
animation_easing: Literal[
|
|
264
|
+
"ease", "ease-in", "ease-in-out", "ease-out", "linear"
|
|
265
|
+
]
|
|
266
|
+
| Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]]
|
|
267
|
+
| None = None,
|
|
268
|
+
style: Style | None = None,
|
|
269
|
+
key: Any | None = None,
|
|
270
|
+
id: Any | None = None,
|
|
271
|
+
class_name: Any | None = None,
|
|
272
|
+
autofocus: bool | None = None,
|
|
273
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
290
274
|
on_animation_end: Optional[EventType[()]] = None,
|
|
291
275
|
on_animation_start: Optional[EventType[()]] = None,
|
|
292
276
|
on_click: Optional[EventType[()]] = None,
|
|
@@ -330,32 +314,26 @@ class PolarAngleAxis(Recharts):
|
|
|
330
314
|
def create( # type: ignore
|
|
331
315
|
cls,
|
|
332
316
|
*children,
|
|
333
|
-
data_key:
|
|
334
|
-
cx:
|
|
335
|
-
cy:
|
|
336
|
-
radius:
|
|
337
|
-
axis_line:
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
] = None,
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
] = None,
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
style: Optional[Style] = None,
|
|
354
|
-
key: Optional[Any] = None,
|
|
355
|
-
id: Optional[Any] = None,
|
|
356
|
-
class_name: Optional[Any] = None,
|
|
357
|
-
autofocus: Optional[bool] = None,
|
|
358
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
317
|
+
data_key: Var[int | str] | int | str | None = None,
|
|
318
|
+
cx: Var[int | str] | int | str | None = None,
|
|
319
|
+
cy: Var[int | str] | int | str | None = None,
|
|
320
|
+
radius: Var[int | str] | int | str | None = None,
|
|
321
|
+
axis_line: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
322
|
+
axis_line_type: Literal["circle", "polygon"]
|
|
323
|
+
| Var[Literal["circle", "polygon"]]
|
|
324
|
+
| None = None,
|
|
325
|
+
tick_line: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
326
|
+
tick: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
327
|
+
ticks: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
328
|
+
orientation: Var[str] | str | None = None,
|
|
329
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
330
|
+
allow_duplicated_category: Var[bool] | bool | None = None,
|
|
331
|
+
style: Style | None = None,
|
|
332
|
+
key: Any | None = None,
|
|
333
|
+
id: Any | None = None,
|
|
334
|
+
class_name: Any | None = None,
|
|
335
|
+
autofocus: bool | None = None,
|
|
336
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
359
337
|
on_blur: Optional[EventType[()]] = None,
|
|
360
338
|
on_click: Optional[EventType[()]] = None,
|
|
361
339
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -416,22 +394,22 @@ class PolarGrid(Recharts):
|
|
|
416
394
|
def create( # type: ignore
|
|
417
395
|
cls,
|
|
418
396
|
*children,
|
|
419
|
-
cx:
|
|
420
|
-
cy:
|
|
421
|
-
inner_radius:
|
|
422
|
-
outer_radius:
|
|
423
|
-
polar_angles:
|
|
424
|
-
polar_radius:
|
|
425
|
-
grid_type:
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
stroke:
|
|
429
|
-
style:
|
|
430
|
-
key:
|
|
431
|
-
id:
|
|
432
|
-
class_name:
|
|
433
|
-
autofocus:
|
|
434
|
-
custom_attrs:
|
|
397
|
+
cx: Var[int] | int | None = None,
|
|
398
|
+
cy: Var[int] | int | None = None,
|
|
399
|
+
inner_radius: Var[int] | int | None = None,
|
|
400
|
+
outer_radius: Var[int] | int | None = None,
|
|
401
|
+
polar_angles: Sequence[int] | Var[Sequence[int]] | None = None,
|
|
402
|
+
polar_radius: Sequence[int] | Var[Sequence[int]] | None = None,
|
|
403
|
+
grid_type: Literal["circle", "polygon"]
|
|
404
|
+
| Var[Literal["circle", "polygon"]]
|
|
405
|
+
| None = None,
|
|
406
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
407
|
+
style: Style | None = None,
|
|
408
|
+
key: Any | None = None,
|
|
409
|
+
id: Any | None = None,
|
|
410
|
+
class_name: Any | None = None,
|
|
411
|
+
autofocus: bool | None = None,
|
|
412
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
435
413
|
on_blur: Optional[EventType[()]] = None,
|
|
436
414
|
on_click: Optional[EventType[()]] = None,
|
|
437
415
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -475,83 +453,71 @@ class PolarGrid(Recharts):
|
|
|
475
453
|
...
|
|
476
454
|
|
|
477
455
|
class PolarRadiusAxis(Recharts):
|
|
478
|
-
def get_event_triggers(self) -> dict[str,
|
|
456
|
+
def get_event_triggers(self) -> dict[str, Var | Any]: ...
|
|
479
457
|
@overload
|
|
480
458
|
@classmethod
|
|
481
459
|
def create( # type: ignore
|
|
482
460
|
cls,
|
|
483
461
|
*children,
|
|
484
|
-
angle:
|
|
485
|
-
type_:
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
allow_duplicated_category:
|
|
489
|
-
cx:
|
|
490
|
-
cy:
|
|
491
|
-
reversed:
|
|
492
|
-
orientation:
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
] = None,
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
"point",
|
|
533
|
-
"pow",
|
|
534
|
-
"quantile",
|
|
535
|
-
"quantize",
|
|
536
|
-
"sequential",
|
|
537
|
-
"sqrt",
|
|
538
|
-
"threshold",
|
|
539
|
-
"time",
|
|
540
|
-
"utc",
|
|
541
|
-
]
|
|
542
|
-
],
|
|
462
|
+
angle: Var[int] | int | None = None,
|
|
463
|
+
type_: Literal["category", "number"]
|
|
464
|
+
| Var[Literal["category", "number"]]
|
|
465
|
+
| None = None,
|
|
466
|
+
allow_duplicated_category: Var[bool] | bool | None = None,
|
|
467
|
+
cx: Var[int] | int | None = None,
|
|
468
|
+
cy: Var[int] | int | None = None,
|
|
469
|
+
reversed: Var[bool] | bool | None = None,
|
|
470
|
+
orientation: Literal["left", "middle", "right"]
|
|
471
|
+
| Var[Literal["left", "middle", "right"]]
|
|
472
|
+
| None = None,
|
|
473
|
+
axis_line: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
474
|
+
tick: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
475
|
+
tick_count: Var[int] | int | None = None,
|
|
476
|
+
scale: Literal[
|
|
477
|
+
"auto",
|
|
478
|
+
"band",
|
|
479
|
+
"identity",
|
|
480
|
+
"linear",
|
|
481
|
+
"log",
|
|
482
|
+
"ordinal",
|
|
483
|
+
"point",
|
|
484
|
+
"pow",
|
|
485
|
+
"quantile",
|
|
486
|
+
"quantize",
|
|
487
|
+
"sequential",
|
|
488
|
+
"sqrt",
|
|
489
|
+
"threshold",
|
|
490
|
+
"time",
|
|
491
|
+
"utc",
|
|
492
|
+
]
|
|
493
|
+
| Var[
|
|
494
|
+
Literal[
|
|
495
|
+
"auto",
|
|
496
|
+
"band",
|
|
497
|
+
"identity",
|
|
498
|
+
"linear",
|
|
499
|
+
"log",
|
|
500
|
+
"ordinal",
|
|
501
|
+
"point",
|
|
502
|
+
"pow",
|
|
503
|
+
"quantile",
|
|
504
|
+
"quantize",
|
|
505
|
+
"sequential",
|
|
506
|
+
"sqrt",
|
|
507
|
+
"threshold",
|
|
508
|
+
"time",
|
|
509
|
+
"utc",
|
|
543
510
|
]
|
|
544
|
-
]
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
] = None,
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
511
|
+
]
|
|
512
|
+
| None = None,
|
|
513
|
+
domain: Sequence[int | str] | Var[Sequence[int | str]] | None = None,
|
|
514
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
515
|
+
style: Style | None = None,
|
|
516
|
+
key: Any | None = None,
|
|
517
|
+
id: Any | None = None,
|
|
518
|
+
class_name: Any | None = None,
|
|
519
|
+
autofocus: bool | None = None,
|
|
520
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
555
521
|
on_click: Optional[EventType[()]] = None,
|
|
556
522
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
557
523
|
on_mouse_leave: Optional[EventType[()]] = None,
|