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
|
|
6
6
|
|
|
7
7
|
from reflex.components.component import Component, ComponentNamespace
|
|
8
8
|
from reflex.components.core.colors import color
|
|
@@ -15,7 +15,7 @@ from reflex.vars.base import Var
|
|
|
15
15
|
class ProgressComponent(RadixPrimitiveComponentWithClassName):
|
|
16
16
|
"""A Progress component."""
|
|
17
17
|
|
|
18
|
-
library = "@radix-ui/react-progress@^1.
|
|
18
|
+
library = "@radix-ui/react-progress@^1.1.2"
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class ProgressRoot(ProgressComponent):
|
|
@@ -58,10 +58,10 @@ class ProgressIndicator(ProgressComponent):
|
|
|
58
58
|
alias = "RadixProgressIndicator"
|
|
59
59
|
|
|
60
60
|
# The current progress value.
|
|
61
|
-
value: Var[
|
|
61
|
+
value: Var[int | None]
|
|
62
62
|
|
|
63
63
|
# The maximum progress value.
|
|
64
|
-
max: Var[
|
|
64
|
+
max: Var[int | None]
|
|
65
65
|
|
|
66
66
|
# The color scheme of the progress indicator.
|
|
67
67
|
color_scheme: Var[LiteralAccentColor]
|
|
@@ -98,10 +98,10 @@ class Progress(ProgressRoot):
|
|
|
98
98
|
color_scheme: Var[LiteralAccentColor]
|
|
99
99
|
|
|
100
100
|
# The current progress value.
|
|
101
|
-
value: Var[
|
|
101
|
+
value: Var[int | None]
|
|
102
102
|
|
|
103
103
|
# The maximum progress value.
|
|
104
|
-
max: Var[
|
|
104
|
+
max: Var[int | None]
|
|
105
105
|
|
|
106
106
|
@classmethod
|
|
107
107
|
def create(cls, **props) -> Component:
|
|
@@ -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, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import ComponentNamespace
|
|
9
9
|
from reflex.components.radix.primitives.base import RadixPrimitiveComponentWithClassName
|
|
@@ -17,13 +17,13 @@ class ProgressComponent(RadixPrimitiveComponentWithClassName):
|
|
|
17
17
|
def create( # type: ignore
|
|
18
18
|
cls,
|
|
19
19
|
*children,
|
|
20
|
-
as_child:
|
|
21
|
-
style:
|
|
22
|
-
key:
|
|
23
|
-
id:
|
|
24
|
-
class_name:
|
|
25
|
-
autofocus:
|
|
26
|
-
custom_attrs:
|
|
20
|
+
as_child: Var[bool] | bool | None = None,
|
|
21
|
+
style: Style | None = None,
|
|
22
|
+
key: Any | None = None,
|
|
23
|
+
id: Any | None = None,
|
|
24
|
+
class_name: Any | None = None,
|
|
25
|
+
autofocus: bool | None = None,
|
|
26
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
27
27
|
on_blur: Optional[EventType[()]] = None,
|
|
28
28
|
on_click: Optional[EventType[()]] = None,
|
|
29
29
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -66,19 +66,16 @@ class ProgressRoot(ProgressComponent):
|
|
|
66
66
|
def create( # type: ignore
|
|
67
67
|
cls,
|
|
68
68
|
*children,
|
|
69
|
-
radius:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
class_name: Optional[Any] = None,
|
|
80
|
-
autofocus: Optional[bool] = None,
|
|
81
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
69
|
+
radius: Literal["full", "large", "medium", "none", "small"]
|
|
70
|
+
| Var[Literal["full", "large", "medium", "none", "small"]]
|
|
71
|
+
| None = None,
|
|
72
|
+
as_child: Var[bool] | bool | None = None,
|
|
73
|
+
style: Style | None = None,
|
|
74
|
+
key: Any | None = None,
|
|
75
|
+
id: Any | None = None,
|
|
76
|
+
class_name: Any | None = None,
|
|
77
|
+
autofocus: bool | None = None,
|
|
78
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
82
79
|
on_blur: Optional[EventType[()]] = None,
|
|
83
80
|
on_click: Optional[EventType[()]] = None,
|
|
84
81
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -122,77 +119,74 @@ class ProgressIndicator(ProgressComponent):
|
|
|
122
119
|
def create( # type: ignore
|
|
123
120
|
cls,
|
|
124
121
|
*children,
|
|
125
|
-
value:
|
|
126
|
-
max:
|
|
127
|
-
color_scheme:
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
"violet",
|
|
184
|
-
"yellow",
|
|
185
|
-
]
|
|
186
|
-
],
|
|
122
|
+
value: Var[int | None] | int | None = None,
|
|
123
|
+
max: Var[int | None] | int | None = None,
|
|
124
|
+
color_scheme: Literal[
|
|
125
|
+
"amber",
|
|
126
|
+
"blue",
|
|
127
|
+
"bronze",
|
|
128
|
+
"brown",
|
|
129
|
+
"crimson",
|
|
130
|
+
"cyan",
|
|
131
|
+
"gold",
|
|
132
|
+
"grass",
|
|
133
|
+
"gray",
|
|
134
|
+
"green",
|
|
135
|
+
"indigo",
|
|
136
|
+
"iris",
|
|
137
|
+
"jade",
|
|
138
|
+
"lime",
|
|
139
|
+
"mint",
|
|
140
|
+
"orange",
|
|
141
|
+
"pink",
|
|
142
|
+
"plum",
|
|
143
|
+
"purple",
|
|
144
|
+
"red",
|
|
145
|
+
"ruby",
|
|
146
|
+
"sky",
|
|
147
|
+
"teal",
|
|
148
|
+
"tomato",
|
|
149
|
+
"violet",
|
|
150
|
+
"yellow",
|
|
151
|
+
]
|
|
152
|
+
| Var[
|
|
153
|
+
Literal[
|
|
154
|
+
"amber",
|
|
155
|
+
"blue",
|
|
156
|
+
"bronze",
|
|
157
|
+
"brown",
|
|
158
|
+
"crimson",
|
|
159
|
+
"cyan",
|
|
160
|
+
"gold",
|
|
161
|
+
"grass",
|
|
162
|
+
"gray",
|
|
163
|
+
"green",
|
|
164
|
+
"indigo",
|
|
165
|
+
"iris",
|
|
166
|
+
"jade",
|
|
167
|
+
"lime",
|
|
168
|
+
"mint",
|
|
169
|
+
"orange",
|
|
170
|
+
"pink",
|
|
171
|
+
"plum",
|
|
172
|
+
"purple",
|
|
173
|
+
"red",
|
|
174
|
+
"ruby",
|
|
175
|
+
"sky",
|
|
176
|
+
"teal",
|
|
177
|
+
"tomato",
|
|
178
|
+
"violet",
|
|
179
|
+
"yellow",
|
|
187
180
|
]
|
|
188
|
-
]
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
181
|
+
]
|
|
182
|
+
| None = None,
|
|
183
|
+
as_child: Var[bool] | bool | None = None,
|
|
184
|
+
style: Style | None = None,
|
|
185
|
+
key: Any | None = None,
|
|
186
|
+
id: Any | None = None,
|
|
187
|
+
class_name: Any | None = None,
|
|
188
|
+
autofocus: bool | None = None,
|
|
189
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
196
190
|
on_blur: Optional[EventType[()]] = None,
|
|
197
191
|
on_click: Optional[EventType[()]] = None,
|
|
198
192
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -237,83 +231,77 @@ class Progress(ProgressRoot):
|
|
|
237
231
|
def create( # type: ignore
|
|
238
232
|
cls,
|
|
239
233
|
*children,
|
|
240
|
-
color_scheme:
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
"violet",
|
|
297
|
-
"yellow",
|
|
298
|
-
]
|
|
299
|
-
],
|
|
300
|
-
]
|
|
301
|
-
] = None,
|
|
302
|
-
value: Optional[Union[Var[Optional[int]], int]] = None,
|
|
303
|
-
max: Optional[Union[Var[Optional[int]], int]] = None,
|
|
304
|
-
radius: Optional[
|
|
305
|
-
Union[
|
|
306
|
-
Literal["full", "large", "medium", "none", "small"],
|
|
307
|
-
Var[Literal["full", "large", "medium", "none", "small"]],
|
|
234
|
+
color_scheme: Literal[
|
|
235
|
+
"amber",
|
|
236
|
+
"blue",
|
|
237
|
+
"bronze",
|
|
238
|
+
"brown",
|
|
239
|
+
"crimson",
|
|
240
|
+
"cyan",
|
|
241
|
+
"gold",
|
|
242
|
+
"grass",
|
|
243
|
+
"gray",
|
|
244
|
+
"green",
|
|
245
|
+
"indigo",
|
|
246
|
+
"iris",
|
|
247
|
+
"jade",
|
|
248
|
+
"lime",
|
|
249
|
+
"mint",
|
|
250
|
+
"orange",
|
|
251
|
+
"pink",
|
|
252
|
+
"plum",
|
|
253
|
+
"purple",
|
|
254
|
+
"red",
|
|
255
|
+
"ruby",
|
|
256
|
+
"sky",
|
|
257
|
+
"teal",
|
|
258
|
+
"tomato",
|
|
259
|
+
"violet",
|
|
260
|
+
"yellow",
|
|
261
|
+
]
|
|
262
|
+
| Var[
|
|
263
|
+
Literal[
|
|
264
|
+
"amber",
|
|
265
|
+
"blue",
|
|
266
|
+
"bronze",
|
|
267
|
+
"brown",
|
|
268
|
+
"crimson",
|
|
269
|
+
"cyan",
|
|
270
|
+
"gold",
|
|
271
|
+
"grass",
|
|
272
|
+
"gray",
|
|
273
|
+
"green",
|
|
274
|
+
"indigo",
|
|
275
|
+
"iris",
|
|
276
|
+
"jade",
|
|
277
|
+
"lime",
|
|
278
|
+
"mint",
|
|
279
|
+
"orange",
|
|
280
|
+
"pink",
|
|
281
|
+
"plum",
|
|
282
|
+
"purple",
|
|
283
|
+
"red",
|
|
284
|
+
"ruby",
|
|
285
|
+
"sky",
|
|
286
|
+
"teal",
|
|
287
|
+
"tomato",
|
|
288
|
+
"violet",
|
|
289
|
+
"yellow",
|
|
308
290
|
]
|
|
309
|
-
]
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
291
|
+
]
|
|
292
|
+
| None = None,
|
|
293
|
+
value: Var[int | None] | int | None = None,
|
|
294
|
+
max: Var[int | None] | int | None = None,
|
|
295
|
+
radius: Literal["full", "large", "medium", "none", "small"]
|
|
296
|
+
| Var[Literal["full", "large", "medium", "none", "small"]]
|
|
297
|
+
| None = None,
|
|
298
|
+
as_child: Var[bool] | bool | None = None,
|
|
299
|
+
style: Style | None = None,
|
|
300
|
+
key: Any | None = None,
|
|
301
|
+
id: Any | None = None,
|
|
302
|
+
class_name: Any | None = None,
|
|
303
|
+
autofocus: bool | None = None,
|
|
304
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
317
305
|
on_blur: Optional[EventType[()]] = None,
|
|
318
306
|
on_click: Optional[EventType[()]] = None,
|
|
319
307
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -359,83 +347,77 @@ class ProgressNamespace(ComponentNamespace):
|
|
|
359
347
|
@staticmethod
|
|
360
348
|
def __call__(
|
|
361
349
|
*children,
|
|
362
|
-
color_scheme:
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
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
|
-
"violet",
|
|
419
|
-
"yellow",
|
|
420
|
-
]
|
|
421
|
-
],
|
|
422
|
-
]
|
|
423
|
-
] = None,
|
|
424
|
-
value: Optional[Union[Var[Optional[int]], int]] = None,
|
|
425
|
-
max: Optional[Union[Var[Optional[int]], int]] = None,
|
|
426
|
-
radius: Optional[
|
|
427
|
-
Union[
|
|
428
|
-
Literal["full", "large", "medium", "none", "small"],
|
|
429
|
-
Var[Literal["full", "large", "medium", "none", "small"]],
|
|
350
|
+
color_scheme: Literal[
|
|
351
|
+
"amber",
|
|
352
|
+
"blue",
|
|
353
|
+
"bronze",
|
|
354
|
+
"brown",
|
|
355
|
+
"crimson",
|
|
356
|
+
"cyan",
|
|
357
|
+
"gold",
|
|
358
|
+
"grass",
|
|
359
|
+
"gray",
|
|
360
|
+
"green",
|
|
361
|
+
"indigo",
|
|
362
|
+
"iris",
|
|
363
|
+
"jade",
|
|
364
|
+
"lime",
|
|
365
|
+
"mint",
|
|
366
|
+
"orange",
|
|
367
|
+
"pink",
|
|
368
|
+
"plum",
|
|
369
|
+
"purple",
|
|
370
|
+
"red",
|
|
371
|
+
"ruby",
|
|
372
|
+
"sky",
|
|
373
|
+
"teal",
|
|
374
|
+
"tomato",
|
|
375
|
+
"violet",
|
|
376
|
+
"yellow",
|
|
377
|
+
]
|
|
378
|
+
| Var[
|
|
379
|
+
Literal[
|
|
380
|
+
"amber",
|
|
381
|
+
"blue",
|
|
382
|
+
"bronze",
|
|
383
|
+
"brown",
|
|
384
|
+
"crimson",
|
|
385
|
+
"cyan",
|
|
386
|
+
"gold",
|
|
387
|
+
"grass",
|
|
388
|
+
"gray",
|
|
389
|
+
"green",
|
|
390
|
+
"indigo",
|
|
391
|
+
"iris",
|
|
392
|
+
"jade",
|
|
393
|
+
"lime",
|
|
394
|
+
"mint",
|
|
395
|
+
"orange",
|
|
396
|
+
"pink",
|
|
397
|
+
"plum",
|
|
398
|
+
"purple",
|
|
399
|
+
"red",
|
|
400
|
+
"ruby",
|
|
401
|
+
"sky",
|
|
402
|
+
"teal",
|
|
403
|
+
"tomato",
|
|
404
|
+
"violet",
|
|
405
|
+
"yellow",
|
|
430
406
|
]
|
|
431
|
-
]
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
407
|
+
]
|
|
408
|
+
| None = None,
|
|
409
|
+
value: Var[int | None] | int | None = None,
|
|
410
|
+
max: Var[int | None] | int | None = None,
|
|
411
|
+
radius: Literal["full", "large", "medium", "none", "small"]
|
|
412
|
+
| Var[Literal["full", "large", "medium", "none", "small"]]
|
|
413
|
+
| None = None,
|
|
414
|
+
as_child: Var[bool] | bool | 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,
|
|
439
421
|
on_blur: Optional[EventType[()]] = None,
|
|
440
422
|
on_click: Optional[EventType[()]] = None,
|
|
441
423
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Any,
|
|
5
|
+
from typing import Any, Literal, Sequence
|
|
6
6
|
|
|
7
7
|
from reflex.components.component import Component, ComponentNamespace
|
|
8
8
|
from reflex.components.radix.primitives.base import RadixPrimitiveComponentWithClassName
|
|
@@ -16,12 +16,12 @@ LiteralSliderDir = Literal["ltr", "rtl"]
|
|
|
16
16
|
class SliderComponent(RadixPrimitiveComponentWithClassName):
|
|
17
17
|
"""Base class for all @radix-ui/react-slider components."""
|
|
18
18
|
|
|
19
|
-
library = "@radix-ui/react-slider@^1.
|
|
19
|
+
library = "@radix-ui/react-slider@^1.2.3"
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
def on_value_event_spec(
|
|
23
|
-
value: Var[
|
|
24
|
-
) ->
|
|
23
|
+
value: Var[list[int]],
|
|
24
|
+
) -> tuple[Var[list[int]]]:
|
|
25
25
|
"""Event handler spec for the value event.
|
|
26
26
|
|
|
27
27
|
Args:
|
|
@@ -39,9 +39,9 @@ class SliderRoot(SliderComponent):
|
|
|
39
39
|
tag = "Root"
|
|
40
40
|
alias = "RadixSliderRoot"
|
|
41
41
|
|
|
42
|
-
default_value: Var[
|
|
42
|
+
default_value: Var[Sequence[int]]
|
|
43
43
|
|
|
44
|
-
value: Var[
|
|
44
|
+
value: Var[Sequence[int]]
|
|
45
45
|
|
|
46
46
|
name: Var[str]
|
|
47
47
|
|