reflex 0.7.4a2__py3-none-any.whl → 0.7.5a1__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/__init__.py +1 -0
- reflex/__init__.pyi +1 -0
- reflex/app.py +10 -8
- reflex/app_mixins/middleware.py +13 -20
- reflex/compiler/compiler.py +10 -3
- reflex/compiler/utils.py +4 -4
- reflex/components/base/app_wrap.pyi +7 -3
- reflex/components/base/body.pyi +7 -3
- reflex/components/base/document.pyi +27 -7
- reflex/components/base/error_boundary.pyi +7 -3
- reflex/components/base/fragment.pyi +7 -3
- reflex/components/base/head.pyi +12 -4
- reflex/components/base/link.pyi +12 -4
- reflex/components/base/meta.pyi +22 -6
- reflex/components/base/script.pyi +7 -3
- reflex/components/base/strict_mode.pyi +7 -3
- reflex/components/component.py +64 -23
- reflex/components/core/auto_scroll.pyi +7 -3
- reflex/components/core/banner.py +6 -2
- reflex/components/core/banner.pyi +32 -8
- reflex/components/core/client_side_routing.pyi +12 -4
- reflex/components/core/clipboard.pyi +7 -3
- reflex/components/core/debounce.pyi +7 -3
- reflex/components/core/foreach.py +5 -1
- reflex/components/core/html.pyi +7 -3
- reflex/components/core/match.py +5 -5
- reflex/components/core/sticky.pyi +21 -6
- reflex/components/core/upload.pyi +27 -7
- reflex/components/datadisplay/code.pyi +12 -4
- reflex/components/datadisplay/dataeditor.py +2 -2
- reflex/components/datadisplay/dataeditor.pyi +17 -3
- reflex/components/datadisplay/shiki_code_block.pyi +17 -4
- reflex/components/el/__init__.pyi +1 -1
- reflex/components/el/element.pyi +7 -3
- reflex/components/el/elements/__init__.py +3 -1
- reflex/components/el/elements/__init__.pyi +3 -2
- reflex/components/el/elements/base.pyi +7 -3
- reflex/components/el/elements/forms.py +1 -1
- reflex/components/el/elements/forms.pyi +72 -16
- reflex/components/el/elements/inline.pyi +142 -30
- reflex/components/el/elements/media.pyi +127 -27
- reflex/components/el/elements/metadata.pyi +32 -8
- reflex/components/el/elements/other.pyi +37 -9
- reflex/components/el/elements/scripts.pyi +17 -5
- reflex/components/el/elements/sectioning.pyi +77 -17
- reflex/components/el/elements/tables.pyi +52 -12
- reflex/components/el/elements/typography.pyi +77 -17
- reflex/components/gridjs/datatable.py +2 -2
- reflex/components/gridjs/datatable.pyi +12 -4
- reflex/components/lucide/icon.py +7 -6
- reflex/components/lucide/icon.pyi +22 -7
- reflex/components/markdown/markdown.py +1 -1
- reflex/components/markdown/markdown.pyi +7 -3
- reflex/components/moment/moment.pyi +7 -3
- reflex/components/next/base.pyi +7 -3
- reflex/components/next/image.pyi +7 -3
- reflex/components/next/link.pyi +7 -3
- reflex/components/next/video.pyi +7 -3
- reflex/components/plotly/plotly.pyi +47 -11
- reflex/components/radix/primitives/accordion.pyi +37 -9
- reflex/components/radix/primitives/base.pyi +12 -4
- reflex/components/radix/primitives/drawer.pyi +57 -13
- reflex/components/radix/primitives/form.pyi +52 -12
- reflex/components/radix/primitives/progress.pyi +27 -7
- reflex/components/radix/primitives/slider.pyi +27 -7
- reflex/components/radix/themes/base.pyi +41 -10
- reflex/components/radix/themes/color_mode.py +2 -2
- reflex/components/radix/themes/color_mode.pyi +17 -5
- reflex/components/radix/themes/components/alert_dialog.pyi +36 -9
- reflex/components/radix/themes/components/aspect_ratio.pyi +7 -3
- reflex/components/radix/themes/components/avatar.pyi +6 -3
- reflex/components/radix/themes/components/badge.pyi +6 -3
- reflex/components/radix/themes/components/button.pyi +6 -3
- reflex/components/radix/themes/components/callout.pyi +26 -7
- reflex/components/radix/themes/components/card.pyi +6 -3
- reflex/components/radix/themes/components/checkbox.pyi +16 -5
- reflex/components/radix/themes/components/checkbox_cards.pyi +11 -4
- reflex/components/radix/themes/components/checkbox_group.pyi +11 -4
- reflex/components/radix/themes/components/context_menu.pyi +66 -15
- reflex/components/radix/themes/components/data_list.pyi +21 -6
- reflex/components/radix/themes/components/dialog.pyi +36 -9
- reflex/components/radix/themes/components/dropdown_menu.pyi +41 -10
- reflex/components/radix/themes/components/hover_card.pyi +21 -6
- reflex/components/radix/themes/components/icon_button.pyi +6 -3
- reflex/components/radix/themes/components/inset.pyi +6 -3
- reflex/components/radix/themes/components/popover.pyi +21 -6
- reflex/components/radix/themes/components/progress.pyi +6 -3
- reflex/components/radix/themes/components/radio.pyi +6 -3
- reflex/components/radix/themes/components/radio_cards.pyi +11 -4
- reflex/components/radix/themes/components/radio_group.py +6 -1
- reflex/components/radix/themes/components/radio_group.pyi +21 -6
- reflex/components/radix/themes/components/scroll_area.pyi +7 -3
- reflex/components/radix/themes/components/segmented_control.pyi +11 -4
- reflex/components/radix/themes/components/select.pyi +46 -11
- reflex/components/radix/themes/components/separator.pyi +6 -3
- reflex/components/radix/themes/components/skeleton.pyi +6 -3
- reflex/components/radix/themes/components/slider.pyi +6 -3
- reflex/components/radix/themes/components/spinner.pyi +6 -3
- reflex/components/radix/themes/components/switch.pyi +6 -3
- reflex/components/radix/themes/components/table.pyi +36 -9
- reflex/components/radix/themes/components/tabs.pyi +26 -7
- reflex/components/radix/themes/components/text_area.pyi +6 -3
- reflex/components/radix/themes/components/text_field.py +3 -2
- reflex/components/radix/themes/components/text_field.pyi +16 -5
- reflex/components/radix/themes/components/tooltip.pyi +7 -3
- reflex/components/radix/themes/layout/base.pyi +6 -3
- reflex/components/radix/themes/layout/box.pyi +7 -3
- reflex/components/radix/themes/layout/center.pyi +6 -3
- reflex/components/radix/themes/layout/container.pyi +6 -3
- reflex/components/radix/themes/layout/flex.pyi +6 -3
- reflex/components/radix/themes/layout/grid.pyi +6 -3
- reflex/components/radix/themes/layout/list.pyi +27 -7
- reflex/components/radix/themes/layout/section.pyi +6 -3
- reflex/components/radix/themes/layout/spacer.pyi +6 -3
- reflex/components/radix/themes/layout/stack.pyi +16 -5
- reflex/components/radix/themes/typography/blockquote.pyi +6 -3
- reflex/components/radix/themes/typography/code.pyi +6 -3
- reflex/components/radix/themes/typography/heading.pyi +6 -3
- reflex/components/radix/themes/typography/link.pyi +6 -3
- reflex/components/radix/themes/typography/text.pyi +36 -9
- reflex/components/react_player/audio.pyi +7 -3
- reflex/components/react_player/react_player.pyi +7 -3
- reflex/components/react_player/video.pyi +7 -3
- reflex/components/recharts/cartesian.pyi +97 -21
- reflex/components/recharts/charts.pyi +62 -14
- reflex/components/recharts/general.pyi +32 -8
- reflex/components/recharts/polar.py +1 -1
- reflex/components/recharts/polar.pyi +33 -9
- reflex/components/recharts/recharts.pyi +12 -4
- reflex/components/sonner/toast.pyi +7 -2
- reflex/components/suneditor/editor.pyi +7 -3
- reflex/config.py +18 -1
- reflex/constants/installer.py +22 -1
- reflex/custom_components/custom_components.py +12 -7
- reflex/event.py +26 -10
- reflex/experimental/__init__.py +17 -6
- reflex/experimental/layout.pyi +27 -7
- reflex/model.py +3 -3
- reflex/reflex.py +33 -18
- reflex/state.py +4 -4
- reflex/style.py +2 -2
- reflex/testing.py +17 -5
- reflex/utils/console.py +2 -3
- reflex/utils/exec.py +4 -0
- reflex/utils/imports.py +14 -7
- reflex/utils/net.py +107 -18
- reflex/utils/prerequisites.py +92 -13
- reflex/utils/processes.py +52 -19
- reflex/utils/pyi_generator.py +66 -53
- reflex/utils/redir.py +3 -1
- reflex/utils/registry.py +15 -5
- reflex/utils/serializers.py +1 -2
- reflex/utils/types.py +4 -4
- reflex/vars/base.py +58 -22
- reflex/vars/number.py +23 -6
- reflex/vars/sequence.py +2 -0
- {reflex-0.7.4a2.dist-info → reflex-0.7.5a1.dist-info}/METADATA +2 -2
- {reflex-0.7.4a2.dist-info → reflex-0.7.5a1.dist-info}/RECORD +162 -162
- /reflex/{experimental → utils}/misc.py +0 -0
- {reflex-0.7.4a2.dist-info → reflex-0.7.5a1.dist-info}/WHEEL +0 -0
- {reflex-0.7.4a2.dist-info → reflex-0.7.5a1.dist-info}/entry_points.txt +0 -0
- {reflex-0.7.4a2.dist-info → reflex-0.7.5a1.dist-info}/licenses/LICENSE +0 -0
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Literal, Optional, overload
|
|
6
|
+
from typing import Any, Literal, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import ComponentNamespace
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
10
|
from reflex.components.el import elements
|
|
11
11
|
from reflex.components.markdown.markdown import MarkdownComponentMap
|
|
12
12
|
from reflex.event import EventType
|
|
13
|
-
from reflex.style import Style
|
|
14
13
|
from reflex.vars.base import Var
|
|
15
14
|
|
|
16
15
|
from ..base import RadixThemesComponent
|
|
@@ -352,7 +351,11 @@ class Text(elements.Span, RadixThemesComponent, MarkdownComponentMap):
|
|
|
352
351
|
spell_check: Var[bool] | bool | None = None,
|
|
353
352
|
tab_index: Var[int] | int | None = None,
|
|
354
353
|
title: Var[str] | str | None = None,
|
|
355
|
-
style:
|
|
354
|
+
style: Sequence[Mapping[str, Any]]
|
|
355
|
+
| Mapping[str, Any]
|
|
356
|
+
| Var[Mapping[str, Any]]
|
|
357
|
+
| Breakpoints
|
|
358
|
+
| None = None,
|
|
356
359
|
key: Any | None = None,
|
|
357
360
|
id: Any | None = None,
|
|
358
361
|
class_name: Any | None = None,
|
|
@@ -735,7 +738,11 @@ class Span(Text):
|
|
|
735
738
|
spell_check: Var[bool] | bool | None = None,
|
|
736
739
|
tab_index: Var[int] | int | None = None,
|
|
737
740
|
title: Var[str] | str | None = None,
|
|
738
|
-
style:
|
|
741
|
+
style: Sequence[Mapping[str, Any]]
|
|
742
|
+
| Mapping[str, Any]
|
|
743
|
+
| Var[Mapping[str, Any]]
|
|
744
|
+
| Breakpoints
|
|
745
|
+
| None = None,
|
|
739
746
|
key: Any | None = None,
|
|
740
747
|
id: Any | None = None,
|
|
741
748
|
class_name: Any | None = None,
|
|
@@ -986,7 +993,11 @@ class Em(elements.Em, RadixThemesComponent):
|
|
|
986
993
|
spell_check: Var[bool] | bool | None = None,
|
|
987
994
|
tab_index: Var[int] | int | None = None,
|
|
988
995
|
title: Var[str] | str | None = None,
|
|
989
|
-
style:
|
|
996
|
+
style: Sequence[Mapping[str, Any]]
|
|
997
|
+
| Mapping[str, Any]
|
|
998
|
+
| Var[Mapping[str, Any]]
|
|
999
|
+
| Breakpoints
|
|
1000
|
+
| None = None,
|
|
990
1001
|
key: Any | None = None,
|
|
991
1002
|
id: Any | None = None,
|
|
992
1003
|
class_name: Any | None = None,
|
|
@@ -1232,7 +1243,11 @@ class Kbd(elements.Kbd, RadixThemesComponent):
|
|
|
1232
1243
|
spell_check: Var[bool] | bool | None = None,
|
|
1233
1244
|
tab_index: Var[int] | int | None = None,
|
|
1234
1245
|
title: Var[str] | str | None = None,
|
|
1235
|
-
style:
|
|
1246
|
+
style: Sequence[Mapping[str, Any]]
|
|
1247
|
+
| Mapping[str, Any]
|
|
1248
|
+
| Var[Mapping[str, Any]]
|
|
1249
|
+
| Breakpoints
|
|
1250
|
+
| None = None,
|
|
1236
1251
|
key: Any | None = None,
|
|
1237
1252
|
id: Any | None = None,
|
|
1238
1253
|
class_name: Any | None = None,
|
|
@@ -1477,7 +1492,11 @@ class Quote(elements.Q, RadixThemesComponent):
|
|
|
1477
1492
|
spell_check: Var[bool] | bool | None = None,
|
|
1478
1493
|
tab_index: Var[int] | int | None = None,
|
|
1479
1494
|
title: Var[str] | str | None = None,
|
|
1480
|
-
style:
|
|
1495
|
+
style: Sequence[Mapping[str, Any]]
|
|
1496
|
+
| Mapping[str, Any]
|
|
1497
|
+
| Var[Mapping[str, Any]]
|
|
1498
|
+
| Breakpoints
|
|
1499
|
+
| None = None,
|
|
1481
1500
|
key: Any | None = None,
|
|
1482
1501
|
id: Any | None = None,
|
|
1483
1502
|
class_name: Any | None = None,
|
|
@@ -1721,7 +1740,11 @@ class Strong(elements.Strong, RadixThemesComponent):
|
|
|
1721
1740
|
spell_check: Var[bool] | bool | None = None,
|
|
1722
1741
|
tab_index: Var[int] | int | None = None,
|
|
1723
1742
|
title: Var[str] | str | None = None,
|
|
1724
|
-
style:
|
|
1743
|
+
style: Sequence[Mapping[str, Any]]
|
|
1744
|
+
| Mapping[str, Any]
|
|
1745
|
+
| Var[Mapping[str, Any]]
|
|
1746
|
+
| Breakpoints
|
|
1747
|
+
| None = None,
|
|
1725
1748
|
key: Any | None = None,
|
|
1726
1749
|
id: Any | None = None,
|
|
1727
1750
|
class_name: Any | None = None,
|
|
@@ -2100,7 +2123,11 @@ class TextNamespace(ComponentNamespace):
|
|
|
2100
2123
|
spell_check: Var[bool] | bool | None = None,
|
|
2101
2124
|
tab_index: Var[int] | int | None = None,
|
|
2102
2125
|
title: Var[str] | str | None = None,
|
|
2103
|
-
style:
|
|
2126
|
+
style: Sequence[Mapping[str, Any]]
|
|
2127
|
+
| Mapping[str, Any]
|
|
2128
|
+
| Var[Mapping[str, Any]]
|
|
2129
|
+
| Breakpoints
|
|
2130
|
+
| None = None,
|
|
2104
2131
|
key: Any | None = None,
|
|
2105
2132
|
id: Any | None = None,
|
|
2106
2133
|
class_name: Any | None = None,
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Optional, overload
|
|
6
|
+
from typing import Any, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
import reflex
|
|
9
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
9
10
|
from reflex.components.react_player.react_player import ReactPlayer
|
|
10
11
|
from reflex.event import EventType
|
|
11
|
-
from reflex.style import Style
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
14
14
|
class Audio(ReactPlayer):
|
|
@@ -28,7 +28,11 @@ class Audio(ReactPlayer):
|
|
|
28
28
|
muted: Var[bool] | bool | None = None,
|
|
29
29
|
width: Var[str] | str | None = None,
|
|
30
30
|
height: Var[str] | str | None = None,
|
|
31
|
-
style:
|
|
31
|
+
style: Sequence[Mapping[str, Any]]
|
|
32
|
+
| Mapping[str, Any]
|
|
33
|
+
| Var[Mapping[str, Any]]
|
|
34
|
+
| Breakpoints
|
|
35
|
+
| None = None,
|
|
32
36
|
key: Any | None = None,
|
|
33
37
|
id: Any | None = None,
|
|
34
38
|
class_name: Any | None = None,
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Optional, TypedDict, overload
|
|
6
|
+
from typing import Any, Mapping, Optional, Sequence, TypedDict, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import NoSSRComponent
|
|
9
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
9
10
|
from reflex.event import EventType
|
|
10
|
-
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
13
|
class Progress(TypedDict):
|
|
@@ -31,7 +31,11 @@ class ReactPlayer(NoSSRComponent):
|
|
|
31
31
|
muted: Var[bool] | bool | None = None,
|
|
32
32
|
width: Var[str] | str | None = None,
|
|
33
33
|
height: Var[str] | str | None = None,
|
|
34
|
-
style:
|
|
34
|
+
style: Sequence[Mapping[str, Any]]
|
|
35
|
+
| Mapping[str, Any]
|
|
36
|
+
| Var[Mapping[str, Any]]
|
|
37
|
+
| Breakpoints
|
|
38
|
+
| None = None,
|
|
35
39
|
key: Any | None = None,
|
|
36
40
|
id: Any | None = None,
|
|
37
41
|
class_name: Any | None = None,
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Optional, overload
|
|
6
|
+
from typing import Any, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
import reflex
|
|
9
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
9
10
|
from reflex.components.react_player.react_player import ReactPlayer
|
|
10
11
|
from reflex.event import EventType
|
|
11
|
-
from reflex.style import Style
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
14
14
|
class Video(ReactPlayer):
|
|
@@ -28,7 +28,11 @@ class Video(ReactPlayer):
|
|
|
28
28
|
muted: Var[bool] | bool | None = None,
|
|
29
29
|
width: Var[str] | str | None = None,
|
|
30
30
|
height: Var[str] | str | None = None,
|
|
31
|
-
style:
|
|
31
|
+
style: Sequence[Mapping[str, Any]]
|
|
32
|
+
| Mapping[str, Any]
|
|
33
|
+
| Var[Mapping[str, Any]]
|
|
34
|
+
| Breakpoints
|
|
35
|
+
| None = None,
|
|
32
36
|
key: Any | None = None,
|
|
33
37
|
id: Any | None = None,
|
|
34
38
|
class_name: Any | None = None,
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Literal, Optional, Sequence, overload
|
|
6
|
+
from typing import Any, Literal, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
8
9
|
from reflex.constants.colors import Color
|
|
9
10
|
from reflex.event import EventType
|
|
10
|
-
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
13
|
from .recharts import Recharts
|
|
@@ -103,7 +103,11 @@ class Axis(Recharts):
|
|
|
103
103
|
text_anchor: Literal["end", "middle", "start"]
|
|
104
104
|
| Var[Literal["end", "middle", "start"]]
|
|
105
105
|
| None = None,
|
|
106
|
-
style:
|
|
106
|
+
style: Sequence[Mapping[str, Any]]
|
|
107
|
+
| Mapping[str, Any]
|
|
108
|
+
| Var[Mapping[str, Any]]
|
|
109
|
+
| Breakpoints
|
|
110
|
+
| None = None,
|
|
107
111
|
key: Any | None = None,
|
|
108
112
|
id: Any | None = None,
|
|
109
113
|
class_name: Any | None = None,
|
|
@@ -273,7 +277,11 @@ class XAxis(Axis):
|
|
|
273
277
|
text_anchor: Literal["end", "middle", "start"]
|
|
274
278
|
| Var[Literal["end", "middle", "start"]]
|
|
275
279
|
| None = None,
|
|
276
|
-
style:
|
|
280
|
+
style: Sequence[Mapping[str, Any]]
|
|
281
|
+
| Mapping[str, Any]
|
|
282
|
+
| Var[Mapping[str, Any]]
|
|
283
|
+
| Breakpoints
|
|
284
|
+
| None = None,
|
|
277
285
|
key: Any | None = None,
|
|
278
286
|
id: Any | None = None,
|
|
279
287
|
class_name: Any | None = None,
|
|
@@ -446,7 +454,11 @@ class YAxis(Axis):
|
|
|
446
454
|
text_anchor: Literal["end", "middle", "start"]
|
|
447
455
|
| Var[Literal["end", "middle", "start"]]
|
|
448
456
|
| None = None,
|
|
449
|
-
style:
|
|
457
|
+
style: Sequence[Mapping[str, Any]]
|
|
458
|
+
| Mapping[str, Any]
|
|
459
|
+
| Var[Mapping[str, Any]]
|
|
460
|
+
| Breakpoints
|
|
461
|
+
| None = None,
|
|
450
462
|
key: Any | None = None,
|
|
451
463
|
id: Any | None = None,
|
|
452
464
|
class_name: Any | None = None,
|
|
@@ -569,7 +581,11 @@ class ZAxis(Recharts):
|
|
|
569
581
|
]
|
|
570
582
|
]
|
|
571
583
|
| None = None,
|
|
572
|
-
style:
|
|
584
|
+
style: Sequence[Mapping[str, Any]]
|
|
585
|
+
| Mapping[str, Any]
|
|
586
|
+
| Var[Mapping[str, Any]]
|
|
587
|
+
| Breakpoints
|
|
588
|
+
| None = None,
|
|
573
589
|
key: Any | None = None,
|
|
574
590
|
id: Any | None = None,
|
|
575
591
|
class_name: Any | None = None,
|
|
@@ -634,7 +650,11 @@ class Brush(Recharts):
|
|
|
634
650
|
gap: Var[int] | int | None = None,
|
|
635
651
|
start_index: Var[int] | int | None = None,
|
|
636
652
|
end_index: Var[int] | int | None = None,
|
|
637
|
-
style:
|
|
653
|
+
style: Sequence[Mapping[str, Any]]
|
|
654
|
+
| Mapping[str, Any]
|
|
655
|
+
| Var[Mapping[str, Any]]
|
|
656
|
+
| Breakpoints
|
|
657
|
+
| None = None,
|
|
638
658
|
key: Any | None = None,
|
|
639
659
|
id: Any | None = None,
|
|
640
660
|
class_name: Any | None = None,
|
|
@@ -723,7 +743,11 @@ class Cartesian(Recharts):
|
|
|
723
743
|
| None = None,
|
|
724
744
|
unit: Var[int | str] | int | str | None = None,
|
|
725
745
|
name: Var[int | str] | int | str | None = None,
|
|
726
|
-
style:
|
|
746
|
+
style: Sequence[Mapping[str, Any]]
|
|
747
|
+
| Mapping[str, Any]
|
|
748
|
+
| Var[Mapping[str, Any]]
|
|
749
|
+
| Breakpoints
|
|
750
|
+
| None = None,
|
|
727
751
|
key: Any | None = None,
|
|
728
752
|
id: Any | None = None,
|
|
729
753
|
class_name: Any | None = None,
|
|
@@ -887,7 +911,11 @@ class Area(Cartesian):
|
|
|
887
911
|
| None = None,
|
|
888
912
|
unit: Var[int | str] | int | str | None = None,
|
|
889
913
|
name: Var[int | str] | int | str | None = None,
|
|
890
|
-
style:
|
|
914
|
+
style: Sequence[Mapping[str, Any]]
|
|
915
|
+
| Mapping[str, Any]
|
|
916
|
+
| Var[Mapping[str, Any]]
|
|
917
|
+
| Breakpoints
|
|
918
|
+
| None = None,
|
|
891
919
|
key: Any | None = None,
|
|
892
920
|
id: Any | None = None,
|
|
893
921
|
class_name: Any | None = None,
|
|
@@ -1022,7 +1050,11 @@ class Bar(Cartesian):
|
|
|
1022
1050
|
]
|
|
1023
1051
|
| Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]]
|
|
1024
1052
|
| None = None,
|
|
1025
|
-
style:
|
|
1053
|
+
style: Sequence[Mapping[str, Any]]
|
|
1054
|
+
| Mapping[str, Any]
|
|
1055
|
+
| Var[Mapping[str, Any]]
|
|
1056
|
+
| Breakpoints
|
|
1057
|
+
| None = None,
|
|
1026
1058
|
key: Any | None = None,
|
|
1027
1059
|
id: Any | None = None,
|
|
1028
1060
|
class_name: Any | None = None,
|
|
@@ -1192,7 +1224,11 @@ class Line(Cartesian):
|
|
|
1192
1224
|
| Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]]
|
|
1193
1225
|
| None = None,
|
|
1194
1226
|
name: Var[int | str] | int | str | None = None,
|
|
1195
|
-
style:
|
|
1227
|
+
style: Sequence[Mapping[str, Any]]
|
|
1228
|
+
| Mapping[str, Any]
|
|
1229
|
+
| Var[Mapping[str, Any]]
|
|
1230
|
+
| Breakpoints
|
|
1231
|
+
| None = None,
|
|
1196
1232
|
key: Any | None = None,
|
|
1197
1233
|
id: Any | None = None,
|
|
1198
1234
|
class_name: Any | None = None,
|
|
@@ -1325,7 +1361,11 @@ class Scatter(Recharts):
|
|
|
1325
1361
|
]
|
|
1326
1362
|
| Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]]
|
|
1327
1363
|
| None = None,
|
|
1328
|
-
style:
|
|
1364
|
+
style: Sequence[Mapping[str, Any]]
|
|
1365
|
+
| Mapping[str, Any]
|
|
1366
|
+
| Var[Mapping[str, Any]]
|
|
1367
|
+
| Breakpoints
|
|
1368
|
+
| None = None,
|
|
1329
1369
|
key: Any | None = None,
|
|
1330
1370
|
id: Any | None = None,
|
|
1331
1371
|
class_name: Any | None = None,
|
|
@@ -1437,7 +1477,11 @@ class Funnel(Recharts):
|
|
|
1437
1477
|
trapezoids: Sequence[dict[str, Any]]
|
|
1438
1478
|
| Var[Sequence[dict[str, Any]]]
|
|
1439
1479
|
| None = None,
|
|
1440
|
-
style:
|
|
1480
|
+
style: Sequence[Mapping[str, Any]]
|
|
1481
|
+
| Mapping[str, Any]
|
|
1482
|
+
| Var[Mapping[str, Any]]
|
|
1483
|
+
| Breakpoints
|
|
1484
|
+
| None = None,
|
|
1441
1485
|
key: Any | None = None,
|
|
1442
1486
|
id: Any | None = None,
|
|
1443
1487
|
class_name: Any | None = None,
|
|
@@ -1510,7 +1554,11 @@ class ErrorBar(Recharts):
|
|
|
1510
1554
|
width: Var[int] | int | None = None,
|
|
1511
1555
|
stroke: Color | Var[Color | str] | str | None = None,
|
|
1512
1556
|
stroke_width: Var[float | int] | float | int | None = None,
|
|
1513
|
-
style:
|
|
1557
|
+
style: Sequence[Mapping[str, Any]]
|
|
1558
|
+
| Mapping[str, Any]
|
|
1559
|
+
| Var[Mapping[str, Any]]
|
|
1560
|
+
| Breakpoints
|
|
1561
|
+
| None = None,
|
|
1514
1562
|
key: Any | None = None,
|
|
1515
1563
|
id: Any | None = None,
|
|
1516
1564
|
class_name: Any | None = None,
|
|
@@ -1568,7 +1616,11 @@ class Reference(Recharts):
|
|
|
1568
1616
|
| None = None,
|
|
1569
1617
|
label: Var[int | str] | int | str | None = None,
|
|
1570
1618
|
is_front: Var[bool] | bool | None = None,
|
|
1571
|
-
style:
|
|
1619
|
+
style: Sequence[Mapping[str, Any]]
|
|
1620
|
+
| Mapping[str, Any]
|
|
1621
|
+
| Var[Mapping[str, Any]]
|
|
1622
|
+
| Breakpoints
|
|
1623
|
+
| None = None,
|
|
1572
1624
|
key: Any | None = None,
|
|
1573
1625
|
id: Any | None = None,
|
|
1574
1626
|
class_name: Any | None = None,
|
|
@@ -1631,7 +1683,11 @@ class ReferenceLine(Reference):
|
|
|
1631
1683
|
| None = None,
|
|
1632
1684
|
label: Var[int | str] | int | str | None = None,
|
|
1633
1685
|
is_front: Var[bool] | bool | None = None,
|
|
1634
|
-
style:
|
|
1686
|
+
style: Sequence[Mapping[str, Any]]
|
|
1687
|
+
| Mapping[str, Any]
|
|
1688
|
+
| Var[Mapping[str, Any]]
|
|
1689
|
+
| Breakpoints
|
|
1690
|
+
| None = None,
|
|
1635
1691
|
key: Any | None = None,
|
|
1636
1692
|
id: Any | None = None,
|
|
1637
1693
|
class_name: Any | None = None,
|
|
@@ -1699,7 +1755,11 @@ class ReferenceDot(Reference):
|
|
|
1699
1755
|
| None = None,
|
|
1700
1756
|
label: Var[int | str] | int | str | None = None,
|
|
1701
1757
|
is_front: Var[bool] | bool | None = None,
|
|
1702
|
-
style:
|
|
1758
|
+
style: Sequence[Mapping[str, Any]]
|
|
1759
|
+
| Mapping[str, Any]
|
|
1760
|
+
| Var[Mapping[str, Any]]
|
|
1761
|
+
| Breakpoints
|
|
1762
|
+
| None = None,
|
|
1703
1763
|
key: Any | None = None,
|
|
1704
1764
|
id: Any | None = None,
|
|
1705
1765
|
class_name: Any | None = None,
|
|
@@ -1776,7 +1836,11 @@ class ReferenceArea(Recharts):
|
|
|
1776
1836
|
| Var[Literal["discard", "extendDomain", "hidden", "visible"]]
|
|
1777
1837
|
| None = None,
|
|
1778
1838
|
is_front: Var[bool] | bool | None = None,
|
|
1779
|
-
style:
|
|
1839
|
+
style: Sequence[Mapping[str, Any]]
|
|
1840
|
+
| Mapping[str, Any]
|
|
1841
|
+
| Var[Mapping[str, Any]]
|
|
1842
|
+
| Breakpoints
|
|
1843
|
+
| None = None,
|
|
1780
1844
|
key: Any | None = None,
|
|
1781
1845
|
id: Any | None = None,
|
|
1782
1846
|
class_name: Any | None = None,
|
|
@@ -1837,7 +1901,11 @@ class Grid(Recharts):
|
|
|
1837
1901
|
y: Var[int] | int | None = None,
|
|
1838
1902
|
width: Var[int] | int | None = None,
|
|
1839
1903
|
height: Var[int] | int | None = None,
|
|
1840
|
-
style:
|
|
1904
|
+
style: Sequence[Mapping[str, Any]]
|
|
1905
|
+
| Mapping[str, Any]
|
|
1906
|
+
| Var[Mapping[str, Any]]
|
|
1907
|
+
| Breakpoints
|
|
1908
|
+
| None = None,
|
|
1841
1909
|
key: Any | None = None,
|
|
1842
1910
|
id: Any | None = None,
|
|
1843
1911
|
class_name: Any | None = None,
|
|
@@ -1899,7 +1967,11 @@ class CartesianGrid(Grid):
|
|
|
1899
1967
|
y: Var[int] | int | None = None,
|
|
1900
1968
|
width: Var[int] | int | None = None,
|
|
1901
1969
|
height: Var[int] | int | None = None,
|
|
1902
|
-
style:
|
|
1970
|
+
style: Sequence[Mapping[str, Any]]
|
|
1971
|
+
| Mapping[str, Any]
|
|
1972
|
+
| Var[Mapping[str, Any]]
|
|
1973
|
+
| Breakpoints
|
|
1974
|
+
| None = None,
|
|
1903
1975
|
key: Any | None = None,
|
|
1904
1976
|
id: Any | None = None,
|
|
1905
1977
|
class_name: Any | None = None,
|
|
@@ -1975,7 +2047,11 @@ class CartesianAxis(Grid):
|
|
|
1975
2047
|
y: Var[int] | int | None = None,
|
|
1976
2048
|
width: Var[int] | int | None = None,
|
|
1977
2049
|
height: Var[int] | int | None = None,
|
|
1978
|
-
style:
|
|
2050
|
+
style: Sequence[Mapping[str, Any]]
|
|
2051
|
+
| Mapping[str, Any]
|
|
2052
|
+
| Var[Mapping[str, Any]]
|
|
2053
|
+
| Breakpoints
|
|
2054
|
+
| None = None,
|
|
1979
2055
|
key: Any | None = None,
|
|
1980
2056
|
id: Any | None = None,
|
|
1981
2057
|
class_name: Any | None = None,
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Literal, Optional, Sequence, overload
|
|
6
|
+
from typing import Any, Literal, Mapping, Optional, Sequence, overload
|
|
7
7
|
|
|
8
|
+
from reflex.components.core.breakpoints import Breakpoints
|
|
8
9
|
from reflex.constants.colors import Color
|
|
9
10
|
from reflex.event import EventType
|
|
10
|
-
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
13
13
|
from .recharts import RechartsCharts
|
|
@@ -20,7 +20,11 @@ class ChartBase(RechartsCharts):
|
|
|
20
20
|
*children,
|
|
21
21
|
width: Var[int | str] | int | str | None = None,
|
|
22
22
|
height: Var[int | str] | int | str | None = None,
|
|
23
|
-
style:
|
|
23
|
+
style: Sequence[Mapping[str, Any]]
|
|
24
|
+
| Mapping[str, Any]
|
|
25
|
+
| Var[Mapping[str, Any]]
|
|
26
|
+
| Breakpoints
|
|
27
|
+
| None = None,
|
|
24
28
|
key: Any | None = None,
|
|
25
29
|
id: Any | None = None,
|
|
26
30
|
class_name: Any | None = None,
|
|
@@ -86,7 +90,11 @@ class CategoricalChartBase(ChartBase):
|
|
|
86
90
|
| None = None,
|
|
87
91
|
width: Var[int | str] | int | str | None = None,
|
|
88
92
|
height: Var[int | str] | int | str | None = None,
|
|
89
|
-
style:
|
|
93
|
+
style: Sequence[Mapping[str, Any]]
|
|
94
|
+
| Mapping[str, Any]
|
|
95
|
+
| Var[Mapping[str, Any]]
|
|
96
|
+
| Breakpoints
|
|
97
|
+
| None = None,
|
|
90
98
|
key: Any | None = None,
|
|
91
99
|
id: Any | None = None,
|
|
92
100
|
class_name: Any | None = None,
|
|
@@ -162,7 +170,11 @@ class AreaChart(CategoricalChartBase):
|
|
|
162
170
|
| None = None,
|
|
163
171
|
width: Var[int | str] | int | str | None = None,
|
|
164
172
|
height: Var[int | str] | int | str | None = None,
|
|
165
|
-
style:
|
|
173
|
+
style: Sequence[Mapping[str, Any]]
|
|
174
|
+
| Mapping[str, Any]
|
|
175
|
+
| Var[Mapping[str, Any]]
|
|
176
|
+
| Breakpoints
|
|
177
|
+
| None = None,
|
|
166
178
|
key: Any | None = None,
|
|
167
179
|
id: Any | None = None,
|
|
168
180
|
class_name: Any | None = None,
|
|
@@ -240,7 +252,11 @@ class BarChart(CategoricalChartBase):
|
|
|
240
252
|
| None = None,
|
|
241
253
|
width: Var[int | str] | int | str | None = None,
|
|
242
254
|
height: Var[int | str] | int | str | None = None,
|
|
243
|
-
style:
|
|
255
|
+
style: Sequence[Mapping[str, Any]]
|
|
256
|
+
| Mapping[str, Any]
|
|
257
|
+
| Var[Mapping[str, Any]]
|
|
258
|
+
| Breakpoints
|
|
259
|
+
| None = None,
|
|
244
260
|
key: Any | None = None,
|
|
245
261
|
id: Any | None = None,
|
|
246
262
|
class_name: Any | None = None,
|
|
@@ -317,7 +333,11 @@ class LineChart(CategoricalChartBase):
|
|
|
317
333
|
| None = None,
|
|
318
334
|
width: Var[int | str] | int | str | None = None,
|
|
319
335
|
height: Var[int | str] | int | str | None = None,
|
|
320
|
-
style:
|
|
336
|
+
style: Sequence[Mapping[str, Any]]
|
|
337
|
+
| Mapping[str, Any]
|
|
338
|
+
| Var[Mapping[str, Any]]
|
|
339
|
+
| Breakpoints
|
|
340
|
+
| None = None,
|
|
321
341
|
key: Any | None = None,
|
|
322
342
|
id: Any | None = None,
|
|
323
343
|
class_name: Any | None = None,
|
|
@@ -397,7 +417,11 @@ class ComposedChart(CategoricalChartBase):
|
|
|
397
417
|
| None = None,
|
|
398
418
|
width: Var[int | str] | int | str | None = None,
|
|
399
419
|
height: Var[int | str] | int | str | None = None,
|
|
400
|
-
style:
|
|
420
|
+
style: Sequence[Mapping[str, Any]]
|
|
421
|
+
| Mapping[str, Any]
|
|
422
|
+
| Var[Mapping[str, Any]]
|
|
423
|
+
| Breakpoints
|
|
424
|
+
| None = None,
|
|
401
425
|
key: Any | None = None,
|
|
402
426
|
id: Any | None = None,
|
|
403
427
|
class_name: Any | None = None,
|
|
@@ -463,7 +487,11 @@ class PieChart(ChartBase):
|
|
|
463
487
|
margin: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
464
488
|
width: Var[int | str] | int | str | None = None,
|
|
465
489
|
height: Var[int | str] | int | str | None = None,
|
|
466
|
-
style:
|
|
490
|
+
style: Sequence[Mapping[str, Any]]
|
|
491
|
+
| Mapping[str, Any]
|
|
492
|
+
| Var[Mapping[str, Any]]
|
|
493
|
+
| Breakpoints
|
|
494
|
+
| None = None,
|
|
467
495
|
key: Any | None = None,
|
|
468
496
|
id: Any | None = None,
|
|
469
497
|
class_name: Any | None = None,
|
|
@@ -531,7 +559,11 @@ class RadarChart(ChartBase):
|
|
|
531
559
|
outer_radius: Var[int | str] | int | str | None = None,
|
|
532
560
|
width: Var[int | str] | int | str | None = None,
|
|
533
561
|
height: Var[int | str] | int | str | None = None,
|
|
534
|
-
style:
|
|
562
|
+
style: Sequence[Mapping[str, Any]]
|
|
563
|
+
| Mapping[str, Any]
|
|
564
|
+
| Var[Mapping[str, Any]]
|
|
565
|
+
| Breakpoints
|
|
566
|
+
| None = None,
|
|
535
567
|
key: Any | None = None,
|
|
536
568
|
id: Any | None = None,
|
|
537
569
|
class_name: Any | None = None,
|
|
@@ -591,7 +623,11 @@ class RadialBarChart(ChartBase):
|
|
|
591
623
|
bar_size: Var[int] | int | None = None,
|
|
592
624
|
width: Var[int | str] | int | str | None = None,
|
|
593
625
|
height: Var[int | str] | int | str | None = None,
|
|
594
|
-
style:
|
|
626
|
+
style: Sequence[Mapping[str, Any]]
|
|
627
|
+
| Mapping[str, Any]
|
|
628
|
+
| Var[Mapping[str, Any]]
|
|
629
|
+
| Breakpoints
|
|
630
|
+
| None = None,
|
|
595
631
|
key: Any | None = None,
|
|
596
632
|
id: Any | None = None,
|
|
597
633
|
class_name: Any | None = None,
|
|
@@ -658,7 +694,11 @@ class ScatterChart(ChartBase):
|
|
|
658
694
|
margin: Var[dict[str, Any]] | dict[str, Any] | None = None,
|
|
659
695
|
width: Var[int | str] | int | str | None = None,
|
|
660
696
|
height: Var[int | str] | int | str | None = None,
|
|
661
|
-
style:
|
|
697
|
+
style: Sequence[Mapping[str, Any]]
|
|
698
|
+
| Mapping[str, Any]
|
|
699
|
+
| Var[Mapping[str, Any]]
|
|
700
|
+
| Breakpoints
|
|
701
|
+
| None = None,
|
|
662
702
|
key: Any | None = None,
|
|
663
703
|
id: Any | None = None,
|
|
664
704
|
class_name: Any | None = None,
|
|
@@ -709,7 +749,11 @@ class FunnelChart(ChartBase):
|
|
|
709
749
|
stroke: Color | Var[Color | str] | str | None = None,
|
|
710
750
|
width: Var[int | str] | int | str | None = None,
|
|
711
751
|
height: Var[int | str] | int | str | None = None,
|
|
712
|
-
style:
|
|
752
|
+
style: Sequence[Mapping[str, Any]]
|
|
753
|
+
| Mapping[str, Any]
|
|
754
|
+
| Var[Mapping[str, Any]]
|
|
755
|
+
| Breakpoints
|
|
756
|
+
| None = None,
|
|
713
757
|
key: Any | None = None,
|
|
714
758
|
id: Any | None = None,
|
|
715
759
|
class_name: Any | None = None,
|
|
@@ -778,7 +822,11 @@ class Treemap(RechartsCharts):
|
|
|
778
822
|
]
|
|
779
823
|
| Var[Literal["ease", "ease-in", "ease-in-out", "ease-out", "linear"]]
|
|
780
824
|
| None = None,
|
|
781
|
-
style:
|
|
825
|
+
style: Sequence[Mapping[str, Any]]
|
|
826
|
+
| Mapping[str, Any]
|
|
827
|
+
| Var[Mapping[str, Any]]
|
|
828
|
+
| Breakpoints
|
|
829
|
+
| None = None,
|
|
782
830
|
key: Any | None = None,
|
|
783
831
|
id: Any | None = None,
|
|
784
832
|
class_name: Any | None = None,
|