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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
6
|
from types import SimpleNamespace
|
|
7
|
-
from typing import Any,
|
|
7
|
+
from typing import Any, Literal, Optional, overload
|
|
8
8
|
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
10
|
from reflex.event import EventType
|
|
@@ -19,135 +19,101 @@ class CheckboxCardsRoot(RadixThemesComponent):
|
|
|
19
19
|
def create( # type: ignore
|
|
20
20
|
cls,
|
|
21
21
|
*children,
|
|
22
|
-
size:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
size: Breakpoints[str, Literal["1", "2", "3"]]
|
|
23
|
+
| Literal["1", "2", "3"]
|
|
24
|
+
| Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
|
|
25
|
+
| None = None,
|
|
26
|
+
variant: Literal["classic", "surface"]
|
|
27
|
+
| Var[Literal["classic", "surface"]]
|
|
28
|
+
| None = None,
|
|
29
|
+
color_scheme: Literal[
|
|
30
|
+
"amber",
|
|
31
|
+
"blue",
|
|
32
|
+
"bronze",
|
|
33
|
+
"brown",
|
|
34
|
+
"crimson",
|
|
35
|
+
"cyan",
|
|
36
|
+
"gold",
|
|
37
|
+
"grass",
|
|
38
|
+
"gray",
|
|
39
|
+
"green",
|
|
40
|
+
"indigo",
|
|
41
|
+
"iris",
|
|
42
|
+
"jade",
|
|
43
|
+
"lime",
|
|
44
|
+
"mint",
|
|
45
|
+
"orange",
|
|
46
|
+
"pink",
|
|
47
|
+
"plum",
|
|
48
|
+
"purple",
|
|
49
|
+
"red",
|
|
50
|
+
"ruby",
|
|
51
|
+
"sky",
|
|
52
|
+
"teal",
|
|
53
|
+
"tomato",
|
|
54
|
+
"violet",
|
|
55
|
+
"yellow",
|
|
56
|
+
]
|
|
57
|
+
| Var[
|
|
58
|
+
Literal[
|
|
59
|
+
"amber",
|
|
60
|
+
"blue",
|
|
61
|
+
"bronze",
|
|
62
|
+
"brown",
|
|
63
|
+
"crimson",
|
|
64
|
+
"cyan",
|
|
65
|
+
"gold",
|
|
66
|
+
"grass",
|
|
67
|
+
"gray",
|
|
68
|
+
"green",
|
|
69
|
+
"indigo",
|
|
70
|
+
"iris",
|
|
71
|
+
"jade",
|
|
72
|
+
"lime",
|
|
73
|
+
"mint",
|
|
74
|
+
"orange",
|
|
75
|
+
"pink",
|
|
76
|
+
"plum",
|
|
77
|
+
"purple",
|
|
78
|
+
"red",
|
|
79
|
+
"ruby",
|
|
80
|
+
"sky",
|
|
81
|
+
"teal",
|
|
82
|
+
"tomato",
|
|
83
|
+
"violet",
|
|
84
|
+
"yellow",
|
|
31
85
|
]
|
|
32
|
-
]
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"violet",
|
|
64
|
-
"yellow",
|
|
65
|
-
],
|
|
66
|
-
Var[
|
|
67
|
-
Literal[
|
|
68
|
-
"amber",
|
|
69
|
-
"blue",
|
|
70
|
-
"bronze",
|
|
71
|
-
"brown",
|
|
72
|
-
"crimson",
|
|
73
|
-
"cyan",
|
|
74
|
-
"gold",
|
|
75
|
-
"grass",
|
|
76
|
-
"gray",
|
|
77
|
-
"green",
|
|
78
|
-
"indigo",
|
|
79
|
-
"iris",
|
|
80
|
-
"jade",
|
|
81
|
-
"lime",
|
|
82
|
-
"mint",
|
|
83
|
-
"orange",
|
|
84
|
-
"pink",
|
|
85
|
-
"plum",
|
|
86
|
-
"purple",
|
|
87
|
-
"red",
|
|
88
|
-
"ruby",
|
|
89
|
-
"sky",
|
|
90
|
-
"teal",
|
|
91
|
-
"tomato",
|
|
92
|
-
"violet",
|
|
93
|
-
"yellow",
|
|
94
|
-
]
|
|
95
|
-
],
|
|
96
|
-
]
|
|
97
|
-
] = None,
|
|
98
|
-
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
|
99
|
-
columns: Optional[
|
|
100
|
-
Union[
|
|
101
|
-
Breakpoints[
|
|
102
|
-
str,
|
|
103
|
-
Union[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], str],
|
|
104
|
-
],
|
|
105
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
106
|
-
Var[
|
|
107
|
-
Union[
|
|
108
|
-
Breakpoints[
|
|
109
|
-
str,
|
|
110
|
-
Union[
|
|
111
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
112
|
-
str,
|
|
113
|
-
],
|
|
114
|
-
],
|
|
115
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
116
|
-
str,
|
|
117
|
-
]
|
|
118
|
-
],
|
|
119
|
-
str,
|
|
120
|
-
]
|
|
121
|
-
] = None,
|
|
122
|
-
gap: Optional[
|
|
123
|
-
Union[
|
|
124
|
-
Breakpoints[
|
|
125
|
-
str,
|
|
126
|
-
Union[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"], str],
|
|
127
|
-
],
|
|
128
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
129
|
-
Var[
|
|
130
|
-
Union[
|
|
131
|
-
Breakpoints[
|
|
132
|
-
str,
|
|
133
|
-
Union[
|
|
134
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
135
|
-
str,
|
|
136
|
-
],
|
|
137
|
-
],
|
|
138
|
-
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
139
|
-
str,
|
|
140
|
-
]
|
|
141
|
-
],
|
|
142
|
-
str,
|
|
143
|
-
]
|
|
144
|
-
] = None,
|
|
145
|
-
style: Optional[Style] = None,
|
|
146
|
-
key: Optional[Any] = None,
|
|
147
|
-
id: Optional[Any] = None,
|
|
148
|
-
class_name: Optional[Any] = None,
|
|
149
|
-
autofocus: Optional[bool] = None,
|
|
150
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
86
|
+
]
|
|
87
|
+
| None = None,
|
|
88
|
+
high_contrast: Var[bool] | bool | None = None,
|
|
89
|
+
columns: Breakpoints[
|
|
90
|
+
str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"] | str
|
|
91
|
+
]
|
|
92
|
+
| Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
|
|
93
|
+
| Var[
|
|
94
|
+
Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"] | str]
|
|
95
|
+
| Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
|
|
96
|
+
| str
|
|
97
|
+
]
|
|
98
|
+
| str
|
|
99
|
+
| None = None,
|
|
100
|
+
gap: Breakpoints[
|
|
101
|
+
str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"] | str
|
|
102
|
+
]
|
|
103
|
+
| Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
|
|
104
|
+
| Var[
|
|
105
|
+
Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"] | str]
|
|
106
|
+
| Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
|
|
107
|
+
| str
|
|
108
|
+
]
|
|
109
|
+
| str
|
|
110
|
+
| None = None,
|
|
111
|
+
style: Style | None = None,
|
|
112
|
+
key: Any | None = None,
|
|
113
|
+
id: Any | None = None,
|
|
114
|
+
class_name: Any | None = None,
|
|
115
|
+
autofocus: bool | None = None,
|
|
116
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
151
117
|
on_blur: Optional[EventType[()]] = None,
|
|
152
118
|
on_click: Optional[EventType[()]] = None,
|
|
153
119
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -197,12 +163,12 @@ class CheckboxCardsItem(RadixThemesComponent):
|
|
|
197
163
|
def create( # type: ignore
|
|
198
164
|
cls,
|
|
199
165
|
*children,
|
|
200
|
-
style:
|
|
201
|
-
key:
|
|
202
|
-
id:
|
|
203
|
-
class_name:
|
|
204
|
-
autofocus:
|
|
205
|
-
custom_attrs:
|
|
166
|
+
style: Style | None = None,
|
|
167
|
+
key: Any | None = None,
|
|
168
|
+
id: Any | None = None,
|
|
169
|
+
class_name: Any | None = None,
|
|
170
|
+
autofocus: bool | None = None,
|
|
171
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
206
172
|
on_blur: Optional[EventType[()]] = None,
|
|
207
173
|
on_click: Optional[EventType[()]] = None,
|
|
208
174
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Components for the CheckboxGroup component of Radix Themes."""
|
|
2
2
|
|
|
3
3
|
from types import SimpleNamespace
|
|
4
|
-
from typing import
|
|
4
|
+
from typing import Literal, Sequence
|
|
5
5
|
|
|
6
6
|
from reflex.components.core.breakpoints import Responsive
|
|
7
7
|
from reflex.vars.base import Var
|
|
@@ -27,7 +27,7 @@ class CheckboxGroupRoot(RadixThemesComponent):
|
|
|
27
27
|
high_contrast: Var[bool]
|
|
28
28
|
|
|
29
29
|
# determines which checkboxes, if any, are checked by default.
|
|
30
|
-
default_value: Var[
|
|
30
|
+
default_value: Var[Sequence[str]]
|
|
31
31
|
|
|
32
32
|
# used to assign a name to the entire group of checkboxes
|
|
33
33
|
name: Var[str]
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
6
|
from types import SimpleNamespace
|
|
7
|
-
from typing import Any,
|
|
7
|
+
from typing import Any, Literal, Optional, Sequence, overload
|
|
8
8
|
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
10
|
from reflex.event import EventType
|
|
@@ -19,94 +19,81 @@ class CheckboxGroupRoot(RadixThemesComponent):
|
|
|
19
19
|
def create( # type: ignore
|
|
20
20
|
cls,
|
|
21
21
|
*children,
|
|
22
|
-
size:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
size: Breakpoints[str, Literal["1", "2", "3"]]
|
|
23
|
+
| Literal["1", "2", "3"]
|
|
24
|
+
| Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
|
|
25
|
+
| None = None,
|
|
26
|
+
variant: Literal["classic", "soft", "surface"]
|
|
27
|
+
| Var[Literal["classic", "soft", "surface"]]
|
|
28
|
+
| None = None,
|
|
29
|
+
color_scheme: Literal[
|
|
30
|
+
"amber",
|
|
31
|
+
"blue",
|
|
32
|
+
"bronze",
|
|
33
|
+
"brown",
|
|
34
|
+
"crimson",
|
|
35
|
+
"cyan",
|
|
36
|
+
"gold",
|
|
37
|
+
"grass",
|
|
38
|
+
"gray",
|
|
39
|
+
"green",
|
|
40
|
+
"indigo",
|
|
41
|
+
"iris",
|
|
42
|
+
"jade",
|
|
43
|
+
"lime",
|
|
44
|
+
"mint",
|
|
45
|
+
"orange",
|
|
46
|
+
"pink",
|
|
47
|
+
"plum",
|
|
48
|
+
"purple",
|
|
49
|
+
"red",
|
|
50
|
+
"ruby",
|
|
51
|
+
"sky",
|
|
52
|
+
"teal",
|
|
53
|
+
"tomato",
|
|
54
|
+
"violet",
|
|
55
|
+
"yellow",
|
|
56
|
+
]
|
|
57
|
+
| Var[
|
|
58
|
+
Literal[
|
|
59
|
+
"amber",
|
|
60
|
+
"blue",
|
|
61
|
+
"bronze",
|
|
62
|
+
"brown",
|
|
63
|
+
"crimson",
|
|
64
|
+
"cyan",
|
|
65
|
+
"gold",
|
|
66
|
+
"grass",
|
|
67
|
+
"gray",
|
|
68
|
+
"green",
|
|
69
|
+
"indigo",
|
|
70
|
+
"iris",
|
|
71
|
+
"jade",
|
|
72
|
+
"lime",
|
|
73
|
+
"mint",
|
|
74
|
+
"orange",
|
|
75
|
+
"pink",
|
|
76
|
+
"plum",
|
|
77
|
+
"purple",
|
|
78
|
+
"red",
|
|
79
|
+
"ruby",
|
|
80
|
+
"sky",
|
|
81
|
+
"teal",
|
|
82
|
+
"tomato",
|
|
83
|
+
"violet",
|
|
84
|
+
"yellow",
|
|
31
85
|
]
|
|
32
|
-
]
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"blue",
|
|
44
|
-
"bronze",
|
|
45
|
-
"brown",
|
|
46
|
-
"crimson",
|
|
47
|
-
"cyan",
|
|
48
|
-
"gold",
|
|
49
|
-
"grass",
|
|
50
|
-
"gray",
|
|
51
|
-
"green",
|
|
52
|
-
"indigo",
|
|
53
|
-
"iris",
|
|
54
|
-
"jade",
|
|
55
|
-
"lime",
|
|
56
|
-
"mint",
|
|
57
|
-
"orange",
|
|
58
|
-
"pink",
|
|
59
|
-
"plum",
|
|
60
|
-
"purple",
|
|
61
|
-
"red",
|
|
62
|
-
"ruby",
|
|
63
|
-
"sky",
|
|
64
|
-
"teal",
|
|
65
|
-
"tomato",
|
|
66
|
-
"violet",
|
|
67
|
-
"yellow",
|
|
68
|
-
],
|
|
69
|
-
Var[
|
|
70
|
-
Literal[
|
|
71
|
-
"amber",
|
|
72
|
-
"blue",
|
|
73
|
-
"bronze",
|
|
74
|
-
"brown",
|
|
75
|
-
"crimson",
|
|
76
|
-
"cyan",
|
|
77
|
-
"gold",
|
|
78
|
-
"grass",
|
|
79
|
-
"gray",
|
|
80
|
-
"green",
|
|
81
|
-
"indigo",
|
|
82
|
-
"iris",
|
|
83
|
-
"jade",
|
|
84
|
-
"lime",
|
|
85
|
-
"mint",
|
|
86
|
-
"orange",
|
|
87
|
-
"pink",
|
|
88
|
-
"plum",
|
|
89
|
-
"purple",
|
|
90
|
-
"red",
|
|
91
|
-
"ruby",
|
|
92
|
-
"sky",
|
|
93
|
-
"teal",
|
|
94
|
-
"tomato",
|
|
95
|
-
"violet",
|
|
96
|
-
"yellow",
|
|
97
|
-
]
|
|
98
|
-
],
|
|
99
|
-
]
|
|
100
|
-
] = None,
|
|
101
|
-
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
|
102
|
-
default_value: Optional[Union[List[str], Var[List[str]]]] = None,
|
|
103
|
-
name: Optional[Union[Var[str], str]] = None,
|
|
104
|
-
style: Optional[Style] = None,
|
|
105
|
-
key: Optional[Any] = None,
|
|
106
|
-
id: Optional[Any] = None,
|
|
107
|
-
class_name: Optional[Any] = None,
|
|
108
|
-
autofocus: Optional[bool] = None,
|
|
109
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
86
|
+
]
|
|
87
|
+
| None = None,
|
|
88
|
+
high_contrast: Var[bool] | bool | None = None,
|
|
89
|
+
default_value: Sequence[str] | Var[Sequence[str]] | None = None,
|
|
90
|
+
name: Var[str] | str | None = None,
|
|
91
|
+
style: Style | None = None,
|
|
92
|
+
key: Any | None = None,
|
|
93
|
+
id: Any | None = None,
|
|
94
|
+
class_name: Any | None = None,
|
|
95
|
+
autofocus: bool | None = None,
|
|
96
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
110
97
|
on_blur: Optional[EventType[()]] = None,
|
|
111
98
|
on_click: Optional[EventType[()]] = None,
|
|
112
99
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -156,14 +143,14 @@ class CheckboxGroupItem(RadixThemesComponent):
|
|
|
156
143
|
def create( # type: ignore
|
|
157
144
|
cls,
|
|
158
145
|
*children,
|
|
159
|
-
value:
|
|
160
|
-
disabled:
|
|
161
|
-
style:
|
|
162
|
-
key:
|
|
163
|
-
id:
|
|
164
|
-
class_name:
|
|
165
|
-
autofocus:
|
|
166
|
-
custom_attrs:
|
|
146
|
+
value: Var[str] | str | None = None,
|
|
147
|
+
disabled: Var[bool] | bool | None = None,
|
|
148
|
+
style: Style | None = None,
|
|
149
|
+
key: Any | None = None,
|
|
150
|
+
id: Any | None = None,
|
|
151
|
+
class_name: Any | None = None,
|
|
152
|
+
autofocus: bool | None = None,
|
|
153
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
167
154
|
on_blur: Optional[EventType[()]] = None,
|
|
168
155
|
on_click: Optional[EventType[()]] = None,
|
|
169
156
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Interactive components provided by @radix-ui/themes."""
|
|
2
2
|
|
|
3
|
-
from typing import
|
|
3
|
+
from typing import ClassVar, Literal
|
|
4
4
|
|
|
5
5
|
from reflex.components.component import ComponentNamespace
|
|
6
6
|
from reflex.components.core.breakpoints import Responsive
|
|
@@ -36,7 +36,7 @@ class ContextMenuRoot(RadixThemesComponent):
|
|
|
36
36
|
# The modality of the context menu. When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers.
|
|
37
37
|
modal: Var[bool]
|
|
38
38
|
|
|
39
|
-
_invalid_children:
|
|
39
|
+
_invalid_children: ClassVar[list[str]] = ["ContextMenuItem"]
|
|
40
40
|
|
|
41
41
|
# Fired when the open state changes.
|
|
42
42
|
on_open_change: EventHandler[passthrough_event_spec(bool)]
|
|
@@ -53,9 +53,9 @@ class ContextMenuTrigger(RadixThemesComponent):
|
|
|
53
53
|
# Whether the trigger is disabled
|
|
54
54
|
disabled: Var[bool]
|
|
55
55
|
|
|
56
|
-
_valid_parents:
|
|
56
|
+
_valid_parents: ClassVar[list[str]] = ["ContextMenuRoot"]
|
|
57
57
|
|
|
58
|
-
_invalid_children:
|
|
58
|
+
_invalid_children: ClassVar[list[str]] = ["ContextMenuContent"]
|
|
59
59
|
|
|
60
60
|
_memoization_mode = MemoizationMode(recursive=False)
|
|
61
61
|
|
|
@@ -90,19 +90,19 @@ class ContextMenuContent(RadixThemesComponent):
|
|
|
90
90
|
side: Var[LiteralSideType]
|
|
91
91
|
|
|
92
92
|
# The distance in pixels from the trigger. Defaults to 0.
|
|
93
|
-
side_offset: Var[
|
|
93
|
+
side_offset: Var[float | int]
|
|
94
94
|
|
|
95
95
|
# The preferred alignment against the trigger. May change when collisions occur. Defaults to "center".
|
|
96
96
|
align: Var[LiteralAlignType]
|
|
97
97
|
|
|
98
98
|
# An offset in pixels from the "start" or "end" alignment options.
|
|
99
|
-
align_offset: Var[
|
|
99
|
+
align_offset: Var[float | int]
|
|
100
100
|
|
|
101
101
|
# When true, overrides the side and align preferences to prevent collisions with boundary edges. Defaults to True.
|
|
102
102
|
avoid_collisions: Var[bool]
|
|
103
103
|
|
|
104
104
|
# The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for all sides), or a partial padding object, for example: { "top": 20, "left": 20 }. Defaults to 0.
|
|
105
|
-
collision_padding: Var[
|
|
105
|
+
collision_padding: Var[float | int | dict[str, float | int]]
|
|
106
106
|
|
|
107
107
|
# The sticky behavior on the align axis. "partial" will keep the content in the boundary as long as the trigger is at least partially in the boundary whilst "always" will keep the content in the boundary regardless. Defaults to "partial".
|
|
108
108
|
sticky: Var[LiteralStickyType]
|
|
@@ -155,7 +155,7 @@ class ContextMenuSubTrigger(RadixThemesComponent):
|
|
|
155
155
|
# Optional text used for typeahead purposes. By default the typeahead behavior will use the .textContent of the item. Use this when the content is complex, or you have non-textual content inside.
|
|
156
156
|
text_value: Var[str]
|
|
157
157
|
|
|
158
|
-
_valid_parents:
|
|
158
|
+
_valid_parents: ClassVar[list[str]] = ["ContextMenuContent", "ContextMenuSub"]
|
|
159
159
|
|
|
160
160
|
_memoization_mode = MemoizationMode(recursive=False)
|
|
161
161
|
|
|
@@ -175,16 +175,16 @@ class ContextMenuSubContent(RadixThemesComponent):
|
|
|
175
175
|
force_mount: Var[bool]
|
|
176
176
|
|
|
177
177
|
# The distance in pixels from the trigger. Defaults to 0.
|
|
178
|
-
side_offset: Var[
|
|
178
|
+
side_offset: Var[float | int]
|
|
179
179
|
|
|
180
180
|
# An offset in pixels from the "start" or "end" alignment options.
|
|
181
|
-
align_offset: Var[
|
|
181
|
+
align_offset: Var[float | int]
|
|
182
182
|
|
|
183
183
|
# When true, overrides the side and align preferences to prevent collisions with boundary edges. Defaults to True.
|
|
184
184
|
avoid_collisions: Var[bool]
|
|
185
185
|
|
|
186
186
|
# The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for all sides), or a partial padding object, for example: { "top": 20, "left": 20 }. Defaults to 0.
|
|
187
|
-
collision_padding: Var[
|
|
187
|
+
collision_padding: Var[float | int | dict[str, float | int]]
|
|
188
188
|
|
|
189
189
|
# The sticky behavior on the align axis. "partial" will keep the content in the boundary as long as the trigger is at least partially in the boundary whilst "always" will keep the content in the boundary regardless. Defaults to "partial".
|
|
190
190
|
sticky: Var[LiteralStickyType]
|
|
@@ -192,7 +192,7 @@ class ContextMenuSubContent(RadixThemesComponent):
|
|
|
192
192
|
# Whether to hide the content when the trigger becomes fully occluded. Defaults to False.
|
|
193
193
|
hide_when_detached: Var[bool]
|
|
194
194
|
|
|
195
|
-
_valid_parents:
|
|
195
|
+
_valid_parents: ClassVar[list[str]] = ["ContextMenuSub"]
|
|
196
196
|
|
|
197
197
|
# Fired when the escape key is pressed.
|
|
198
198
|
on_escape_key_down: EventHandler[no_args_event_spec]
|
|
@@ -227,7 +227,7 @@ class ContextMenuItem(RadixThemesComponent):
|
|
|
227
227
|
# Optional text used for typeahead purposes. By default the typeahead behavior will use the content of the item. Use this when the content is complex, or you have non-textual content inside.
|
|
228
228
|
text_value: Var[str]
|
|
229
229
|
|
|
230
|
-
_valid_parents:
|
|
230
|
+
_valid_parents: ClassVar[list[str]] = [
|
|
231
231
|
"ContextMenuContent",
|
|
232
232
|
"ContextMenuSubContent",
|
|
233
233
|
"ContextMenuGroup",
|
|
@@ -269,7 +269,10 @@ class ContextMenuGroup(RadixThemesComponent):
|
|
|
269
269
|
# Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
|
|
270
270
|
as_child: Var[bool]
|
|
271
271
|
|
|
272
|
-
_valid_parents:
|
|
272
|
+
_valid_parents: ClassVar[list[str]] = [
|
|
273
|
+
"ContextMenuContent",
|
|
274
|
+
"ContextMenuSubContent",
|
|
275
|
+
]
|
|
273
276
|
|
|
274
277
|
|
|
275
278
|
class ContextMenuRadioGroup(RadixThemesComponent):
|
|
@@ -289,7 +292,7 @@ class ContextMenuRadioGroup(RadixThemesComponent):
|
|
|
289
292
|
# Fired when the value of the radio group changes.
|
|
290
293
|
on_change: EventHandler[passthrough_event_spec(str)]
|
|
291
294
|
|
|
292
|
-
_valid_parents:
|
|
295
|
+
_valid_parents: ClassVar[list[str]] = [
|
|
293
296
|
"ContextMenuRadioItem",
|
|
294
297
|
"ContextMenuSubContent",
|
|
295
298
|
"ContextMenuContent",
|