reflex 0.7.1a4__py3-none-any.whl → 0.7.2a2__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 +46 -49
- reflex/app_mixins/lifespan.py +2 -2
- reflex/app_mixins/middleware.py +1 -2
- reflex/assets.py +1 -2
- reflex/base.py +2 -2
- reflex/compiler/compiler.py +51 -16
- reflex/compiler/utils.py +4 -13
- reflex/components/base/app_wrap.pyi +7 -7
- reflex/components/base/bare.py +3 -3
- reflex/components/base/body.pyi +7 -7
- reflex/components/base/document.py +1 -3
- reflex/components/base/document.pyi +32 -32
- reflex/components/base/error_boundary.py +2 -4
- reflex/components/base/error_boundary.pyi +11 -13
- reflex/components/base/fragment.pyi +7 -7
- reflex/components/base/head.pyi +13 -13
- reflex/components/base/link.pyi +22 -22
- reflex/components/base/meta.py +5 -7
- reflex/components/base/meta.pyi +40 -40
- reflex/components/base/script.pyi +11 -14
- reflex/components/base/strict_mode.pyi +7 -7
- reflex/components/component.py +188 -113
- reflex/components/core/auto_scroll.py +8 -1
- reflex/components/core/auto_scroll.pyi +183 -210
- reflex/components/core/banner.py +2 -4
- reflex/components/core/banner.pyi +390 -444
- reflex/components/core/breakpoints.py +5 -5
- reflex/components/core/client_side_routing.pyi +14 -14
- reflex/components/core/clipboard.py +4 -4
- reflex/components/core/clipboard.pyi +12 -14
- reflex/components/core/cond.py +17 -25
- reflex/components/core/debounce.py +3 -3
- reflex/components/core/debounce.pyi +14 -14
- reflex/components/core/foreach.py +7 -2
- reflex/components/core/html.py +1 -3
- reflex/components/core/html.pyi +184 -213
- reflex/components/core/match.py +15 -19
- reflex/components/core/sticky.pyi +930 -1078
- reflex/components/core/upload.py +4 -4
- reflex/components/core/upload.pyi +62 -62
- reflex/components/datadisplay/code.py +6 -6
- reflex/components/datadisplay/code.pyi +1159 -1165
- reflex/components/datadisplay/dataeditor.py +49 -49
- reflex/components/datadisplay/dataeditor.pyi +95 -123
- reflex/components/datadisplay/logo.py +1 -3
- reflex/components/datadisplay/shiki_code_block.py +8 -10
- reflex/components/datadisplay/shiki_code_block.pyi +1678 -1720
- reflex/components/el/element.pyi +7 -7
- reflex/components/el/elements/base.pyi +183 -210
- reflex/components/el/elements/forms.py +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 +9 -3
- reflex/testing.py +21 -24
- reflex/utils/console.py +1 -1
- reflex/utils/decorator.py +26 -1
- reflex/utils/exec.py +6 -11
- reflex/utils/export.py +2 -3
- reflex/utils/format.py +4 -4
- reflex/utils/imports.py +12 -12
- reflex/utils/prerequisites.py +35 -84
- reflex/utils/processes.py +5 -5
- reflex/utils/pyi_generator.py +33 -22
- reflex/utils/serializers.py +60 -15
- reflex/utils/types.py +237 -56
- reflex/vars/base.py +122 -72
- reflex/vars/datetime.py +2 -2
- reflex/vars/function.py +52 -55
- reflex/vars/number.py +59 -5
- reflex/vars/object.py +57 -26
- reflex/vars/sequence.py +983 -958
- {reflex-0.7.1a4.dist-info → reflex-0.7.2a2.dist-info}/METADATA +3 -6
- reflex-0.7.2a2.dist-info/RECORD +405 -0
- {reflex-0.7.1a4.dist-info → reflex-0.7.2a2.dist-info}/WHEEL +1 -1
- reflex-0.7.1a4.dist-info/RECORD +0 -405
- {reflex-0.7.1a4.dist-info → reflex-0.7.2a2.dist-info}/LICENSE +0 -0
- {reflex-0.7.1a4.dist-info → reflex-0.7.2a2.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.constants import EventTriggers
|
|
8
8
|
from reflex.constants.colors import Color
|
|
@@ -28,22 +28,22 @@ class Pie(Recharts):
|
|
|
28
28
|
alias = "RechartsPie"
|
|
29
29
|
|
|
30
30
|
# The source data which each element is an object.
|
|
31
|
-
data: Var[
|
|
31
|
+
data: Var[Sequence[dict[str, Any]]]
|
|
32
32
|
|
|
33
33
|
# The key of each sector's value.
|
|
34
|
-
data_key: Var[
|
|
34
|
+
data_key: Var[str | int]
|
|
35
35
|
|
|
36
36
|
# The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width. Default: "50%"
|
|
37
|
-
cx: Var[
|
|
37
|
+
cx: Var[int | str]
|
|
38
38
|
|
|
39
39
|
# The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height. Default: "50%"
|
|
40
|
-
cy: Var[
|
|
40
|
+
cy: Var[int | str]
|
|
41
41
|
|
|
42
42
|
# The inner radius of pie, which can be set to a percent value. Default: 0
|
|
43
|
-
inner_radius: Var[
|
|
43
|
+
inner_radius: Var[int | str]
|
|
44
44
|
|
|
45
45
|
# The outer radius of pie, which can be set to a percent value. Default: "80%"
|
|
46
|
-
outer_radius: Var[
|
|
46
|
+
outer_radius: Var[int | str]
|
|
47
47
|
|
|
48
48
|
# The angle of first sector. Default: 0
|
|
49
49
|
start_angle: Var[int]
|
|
@@ -69,17 +69,14 @@ class Pie(Recharts):
|
|
|
69
69
|
# If false set, label lines will not be drawn. If true set, label lines will be drawn which have the props calculated internally. Default: False
|
|
70
70
|
label_line: Var[bool]
|
|
71
71
|
|
|
72
|
-
# The index of active sector in Pie, this option can be changed in mouse event handlers.
|
|
73
|
-
data: Var[List[Dict[str, Any]]]
|
|
74
|
-
|
|
75
72
|
# Valid children components
|
|
76
|
-
_valid_children:
|
|
73
|
+
_valid_children: ClassVar[list[str]] = ["Cell", "LabelList", "Bare"]
|
|
77
74
|
|
|
78
75
|
# Stoke color. Default: rx.color("accent", 9)
|
|
79
|
-
stroke: Var[
|
|
76
|
+
stroke: Var[str | Color] = LiteralVar.create(Color("accent", 9))
|
|
80
77
|
|
|
81
78
|
# Fill color. Default: rx.color("accent", 3)
|
|
82
|
-
fill: Var[
|
|
79
|
+
fill: Var[str | Color] = LiteralVar.create(Color("accent", 3))
|
|
83
80
|
|
|
84
81
|
# If set false, animation of tooltip will be disabled. Default: true in CSR, and false in SSR
|
|
85
82
|
is_animation_active: Var[bool]
|
|
@@ -96,7 +93,7 @@ class Pie(Recharts):
|
|
|
96
93
|
# The tabindex of wrapper surrounding the cells. Default: 0
|
|
97
94
|
root_tab_index: Var[int]
|
|
98
95
|
|
|
99
|
-
def get_event_triggers(self) -> dict[str,
|
|
96
|
+
def get_event_triggers(self) -> dict[str, Var | Any]:
|
|
100
97
|
"""Get the event triggers that pass the component's value to the handler.
|
|
101
98
|
|
|
102
99
|
Returns:
|
|
@@ -122,16 +119,16 @@ class Radar(Recharts):
|
|
|
122
119
|
alias = "RechartsRadar"
|
|
123
120
|
|
|
124
121
|
# The key of a group of data which should be unique in a radar chart.
|
|
125
|
-
data_key: Var[
|
|
122
|
+
data_key: Var[str | int]
|
|
126
123
|
|
|
127
124
|
# The coordinates of all the vertices of the radar shape, like [{ x, y }].
|
|
128
|
-
points: Var[
|
|
125
|
+
points: Var[Sequence[dict[str, Any]]]
|
|
129
126
|
|
|
130
127
|
# If false set, dots will not be drawn. Default: True
|
|
131
128
|
dot: Var[bool]
|
|
132
129
|
|
|
133
130
|
# Stoke color. Default: rx.color("accent", 9)
|
|
134
|
-
stroke: Var[
|
|
131
|
+
stroke: Var[str | Color] = LiteralVar.create(Color("accent", 9))
|
|
135
132
|
|
|
136
133
|
# Fill color. Default: rx.color("accent", 3)
|
|
137
134
|
fill: Var[str] = LiteralVar.create(Color("accent", 3))
|
|
@@ -158,9 +155,9 @@ class Radar(Recharts):
|
|
|
158
155
|
animation_easing: Var[LiteralAnimationEasing]
|
|
159
156
|
|
|
160
157
|
# Valid children components
|
|
161
|
-
_valid_children:
|
|
158
|
+
_valid_children: ClassVar[list[str]] = ["LabelList"]
|
|
162
159
|
|
|
163
|
-
def get_event_triggers(self) -> dict[str,
|
|
160
|
+
def get_event_triggers(self) -> dict[str, Var | Any]:
|
|
164
161
|
"""Get the event triggers that pass the component's value to the handler.
|
|
165
162
|
|
|
166
163
|
Returns:
|
|
@@ -180,10 +177,10 @@ class RadialBar(Recharts):
|
|
|
180
177
|
alias = "RechartsRadialBar"
|
|
181
178
|
|
|
182
179
|
# The source data which each element is an object.
|
|
183
|
-
data: Var[
|
|
180
|
+
data: Var[Sequence[dict[str, Any]]]
|
|
184
181
|
|
|
185
182
|
# The key of a group of data which should be unique to show the meaning of angle axis.
|
|
186
|
-
data_key: Var[
|
|
183
|
+
data_key: Var[str | int]
|
|
187
184
|
|
|
188
185
|
# Min angle of each bar. A positive value between 0 and 360. Default: 0
|
|
189
186
|
min_angle: Var[int]
|
|
@@ -192,10 +189,10 @@ class RadialBar(Recharts):
|
|
|
192
189
|
legend_type: Var[LiteralLegendType]
|
|
193
190
|
|
|
194
191
|
# If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
|
|
195
|
-
label: Var[Union[bool,
|
|
192
|
+
label: Var[Union[bool, dict[str, Any]]]
|
|
196
193
|
|
|
197
194
|
# If false set, background sector will not be drawn. Default: False
|
|
198
|
-
background: Var[Union[bool,
|
|
195
|
+
background: Var[Union[bool, dict[str, Any]]]
|
|
199
196
|
|
|
200
197
|
# If set false, animation of radial bars will be disabled. Default: True
|
|
201
198
|
is_animation_active: Var[bool]
|
|
@@ -210,9 +207,9 @@ class RadialBar(Recharts):
|
|
|
210
207
|
animation_easing: Var[LiteralAnimationEasing]
|
|
211
208
|
|
|
212
209
|
# Valid children components
|
|
213
|
-
_valid_children:
|
|
210
|
+
_valid_children: ClassVar[list[str]] = ["Cell", "LabelList"]
|
|
214
211
|
|
|
215
|
-
def get_event_triggers(self) -> dict[str,
|
|
212
|
+
def get_event_triggers(self) -> dict[str, Var | Any]:
|
|
216
213
|
"""Get the event triggers that pass the component's value to the handler.
|
|
217
214
|
|
|
218
215
|
Returns:
|
|
@@ -238,43 +235,43 @@ class PolarAngleAxis(Recharts):
|
|
|
238
235
|
alias = "RechartsPolarAngleAxis"
|
|
239
236
|
|
|
240
237
|
# The key of a group of data which should be unique to show the meaning of angle axis.
|
|
241
|
-
data_key: Var[
|
|
238
|
+
data_key: Var[str | int]
|
|
242
239
|
|
|
243
240
|
# The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width.
|
|
244
|
-
cx: Var[
|
|
241
|
+
cx: Var[int | str]
|
|
245
242
|
|
|
246
243
|
# The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height.
|
|
247
|
-
cy: Var[
|
|
244
|
+
cy: Var[int | str]
|
|
248
245
|
|
|
249
246
|
# The outer radius of circle grid. If set a percentage, the final value is obtained by multiplying the percentage of maxRadius which is calculated by the width, height, cx, cy.
|
|
250
|
-
radius: Var[
|
|
247
|
+
radius: Var[int | str]
|
|
251
248
|
|
|
252
249
|
# If false set, axis line will not be drawn. If true set, axis line will be drawn which have the props calculated internally. If object set, axis line will be drawn which have the props mergered by the internal calculated props and the option. Default: True
|
|
253
|
-
axis_line: Var[Union[bool,
|
|
250
|
+
axis_line: Var[Union[bool, dict[str, Any]]]
|
|
254
251
|
|
|
255
252
|
# The type of axis line. Default: "polygon"
|
|
256
253
|
axis_line_type: Var[LiteralGridType]
|
|
257
254
|
|
|
258
255
|
# 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. Default: False
|
|
259
|
-
tick_line: Var[Union[bool,
|
|
256
|
+
tick_line: Var[Union[bool, dict[str, Any]]] = LiteralVar.create(False)
|
|
260
257
|
|
|
261
258
|
# If false set, ticks will not be drawn. If true set, ticks will be drawn which have the props calculated internally. If object set, ticks will be drawn which have the props mergered by the internal calculated props and the option. Default: True
|
|
262
|
-
tick: Var[Union[bool,
|
|
259
|
+
tick: Var[Union[bool, dict[str, Any]]]
|
|
263
260
|
|
|
264
261
|
# The array of every tick's value and angle.
|
|
265
|
-
ticks: Var[
|
|
262
|
+
ticks: Var[Sequence[dict[str, Any]]]
|
|
266
263
|
|
|
267
264
|
# The orientation of axis text. Default: "outer"
|
|
268
265
|
orientation: Var[str]
|
|
269
266
|
|
|
270
267
|
# The stroke color of axis. Default: rx.color("gray", 10)
|
|
271
|
-
stroke: Var[
|
|
268
|
+
stroke: Var[str | Color] = LiteralVar.create(Color("gray", 10))
|
|
272
269
|
|
|
273
270
|
# Allow the axis has duplicated categorys or not when the type of axis is "category". Default: True
|
|
274
271
|
allow_duplicated_category: Var[bool]
|
|
275
272
|
|
|
276
273
|
# Valid children components.
|
|
277
|
-
_valid_children:
|
|
274
|
+
_valid_children: ClassVar[list[str]] = ["Label"]
|
|
278
275
|
|
|
279
276
|
# The customized event handler of click on the ticks of this axis.
|
|
280
277
|
on_click: EventHandler[no_args_event_spec]
|
|
@@ -321,19 +318,19 @@ class PolarGrid(Recharts):
|
|
|
321
318
|
outer_radius: Var[int]
|
|
322
319
|
|
|
323
320
|
# The array of every line grid's angle.
|
|
324
|
-
polar_angles: Var[
|
|
321
|
+
polar_angles: Var[Sequence[int]]
|
|
325
322
|
|
|
326
323
|
# The array of every line grid's radius.
|
|
327
|
-
polar_radius: Var[
|
|
324
|
+
polar_radius: Var[Sequence[int]]
|
|
328
325
|
|
|
329
326
|
# The type of polar grids. 'polygon' | 'circle'. Default: "polygon"
|
|
330
327
|
grid_type: Var[LiteralGridType]
|
|
331
328
|
|
|
332
329
|
# The stroke color of grid. Default: rx.color("gray", 10)
|
|
333
|
-
stroke: Var[
|
|
330
|
+
stroke: Var[str | Color] = LiteralVar.create(Color("gray", 10))
|
|
334
331
|
|
|
335
332
|
# Valid children components
|
|
336
|
-
_valid_children:
|
|
333
|
+
_valid_children: ClassVar[list[str]] = ["RadarChart", "RadiarBarChart"]
|
|
337
334
|
|
|
338
335
|
|
|
339
336
|
class PolarRadiusAxis(Recharts):
|
|
@@ -365,10 +362,10 @@ class PolarRadiusAxis(Recharts):
|
|
|
365
362
|
orientation: Var[LiteralOrientationLeftRightMiddle]
|
|
366
363
|
|
|
367
364
|
# If false set, axis line will not be drawn. If true set, axis line will be drawn which have the props calculated internally. If object set, axis line will be drawn which have the props mergered by the internal calculated props and the option. Default: True
|
|
368
|
-
axis_line: Var[Union[bool,
|
|
365
|
+
axis_line: Var[Union[bool, dict[str, Any]]]
|
|
369
366
|
|
|
370
367
|
# If false set, ticks will not be drawn. If true set, ticks will be drawn which have the props calculated internally. If object set, ticks will be drawn which have the props mergered by the internal calculated props and the option. Default: True
|
|
371
|
-
tick: Var[Union[bool,
|
|
368
|
+
tick: Var[Union[bool, dict[str, Any]]]
|
|
372
369
|
|
|
373
370
|
# The count of axis ticks. Not used if 'type' is 'category'. Default: 5
|
|
374
371
|
tick_count: Var[int]
|
|
@@ -377,15 +374,15 @@ class PolarRadiusAxis(Recharts):
|
|
|
377
374
|
scale: Var[LiteralScale]
|
|
378
375
|
|
|
379
376
|
# Valid children components
|
|
380
|
-
_valid_children:
|
|
377
|
+
_valid_children: ClassVar[list[str]] = ["Label"]
|
|
381
378
|
|
|
382
379
|
# The domain of the polar radius axis, specifying the minimum and maximum values. Default: [0, "auto"]
|
|
383
|
-
domain: Var[
|
|
380
|
+
domain: Var[Sequence[int | str]]
|
|
384
381
|
|
|
385
382
|
# The stroke color of axis. Default: rx.color("gray", 10)
|
|
386
|
-
stroke: Var[
|
|
383
|
+
stroke: Var[str | Color] = LiteralVar.create(Color("gray", 10))
|
|
387
384
|
|
|
388
|
-
def get_event_triggers(self) -> dict[str,
|
|
385
|
+
def get_event_triggers(self) -> dict[str, Var | Any]:
|
|
389
386
|
"""Get the event triggers that pass the component's value to the handler.
|
|
390
387
|
|
|
391
388
|
Returns:
|