reflex 0.7.1a3__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 +53 -50
- 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.1a3.dist-info → reflex-0.7.2a1.dist-info}/METADATA +3 -6
- reflex-0.7.2a1.dist-info/RECORD +405 -0
- {reflex-0.7.1a3.dist-info → reflex-0.7.2a1.dist-info}/WHEEL +1 -1
- reflex-0.7.1a3.dist-info/RECORD +0 -405
- {reflex-0.7.1a3.dist-info → reflex-0.7.2a1.dist-info}/LICENSE +0 -0
- {reflex-0.7.1a3.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
|
|
@@ -18,14 +18,14 @@ class ChartBase(RechartsCharts):
|
|
|
18
18
|
def create( # type: ignore
|
|
19
19
|
cls,
|
|
20
20
|
*children,
|
|
21
|
-
width:
|
|
22
|
-
height:
|
|
23
|
-
style:
|
|
24
|
-
key:
|
|
25
|
-
id:
|
|
26
|
-
class_name:
|
|
27
|
-
autofocus:
|
|
28
|
-
custom_attrs:
|
|
21
|
+
width: Var[int | str] | int | str | None = None,
|
|
22
|
+
height: Var[int | str] | int | str | None = None,
|
|
23
|
+
style: Style | None = None,
|
|
24
|
+
key: Any | None = None,
|
|
25
|
+
id: Any | None = None,
|
|
26
|
+
class_name: Any | None = None,
|
|
27
|
+
autofocus: bool | None = None,
|
|
28
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
29
29
|
on_blur: Optional[EventType[()]] = None,
|
|
30
30
|
on_click: Optional[EventType[()]] = None,
|
|
31
31
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -72,32 +72,26 @@ class CategoricalChartBase(ChartBase):
|
|
|
72
72
|
def create( # type: ignore
|
|
73
73
|
cls,
|
|
74
74
|
*children,
|
|
75
|
-
data:
|
|
76
|
-
margin:
|
|
77
|
-
sync_id:
|
|
78
|
-
sync_method:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
layout:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
style: Optional[Style] = None,
|
|
96
|
-
key: Optional[Any] = None,
|
|
97
|
-
id: Optional[Any] = None,
|
|
98
|
-
class_name: Optional[Any] = None,
|
|
99
|
-
autofocus: Optional[bool] = None,
|
|
100
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
75
|
+
data: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
76
|
+
margin: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
77
|
+
sync_id: Var[str] | str | None = None,
|
|
78
|
+
sync_method: Literal["index", "value"]
|
|
79
|
+
| Var[Literal["index", "value"]]
|
|
80
|
+
| None = None,
|
|
81
|
+
layout: Literal["horizontal", "vertical"]
|
|
82
|
+
| Var[Literal["horizontal", "vertical"]]
|
|
83
|
+
| None = None,
|
|
84
|
+
stack_offset: Literal["expand", "none", "silhouette", "wiggle"]
|
|
85
|
+
| Var[Literal["expand", "none", "silhouette", "wiggle"]]
|
|
86
|
+
| None = None,
|
|
87
|
+
width: Var[int | str] | int | str | None = None,
|
|
88
|
+
height: Var[int | str] | int | str | None = None,
|
|
89
|
+
style: Style | None = None,
|
|
90
|
+
key: Any | None = None,
|
|
91
|
+
id: Any | None = None,
|
|
92
|
+
class_name: Any | None = None,
|
|
93
|
+
autofocus: bool | None = None,
|
|
94
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
101
95
|
on_blur: Optional[EventType[()]] = None,
|
|
102
96
|
on_click: Optional[EventType[()]] = None,
|
|
103
97
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -150,39 +144,30 @@ class AreaChart(CategoricalChartBase):
|
|
|
150
144
|
def create( # type: ignore
|
|
151
145
|
cls,
|
|
152
146
|
*children,
|
|
153
|
-
base_value:
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
] = None,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
] = None,
|
|
178
|
-
width: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
179
|
-
height: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
180
|
-
style: Optional[Style] = None,
|
|
181
|
-
key: Optional[Any] = None,
|
|
182
|
-
id: Optional[Any] = None,
|
|
183
|
-
class_name: Optional[Any] = None,
|
|
184
|
-
autofocus: Optional[bool] = None,
|
|
185
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
147
|
+
base_value: Literal["auto", "dataMax", "dataMin"]
|
|
148
|
+
| Var[Literal["auto", "dataMax", "dataMin"] | int]
|
|
149
|
+
| int
|
|
150
|
+
| None = None,
|
|
151
|
+
data: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
152
|
+
margin: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
153
|
+
sync_id: Var[str] | str | None = None,
|
|
154
|
+
sync_method: Literal["index", "value"]
|
|
155
|
+
| Var[Literal["index", "value"]]
|
|
156
|
+
| None = None,
|
|
157
|
+
layout: Literal["horizontal", "vertical"]
|
|
158
|
+
| Var[Literal["horizontal", "vertical"]]
|
|
159
|
+
| None = None,
|
|
160
|
+
stack_offset: Literal["expand", "none", "silhouette", "wiggle"]
|
|
161
|
+
| Var[Literal["expand", "none", "silhouette", "wiggle"]]
|
|
162
|
+
| None = None,
|
|
163
|
+
width: Var[int | str] | int | str | None = None,
|
|
164
|
+
height: Var[int | str] | int | str | None = None,
|
|
165
|
+
style: Style | None = None,
|
|
166
|
+
key: Any | None = None,
|
|
167
|
+
id: Any | None = None,
|
|
168
|
+
class_name: Any | None = None,
|
|
169
|
+
autofocus: bool | None = None,
|
|
170
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
186
171
|
on_blur: Optional[EventType[()]] = None,
|
|
187
172
|
on_click: Optional[EventType[()]] = None,
|
|
188
173
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -236,37 +221,31 @@ class BarChart(CategoricalChartBase):
|
|
|
236
221
|
def create( # type: ignore
|
|
237
222
|
cls,
|
|
238
223
|
*children,
|
|
239
|
-
bar_category_gap:
|
|
240
|
-
bar_gap:
|
|
241
|
-
bar_size:
|
|
242
|
-
max_bar_size:
|
|
243
|
-
stack_offset:
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
] = None,
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
style: Optional[Style] = None,
|
|
265
|
-
key: Optional[Any] = None,
|
|
266
|
-
id: Optional[Any] = None,
|
|
267
|
-
class_name: Optional[Any] = None,
|
|
268
|
-
autofocus: Optional[bool] = None,
|
|
269
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
224
|
+
bar_category_gap: Var[int | str] | int | str | None = None,
|
|
225
|
+
bar_gap: Var[int | str] | int | str | None = None,
|
|
226
|
+
bar_size: Var[int] | int | None = None,
|
|
227
|
+
max_bar_size: Var[int] | int | None = None,
|
|
228
|
+
stack_offset: Literal["expand", "none", "silhouette", "wiggle"]
|
|
229
|
+
| Var[Literal["expand", "none", "silhouette", "wiggle"]]
|
|
230
|
+
| None = None,
|
|
231
|
+
reverse_stack_order: Var[bool] | bool | None = None,
|
|
232
|
+
data: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
233
|
+
margin: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
234
|
+
sync_id: Var[str] | str | None = None,
|
|
235
|
+
sync_method: Literal["index", "value"]
|
|
236
|
+
| Var[Literal["index", "value"]]
|
|
237
|
+
| None = None,
|
|
238
|
+
layout: Literal["horizontal", "vertical"]
|
|
239
|
+
| Var[Literal["horizontal", "vertical"]]
|
|
240
|
+
| None = None,
|
|
241
|
+
width: Var[int | str] | int | str | None = None,
|
|
242
|
+
height: Var[int | str] | int | str | None = None,
|
|
243
|
+
style: Style | None = None,
|
|
244
|
+
key: Any | None = None,
|
|
245
|
+
id: Any | None = None,
|
|
246
|
+
class_name: Any | None = None,
|
|
247
|
+
autofocus: bool | None = None,
|
|
248
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
270
249
|
on_blur: Optional[EventType[()]] = None,
|
|
271
250
|
on_click: Optional[EventType[()]] = None,
|
|
272
251
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -324,32 +303,26 @@ class LineChart(CategoricalChartBase):
|
|
|
324
303
|
def create( # type: ignore
|
|
325
304
|
cls,
|
|
326
305
|
*children,
|
|
327
|
-
data:
|
|
328
|
-
margin:
|
|
329
|
-
sync_id:
|
|
330
|
-
sync_method:
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
layout:
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
style: Optional[Style] = None,
|
|
348
|
-
key: Optional[Any] = None,
|
|
349
|
-
id: Optional[Any] = None,
|
|
350
|
-
class_name: Optional[Any] = None,
|
|
351
|
-
autofocus: Optional[bool] = None,
|
|
352
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
306
|
+
data: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
307
|
+
margin: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
308
|
+
sync_id: Var[str] | str | None = None,
|
|
309
|
+
sync_method: Literal["index", "value"]
|
|
310
|
+
| Var[Literal["index", "value"]]
|
|
311
|
+
| None = None,
|
|
312
|
+
layout: Literal["horizontal", "vertical"]
|
|
313
|
+
| Var[Literal["horizontal", "vertical"]]
|
|
314
|
+
| None = None,
|
|
315
|
+
stack_offset: Literal["expand", "none", "silhouette", "wiggle"]
|
|
316
|
+
| Var[Literal["expand", "none", "silhouette", "wiggle"]]
|
|
317
|
+
| None = None,
|
|
318
|
+
width: Var[int | str] | int | str | None = None,
|
|
319
|
+
height: Var[int | str] | int | str | None = None,
|
|
320
|
+
style: Style | None = None,
|
|
321
|
+
key: Any | None = None,
|
|
322
|
+
id: Any | None = None,
|
|
323
|
+
class_name: Any | None = None,
|
|
324
|
+
autofocus: bool | None = None,
|
|
325
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
353
326
|
on_blur: Optional[EventType[()]] = None,
|
|
354
327
|
on_click: Optional[EventType[()]] = None,
|
|
355
328
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -402,43 +375,34 @@ class ComposedChart(CategoricalChartBase):
|
|
|
402
375
|
def create( # type: ignore
|
|
403
376
|
cls,
|
|
404
377
|
*children,
|
|
405
|
-
base_value:
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
] = None,
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
] = None,
|
|
434
|
-
width: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
435
|
-
height: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
436
|
-
style: Optional[Style] = None,
|
|
437
|
-
key: Optional[Any] = None,
|
|
438
|
-
id: Optional[Any] = None,
|
|
439
|
-
class_name: Optional[Any] = None,
|
|
440
|
-
autofocus: Optional[bool] = None,
|
|
441
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
378
|
+
base_value: Literal["auto", "dataMax", "dataMin"]
|
|
379
|
+
| Var[Literal["auto", "dataMax", "dataMin"] | int]
|
|
380
|
+
| int
|
|
381
|
+
| None = None,
|
|
382
|
+
bar_category_gap: Var[int | str] | int | str | None = None,
|
|
383
|
+
bar_gap: Var[int] | int | None = None,
|
|
384
|
+
bar_size: Var[int] | int | None = None,
|
|
385
|
+
reverse_stack_order: Var[bool] | bool | None = None,
|
|
386
|
+
data: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
387
|
+
margin: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
388
|
+
sync_id: Var[str] | str | None = None,
|
|
389
|
+
sync_method: Literal["index", "value"]
|
|
390
|
+
| Var[Literal["index", "value"]]
|
|
391
|
+
| None = None,
|
|
392
|
+
layout: Literal["horizontal", "vertical"]
|
|
393
|
+
| Var[Literal["horizontal", "vertical"]]
|
|
394
|
+
| None = None,
|
|
395
|
+
stack_offset: Literal["expand", "none", "silhouette", "wiggle"]
|
|
396
|
+
| Var[Literal["expand", "none", "silhouette", "wiggle"]]
|
|
397
|
+
| None = None,
|
|
398
|
+
width: Var[int | str] | int | str | None = None,
|
|
399
|
+
height: Var[int | str] | int | str | None = None,
|
|
400
|
+
style: Style | None = None,
|
|
401
|
+
key: Any | None = None,
|
|
402
|
+
id: Any | None = None,
|
|
403
|
+
class_name: Any | None = None,
|
|
404
|
+
autofocus: bool | None = None,
|
|
405
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
442
406
|
on_blur: Optional[EventType[()]] = None,
|
|
443
407
|
on_click: Optional[EventType[()]] = None,
|
|
444
408
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -496,15 +460,15 @@ class PieChart(ChartBase):
|
|
|
496
460
|
def create( # type: ignore
|
|
497
461
|
cls,
|
|
498
462
|
*children,
|
|
499
|
-
margin:
|
|
500
|
-
width:
|
|
501
|
-
height:
|
|
502
|
-
style:
|
|
503
|
-
key:
|
|
504
|
-
id:
|
|
505
|
-
class_name:
|
|
506
|
-
autofocus:
|
|
507
|
-
custom_attrs:
|
|
463
|
+
margin: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
464
|
+
width: Var[int | str] | int | str | None = None,
|
|
465
|
+
height: Var[int | str] | int | str | None = None,
|
|
466
|
+
style: Style | None = None,
|
|
467
|
+
key: Any | None = None,
|
|
468
|
+
id: Any | None = None,
|
|
469
|
+
class_name: Any | None = None,
|
|
470
|
+
autofocus: bool | None = None,
|
|
471
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
508
472
|
on_blur: Optional[EventType[()]] = None,
|
|
509
473
|
on_click: Optional[EventType[()]] = None,
|
|
510
474
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -551,28 +515,28 @@ class PieChart(ChartBase):
|
|
|
551
515
|
...
|
|
552
516
|
|
|
553
517
|
class RadarChart(ChartBase):
|
|
554
|
-
def get_event_triggers(self) -> dict[str,
|
|
518
|
+
def get_event_triggers(self) -> dict[str, Var | Any]: ...
|
|
555
519
|
@overload
|
|
556
520
|
@classmethod
|
|
557
521
|
def create( # type: ignore
|
|
558
522
|
cls,
|
|
559
523
|
*children,
|
|
560
|
-
data:
|
|
561
|
-
margin:
|
|
562
|
-
cx:
|
|
563
|
-
cy:
|
|
564
|
-
start_angle:
|
|
565
|
-
end_angle:
|
|
566
|
-
inner_radius:
|
|
567
|
-
outer_radius:
|
|
568
|
-
width:
|
|
569
|
-
height:
|
|
570
|
-
style:
|
|
571
|
-
key:
|
|
572
|
-
id:
|
|
573
|
-
class_name:
|
|
574
|
-
autofocus:
|
|
575
|
-
custom_attrs:
|
|
524
|
+
data: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
525
|
+
margin: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
526
|
+
cx: Var[int | str] | int | str | None = None,
|
|
527
|
+
cy: Var[int | str] | int | str | None = None,
|
|
528
|
+
start_angle: Var[int] | int | None = None,
|
|
529
|
+
end_angle: Var[int] | int | None = None,
|
|
530
|
+
inner_radius: Var[int | str] | int | str | None = None,
|
|
531
|
+
outer_radius: Var[int | str] | int | str | None = None,
|
|
532
|
+
width: Var[int | str] | int | str | None = None,
|
|
533
|
+
height: Var[int | str] | int | str | None = None,
|
|
534
|
+
style: Style | None = None,
|
|
535
|
+
key: Any | None = None,
|
|
536
|
+
id: Any | None = None,
|
|
537
|
+
class_name: Any | None = None,
|
|
538
|
+
autofocus: bool | None = None,
|
|
539
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
576
540
|
on_click: Optional[EventType[()]] = None,
|
|
577
541
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
578
542
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
@@ -614,25 +578,25 @@ class RadialBarChart(ChartBase):
|
|
|
614
578
|
def create( # type: ignore
|
|
615
579
|
cls,
|
|
616
580
|
*children,
|
|
617
|
-
data:
|
|
618
|
-
margin:
|
|
619
|
-
cx:
|
|
620
|
-
cy:
|
|
621
|
-
start_angle:
|
|
622
|
-
end_angle:
|
|
623
|
-
inner_radius:
|
|
624
|
-
outer_radius:
|
|
625
|
-
bar_category_gap:
|
|
626
|
-
bar_gap:
|
|
627
|
-
bar_size:
|
|
628
|
-
width:
|
|
629
|
-
height:
|
|
630
|
-
style:
|
|
631
|
-
key:
|
|
632
|
-
id:
|
|
633
|
-
class_name:
|
|
634
|
-
autofocus:
|
|
635
|
-
custom_attrs:
|
|
581
|
+
data: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
582
|
+
margin: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
583
|
+
cx: Var[int | str] | int | str | None = None,
|
|
584
|
+
cy: Var[int | str] | int | str | None = None,
|
|
585
|
+
start_angle: Var[int] | int | None = None,
|
|
586
|
+
end_angle: Var[int] | int | None = None,
|
|
587
|
+
inner_radius: Var[int | str] | int | str | None = None,
|
|
588
|
+
outer_radius: Var[int | str] | int | str | None = None,
|
|
589
|
+
bar_category_gap: Var[int | str] | int | str | None = None,
|
|
590
|
+
bar_gap: Var[str] | str | None = None,
|
|
591
|
+
bar_size: Var[int] | int | None = None,
|
|
592
|
+
width: Var[int | str] | int | str | None = None,
|
|
593
|
+
height: Var[int | str] | int | str | None = None,
|
|
594
|
+
style: Style | None = None,
|
|
595
|
+
key: Any | None = None,
|
|
596
|
+
id: Any | None = None,
|
|
597
|
+
class_name: Any | None = None,
|
|
598
|
+
autofocus: bool | None = None,
|
|
599
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
636
600
|
on_blur: Optional[EventType[()]] = None,
|
|
637
601
|
on_click: Optional[EventType[()]] = None,
|
|
638
602
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -685,21 +649,21 @@ class RadialBarChart(ChartBase):
|
|
|
685
649
|
...
|
|
686
650
|
|
|
687
651
|
class ScatterChart(ChartBase):
|
|
688
|
-
def get_event_triggers(self) -> dict[str,
|
|
652
|
+
def get_event_triggers(self) -> dict[str, Var | Any]: ...
|
|
689
653
|
@overload
|
|
690
654
|
@classmethod
|
|
691
655
|
def create( # type: ignore
|
|
692
656
|
cls,
|
|
693
657
|
*children,
|
|
694
|
-
margin:
|
|
695
|
-
width:
|
|
696
|
-
height:
|
|
697
|
-
style:
|
|
698
|
-
key:
|
|
699
|
-
id:
|
|
700
|
-
class_name:
|
|
701
|
-
autofocus:
|
|
702
|
-
custom_attrs:
|
|
658
|
+
margin: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
659
|
+
width: Var[int | str] | int | str | None = None,
|
|
660
|
+
height: Var[int | str] | int | str | None = None,
|
|
661
|
+
style: Style | None = None,
|
|
662
|
+
key: Any | None = None,
|
|
663
|
+
id: Any | None = None,
|
|
664
|
+
class_name: Any | None = None,
|
|
665
|
+
autofocus: bool | None = None,
|
|
666
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
703
667
|
on_click: Optional[EventType[()]] = None,
|
|
704
668
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
705
669
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
@@ -740,17 +704,17 @@ class FunnelChart(ChartBase):
|
|
|
740
704
|
def create( # type: ignore
|
|
741
705
|
cls,
|
|
742
706
|
*children,
|
|
743
|
-
layout:
|
|
744
|
-
margin:
|
|
745
|
-
stroke:
|
|
746
|
-
width:
|
|
747
|
-
height:
|
|
748
|
-
style:
|
|
749
|
-
key:
|
|
750
|
-
id:
|
|
751
|
-
class_name:
|
|
752
|
-
autofocus:
|
|
753
|
-
custom_attrs:
|
|
707
|
+
layout: Var[str] | str | None = None,
|
|
708
|
+
margin: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
709
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
710
|
+
width: Var[int | str] | int | str | None = None,
|
|
711
|
+
height: Var[int | str] | int | str | None = None,
|
|
712
|
+
style: Style | None = None,
|
|
713
|
+
key: Any | None = None,
|
|
714
|
+
id: Any | None = None,
|
|
715
|
+
class_name: Any | None = None,
|
|
716
|
+
autofocus: bool | None = None,
|
|
717
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
754
718
|
on_blur: Optional[EventType[()]] = None,
|
|
755
719
|
on_click: Optional[EventType[()]] = None,
|
|
756
720
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -800,27 +764,26 @@ class Treemap(RechartsCharts):
|
|
|
800
764
|
def create( # type: ignore
|
|
801
765
|
cls,
|
|
802
766
|
*children,
|
|
803
|
-
width:
|
|
804
|
-
height:
|
|
805
|
-
data:
|
|
806
|
-
data_key:
|
|
807
|
-
name_key:
|
|
808
|
-
aspect_ratio:
|
|
809
|
-
is_animation_active:
|
|
810
|
-
animation_begin:
|
|
811
|
-
animation_duration:
|
|
812
|
-
animation_easing:
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
767
|
+
width: Var[int | str] | int | str | None = None,
|
|
768
|
+
height: Var[int | str] | int | str | None = None,
|
|
769
|
+
data: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
770
|
+
data_key: Var[int | str] | int | str | None = None,
|
|
771
|
+
name_key: Var[str] | str | None = None,
|
|
772
|
+
aspect_ratio: Var[int] | int | None = None,
|
|
773
|
+
is_animation_active: Var[bool] | bool | None = None,
|
|
774
|
+
animation_begin: Var[int] | int | None = None,
|
|
775
|
+
animation_duration: Var[int] | int | None = None,
|
|
776
|
+
animation_easing: Literal[
|
|
777
|
+
"ease", "ease-in", "ease-in-out", "ease-out", "linear"
|
|
778
|
+
]
|
|
779
|
+
| Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]]
|
|
780
|
+
| None = None,
|
|
781
|
+
style: Style | None = None,
|
|
782
|
+
key: Any | None = None,
|
|
783
|
+
id: Any | None = None,
|
|
784
|
+
class_name: Any | None = None,
|
|
785
|
+
autofocus: bool | None = None,
|
|
786
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
824
787
|
on_animation_end: Optional[EventType[()]] = None,
|
|
825
788
|
on_animation_start: Optional[EventType[()]] = None,
|
|
826
789
|
on_blur: Optional[EventType[()]] = None,
|