reflex 0.7.1a3__py3-none-any.whl → 0.7.2__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/.templates/web/utils/state.js +18 -18
- 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 +24 -24
- reflex/components/el/elements/forms.pyi +2572 -2934
- 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 +11 -5
- 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.2.dist-info}/METADATA +3 -6
- reflex-0.7.2.dist-info/RECORD +405 -0
- {reflex-0.7.1a3.dist-info → reflex-0.7.2.dist-info}/WHEEL +1 -1
- reflex-0.7.1a3.dist-info/RECORD +0 -405
- {reflex-0.7.1a3.dist-info → reflex-0.7.2.dist-info}/LICENSE +0 -0
- {reflex-0.7.1a3.dist-info → reflex-0.7.2.dist-info}/entry_points.txt +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Any,
|
|
5
|
+
from typing import Any, ClassVar, Sequence, Union
|
|
6
6
|
|
|
7
7
|
from reflex.components.component import MemoizationLeaf
|
|
8
8
|
from reflex.constants.colors import Color
|
|
@@ -31,16 +31,16 @@ class ResponsiveContainer(Recharts, MemoizationLeaf):
|
|
|
31
31
|
aspect: Var[int]
|
|
32
32
|
|
|
33
33
|
# The width of chart container. Can be a number or string. Default: "100%"
|
|
34
|
-
width: Var[
|
|
34
|
+
width: Var[int | str]
|
|
35
35
|
|
|
36
36
|
# The height of chart container. Can be a number or string. Default: "100%"
|
|
37
|
-
height: Var[
|
|
37
|
+
height: Var[int | str]
|
|
38
38
|
|
|
39
39
|
# The minimum width of chart container. Number or string.
|
|
40
|
-
min_width: Var[
|
|
40
|
+
min_width: Var[int | str]
|
|
41
41
|
|
|
42
42
|
# The minimum height of chart container. Number or string.
|
|
43
|
-
min_height: Var[
|
|
43
|
+
min_height: Var[int | str]
|
|
44
44
|
|
|
45
45
|
# If specified a positive number, debounced function will be used to handle the resize event. Default: 0
|
|
46
46
|
debounce: Var[int]
|
|
@@ -49,13 +49,14 @@ class ResponsiveContainer(Recharts, MemoizationLeaf):
|
|
|
49
49
|
on_resize: EventHandler[no_args_event_spec]
|
|
50
50
|
|
|
51
51
|
# Valid children components
|
|
52
|
-
_valid_children:
|
|
52
|
+
_valid_children: ClassVar[list[str]] = [
|
|
53
53
|
"AreaChart",
|
|
54
54
|
"BarChart",
|
|
55
55
|
"LineChart",
|
|
56
56
|
"PieChart",
|
|
57
57
|
"RadarChart",
|
|
58
58
|
"RadialBarChart",
|
|
59
|
+
"ResponsiveContainer",
|
|
59
60
|
"ScatterChart",
|
|
60
61
|
"Treemap",
|
|
61
62
|
"ComposedChart",
|
|
@@ -92,7 +93,7 @@ class Legend(Recharts):
|
|
|
92
93
|
icon_type: Var[LiteralIconType]
|
|
93
94
|
|
|
94
95
|
# The source data of the content to be displayed in the legend, usually calculated internally. Default: []
|
|
95
|
-
payload: Var[
|
|
96
|
+
payload: Var[Sequence[dict[str, Any]]]
|
|
96
97
|
|
|
97
98
|
# The width of chart container, usually calculated internally.
|
|
98
99
|
chart_width: Var[int]
|
|
@@ -101,7 +102,7 @@ class Legend(Recharts):
|
|
|
101
102
|
chart_height: Var[int]
|
|
102
103
|
|
|
103
104
|
# The margin of chart container, usually calculated internally.
|
|
104
|
-
margin: Var[
|
|
105
|
+
margin: Var[dict[str, Any]]
|
|
105
106
|
|
|
106
107
|
# The customized event handler of click on the items in this group
|
|
107
108
|
on_click: EventHandler[no_args_event_spec]
|
|
@@ -145,7 +146,7 @@ class GraphingTooltip(Recharts):
|
|
|
145
146
|
filter_null: Var[bool]
|
|
146
147
|
|
|
147
148
|
# If set false, no cursor will be drawn when tooltip is active. Default: {"strokeWidth": 1, "fill": rx.color("gray", 3)}
|
|
148
|
-
cursor: Var[Union[
|
|
149
|
+
cursor: Var[Union[dict[str, Any], bool]] = LiteralVar.create(
|
|
149
150
|
{
|
|
150
151
|
"strokeWidth": 1,
|
|
151
152
|
"fill": Color("gray", 3),
|
|
@@ -153,20 +154,20 @@ class GraphingTooltip(Recharts):
|
|
|
153
154
|
)
|
|
154
155
|
|
|
155
156
|
# The box of viewing area, which has the shape of {x: someVal, y: someVal, width: someVal, height: someVal}, usually calculated internally.
|
|
156
|
-
view_box: Var[
|
|
157
|
+
view_box: Var[dict[str, Any]]
|
|
157
158
|
|
|
158
159
|
# The style of default tooltip content item which is a li element. Default: {"color": rx.color("gray", 12)}
|
|
159
|
-
item_style: Var[
|
|
160
|
+
item_style: Var[dict[str, Any]] = LiteralVar.create(
|
|
160
161
|
{
|
|
161
162
|
"color": Color("gray", 12),
|
|
162
163
|
}
|
|
163
164
|
)
|
|
164
165
|
|
|
165
166
|
# The style of tooltip wrapper which is a dom element. Default: {}
|
|
166
|
-
wrapper_style: Var[
|
|
167
|
+
wrapper_style: Var[dict[str, Any]]
|
|
167
168
|
|
|
168
169
|
# The style of tooltip content which is a dom element. Default: {"background": rx.color("gray", 1), "borderColor": rx.color("gray", 4), "borderRadius": "8px"}
|
|
169
|
-
content_style: Var[
|
|
170
|
+
content_style: Var[dict[str, Any]] = LiteralVar.create(
|
|
170
171
|
{
|
|
171
172
|
"background": Color("gray", 1),
|
|
172
173
|
"borderColor": Color("gray", 4),
|
|
@@ -175,19 +176,19 @@ class GraphingTooltip(Recharts):
|
|
|
175
176
|
)
|
|
176
177
|
|
|
177
178
|
# The style of default tooltip label which is a p element. Default: {"color": rx.color("gray", 11)}
|
|
178
|
-
label_style: Var[
|
|
179
|
+
label_style: Var[dict[str, Any]] = LiteralVar.create({"color": Color("gray", 11)})
|
|
179
180
|
|
|
180
181
|
# This option allows the tooltip to extend beyond the viewBox of the chart itself. Default: {"x": False, "y": False}
|
|
181
|
-
allow_escape_view_box: Var[
|
|
182
|
+
allow_escape_view_box: Var[dict[str, bool]]
|
|
182
183
|
|
|
183
184
|
# If set true, the tooltip is displayed. If set false, the tooltip is hidden, usually calculated internally. Default: False
|
|
184
185
|
active: Var[bool]
|
|
185
186
|
|
|
186
187
|
# If this field is set, the tooltip position will be fixed and will not move anymore.
|
|
187
|
-
position: Var[
|
|
188
|
+
position: Var[dict[str, Any]]
|
|
188
189
|
|
|
189
190
|
# The coordinate of tooltip which is usually calculated internally. Default: {"x": 0, "y": 0}
|
|
190
|
-
coordinate: Var[
|
|
191
|
+
coordinate: Var[dict[str, Any]]
|
|
191
192
|
|
|
192
193
|
# If set false, animation of tooltip will be disabled. Default: True
|
|
193
194
|
is_animation_active: Var[bool]
|
|
@@ -207,7 +208,7 @@ class Label(Recharts):
|
|
|
207
208
|
alias = "RechartsLabel"
|
|
208
209
|
|
|
209
210
|
# The box of viewing area, which has the shape of {x: someVal, y: someVal, width: someVal, height: someVal}, usually calculated internally.
|
|
210
|
-
view_box: Var[
|
|
211
|
+
view_box: Var[dict[str, Any]]
|
|
211
212
|
|
|
212
213
|
# The value of label, which can be specified by this props or the children of <Label />
|
|
213
214
|
value: Var[str]
|
|
@@ -227,7 +228,7 @@ class LabelList(Recharts):
|
|
|
227
228
|
alias = "RechartsLabelList"
|
|
228
229
|
|
|
229
230
|
# The key of a group of label values in data.
|
|
230
|
-
data_key: Var[
|
|
231
|
+
data_key: Var[str | int]
|
|
231
232
|
|
|
232
233
|
# The position of each label relative to it view box. "Top" | "left" | "right" | "bottom" | "inside" | "outside" | "insideLeft" | "insideRight" | "insideTop" | "insideBottom" | "insideTopLeft" | "insideBottomLeft" | "insideTopRight" | "insideBottomRight" | "insideStart" | "insideEnd" | "end" | "center"
|
|
233
234
|
position: Var[LiteralPosition]
|
|
@@ -236,10 +237,10 @@ class LabelList(Recharts):
|
|
|
236
237
|
offset: Var[int]
|
|
237
238
|
|
|
238
239
|
# The fill color of each label. Default: rx.color("gray", 10)
|
|
239
|
-
fill: Var[
|
|
240
|
+
fill: Var[str | Color] = LiteralVar.create(Color("gray", 10))
|
|
240
241
|
|
|
241
242
|
# The stroke color of each label. Default: "none"
|
|
242
|
-
stroke: Var[
|
|
243
|
+
stroke: Var[str | Color] = LiteralVar.create("none")
|
|
243
244
|
|
|
244
245
|
|
|
245
246
|
class Cell(Recharts):
|
|
@@ -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.components.component import MemoizationLeaf
|
|
9
9
|
from reflex.constants.colors import Color
|
|
@@ -19,18 +19,18 @@ class ResponsiveContainer(Recharts, MemoizationLeaf):
|
|
|
19
19
|
def create( # type: ignore
|
|
20
20
|
cls,
|
|
21
21
|
*children,
|
|
22
|
-
aspect:
|
|
23
|
-
width:
|
|
24
|
-
height:
|
|
25
|
-
min_width:
|
|
26
|
-
min_height:
|
|
27
|
-
debounce:
|
|
28
|
-
style:
|
|
29
|
-
key:
|
|
30
|
-
id:
|
|
31
|
-
class_name:
|
|
32
|
-
autofocus:
|
|
33
|
-
custom_attrs:
|
|
22
|
+
aspect: Var[int] | int | None = None,
|
|
23
|
+
width: Var[int | str] | int | str | None = None,
|
|
24
|
+
height: Var[int | str] | int | str | None = None,
|
|
25
|
+
min_width: Var[int | str] | int | str | None = None,
|
|
26
|
+
min_height: Var[int | str] | int | str | None = None,
|
|
27
|
+
debounce: Var[int] | int | None = None,
|
|
28
|
+
style: Style | None = None,
|
|
29
|
+
key: Any | None = None,
|
|
30
|
+
id: Any | None = None,
|
|
31
|
+
class_name: Any | None = None,
|
|
32
|
+
autofocus: bool | None = None,
|
|
33
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
34
34
|
on_blur: Optional[EventType[()]] = None,
|
|
35
35
|
on_click: Optional[EventType[()]] = None,
|
|
36
36
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -79,69 +79,55 @@ class Legend(Recharts):
|
|
|
79
79
|
def create( # type: ignore
|
|
80
80
|
cls,
|
|
81
81
|
*children,
|
|
82
|
-
width:
|
|
83
|
-
height:
|
|
84
|
-
layout:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
width: Var[int] | int | None = None,
|
|
83
|
+
height: Var[int] | int | None = None,
|
|
84
|
+
layout: Literal["horizontal", "vertical"]
|
|
85
|
+
| Var[Literal["horizontal", "vertical"]]
|
|
86
|
+
| None = None,
|
|
87
|
+
align: Literal["center", "left", "right"]
|
|
88
|
+
| Var[Literal["center", "left", "right"]]
|
|
89
|
+
| None = None,
|
|
90
|
+
vertical_align: Literal["bottom", "middle", "top"]
|
|
91
|
+
| Var[Literal["bottom", "middle", "top"]]
|
|
92
|
+
| None = None,
|
|
93
|
+
icon_size: Var[int] | int | None = None,
|
|
94
|
+
icon_type: Literal[
|
|
95
|
+
"circle",
|
|
96
|
+
"cross",
|
|
97
|
+
"diamond",
|
|
98
|
+
"line",
|
|
99
|
+
"plainline",
|
|
100
|
+
"rect",
|
|
101
|
+
"square",
|
|
102
|
+
"star",
|
|
103
|
+
"triangle",
|
|
104
|
+
"wye",
|
|
105
|
+
]
|
|
106
|
+
| Var[
|
|
107
|
+
Literal[
|
|
108
|
+
"circle",
|
|
109
|
+
"cross",
|
|
110
|
+
"diamond",
|
|
111
|
+
"line",
|
|
112
|
+
"plainline",
|
|
113
|
+
"rect",
|
|
114
|
+
"square",
|
|
115
|
+
"star",
|
|
116
|
+
"triangle",
|
|
117
|
+
"wye",
|
|
88
118
|
]
|
|
89
|
-
]
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
] = None,
|
|
102
|
-
icon_size: Optional[Union[Var[int], int]] = None,
|
|
103
|
-
icon_type: Optional[
|
|
104
|
-
Union[
|
|
105
|
-
Literal[
|
|
106
|
-
"circle",
|
|
107
|
-
"cross",
|
|
108
|
-
"diamond",
|
|
109
|
-
"line",
|
|
110
|
-
"plainline",
|
|
111
|
-
"rect",
|
|
112
|
-
"square",
|
|
113
|
-
"star",
|
|
114
|
-
"triangle",
|
|
115
|
-
"wye",
|
|
116
|
-
],
|
|
117
|
-
Var[
|
|
118
|
-
Literal[
|
|
119
|
-
"circle",
|
|
120
|
-
"cross",
|
|
121
|
-
"diamond",
|
|
122
|
-
"line",
|
|
123
|
-
"plainline",
|
|
124
|
-
"rect",
|
|
125
|
-
"square",
|
|
126
|
-
"star",
|
|
127
|
-
"triangle",
|
|
128
|
-
"wye",
|
|
129
|
-
]
|
|
130
|
-
],
|
|
131
|
-
]
|
|
132
|
-
] = None,
|
|
133
|
-
payload: Optional[
|
|
134
|
-
Union[List[Dict[str, Any]], Var[List[Dict[str, Any]]]]
|
|
135
|
-
] = None,
|
|
136
|
-
chart_width: Optional[Union[Var[int], int]] = None,
|
|
137
|
-
chart_height: Optional[Union[Var[int], int]] = None,
|
|
138
|
-
margin: Optional[Union[Dict[str, Any], Var[Dict[str, Any]]]] = None,
|
|
139
|
-
style: Optional[Style] = None,
|
|
140
|
-
key: Optional[Any] = None,
|
|
141
|
-
id: Optional[Any] = None,
|
|
142
|
-
class_name: Optional[Any] = None,
|
|
143
|
-
autofocus: Optional[bool] = None,
|
|
144
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
119
|
+
]
|
|
120
|
+
| None = None,
|
|
121
|
+
payload: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
122
|
+
chart_width: Var[int] | int | None = None,
|
|
123
|
+
chart_height: Var[int] | int | None = None,
|
|
124
|
+
margin: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
125
|
+
style: Style | None = None,
|
|
126
|
+
key: Any | None = None,
|
|
127
|
+
id: Any | None = None,
|
|
128
|
+
class_name: Any | None = None,
|
|
129
|
+
autofocus: bool | None = None,
|
|
130
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
145
131
|
on_blur: Optional[EventType[()]] = None,
|
|
146
132
|
on_click: Optional[EventType[()]] = None,
|
|
147
133
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -201,37 +187,32 @@ class GraphingTooltip(Recharts):
|
|
|
201
187
|
def create( # type: ignore
|
|
202
188
|
cls,
|
|
203
189
|
*children,
|
|
204
|
-
separator:
|
|
205
|
-
offset:
|
|
206
|
-
filter_null:
|
|
207
|
-
cursor:
|
|
208
|
-
|
|
209
|
-
] = None,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
] = None,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
key: Optional[Any] = None,
|
|
231
|
-
id: Optional[Any] = None,
|
|
232
|
-
class_name: Optional[Any] = None,
|
|
233
|
-
autofocus: Optional[bool] = None,
|
|
234
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
190
|
+
separator: Var[str] | str | None = None,
|
|
191
|
+
offset: Var[int] | int | None = None,
|
|
192
|
+
filter_null: Var[bool] | bool | None = None,
|
|
193
|
+
cursor: Var[bool | dict[str, Any]] | bool | dict[str, Any] | None = None,
|
|
194
|
+
view_box: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
195
|
+
item_style: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
196
|
+
wrapper_style: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
197
|
+
content_style: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
198
|
+
label_style: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
199
|
+
allow_escape_view_box: Var[dict[str, bool]] | dict[str, bool] | None = None,
|
|
200
|
+
active: Var[bool] | bool | None = None,
|
|
201
|
+
position: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
202
|
+
coordinate: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
203
|
+
is_animation_active: Var[bool] | bool | None = None,
|
|
204
|
+
animation_duration: Var[int] | int | None = None,
|
|
205
|
+
animation_easing: Literal[
|
|
206
|
+
"ease", "ease-in", "ease-in-out", "ease-out", "linear"
|
|
207
|
+
]
|
|
208
|
+
| Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]]
|
|
209
|
+
| None = None,
|
|
210
|
+
style: Style | None = None,
|
|
211
|
+
key: Any | None = None,
|
|
212
|
+
id: Any | None = None,
|
|
213
|
+
class_name: Any | None = None,
|
|
214
|
+
autofocus: bool | None = None,
|
|
215
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
235
216
|
on_blur: Optional[EventType[()]] = None,
|
|
236
217
|
on_click: Optional[EventType[()]] = None,
|
|
237
218
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -288,61 +269,58 @@ class Label(Recharts):
|
|
|
288
269
|
def create( # type: ignore
|
|
289
270
|
cls,
|
|
290
271
|
*children,
|
|
291
|
-
view_box:
|
|
292
|
-
value:
|
|
293
|
-
offset:
|
|
294
|
-
position:
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
"right",
|
|
335
|
-
"top",
|
|
336
|
-
]
|
|
337
|
-
],
|
|
272
|
+
view_box: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
273
|
+
value: Var[str] | str | None = None,
|
|
274
|
+
offset: Var[int] | int | None = None,
|
|
275
|
+
position: Literal[
|
|
276
|
+
"bottom",
|
|
277
|
+
"center",
|
|
278
|
+
"end",
|
|
279
|
+
"inside",
|
|
280
|
+
"insideBottom",
|
|
281
|
+
"insideBottomLeft",
|
|
282
|
+
"insideBottomRight",
|
|
283
|
+
"insideEnd",
|
|
284
|
+
"insideLeft",
|
|
285
|
+
"insideRight",
|
|
286
|
+
"insideStart",
|
|
287
|
+
"insideTop",
|
|
288
|
+
"insideTopLeft",
|
|
289
|
+
"insideTopRight",
|
|
290
|
+
"left",
|
|
291
|
+
"outside",
|
|
292
|
+
"right",
|
|
293
|
+
"top",
|
|
294
|
+
]
|
|
295
|
+
| Var[
|
|
296
|
+
Literal[
|
|
297
|
+
"bottom",
|
|
298
|
+
"center",
|
|
299
|
+
"end",
|
|
300
|
+
"inside",
|
|
301
|
+
"insideBottom",
|
|
302
|
+
"insideBottomLeft",
|
|
303
|
+
"insideBottomRight",
|
|
304
|
+
"insideEnd",
|
|
305
|
+
"insideLeft",
|
|
306
|
+
"insideRight",
|
|
307
|
+
"insideStart",
|
|
308
|
+
"insideTop",
|
|
309
|
+
"insideTopLeft",
|
|
310
|
+
"insideTopRight",
|
|
311
|
+
"left",
|
|
312
|
+
"outside",
|
|
313
|
+
"right",
|
|
314
|
+
"top",
|
|
338
315
|
]
|
|
339
|
-
]
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
316
|
+
]
|
|
317
|
+
| None = None,
|
|
318
|
+
style: Style | None = None,
|
|
319
|
+
key: Any | None = None,
|
|
320
|
+
id: Any | None = None,
|
|
321
|
+
class_name: Any | None = None,
|
|
322
|
+
autofocus: bool | None = None,
|
|
323
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
346
324
|
on_blur: Optional[EventType[()]] = None,
|
|
347
325
|
on_click: Optional[EventType[()]] = None,
|
|
348
326
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -387,62 +365,59 @@ class LabelList(Recharts):
|
|
|
387
365
|
def create( # type: ignore
|
|
388
366
|
cls,
|
|
389
367
|
*children,
|
|
390
|
-
data_key:
|
|
391
|
-
position:
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
"right",
|
|
432
|
-
"top",
|
|
433
|
-
]
|
|
434
|
-
],
|
|
368
|
+
data_key: Var[int | str] | int | str | None = None,
|
|
369
|
+
position: Literal[
|
|
370
|
+
"bottom",
|
|
371
|
+
"center",
|
|
372
|
+
"end",
|
|
373
|
+
"inside",
|
|
374
|
+
"insideBottom",
|
|
375
|
+
"insideBottomLeft",
|
|
376
|
+
"insideBottomRight",
|
|
377
|
+
"insideEnd",
|
|
378
|
+
"insideLeft",
|
|
379
|
+
"insideRight",
|
|
380
|
+
"insideStart",
|
|
381
|
+
"insideTop",
|
|
382
|
+
"insideTopLeft",
|
|
383
|
+
"insideTopRight",
|
|
384
|
+
"left",
|
|
385
|
+
"outside",
|
|
386
|
+
"right",
|
|
387
|
+
"top",
|
|
388
|
+
]
|
|
389
|
+
| Var[
|
|
390
|
+
Literal[
|
|
391
|
+
"bottom",
|
|
392
|
+
"center",
|
|
393
|
+
"end",
|
|
394
|
+
"inside",
|
|
395
|
+
"insideBottom",
|
|
396
|
+
"insideBottomLeft",
|
|
397
|
+
"insideBottomRight",
|
|
398
|
+
"insideEnd",
|
|
399
|
+
"insideLeft",
|
|
400
|
+
"insideRight",
|
|
401
|
+
"insideStart",
|
|
402
|
+
"insideTop",
|
|
403
|
+
"insideTopLeft",
|
|
404
|
+
"insideTopRight",
|
|
405
|
+
"left",
|
|
406
|
+
"outside",
|
|
407
|
+
"right",
|
|
408
|
+
"top",
|
|
435
409
|
]
|
|
436
|
-
]
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
410
|
+
]
|
|
411
|
+
| None = None,
|
|
412
|
+
offset: Var[int] | int | None = None,
|
|
413
|
+
fill: Color | Var[Color | str] | str | None = None,
|
|
414
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
415
|
+
style: Style | None = None,
|
|
416
|
+
key: Any | None = None,
|
|
417
|
+
id: Any | None = None,
|
|
418
|
+
class_name: Any | None = None,
|
|
419
|
+
autofocus: bool | None = None,
|
|
420
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
446
421
|
on_blur: Optional[EventType[()]] = None,
|
|
447
422
|
on_click: Optional[EventType[()]] = None,
|
|
448
423
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -488,14 +463,14 @@ class Cell(Recharts):
|
|
|
488
463
|
def create( # type: ignore
|
|
489
464
|
cls,
|
|
490
465
|
*children,
|
|
491
|
-
fill:
|
|
492
|
-
stroke:
|
|
493
|
-
style:
|
|
494
|
-
key:
|
|
495
|
-
id:
|
|
496
|
-
class_name:
|
|
497
|
-
autofocus:
|
|
498
|
-
custom_attrs:
|
|
466
|
+
fill: Color | Var[Color | str] | str | None = None,
|
|
467
|
+
stroke: Color | Var[Color | str] | str | None = None,
|
|
468
|
+
style: Style | None = None,
|
|
469
|
+
key: Any | None = None,
|
|
470
|
+
id: Any | None = None,
|
|
471
|
+
class_name: Any | None = None,
|
|
472
|
+
autofocus: bool | None = None,
|
|
473
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
499
474
|
on_blur: Optional[EventType[()]] = None,
|
|
500
475
|
on_click: Optional[EventType[()]] = None,
|
|
501
476
|
on_context_menu: Optional[EventType[()]] = None,
|