reflex 0.5.10a3__py3-none-any.whl → 0.6.0__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/custom_components/pyproject.toml.jinja2 +2 -2
- reflex/.templates/jinja/web/pages/_app.js.jinja2 +1 -1
- reflex/.templates/jinja/web/pages/utils.js.jinja2 +4 -4
- reflex/.templates/jinja/web/utils/context.js.jinja2 +1 -1
- reflex/.templates/jinja/web/utils/theme.js.jinja2 +1 -1
- reflex/.templates/web/utils/state.js +3 -1
- reflex/__init__.py +10 -3
- reflex/__init__.pyi +3 -2
- reflex/app.py +47 -11
- reflex/app_module_for_backend.py +1 -1
- reflex/base.py +3 -2
- reflex/compiler/compiler.py +5 -5
- reflex/compiler/utils.py +5 -3
- reflex/components/base/app_wrap.py +2 -4
- reflex/components/base/app_wrap.pyi +16 -26
- reflex/components/base/bare.py +6 -4
- reflex/components/base/body.pyi +16 -26
- reflex/components/base/document.pyi +76 -126
- reflex/components/base/error_boundary.py +9 -8
- reflex/components/base/error_boundary.pyi +18 -30
- reflex/components/base/fragment.pyi +16 -26
- reflex/components/base/head.pyi +31 -51
- reflex/components/base/link.py +1 -1
- reflex/components/base/link.pyi +31 -51
- reflex/components/base/meta.pyi +61 -101
- reflex/components/base/script.py +2 -2
- reflex/components/base/script.pyi +20 -36
- reflex/components/component.py +107 -130
- reflex/components/core/banner.py +61 -66
- reflex/components/core/banner.pyi +129 -230
- reflex/components/core/client_side_routing.py +2 -2
- reflex/components/core/client_side_routing.pyi +31 -51
- reflex/components/core/clipboard.py +4 -3
- reflex/components/core/clipboard.pyi +19 -31
- reflex/components/core/cond.py +21 -44
- reflex/components/core/debounce.py +7 -9
- reflex/components/core/debounce.pyi +19 -31
- reflex/components/core/foreach.py +4 -14
- reflex/components/core/html.py +1 -1
- reflex/components/core/html.pyi +34 -44
- reflex/components/core/match.py +36 -43
- reflex/components/core/upload.py +27 -26
- reflex/components/core/upload.pyi +81 -116
- reflex/components/datadisplay/code.py +55 -29
- reflex/components/datadisplay/code.pyi +303 -410
- reflex/components/datadisplay/dataeditor.py +13 -9
- reflex/components/datadisplay/dataeditor.pyi +39 -51
- reflex/components/el/__init__.py +0 -1
- reflex/components/el/__init__.pyi +0 -11
- reflex/components/el/element.pyi +16 -26
- reflex/components/el/elements/__init__.py +1 -7
- reflex/components/el/elements/__init__.pyi +1 -15
- reflex/components/el/elements/base.py +1 -1
- reflex/components/el/elements/base.pyi +33 -43
- reflex/components/el/elements/forms.py +26 -33
- reflex/components/el/elements/forms.pyi +542 -694
- reflex/components/el/elements/inline.py +1 -1
- reflex/components/el/elements/inline.pyi +909 -1189
- reflex/components/el/elements/media.py +1 -22
- reflex/components/el/elements/media.pyi +765 -975
- reflex/components/el/elements/metadata.py +3 -5
- reflex/components/el/elements/metadata.pyi +175 -235
- reflex/components/el/elements/other.py +1 -1
- reflex/components/el/elements/other.pyi +228 -298
- reflex/components/el/elements/scripts.py +1 -1
- reflex/components/el/elements/scripts.pyi +106 -136
- reflex/components/el/elements/sectioning.py +0 -2
- reflex/components/el/elements/sectioning.pyi +481 -631
- reflex/components/el/elements/tables.py +1 -1
- reflex/components/el/elements/tables.pyi +341 -441
- reflex/components/el/elements/typography.py +1 -1
- reflex/components/el/elements/typography.pyi +491 -641
- reflex/components/gridjs/datatable.py +9 -13
- reflex/components/gridjs/datatable.pyi +33 -53
- reflex/components/lucide/icon.py +3 -127
- reflex/components/lucide/icon.pyi +31 -160
- reflex/components/markdown/markdown.py +32 -42
- reflex/components/markdown/markdown.pyi +28 -41
- reflex/components/moment/moment.py +13 -12
- reflex/components/moment/moment.pyi +22 -33
- reflex/components/next/base.pyi +16 -26
- reflex/components/next/image.py +1 -5
- reflex/components/next/image.pyi +21 -35
- reflex/components/next/link.py +1 -1
- reflex/components/next/link.pyi +16 -26
- reflex/components/next/video.py +1 -1
- reflex/components/next/video.pyi +16 -26
- reflex/components/plotly/plotly.py +17 -30
- reflex/components/plotly/plotly.pyi +38 -52
- reflex/components/props.py +21 -10
- reflex/components/radix/__init__.pyi +2 -1
- reflex/components/radix/primitives/accordion.py +6 -7
- reflex/components/radix/primitives/accordion.pyi +415 -485
- reflex/components/radix/primitives/base.py +1 -1
- reflex/components/radix/primitives/base.pyi +31 -51
- reflex/components/radix/primitives/drawer.py +1 -1
- reflex/components/radix/primitives/drawer.pyi +162 -262
- reflex/components/radix/primitives/form.py +1 -1
- reflex/components/radix/primitives/form.pyi +247 -353
- reflex/components/radix/primitives/progress.py +1 -1
- reflex/components/radix/primitives/progress.pyi +226 -276
- reflex/components/radix/primitives/slider.py +1 -1
- reflex/components/radix/primitives/slider.pyi +82 -132
- reflex/components/radix/themes/base.py +8 -25
- reflex/components/radix/themes/base.pyi +171 -242
- reflex/components/radix/themes/color_mode.py +11 -20
- reflex/components/radix/themes/color_mode.pyi +198 -231
- reflex/components/radix/themes/components/__init__.pyi +1 -0
- reflex/components/radix/themes/components/alert_dialog.py +1 -1
- reflex/components/radix/themes/components/alert_dialog.pyi +129 -199
- reflex/components/radix/themes/components/aspect_ratio.py +1 -1
- reflex/components/radix/themes/components/aspect_ratio.pyi +16 -26
- reflex/components/radix/themes/components/avatar.py +1 -1
- reflex/components/radix/themes/components/avatar.pyi +69 -79
- reflex/components/radix/themes/components/badge.py +1 -1
- reflex/components/radix/themes/components/badge.pyi +87 -97
- reflex/components/radix/themes/components/button.py +1 -1
- reflex/components/radix/themes/components/button.pyi +97 -107
- reflex/components/radix/themes/components/callout.py +1 -1
- reflex/components/radix/themes/components/callout.pyi +317 -367
- reflex/components/radix/themes/components/card.py +1 -1
- reflex/components/radix/themes/components/card.pyi +37 -47
- reflex/components/radix/themes/components/checkbox.py +2 -4
- reflex/components/radix/themes/components/checkbox.pyi +205 -241
- reflex/components/radix/themes/components/checkbox_cards.py +1 -1
- reflex/components/radix/themes/components/checkbox_cards.pyi +92 -112
- reflex/components/radix/themes/components/checkbox_group.py +1 -1
- reflex/components/radix/themes/components/checkbox_group.pyi +84 -104
- reflex/components/radix/themes/components/context_menu.py +1 -1
- reflex/components/radix/themes/components/context_menu.pyi +230 -310
- reflex/components/radix/themes/components/data_list.py +6 -1
- reflex/components/radix/themes/components/data_list.pyi +131 -166
- reflex/components/radix/themes/components/dialog.py +1 -1
- reflex/components/radix/themes/components/dialog.pyi +132 -202
- reflex/components/radix/themes/components/dropdown_menu.py +1 -1
- reflex/components/radix/themes/components/dropdown_menu.pyi +241 -323
- reflex/components/radix/themes/components/hover_card.py +1 -1
- reflex/components/radix/themes/components/hover_card.pyi +86 -126
- reflex/components/radix/themes/components/icon_button.py +1 -1
- reflex/components/radix/themes/components/icon_button.pyi +97 -107
- reflex/components/radix/themes/components/inset.py +1 -1
- reflex/components/radix/themes/components/inset.pyi +46 -56
- reflex/components/radix/themes/components/popover.py +1 -1
- reflex/components/radix/themes/components/popover.pyi +91 -131
- reflex/components/radix/themes/components/progress.py +1 -1
- reflex/components/radix/themes/components/progress.pyi +70 -80
- reflex/components/radix/themes/components/radio.py +1 -1
- reflex/components/radix/themes/components/radio.pyi +68 -78
- reflex/components/radix/themes/components/radio_cards.py +1 -1
- reflex/components/radix/themes/components/radio_cards.pyi +96 -116
- reflex/components/radix/themes/components/radio_group.py +32 -31
- reflex/components/radix/themes/components/radio_group.pyi +230 -266
- reflex/components/radix/themes/components/scroll_area.py +1 -1
- reflex/components/radix/themes/components/scroll_area.pyi +20 -30
- reflex/components/radix/themes/components/segmented_control.py +1 -1
- reflex/components/radix/themes/components/segmented_control.pyi +88 -110
- reflex/components/radix/themes/components/select.py +1 -1
- reflex/components/radix/themes/components/select.pyi +365 -461
- reflex/components/radix/themes/components/separator.py +2 -4
- reflex/components/radix/themes/components/separator.pyi +68 -78
- reflex/components/radix/themes/components/skeleton.py +1 -1
- reflex/components/radix/themes/components/skeleton.pyi +22 -32
- reflex/components/radix/themes/components/slider.py +1 -1
- reflex/components/radix/themes/components/slider.pyi +74 -86
- reflex/components/radix/themes/components/spinner.py +1 -1
- reflex/components/radix/themes/components/spinner.pyi +18 -28
- reflex/components/radix/themes/components/switch.py +1 -1
- reflex/components/radix/themes/components/switch.pyi +70 -82
- reflex/components/radix/themes/components/table.py +1 -1
- reflex/components/radix/themes/components/table.pyi +254 -324
- reflex/components/radix/themes/components/tabs.py +1 -1
- reflex/components/radix/themes/components/tabs.pyi +134 -188
- reflex/components/radix/themes/components/text_area.py +1 -1
- reflex/components/radix/themes/components/text_area.pyi +95 -109
- reflex/components/radix/themes/components/text_field.py +1 -80
- reflex/components/radix/themes/components/text_field.pyi +245 -290
- reflex/components/radix/themes/components/tooltip.py +1 -1
- reflex/components/radix/themes/components/tooltip.pyi +25 -35
- reflex/components/radix/themes/layout/__init__.pyi +1 -0
- reflex/components/radix/themes/layout/base.py +1 -1
- reflex/components/radix/themes/layout/base.pyi +55 -65
- reflex/components/radix/themes/layout/box.pyi +33 -43
- reflex/components/radix/themes/layout/center.pyi +55 -65
- reflex/components/radix/themes/layout/container.py +2 -4
- reflex/components/radix/themes/layout/container.pyi +35 -45
- reflex/components/radix/themes/layout/flex.py +1 -1
- reflex/components/radix/themes/layout/flex.pyi +55 -65
- reflex/components/radix/themes/layout/grid.py +1 -1
- reflex/components/radix/themes/layout/grid.pyi +63 -73
- reflex/components/radix/themes/layout/list.py +1 -1
- reflex/components/radix/themes/layout/list.pyi +188 -238
- reflex/components/radix/themes/layout/section.py +2 -4
- reflex/components/radix/themes/layout/section.pyi +35 -45
- reflex/components/radix/themes/layout/spacer.pyi +55 -65
- reflex/components/radix/themes/layout/stack.py +1 -1
- reflex/components/radix/themes/layout/stack.pyi +125 -155
- reflex/components/radix/themes/typography/blockquote.py +1 -1
- reflex/components/radix/themes/typography/blockquote.pyi +88 -98
- reflex/components/radix/themes/typography/code.py +1 -1
- reflex/components/radix/themes/typography/code.pyi +89 -99
- reflex/components/radix/themes/typography/heading.py +1 -1
- reflex/components/radix/themes/typography/heading.pyi +95 -105
- reflex/components/radix/themes/typography/link.py +1 -1
- reflex/components/radix/themes/typography/link.pyi +101 -111
- reflex/components/radix/themes/typography/text.py +1 -1
- reflex/components/radix/themes/typography/text.pyi +494 -564
- reflex/components/react_player/audio.pyi +32 -58
- reflex/components/react_player/react_player.py +1 -1
- reflex/components/react_player/react_player.pyi +32 -58
- reflex/components/react_player/video.pyi +32 -58
- reflex/components/recharts/cartesian.py +22 -19
- reflex/components/recharts/cartesian.pyi +658 -840
- reflex/components/recharts/charts.py +3 -3
- reflex/components/recharts/charts.pyi +238 -342
- reflex/components/recharts/general.py +8 -8
- reflex/components/recharts/general.pyi +175 -225
- reflex/components/recharts/polar.py +11 -11
- reflex/components/recharts/polar.pyi +135 -171
- reflex/components/recharts/recharts.pyi +31 -51
- reflex/components/sonner/toast.py +27 -31
- reflex/components/sonner/toast.pyi +36 -45
- reflex/components/suneditor/editor.py +1 -1
- reflex/components/suneditor/editor.pyi +54 -76
- reflex/components/tags/cond_tag.py +6 -4
- reflex/components/tags/iter_tag.py +37 -25
- reflex/components/tags/match_tag.py +6 -4
- reflex/components/tags/tag.py +43 -28
- reflex/constants/base.py +3 -1
- reflex/constants/event.py +1 -0
- reflex/custom_components/custom_components.py +3 -1
- reflex/event.py +166 -108
- reflex/experimental/__init__.py +25 -6
- reflex/experimental/client_state.py +34 -57
- reflex/experimental/hooks.py +12 -17
- reflex/experimental/layout.py +4 -4
- reflex/experimental/layout.pyi +130 -180
- reflex/middleware/hydrate_middleware.py +2 -0
- reflex/middleware/middleware.py +3 -3
- reflex/model.py +22 -0
- reflex/reflex.py +4 -0
- reflex/state.py +491 -110
- reflex/style.py +56 -39
- reflex/testing.py +8 -3
- reflex/utils/exceptions.py +32 -0
- reflex/utils/exec.py +0 -14
- reflex/utils/format.py +80 -209
- reflex/utils/imports.py +16 -73
- reflex/utils/net.py +43 -0
- reflex/utils/path_ops.py +13 -1
- reflex/utils/prerequisites.py +81 -41
- reflex/utils/pyi_generator.py +12 -6
- reflex/utils/serializers.py +13 -41
- reflex/utils/telemetry.py +3 -2
- reflex/utils/types.py +47 -7
- reflex/{experimental/vars → vars}/__init__.py +6 -3
- reflex/vars/base.py +2563 -0
- reflex/vars/function.py +196 -0
- reflex/vars/number.py +1158 -0
- reflex/vars/object.py +562 -0
- reflex/vars/sequence.py +1604 -0
- {reflex-0.5.10a3.dist-info → reflex-0.6.0.dist-info}/METADATA +6 -9
- reflex-0.6.0.dist-info/RECORD +382 -0
- reflex/.templates/apps/demo/.gitignore +0 -4
- reflex/.templates/apps/demo/assets/favicon.ico +0 -0
- reflex/.templates/apps/demo/assets/github.svg +0 -10
- reflex/.templates/apps/demo/assets/icon.svg +0 -37
- reflex/.templates/apps/demo/assets/logo.svg +0 -68
- reflex/.templates/apps/demo/assets/paneleft.svg +0 -13
- reflex/.templates/apps/demo/code/__init__.py +0 -1
- reflex/.templates/apps/demo/code/demo.py +0 -127
- reflex/.templates/apps/demo/code/pages/__init__.py +0 -7
- reflex/.templates/apps/demo/code/pages/chatapp.py +0 -31
- reflex/.templates/apps/demo/code/pages/datatable.py +0 -360
- reflex/.templates/apps/demo/code/pages/forms.py +0 -257
- reflex/.templates/apps/demo/code/pages/graphing.py +0 -253
- reflex/.templates/apps/demo/code/pages/home.py +0 -56
- reflex/.templates/apps/demo/code/sidebar.py +0 -178
- reflex/.templates/apps/demo/code/state.py +0 -22
- reflex/.templates/apps/demo/code/states/form_state.py +0 -40
- reflex/.templates/apps/demo/code/states/pie_state.py +0 -47
- reflex/.templates/apps/demo/code/styles.py +0 -68
- reflex/.templates/apps/demo/code/webui/__init__.py +0 -0
- reflex/.templates/apps/demo/code/webui/components/__init__.py +0 -4
- reflex/.templates/apps/demo/code/webui/components/chat.py +0 -118
- reflex/.templates/apps/demo/code/webui/components/loading_icon.py +0 -19
- reflex/.templates/apps/demo/code/webui/components/modal.py +0 -56
- reflex/.templates/apps/demo/code/webui/components/navbar.py +0 -70
- reflex/.templates/apps/demo/code/webui/components/sidebar.py +0 -66
- reflex/.templates/apps/demo/code/webui/state.py +0 -146
- reflex/.templates/apps/demo/code/webui/styles.py +0 -88
- reflex/.templates/web/components/reflex/chakra_color_mode_provider.js +0 -36
- reflex/experimental/vars/base.py +0 -583
- reflex/experimental/vars/function.py +0 -290
- reflex/experimental/vars/number.py +0 -1458
- reflex/experimental/vars/object.py +0 -804
- reflex/experimental/vars/sequence.py +0 -1764
- reflex/utils/watch.py +0 -96
- reflex/vars.py +0 -2604
- reflex/vars.pyi +0 -218
- reflex-0.5.10a3.dist-info/RECORD +0 -413
- {reflex-0.5.10a3.dist-info → reflex-0.6.0.dist-info}/LICENSE +0 -0
- {reflex-0.5.10a3.dist-info → reflex-0.6.0.dist-info}/WHEEL +0 -0
- {reflex-0.5.10a3.dist-info → reflex-0.6.0.dist-info}/entry_points.txt +0 -0
|
@@ -7,7 +7,7 @@ from typing import Any, Dict, List, Union
|
|
|
7
7
|
from reflex.constants import EventTriggers
|
|
8
8
|
from reflex.constants.colors import Color
|
|
9
9
|
from reflex.event import EventHandler
|
|
10
|
-
from reflex.vars import Var
|
|
10
|
+
from reflex.vars.base import LiteralVar, Var
|
|
11
11
|
|
|
12
12
|
from .recharts import (
|
|
13
13
|
LiteralAnimationEasing,
|
|
@@ -72,10 +72,10 @@ class Pie(Recharts):
|
|
|
72
72
|
_valid_children: List[str] = ["Cell", "LabelList"]
|
|
73
73
|
|
|
74
74
|
# Stoke color
|
|
75
|
-
stroke: Var[Union[str, Color]] =
|
|
75
|
+
stroke: Var[Union[str, Color]] = LiteralVar.create(Color("accent", 9))
|
|
76
76
|
|
|
77
77
|
# Fill color
|
|
78
|
-
fill: Var[Union[str, Color]] =
|
|
78
|
+
fill: Var[Union[str, Color]] = LiteralVar.create(Color("accent", 3))
|
|
79
79
|
|
|
80
80
|
def get_event_triggers(self) -> dict[str, Union[Var, Any]]:
|
|
81
81
|
"""Get the event triggers that pass the component's value to the handler.
|
|
@@ -110,13 +110,13 @@ class Radar(Recharts):
|
|
|
110
110
|
dot: Var[bool]
|
|
111
111
|
|
|
112
112
|
# Stoke color
|
|
113
|
-
stroke: Var[Union[str, Color]] =
|
|
113
|
+
stroke: Var[Union[str, Color]] = LiteralVar.create(Color("accent", 9))
|
|
114
114
|
|
|
115
115
|
# Fill color
|
|
116
|
-
fill: Var[str] =
|
|
116
|
+
fill: Var[str] = LiteralVar.create(Color("accent", 3))
|
|
117
117
|
|
|
118
118
|
# opacity
|
|
119
|
-
fill_opacity: Var[float] =
|
|
119
|
+
fill_opacity: Var[float] = LiteralVar.create(0.6)
|
|
120
120
|
|
|
121
121
|
# The type of icon in legend. If set to 'none', no legend item will be rendered.
|
|
122
122
|
legend_type: Var[str]
|
|
@@ -218,7 +218,7 @@ class PolarAngleAxis(Recharts):
|
|
|
218
218
|
axis_line_type: Var[str]
|
|
219
219
|
|
|
220
220
|
# If false set, tick lines will not be drawn. If true set, tick lines will be drawn which have the props calculated internally. If object set, tick lines will be drawn which have the props mergered by the internal calculated props and the option.
|
|
221
|
-
tick_line: Var[Union[bool, Dict[str, Any]]] =
|
|
221
|
+
tick_line: Var[Union[bool, Dict[str, Any]]] = LiteralVar.create(False)
|
|
222
222
|
|
|
223
223
|
# The width or height of tick.
|
|
224
224
|
tick: Var[Union[int, str]]
|
|
@@ -230,7 +230,7 @@ class PolarAngleAxis(Recharts):
|
|
|
230
230
|
orient: Var[str]
|
|
231
231
|
|
|
232
232
|
# The stroke color of axis
|
|
233
|
-
stroke: Var[Union[str, Color]] =
|
|
233
|
+
stroke: Var[Union[str, Color]] = LiteralVar.create(Color("gray", 10))
|
|
234
234
|
|
|
235
235
|
# Allow the axis has duplicated categorys or not when the type of axis is "category".
|
|
236
236
|
allow_duplicated_category: Var[bool]
|
|
@@ -292,7 +292,7 @@ class PolarGrid(Recharts):
|
|
|
292
292
|
grid_type: Var[LiteralGridType]
|
|
293
293
|
|
|
294
294
|
# The stroke color of grid
|
|
295
|
-
stroke: Var[Union[str, Color]] =
|
|
295
|
+
stroke: Var[Union[str, Color]] = LiteralVar.create(Color("gray", 10))
|
|
296
296
|
|
|
297
297
|
# Valid children components
|
|
298
298
|
_valid_children: List[str] = ["RadarChart", "RadiarBarChart"]
|
|
@@ -342,10 +342,10 @@ class PolarRadiusAxis(Recharts):
|
|
|
342
342
|
_valid_children: List[str] = ["Label"]
|
|
343
343
|
|
|
344
344
|
# The domain of the polar radius axis, specifying the minimum and maximum values.
|
|
345
|
-
domain: Var[List[int]] =
|
|
345
|
+
domain: Var[List[int]] = LiteralVar.create([0, 250])
|
|
346
346
|
|
|
347
347
|
# The stroke color of axis
|
|
348
|
-
stroke: Var[Union[str, Color]] =
|
|
348
|
+
stroke: Var[Union[str, Color]] = LiteralVar.create(Color("gray", 10))
|
|
349
349
|
|
|
350
350
|
def get_event_triggers(self) -> dict[str, Union[Var, Any]]:
|
|
351
351
|
"""Get the event triggers that pass the component's value to the handler.
|
|
@@ -8,7 +8,7 @@ from typing import Any, Callable, Dict, List, Literal, Optional, Union, overload
|
|
|
8
8
|
from reflex.constants.colors import Color
|
|
9
9
|
from reflex.event import EventHandler, EventSpec
|
|
10
10
|
from reflex.style import Style
|
|
11
|
-
from reflex.vars import
|
|
11
|
+
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
13
|
from .recharts import (
|
|
14
14
|
Recharts,
|
|
@@ -21,8 +21,8 @@ class Pie(Recharts):
|
|
|
21
21
|
def create( # type: ignore
|
|
22
22
|
cls,
|
|
23
23
|
*children,
|
|
24
|
-
data: Optional[Union[
|
|
25
|
-
data_key: Optional[Union[Var[Union[int, str]],
|
|
24
|
+
data: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
|
|
25
|
+
data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
26
26
|
cx: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
27
27
|
cy: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
28
28
|
inner_radius: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
@@ -34,63 +34,61 @@ class Pie(Recharts):
|
|
|
34
34
|
name_key: Optional[Union[Var[str], str]] = None,
|
|
35
35
|
legend_type: Optional[
|
|
36
36
|
Union[
|
|
37
|
+
Literal[
|
|
38
|
+
"circle",
|
|
39
|
+
"cross",
|
|
40
|
+
"diamond",
|
|
41
|
+
"line",
|
|
42
|
+
"none",
|
|
43
|
+
"plainline",
|
|
44
|
+
"rect",
|
|
45
|
+
"square",
|
|
46
|
+
"star",
|
|
47
|
+
"triangle",
|
|
48
|
+
"wye",
|
|
49
|
+
],
|
|
37
50
|
Var[
|
|
38
51
|
Literal[
|
|
39
|
-
"line",
|
|
40
|
-
"plainline",
|
|
41
|
-
"square",
|
|
42
|
-
"rect",
|
|
43
52
|
"circle",
|
|
44
53
|
"cross",
|
|
45
54
|
"diamond",
|
|
55
|
+
"line",
|
|
56
|
+
"none",
|
|
57
|
+
"plainline",
|
|
58
|
+
"rect",
|
|
59
|
+
"square",
|
|
46
60
|
"star",
|
|
47
61
|
"triangle",
|
|
48
62
|
"wye",
|
|
49
|
-
"none",
|
|
50
63
|
]
|
|
51
64
|
],
|
|
52
|
-
Literal[
|
|
53
|
-
"line",
|
|
54
|
-
"plainline",
|
|
55
|
-
"square",
|
|
56
|
-
"rect",
|
|
57
|
-
"circle",
|
|
58
|
-
"cross",
|
|
59
|
-
"diamond",
|
|
60
|
-
"star",
|
|
61
|
-
"triangle",
|
|
62
|
-
"wye",
|
|
63
|
-
"none",
|
|
64
|
-
],
|
|
65
65
|
]
|
|
66
66
|
] = None,
|
|
67
67
|
label: Optional[Union[Var[bool], bool]] = None,
|
|
68
68
|
label_line: Optional[Union[Var[bool], bool]] = None,
|
|
69
|
-
stroke: Optional[Union[Var[Union[Color, str]], str
|
|
70
|
-
fill: Optional[Union[Var[Union[Color, str]], str
|
|
69
|
+
stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
|
|
70
|
+
fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
|
|
71
71
|
style: Optional[Style] = None,
|
|
72
72
|
key: Optional[Any] = None,
|
|
73
73
|
id: Optional[Any] = None,
|
|
74
74
|
class_name: Optional[Any] = None,
|
|
75
75
|
autofocus: Optional[bool] = None,
|
|
76
76
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
77
|
-
on_click: Optional[
|
|
78
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
79
|
-
] = None,
|
|
77
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
80
78
|
on_mouse_enter: Optional[
|
|
81
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
79
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
82
80
|
] = None,
|
|
83
81
|
on_mouse_leave: Optional[
|
|
84
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
82
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
85
83
|
] = None,
|
|
86
84
|
on_mouse_move: Optional[
|
|
87
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
85
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
88
86
|
] = None,
|
|
89
87
|
on_mouse_out: Optional[
|
|
90
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
88
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
91
89
|
] = None,
|
|
92
90
|
on_mouse_over: Optional[
|
|
93
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
91
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
94
92
|
] = None,
|
|
95
93
|
**props,
|
|
96
94
|
) -> "Pie":
|
|
@@ -133,10 +131,10 @@ class Radar(Recharts):
|
|
|
133
131
|
def create( # type: ignore
|
|
134
132
|
cls,
|
|
135
133
|
*children,
|
|
136
|
-
data_key: Optional[Union[Var[Union[int, str]],
|
|
137
|
-
points: Optional[Union[
|
|
134
|
+
data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
135
|
+
points: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
|
|
138
136
|
dot: Optional[Union[Var[bool], bool]] = None,
|
|
139
|
-
stroke: Optional[Union[Var[Union[Color, str]], str
|
|
137
|
+
stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
|
|
140
138
|
fill: Optional[Union[Var[str], str]] = None,
|
|
141
139
|
fill_opacity: Optional[Union[Var[float], float]] = None,
|
|
142
140
|
legend_type: Optional[Union[Var[str], str]] = None,
|
|
@@ -145,8 +143,8 @@ class Radar(Recharts):
|
|
|
145
143
|
animation_duration: Optional[Union[Var[int], int]] = None,
|
|
146
144
|
animation_easing: Optional[
|
|
147
145
|
Union[
|
|
148
|
-
|
|
149
|
-
Literal["ease", "ease-in", "ease-out", "ease-
|
|
146
|
+
Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
|
|
147
|
+
Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
|
|
150
148
|
]
|
|
151
149
|
] = None,
|
|
152
150
|
style: Optional[Style] = None,
|
|
@@ -155,50 +153,40 @@ class Radar(Recharts):
|
|
|
155
153
|
class_name: Optional[Any] = None,
|
|
156
154
|
autofocus: Optional[bool] = None,
|
|
157
155
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
158
|
-
on_blur: Optional[
|
|
159
|
-
|
|
160
|
-
] = None,
|
|
161
|
-
on_click: Optional[
|
|
162
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
163
|
-
] = None,
|
|
156
|
+
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
157
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
164
158
|
on_context_menu: Optional[
|
|
165
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
159
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
166
160
|
] = None,
|
|
167
161
|
on_double_click: Optional[
|
|
168
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
169
|
-
] = None,
|
|
170
|
-
on_focus: Optional[
|
|
171
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
172
|
-
] = None,
|
|
173
|
-
on_mount: Optional[
|
|
174
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
162
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
175
163
|
] = None,
|
|
164
|
+
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
165
|
+
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
176
166
|
on_mouse_down: Optional[
|
|
177
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
167
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
178
168
|
] = None,
|
|
179
169
|
on_mouse_enter: Optional[
|
|
180
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
170
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
181
171
|
] = None,
|
|
182
172
|
on_mouse_leave: Optional[
|
|
183
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
173
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
184
174
|
] = None,
|
|
185
175
|
on_mouse_move: Optional[
|
|
186
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
176
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
187
177
|
] = None,
|
|
188
178
|
on_mouse_out: Optional[
|
|
189
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
179
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
190
180
|
] = None,
|
|
191
181
|
on_mouse_over: Optional[
|
|
192
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
182
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
193
183
|
] = None,
|
|
194
184
|
on_mouse_up: Optional[
|
|
195
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
196
|
-
] = None,
|
|
197
|
-
on_scroll: Optional[
|
|
198
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
185
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
199
186
|
] = None,
|
|
187
|
+
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
200
188
|
on_unmount: Optional[
|
|
201
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
189
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
202
190
|
] = None,
|
|
203
191
|
**props,
|
|
204
192
|
) -> "Radar":
|
|
@@ -237,22 +225,22 @@ class RadialBar(Recharts):
|
|
|
237
225
|
def create( # type: ignore
|
|
238
226
|
cls,
|
|
239
227
|
*children,
|
|
240
|
-
data_key: Optional[Union[Var[Union[int, str]],
|
|
228
|
+
data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
241
229
|
min_angle: Optional[Union[Var[int], int]] = None,
|
|
242
230
|
legend_type: Optional[Union[Var[str], str]] = None,
|
|
243
231
|
label: Optional[
|
|
244
|
-
Union[Var[Union[Dict[str, Any], bool]], bool
|
|
232
|
+
Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
|
|
245
233
|
] = None,
|
|
246
234
|
background: Optional[
|
|
247
|
-
Union[Var[Union[Dict[str, Any], bool]], bool
|
|
235
|
+
Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
|
|
248
236
|
] = None,
|
|
249
237
|
is_animation_active: Optional[Union[Var[bool], bool]] = None,
|
|
250
238
|
animation_begin: Optional[Union[Var[int], int]] = None,
|
|
251
239
|
animation_duration: Optional[Union[Var[int], int]] = None,
|
|
252
240
|
animation_easing: Optional[
|
|
253
241
|
Union[
|
|
254
|
-
|
|
255
|
-
Literal["ease", "ease-in", "ease-out", "ease-
|
|
242
|
+
Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"],
|
|
243
|
+
Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]],
|
|
256
244
|
]
|
|
257
245
|
] = None,
|
|
258
246
|
style: Optional[Style] = None,
|
|
@@ -262,28 +250,26 @@ class RadialBar(Recharts):
|
|
|
262
250
|
autofocus: Optional[bool] = None,
|
|
263
251
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
264
252
|
on_animation_end: Optional[
|
|
265
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
253
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
266
254
|
] = None,
|
|
267
255
|
on_animation_start: Optional[
|
|
268
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
269
|
-
] = None,
|
|
270
|
-
on_click: Optional[
|
|
271
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
256
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
272
257
|
] = None,
|
|
258
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
273
259
|
on_mouse_enter: Optional[
|
|
274
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
260
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
275
261
|
] = None,
|
|
276
262
|
on_mouse_leave: Optional[
|
|
277
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
263
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
278
264
|
] = None,
|
|
279
265
|
on_mouse_move: Optional[
|
|
280
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
266
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
281
267
|
] = None,
|
|
282
268
|
on_mouse_out: Optional[
|
|
283
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
269
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
284
270
|
] = None,
|
|
285
271
|
on_mouse_over: Optional[
|
|
286
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
272
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
287
273
|
] = None,
|
|
288
274
|
**props,
|
|
289
275
|
) -> "RadialBar":
|
|
@@ -319,21 +305,21 @@ class PolarAngleAxis(Recharts):
|
|
|
319
305
|
def create( # type: ignore
|
|
320
306
|
cls,
|
|
321
307
|
*children,
|
|
322
|
-
data_key: Optional[Union[Var[Union[int, str]],
|
|
308
|
+
data_key: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
323
309
|
cx: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
324
310
|
cy: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
325
311
|
radius: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
326
312
|
axis_line: Optional[
|
|
327
|
-
Union[Var[Union[Dict[str, Any], bool]], bool
|
|
313
|
+
Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
|
|
328
314
|
] = None,
|
|
329
315
|
axis_line_type: Optional[Union[Var[str], str]] = None,
|
|
330
316
|
tick_line: Optional[
|
|
331
|
-
Union[Var[Union[Dict[str, Any], bool]], bool
|
|
317
|
+
Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
|
|
332
318
|
] = None,
|
|
333
319
|
tick: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
334
|
-
ticks: Optional[Union[
|
|
320
|
+
ticks: Optional[Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]] = None,
|
|
335
321
|
orient: Optional[Union[Var[str], str]] = None,
|
|
336
|
-
stroke: Optional[Union[Var[Union[Color, str]], str
|
|
322
|
+
stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
|
|
337
323
|
allow_duplicated_category: Optional[Union[Var[bool], bool]] = None,
|
|
338
324
|
style: Optional[Style] = None,
|
|
339
325
|
key: Optional[Any] = None,
|
|
@@ -341,50 +327,40 @@ class PolarAngleAxis(Recharts):
|
|
|
341
327
|
class_name: Optional[Any] = None,
|
|
342
328
|
autofocus: Optional[bool] = None,
|
|
343
329
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
344
|
-
on_blur: Optional[
|
|
345
|
-
|
|
346
|
-
] = None,
|
|
347
|
-
on_click: Optional[
|
|
348
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
349
|
-
] = None,
|
|
330
|
+
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
331
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
350
332
|
on_context_menu: Optional[
|
|
351
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
333
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
352
334
|
] = None,
|
|
353
335
|
on_double_click: Optional[
|
|
354
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
355
|
-
] = None,
|
|
356
|
-
on_focus: Optional[
|
|
357
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
358
|
-
] = None,
|
|
359
|
-
on_mount: Optional[
|
|
360
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
336
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
361
337
|
] = None,
|
|
338
|
+
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
339
|
+
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
362
340
|
on_mouse_down: Optional[
|
|
363
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
341
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
364
342
|
] = None,
|
|
365
343
|
on_mouse_enter: Optional[
|
|
366
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
344
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
367
345
|
] = None,
|
|
368
346
|
on_mouse_leave: Optional[
|
|
369
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
347
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
370
348
|
] = None,
|
|
371
349
|
on_mouse_move: Optional[
|
|
372
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
350
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
373
351
|
] = None,
|
|
374
352
|
on_mouse_out: Optional[
|
|
375
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
353
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
376
354
|
] = None,
|
|
377
355
|
on_mouse_over: Optional[
|
|
378
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
356
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
379
357
|
] = None,
|
|
380
358
|
on_mouse_up: Optional[
|
|
381
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
382
|
-
] = None,
|
|
383
|
-
on_scroll: Optional[
|
|
384
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
359
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
385
360
|
] = None,
|
|
361
|
+
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
386
362
|
on_unmount: Optional[
|
|
387
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
363
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
388
364
|
] = None,
|
|
389
365
|
**props,
|
|
390
366
|
) -> "PolarAngleAxis":
|
|
@@ -427,62 +403,52 @@ class PolarGrid(Recharts):
|
|
|
427
403
|
cy: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
428
404
|
inner_radius: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
429
405
|
outer_radius: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
430
|
-
polar_angles: Optional[Union[
|
|
431
|
-
polar_radius: Optional[Union[
|
|
406
|
+
polar_angles: Optional[Union[List[int], Var[List[int]]]] = None,
|
|
407
|
+
polar_radius: Optional[Union[List[int], Var[List[int]]]] = None,
|
|
432
408
|
grid_type: Optional[
|
|
433
|
-
Union[
|
|
409
|
+
Union[Literal["circle", "polygon"], Var[Literal["circle", "polygon"]]]
|
|
434
410
|
] = None,
|
|
435
|
-
stroke: Optional[Union[Var[Union[Color, str]], str
|
|
411
|
+
stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
|
|
436
412
|
style: Optional[Style] = None,
|
|
437
413
|
key: Optional[Any] = None,
|
|
438
414
|
id: Optional[Any] = None,
|
|
439
415
|
class_name: Optional[Any] = None,
|
|
440
416
|
autofocus: Optional[bool] = None,
|
|
441
417
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
442
|
-
on_blur: Optional[
|
|
443
|
-
|
|
444
|
-
] = None,
|
|
445
|
-
on_click: Optional[
|
|
446
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
447
|
-
] = None,
|
|
418
|
+
on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
419
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
448
420
|
on_context_menu: Optional[
|
|
449
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
421
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
450
422
|
] = None,
|
|
451
423
|
on_double_click: Optional[
|
|
452
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
453
|
-
] = None,
|
|
454
|
-
on_focus: Optional[
|
|
455
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
456
|
-
] = None,
|
|
457
|
-
on_mount: Optional[
|
|
458
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
424
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
459
425
|
] = None,
|
|
426
|
+
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
427
|
+
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
460
428
|
on_mouse_down: Optional[
|
|
461
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
429
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
462
430
|
] = None,
|
|
463
431
|
on_mouse_enter: Optional[
|
|
464
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
432
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
465
433
|
] = None,
|
|
466
434
|
on_mouse_leave: Optional[
|
|
467
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
435
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
468
436
|
] = None,
|
|
469
437
|
on_mouse_move: Optional[
|
|
470
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
438
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
471
439
|
] = None,
|
|
472
440
|
on_mouse_out: Optional[
|
|
473
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
441
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
474
442
|
] = None,
|
|
475
443
|
on_mouse_over: Optional[
|
|
476
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
444
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
477
445
|
] = None,
|
|
478
446
|
on_mouse_up: Optional[
|
|
479
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
480
|
-
] = None,
|
|
481
|
-
on_scroll: Optional[
|
|
482
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
447
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
483
448
|
] = None,
|
|
449
|
+
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
484
450
|
on_unmount: Optional[
|
|
485
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
451
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
486
452
|
] = None,
|
|
487
453
|
**props,
|
|
488
454
|
) -> "PolarGrid":
|
|
@@ -520,7 +486,7 @@ class PolarRadiusAxis(Recharts):
|
|
|
520
486
|
*children,
|
|
521
487
|
angle: Optional[Union[Var[int], int]] = None,
|
|
522
488
|
type_: Optional[
|
|
523
|
-
Union[
|
|
489
|
+
Union[Literal["category", "number"], Var[Literal["category", "number"]]]
|
|
524
490
|
] = None,
|
|
525
491
|
allow_duplicated_category: Optional[Union[Var[bool], bool]] = None,
|
|
526
492
|
cx: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
@@ -528,75 +494,73 @@ class PolarRadiusAxis(Recharts):
|
|
|
528
494
|
reversed: Optional[Union[Var[bool], bool]] = None,
|
|
529
495
|
orientation: Optional[Union[Var[str], str]] = None,
|
|
530
496
|
axis_line: Optional[
|
|
531
|
-
Union[Var[Union[Dict[str, Any], bool]], bool
|
|
497
|
+
Union[Dict[str, Any], Var[Union[Dict[str, Any], bool]], bool]
|
|
532
498
|
] = None,
|
|
533
499
|
tick: Optional[Union[Var[Union[int, str]], int, str]] = None,
|
|
534
500
|
tick_count: Optional[Union[Var[int], int]] = None,
|
|
535
501
|
scale: Optional[
|
|
536
502
|
Union[
|
|
503
|
+
Literal[
|
|
504
|
+
"auto",
|
|
505
|
+
"band",
|
|
506
|
+
"identity",
|
|
507
|
+
"linear",
|
|
508
|
+
"log",
|
|
509
|
+
"ordinal",
|
|
510
|
+
"point",
|
|
511
|
+
"pow",
|
|
512
|
+
"quantile",
|
|
513
|
+
"quantize",
|
|
514
|
+
"sequential",
|
|
515
|
+
"sqrt",
|
|
516
|
+
"threshold",
|
|
517
|
+
"time",
|
|
518
|
+
"utc",
|
|
519
|
+
],
|
|
537
520
|
Var[
|
|
538
521
|
Literal[
|
|
539
522
|
"auto",
|
|
523
|
+
"band",
|
|
524
|
+
"identity",
|
|
540
525
|
"linear",
|
|
541
|
-
"pow",
|
|
542
|
-
"sqrt",
|
|
543
526
|
"log",
|
|
544
|
-
"identity",
|
|
545
|
-
"time",
|
|
546
|
-
"band",
|
|
547
|
-
"point",
|
|
548
527
|
"ordinal",
|
|
528
|
+
"point",
|
|
529
|
+
"pow",
|
|
549
530
|
"quantile",
|
|
550
531
|
"quantize",
|
|
551
|
-
"utc",
|
|
552
532
|
"sequential",
|
|
533
|
+
"sqrt",
|
|
553
534
|
"threshold",
|
|
535
|
+
"time",
|
|
536
|
+
"utc",
|
|
554
537
|
]
|
|
555
538
|
],
|
|
556
|
-
Literal[
|
|
557
|
-
"auto",
|
|
558
|
-
"linear",
|
|
559
|
-
"pow",
|
|
560
|
-
"sqrt",
|
|
561
|
-
"log",
|
|
562
|
-
"identity",
|
|
563
|
-
"time",
|
|
564
|
-
"band",
|
|
565
|
-
"point",
|
|
566
|
-
"ordinal",
|
|
567
|
-
"quantile",
|
|
568
|
-
"quantize",
|
|
569
|
-
"utc",
|
|
570
|
-
"sequential",
|
|
571
|
-
"threshold",
|
|
572
|
-
],
|
|
573
539
|
]
|
|
574
540
|
] = None,
|
|
575
|
-
domain: Optional[Union[
|
|
576
|
-
stroke: Optional[Union[Var[Union[Color, str]], str
|
|
541
|
+
domain: Optional[Union[List[int], Var[List[int]]]] = None,
|
|
542
|
+
stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None,
|
|
577
543
|
style: Optional[Style] = None,
|
|
578
544
|
key: Optional[Any] = None,
|
|
579
545
|
id: Optional[Any] = None,
|
|
580
546
|
class_name: Optional[Any] = None,
|
|
581
547
|
autofocus: Optional[bool] = None,
|
|
582
548
|
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
583
|
-
on_click: Optional[
|
|
584
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
585
|
-
] = None,
|
|
549
|
+
on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
586
550
|
on_mouse_enter: Optional[
|
|
587
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
551
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
588
552
|
] = None,
|
|
589
553
|
on_mouse_leave: Optional[
|
|
590
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
554
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
591
555
|
] = None,
|
|
592
556
|
on_mouse_move: Optional[
|
|
593
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
557
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
594
558
|
] = None,
|
|
595
559
|
on_mouse_out: Optional[
|
|
596
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
560
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
597
561
|
] = None,
|
|
598
562
|
on_mouse_over: Optional[
|
|
599
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
563
|
+
Union[EventHandler, EventSpec, list, Callable, Var]
|
|
600
564
|
] = None,
|
|
601
565
|
**props,
|
|
602
566
|
) -> "PolarRadiusAxis":
|