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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# ------------------- DO NOT EDIT ----------------------
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
|
-
from typing import Any,
|
|
6
|
+
from typing import Any, Literal, Optional, Sequence, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import ComponentNamespace
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
@@ -28,14 +28,14 @@ class ContextMenuRoot(RadixThemesComponent):
|
|
|
28
28
|
def create( # type: ignore
|
|
29
29
|
cls,
|
|
30
30
|
*children,
|
|
31
|
-
modal:
|
|
32
|
-
dir:
|
|
33
|
-
style:
|
|
34
|
-
key:
|
|
35
|
-
id:
|
|
36
|
-
class_name:
|
|
37
|
-
autofocus:
|
|
38
|
-
custom_attrs:
|
|
31
|
+
modal: Var[bool] | bool | None = None,
|
|
32
|
+
dir: Literal["ltr", "rtl"] | Var[Literal["ltr", "rtl"]] | None = None,
|
|
33
|
+
style: Style | None = None,
|
|
34
|
+
key: Any | None = None,
|
|
35
|
+
id: Any | None = None,
|
|
36
|
+
class_name: Any | None = None,
|
|
37
|
+
autofocus: bool | None = None,
|
|
38
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
39
39
|
on_blur: Optional[EventType[()]] = None,
|
|
40
40
|
on_click: Optional[EventType[()]] = None,
|
|
41
41
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -49,7 +49,7 @@ class ContextMenuRoot(RadixThemesComponent):
|
|
|
49
49
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
50
50
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
51
51
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
52
|
-
on_open_change: Optional[
|
|
52
|
+
on_open_change: Optional[EventType[()] | EventType[bool]] = None,
|
|
53
53
|
on_scroll: Optional[EventType[()]] = None,
|
|
54
54
|
on_unmount: Optional[EventType[()]] = None,
|
|
55
55
|
**props,
|
|
@@ -83,13 +83,13 @@ class ContextMenuTrigger(RadixThemesComponent):
|
|
|
83
83
|
def create( # type: ignore
|
|
84
84
|
cls,
|
|
85
85
|
*children,
|
|
86
|
-
disabled:
|
|
87
|
-
style:
|
|
88
|
-
key:
|
|
89
|
-
id:
|
|
90
|
-
class_name:
|
|
91
|
-
autofocus:
|
|
92
|
-
custom_attrs:
|
|
86
|
+
disabled: Var[bool] | bool | None = None,
|
|
87
|
+
style: Style | None = None,
|
|
88
|
+
key: Any | None = None,
|
|
89
|
+
id: Any | None = None,
|
|
90
|
+
class_name: Any | None = None,
|
|
91
|
+
autofocus: bool | None = None,
|
|
92
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
93
93
|
on_blur: Optional[EventType[()]] = None,
|
|
94
94
|
on_click: Optional[EventType[()]] = None,
|
|
95
95
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -134,115 +134,98 @@ class ContextMenuContent(RadixThemesComponent):
|
|
|
134
134
|
def create( # type: ignore
|
|
135
135
|
cls,
|
|
136
136
|
*children,
|
|
137
|
-
size:
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
137
|
+
size: Breakpoints[str, Literal["1", "2"]]
|
|
138
|
+
| Literal["1", "2"]
|
|
139
|
+
| Var[Breakpoints[str, Literal["1", "2"]] | Literal["1", "2"]]
|
|
140
|
+
| None = None,
|
|
141
|
+
variant: Literal["soft", "solid"] | Var[Literal["soft", "solid"]] | None = None,
|
|
142
|
+
color_scheme: Literal[
|
|
143
|
+
"amber",
|
|
144
|
+
"blue",
|
|
145
|
+
"bronze",
|
|
146
|
+
"brown",
|
|
147
|
+
"crimson",
|
|
148
|
+
"cyan",
|
|
149
|
+
"gold",
|
|
150
|
+
"grass",
|
|
151
|
+
"gray",
|
|
152
|
+
"green",
|
|
153
|
+
"indigo",
|
|
154
|
+
"iris",
|
|
155
|
+
"jade",
|
|
156
|
+
"lime",
|
|
157
|
+
"mint",
|
|
158
|
+
"orange",
|
|
159
|
+
"pink",
|
|
160
|
+
"plum",
|
|
161
|
+
"purple",
|
|
162
|
+
"red",
|
|
163
|
+
"ruby",
|
|
164
|
+
"sky",
|
|
165
|
+
"teal",
|
|
166
|
+
"tomato",
|
|
167
|
+
"violet",
|
|
168
|
+
"yellow",
|
|
169
|
+
]
|
|
170
|
+
| Var[
|
|
171
|
+
Literal[
|
|
172
|
+
"amber",
|
|
173
|
+
"blue",
|
|
174
|
+
"bronze",
|
|
175
|
+
"brown",
|
|
176
|
+
"crimson",
|
|
177
|
+
"cyan",
|
|
178
|
+
"gold",
|
|
179
|
+
"grass",
|
|
180
|
+
"gray",
|
|
181
|
+
"green",
|
|
182
|
+
"indigo",
|
|
183
|
+
"iris",
|
|
184
|
+
"jade",
|
|
185
|
+
"lime",
|
|
186
|
+
"mint",
|
|
187
|
+
"orange",
|
|
188
|
+
"pink",
|
|
189
|
+
"plum",
|
|
190
|
+
"purple",
|
|
191
|
+
"red",
|
|
192
|
+
"ruby",
|
|
193
|
+
"sky",
|
|
194
|
+
"teal",
|
|
195
|
+
"tomato",
|
|
196
|
+
"violet",
|
|
197
|
+
"yellow",
|
|
142
198
|
]
|
|
143
|
-
]
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
] = None,
|
|
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
|
-
"tomato",
|
|
174
|
-
"violet",
|
|
175
|
-
"yellow",
|
|
176
|
-
],
|
|
177
|
-
Var[
|
|
178
|
-
Literal[
|
|
179
|
-
"amber",
|
|
180
|
-
"blue",
|
|
181
|
-
"bronze",
|
|
182
|
-
"brown",
|
|
183
|
-
"crimson",
|
|
184
|
-
"cyan",
|
|
185
|
-
"gold",
|
|
186
|
-
"grass",
|
|
187
|
-
"gray",
|
|
188
|
-
"green",
|
|
189
|
-
"indigo",
|
|
190
|
-
"iris",
|
|
191
|
-
"jade",
|
|
192
|
-
"lime",
|
|
193
|
-
"mint",
|
|
194
|
-
"orange",
|
|
195
|
-
"pink",
|
|
196
|
-
"plum",
|
|
197
|
-
"purple",
|
|
198
|
-
"red",
|
|
199
|
-
"ruby",
|
|
200
|
-
"sky",
|
|
201
|
-
"teal",
|
|
202
|
-
"tomato",
|
|
203
|
-
"violet",
|
|
204
|
-
"yellow",
|
|
205
|
-
]
|
|
206
|
-
],
|
|
207
|
-
]
|
|
208
|
-
] = None,
|
|
209
|
-
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
|
210
|
-
as_child: Optional[Union[Var[bool], bool]] = None,
|
|
211
|
-
loop: Optional[Union[Var[bool], bool]] = None,
|
|
212
|
-
force_mount: Optional[Union[Var[bool], bool]] = None,
|
|
213
|
-
side: Optional[
|
|
214
|
-
Union[
|
|
215
|
-
Literal["bottom", "left", "right", "top"],
|
|
216
|
-
Var[Literal["bottom", "left", "right", "top"]],
|
|
217
|
-
]
|
|
218
|
-
] = None,
|
|
219
|
-
side_offset: Optional[Union[Var[Union[float, int]], float, int]] = None,
|
|
220
|
-
align: Optional[
|
|
221
|
-
Union[
|
|
222
|
-
Literal["center", "end", "start"],
|
|
223
|
-
Var[Literal["center", "end", "start"]],
|
|
224
|
-
]
|
|
225
|
-
] = None,
|
|
226
|
-
align_offset: Optional[Union[Var[Union[float, int]], float, int]] = None,
|
|
227
|
-
avoid_collisions: Optional[Union[Var[bool], bool]] = None,
|
|
228
|
-
collision_padding: Optional[
|
|
229
|
-
Union[
|
|
230
|
-
Dict[str, Union[float, int]],
|
|
231
|
-
Var[Union[Dict[str, Union[float, int]], float, int]],
|
|
232
|
-
float,
|
|
233
|
-
int,
|
|
234
|
-
]
|
|
235
|
-
] = None,
|
|
236
|
-
sticky: Optional[
|
|
237
|
-
Union[Literal["always", "partial"], Var[Literal["always", "partial"]]]
|
|
238
|
-
] = None,
|
|
239
|
-
hide_when_detached: Optional[Union[Var[bool], bool]] = None,
|
|
240
|
-
style: Optional[Style] = None,
|
|
241
|
-
key: Optional[Any] = None,
|
|
242
|
-
id: Optional[Any] = None,
|
|
243
|
-
class_name: Optional[Any] = None,
|
|
244
|
-
autofocus: Optional[bool] = None,
|
|
245
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
199
|
+
]
|
|
200
|
+
| None = None,
|
|
201
|
+
high_contrast: Var[bool] | bool | None = None,
|
|
202
|
+
as_child: Var[bool] | bool | None = None,
|
|
203
|
+
loop: Var[bool] | bool | None = None,
|
|
204
|
+
force_mount: Var[bool] | bool | None = None,
|
|
205
|
+
side: Literal["bottom", "left", "right", "top"]
|
|
206
|
+
| Var[Literal["bottom", "left", "right", "top"]]
|
|
207
|
+
| None = None,
|
|
208
|
+
side_offset: Var[float | int] | float | int | None = None,
|
|
209
|
+
align: Literal["center", "end", "start"]
|
|
210
|
+
| Var[Literal["center", "end", "start"]]
|
|
211
|
+
| None = None,
|
|
212
|
+
align_offset: Var[float | int] | float | int | None = None,
|
|
213
|
+
avoid_collisions: Var[bool] | bool | None = None,
|
|
214
|
+
collision_padding: Var[dict[str, float | int] | float | int]
|
|
215
|
+
| dict[str, float | int]
|
|
216
|
+
| float
|
|
217
|
+
| int
|
|
218
|
+
| None = None,
|
|
219
|
+
sticky: Literal["always", "partial"]
|
|
220
|
+
| Var[Literal["always", "partial"]]
|
|
221
|
+
| None = None,
|
|
222
|
+
hide_when_detached: Var[bool] | bool | None = None,
|
|
223
|
+
style: Style | None = None,
|
|
224
|
+
key: Any | None = None,
|
|
225
|
+
id: Any | None = None,
|
|
226
|
+
class_name: Any | None = None,
|
|
227
|
+
autofocus: bool | None = None,
|
|
228
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
246
229
|
on_blur: Optional[EventType[()]] = None,
|
|
247
230
|
on_click: Optional[EventType[()]] = None,
|
|
248
231
|
on_close_auto_focus: Optional[EventType[()]] = None,
|
|
@@ -311,14 +294,14 @@ class ContextMenuSub(RadixThemesComponent):
|
|
|
311
294
|
def create( # type: ignore
|
|
312
295
|
cls,
|
|
313
296
|
*children,
|
|
314
|
-
open:
|
|
315
|
-
default_open:
|
|
316
|
-
style:
|
|
317
|
-
key:
|
|
318
|
-
id:
|
|
319
|
-
class_name:
|
|
320
|
-
autofocus:
|
|
321
|
-
custom_attrs:
|
|
297
|
+
open: Var[bool] | bool | None = None,
|
|
298
|
+
default_open: 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,
|
|
322
305
|
on_blur: Optional[EventType[()]] = None,
|
|
323
306
|
on_click: Optional[EventType[()]] = None,
|
|
324
307
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -332,7 +315,7 @@ class ContextMenuSub(RadixThemesComponent):
|
|
|
332
315
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
333
316
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
334
317
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
335
|
-
on_open_change: Optional[
|
|
318
|
+
on_open_change: Optional[EventType[()] | EventType[bool]] = None,
|
|
336
319
|
on_scroll: Optional[EventType[()]] = None,
|
|
337
320
|
on_unmount: Optional[EventType[()]] = None,
|
|
338
321
|
**props,
|
|
@@ -366,15 +349,15 @@ class ContextMenuSubTrigger(RadixThemesComponent):
|
|
|
366
349
|
def create( # type: ignore
|
|
367
350
|
cls,
|
|
368
351
|
*children,
|
|
369
|
-
as_child:
|
|
370
|
-
disabled:
|
|
371
|
-
text_value:
|
|
372
|
-
style:
|
|
373
|
-
key:
|
|
374
|
-
id:
|
|
375
|
-
class_name:
|
|
376
|
-
autofocus:
|
|
377
|
-
custom_attrs:
|
|
352
|
+
as_child: Var[bool] | bool | None = None,
|
|
353
|
+
disabled: Var[bool] | bool | None = None,
|
|
354
|
+
text_value: Var[str] | str | None = None,
|
|
355
|
+
style: Style | None = None,
|
|
356
|
+
key: Any | None = None,
|
|
357
|
+
id: Any | None = None,
|
|
358
|
+
class_name: Any | None = None,
|
|
359
|
+
autofocus: bool | None = None,
|
|
360
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
378
361
|
on_blur: Optional[EventType[()]] = None,
|
|
379
362
|
on_click: Optional[EventType[()]] = None,
|
|
380
363
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -421,30 +404,27 @@ class ContextMenuSubContent(RadixThemesComponent):
|
|
|
421
404
|
def create( # type: ignore
|
|
422
405
|
cls,
|
|
423
406
|
*children,
|
|
424
|
-
as_child:
|
|
425
|
-
loop:
|
|
426
|
-
force_mount:
|
|
427
|
-
side_offset:
|
|
428
|
-
align_offset:
|
|
429
|
-
avoid_collisions:
|
|
430
|
-
collision_padding:
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
class_name: Optional[Any] = None,
|
|
446
|
-
autofocus: Optional[bool] = None,
|
|
447
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
407
|
+
as_child: Var[bool] | bool | None = None,
|
|
408
|
+
loop: Var[bool] | bool | None = None,
|
|
409
|
+
force_mount: Var[bool] | bool | None = None,
|
|
410
|
+
side_offset: Var[float | int] | float | int | None = None,
|
|
411
|
+
align_offset: Var[float | int] | float | int | None = None,
|
|
412
|
+
avoid_collisions: Var[bool] | bool | None = None,
|
|
413
|
+
collision_padding: Var[dict[str, float | int] | float | int]
|
|
414
|
+
| dict[str, float | int]
|
|
415
|
+
| float
|
|
416
|
+
| int
|
|
417
|
+
| None = None,
|
|
418
|
+
sticky: Literal["always", "partial"]
|
|
419
|
+
| Var[Literal["always", "partial"]]
|
|
420
|
+
| None = None,
|
|
421
|
+
hide_when_detached: Var[bool] | bool | None = None,
|
|
422
|
+
style: Style | None = None,
|
|
423
|
+
key: Any | None = None,
|
|
424
|
+
id: Any | None = None,
|
|
425
|
+
class_name: Any | None = None,
|
|
426
|
+
autofocus: bool | None = None,
|
|
427
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
448
428
|
on_blur: Optional[EventType[()]] = None,
|
|
449
429
|
on_click: Optional[EventType[()]] = None,
|
|
450
430
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -505,78 +485,75 @@ class ContextMenuItem(RadixThemesComponent):
|
|
|
505
485
|
def create( # type: ignore
|
|
506
486
|
cls,
|
|
507
487
|
*children,
|
|
508
|
-
color_scheme:
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
"violet",
|
|
565
|
-
"yellow",
|
|
566
|
-
]
|
|
567
|
-
],
|
|
488
|
+
color_scheme: Literal[
|
|
489
|
+
"amber",
|
|
490
|
+
"blue",
|
|
491
|
+
"bronze",
|
|
492
|
+
"brown",
|
|
493
|
+
"crimson",
|
|
494
|
+
"cyan",
|
|
495
|
+
"gold",
|
|
496
|
+
"grass",
|
|
497
|
+
"gray",
|
|
498
|
+
"green",
|
|
499
|
+
"indigo",
|
|
500
|
+
"iris",
|
|
501
|
+
"jade",
|
|
502
|
+
"lime",
|
|
503
|
+
"mint",
|
|
504
|
+
"orange",
|
|
505
|
+
"pink",
|
|
506
|
+
"plum",
|
|
507
|
+
"purple",
|
|
508
|
+
"red",
|
|
509
|
+
"ruby",
|
|
510
|
+
"sky",
|
|
511
|
+
"teal",
|
|
512
|
+
"tomato",
|
|
513
|
+
"violet",
|
|
514
|
+
"yellow",
|
|
515
|
+
]
|
|
516
|
+
| Var[
|
|
517
|
+
Literal[
|
|
518
|
+
"amber",
|
|
519
|
+
"blue",
|
|
520
|
+
"bronze",
|
|
521
|
+
"brown",
|
|
522
|
+
"crimson",
|
|
523
|
+
"cyan",
|
|
524
|
+
"gold",
|
|
525
|
+
"grass",
|
|
526
|
+
"gray",
|
|
527
|
+
"green",
|
|
528
|
+
"indigo",
|
|
529
|
+
"iris",
|
|
530
|
+
"jade",
|
|
531
|
+
"lime",
|
|
532
|
+
"mint",
|
|
533
|
+
"orange",
|
|
534
|
+
"pink",
|
|
535
|
+
"plum",
|
|
536
|
+
"purple",
|
|
537
|
+
"red",
|
|
538
|
+
"ruby",
|
|
539
|
+
"sky",
|
|
540
|
+
"teal",
|
|
541
|
+
"tomato",
|
|
542
|
+
"violet",
|
|
543
|
+
"yellow",
|
|
568
544
|
]
|
|
569
|
-
]
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
545
|
+
]
|
|
546
|
+
| None = None,
|
|
547
|
+
shortcut: Var[str] | str | None = None,
|
|
548
|
+
as_child: Var[bool] | bool | None = None,
|
|
549
|
+
disabled: Var[bool] | bool | None = None,
|
|
550
|
+
text_value: Var[str] | str | None = None,
|
|
551
|
+
style: Style | None = None,
|
|
552
|
+
key: Any | None = None,
|
|
553
|
+
id: Any | None = None,
|
|
554
|
+
class_name: Any | None = None,
|
|
555
|
+
autofocus: bool | None = None,
|
|
556
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
580
557
|
on_blur: Optional[EventType[()]] = None,
|
|
581
558
|
on_click: Optional[EventType[()]] = None,
|
|
582
559
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -627,12 +604,12 @@ class ContextMenuSeparator(RadixThemesComponent):
|
|
|
627
604
|
def create( # type: ignore
|
|
628
605
|
cls,
|
|
629
606
|
*children,
|
|
630
|
-
style:
|
|
631
|
-
key:
|
|
632
|
-
id:
|
|
633
|
-
class_name:
|
|
634
|
-
autofocus:
|
|
635
|
-
custom_attrs:
|
|
607
|
+
style: Style | None = None,
|
|
608
|
+
key: Any | None = None,
|
|
609
|
+
id: Any | None = None,
|
|
610
|
+
class_name: Any | None = None,
|
|
611
|
+
autofocus: bool | None = None,
|
|
612
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
636
613
|
on_blur: Optional[EventType[()]] = None,
|
|
637
614
|
on_click: Optional[EventType[()]] = None,
|
|
638
615
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -676,102 +653,89 @@ class ContextMenuCheckbox(Checkbox):
|
|
|
676
653
|
def create( # type: ignore
|
|
677
654
|
cls,
|
|
678
655
|
*children,
|
|
679
|
-
shortcut:
|
|
680
|
-
as_child:
|
|
681
|
-
size:
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
656
|
+
shortcut: Var[str] | str | None = None,
|
|
657
|
+
as_child: Var[bool] | bool | None = None,
|
|
658
|
+
size: Breakpoints[str, Literal["1", "2", "3"]]
|
|
659
|
+
| Literal["1", "2", "3"]
|
|
660
|
+
| Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
|
|
661
|
+
| None = None,
|
|
662
|
+
variant: Literal["classic", "soft", "surface"]
|
|
663
|
+
| Var[Literal["classic", "soft", "surface"]]
|
|
664
|
+
| None = None,
|
|
665
|
+
color_scheme: Literal[
|
|
666
|
+
"amber",
|
|
667
|
+
"blue",
|
|
668
|
+
"bronze",
|
|
669
|
+
"brown",
|
|
670
|
+
"crimson",
|
|
671
|
+
"cyan",
|
|
672
|
+
"gold",
|
|
673
|
+
"grass",
|
|
674
|
+
"gray",
|
|
675
|
+
"green",
|
|
676
|
+
"indigo",
|
|
677
|
+
"iris",
|
|
678
|
+
"jade",
|
|
679
|
+
"lime",
|
|
680
|
+
"mint",
|
|
681
|
+
"orange",
|
|
682
|
+
"pink",
|
|
683
|
+
"plum",
|
|
684
|
+
"purple",
|
|
685
|
+
"red",
|
|
686
|
+
"ruby",
|
|
687
|
+
"sky",
|
|
688
|
+
"teal",
|
|
689
|
+
"tomato",
|
|
690
|
+
"violet",
|
|
691
|
+
"yellow",
|
|
692
|
+
]
|
|
693
|
+
| Var[
|
|
694
|
+
Literal[
|
|
695
|
+
"amber",
|
|
696
|
+
"blue",
|
|
697
|
+
"bronze",
|
|
698
|
+
"brown",
|
|
699
|
+
"crimson",
|
|
700
|
+
"cyan",
|
|
701
|
+
"gold",
|
|
702
|
+
"grass",
|
|
703
|
+
"gray",
|
|
704
|
+
"green",
|
|
705
|
+
"indigo",
|
|
706
|
+
"iris",
|
|
707
|
+
"jade",
|
|
708
|
+
"lime",
|
|
709
|
+
"mint",
|
|
710
|
+
"orange",
|
|
711
|
+
"pink",
|
|
712
|
+
"plum",
|
|
713
|
+
"purple",
|
|
714
|
+
"red",
|
|
715
|
+
"ruby",
|
|
716
|
+
"sky",
|
|
717
|
+
"teal",
|
|
718
|
+
"tomato",
|
|
719
|
+
"violet",
|
|
720
|
+
"yellow",
|
|
690
721
|
]
|
|
691
|
-
]
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
] = None,
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
"cyan",
|
|
707
|
-
"gold",
|
|
708
|
-
"grass",
|
|
709
|
-
"gray",
|
|
710
|
-
"green",
|
|
711
|
-
"indigo",
|
|
712
|
-
"iris",
|
|
713
|
-
"jade",
|
|
714
|
-
"lime",
|
|
715
|
-
"mint",
|
|
716
|
-
"orange",
|
|
717
|
-
"pink",
|
|
718
|
-
"plum",
|
|
719
|
-
"purple",
|
|
720
|
-
"red",
|
|
721
|
-
"ruby",
|
|
722
|
-
"sky",
|
|
723
|
-
"teal",
|
|
724
|
-
"tomato",
|
|
725
|
-
"violet",
|
|
726
|
-
"yellow",
|
|
727
|
-
],
|
|
728
|
-
Var[
|
|
729
|
-
Literal[
|
|
730
|
-
"amber",
|
|
731
|
-
"blue",
|
|
732
|
-
"bronze",
|
|
733
|
-
"brown",
|
|
734
|
-
"crimson",
|
|
735
|
-
"cyan",
|
|
736
|
-
"gold",
|
|
737
|
-
"grass",
|
|
738
|
-
"gray",
|
|
739
|
-
"green",
|
|
740
|
-
"indigo",
|
|
741
|
-
"iris",
|
|
742
|
-
"jade",
|
|
743
|
-
"lime",
|
|
744
|
-
"mint",
|
|
745
|
-
"orange",
|
|
746
|
-
"pink",
|
|
747
|
-
"plum",
|
|
748
|
-
"purple",
|
|
749
|
-
"red",
|
|
750
|
-
"ruby",
|
|
751
|
-
"sky",
|
|
752
|
-
"teal",
|
|
753
|
-
"tomato",
|
|
754
|
-
"violet",
|
|
755
|
-
"yellow",
|
|
756
|
-
]
|
|
757
|
-
],
|
|
758
|
-
]
|
|
759
|
-
] = None,
|
|
760
|
-
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
|
761
|
-
default_checked: Optional[Union[Var[bool], bool]] = None,
|
|
762
|
-
checked: Optional[Union[Var[bool], bool]] = None,
|
|
763
|
-
disabled: Optional[Union[Var[bool], bool]] = None,
|
|
764
|
-
required: Optional[Union[Var[bool], bool]] = None,
|
|
765
|
-
name: Optional[Union[Var[str], str]] = None,
|
|
766
|
-
value: Optional[Union[Var[str], str]] = None,
|
|
767
|
-
style: Optional[Style] = None,
|
|
768
|
-
key: Optional[Any] = None,
|
|
769
|
-
id: Optional[Any] = None,
|
|
770
|
-
class_name: Optional[Any] = None,
|
|
771
|
-
autofocus: Optional[bool] = None,
|
|
772
|
-
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
722
|
+
]
|
|
723
|
+
| None = None,
|
|
724
|
+
high_contrast: Var[bool] | bool | None = None,
|
|
725
|
+
default_checked: Var[bool] | bool | None = None,
|
|
726
|
+
checked: Var[bool] | bool | None = None,
|
|
727
|
+
disabled: Var[bool] | bool | None = None,
|
|
728
|
+
required: Var[bool] | bool | None = None,
|
|
729
|
+
name: Var[str] | str | None = None,
|
|
730
|
+
value: Var[str] | str | None = None,
|
|
731
|
+
style: Style | None = None,
|
|
732
|
+
key: Any | None = None,
|
|
733
|
+
id: Any | None = None,
|
|
734
|
+
class_name: Any | None = None,
|
|
735
|
+
autofocus: bool | None = None,
|
|
736
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
773
737
|
on_blur: Optional[EventType[()]] = None,
|
|
774
|
-
on_change: Optional[
|
|
738
|
+
on_change: Optional[EventType[()] | EventType[bool]] = None,
|
|
775
739
|
on_click: Optional[EventType[()]] = None,
|
|
776
740
|
on_context_menu: Optional[EventType[()]] = None,
|
|
777
741
|
on_double_click: Optional[EventType[()]] = None,
|
|
@@ -827,13 +791,13 @@ class ContextMenuLabel(RadixThemesComponent):
|
|
|
827
791
|
def create( # type: ignore
|
|
828
792
|
cls,
|
|
829
793
|
*children,
|
|
830
|
-
as_child:
|
|
831
|
-
style:
|
|
832
|
-
key:
|
|
833
|
-
id:
|
|
834
|
-
class_name:
|
|
835
|
-
autofocus:
|
|
836
|
-
custom_attrs:
|
|
794
|
+
as_child: Var[bool] | bool | None = None,
|
|
795
|
+
style: Style | None = None,
|
|
796
|
+
key: Any | None = None,
|
|
797
|
+
id: Any | None = None,
|
|
798
|
+
class_name: Any | None = None,
|
|
799
|
+
autofocus: bool | None = None,
|
|
800
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
837
801
|
on_blur: Optional[EventType[()]] = None,
|
|
838
802
|
on_click: Optional[EventType[()]] = None,
|
|
839
803
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -878,13 +842,13 @@ class ContextMenuGroup(RadixThemesComponent):
|
|
|
878
842
|
def create( # type: ignore
|
|
879
843
|
cls,
|
|
880
844
|
*children,
|
|
881
|
-
as_child:
|
|
882
|
-
style:
|
|
883
|
-
key:
|
|
884
|
-
id:
|
|
885
|
-
class_name:
|
|
886
|
-
autofocus:
|
|
887
|
-
custom_attrs:
|
|
845
|
+
as_child: Var[bool] | bool | None = None,
|
|
846
|
+
style: Style | None = None,
|
|
847
|
+
key: Any | None = None,
|
|
848
|
+
id: Any | None = None,
|
|
849
|
+
class_name: Any | None = None,
|
|
850
|
+
autofocus: bool | None = None,
|
|
851
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
888
852
|
on_blur: Optional[EventType[()]] = None,
|
|
889
853
|
on_click: Optional[EventType[()]] = None,
|
|
890
854
|
on_context_menu: Optional[EventType[()]] = None,
|
|
@@ -929,16 +893,16 @@ class ContextMenuRadioGroup(RadixThemesComponent):
|
|
|
929
893
|
def create( # type: ignore
|
|
930
894
|
cls,
|
|
931
895
|
*children,
|
|
932
|
-
as_child:
|
|
933
|
-
value:
|
|
934
|
-
style:
|
|
935
|
-
key:
|
|
936
|
-
id:
|
|
937
|
-
class_name:
|
|
938
|
-
autofocus:
|
|
939
|
-
custom_attrs:
|
|
896
|
+
as_child: Var[bool] | bool | None = None,
|
|
897
|
+
value: Var[str] | str | None = None,
|
|
898
|
+
style: Style | None = None,
|
|
899
|
+
key: Any | None = None,
|
|
900
|
+
id: Any | None = None,
|
|
901
|
+
class_name: Any | None = None,
|
|
902
|
+
autofocus: bool | None = None,
|
|
903
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
940
904
|
on_blur: Optional[EventType[()]] = None,
|
|
941
|
-
on_change: Optional[
|
|
905
|
+
on_change: Optional[EventType[()] | EventType[str]] = None,
|
|
942
906
|
on_click: Optional[EventType[()]] = None,
|
|
943
907
|
on_context_menu: Optional[EventType[()]] = None,
|
|
944
908
|
on_double_click: Optional[EventType[()]] = None,
|
|
@@ -984,104 +948,90 @@ class ContextMenuRadioItem(HighLevelRadioGroup):
|
|
|
984
948
|
def create( # type: ignore
|
|
985
949
|
cls,
|
|
986
950
|
*children,
|
|
987
|
-
color_scheme:
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
"violet",
|
|
1044
|
-
"yellow",
|
|
1045
|
-
]
|
|
1046
|
-
],
|
|
1047
|
-
]
|
|
1048
|
-
] = None,
|
|
1049
|
-
as_child: Optional[Union[Var[bool], bool]] = None,
|
|
1050
|
-
value: Optional[Union[Var[str], str]] = None,
|
|
1051
|
-
disabled: Optional[Union[Var[bool], bool]] = None,
|
|
1052
|
-
text_value: Optional[Union[Var[str], str]] = None,
|
|
1053
|
-
items: Optional[Union[List[str], Var[List[str]]]] = None,
|
|
1054
|
-
direction: Optional[
|
|
1055
|
-
Union[
|
|
1056
|
-
Literal["column", "column-reverse", "row", "row-reverse"],
|
|
1057
|
-
Var[Literal["column", "column-reverse", "row", "row-reverse"]],
|
|
1058
|
-
]
|
|
1059
|
-
] = None,
|
|
1060
|
-
spacing: Optional[
|
|
1061
|
-
Union[
|
|
1062
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1063
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1064
|
-
]
|
|
1065
|
-
] = None,
|
|
1066
|
-
size: Optional[
|
|
1067
|
-
Union[Literal["1", "2", "3"], Var[Literal["1", "2", "3"]]]
|
|
1068
|
-
] = None,
|
|
1069
|
-
variant: Optional[
|
|
1070
|
-
Union[
|
|
1071
|
-
Literal["classic", "soft", "surface"],
|
|
1072
|
-
Var[Literal["classic", "soft", "surface"]],
|
|
951
|
+
color_scheme: Literal[
|
|
952
|
+
"amber",
|
|
953
|
+
"blue",
|
|
954
|
+
"bronze",
|
|
955
|
+
"brown",
|
|
956
|
+
"crimson",
|
|
957
|
+
"cyan",
|
|
958
|
+
"gold",
|
|
959
|
+
"grass",
|
|
960
|
+
"gray",
|
|
961
|
+
"green",
|
|
962
|
+
"indigo",
|
|
963
|
+
"iris",
|
|
964
|
+
"jade",
|
|
965
|
+
"lime",
|
|
966
|
+
"mint",
|
|
967
|
+
"orange",
|
|
968
|
+
"pink",
|
|
969
|
+
"plum",
|
|
970
|
+
"purple",
|
|
971
|
+
"red",
|
|
972
|
+
"ruby",
|
|
973
|
+
"sky",
|
|
974
|
+
"teal",
|
|
975
|
+
"tomato",
|
|
976
|
+
"violet",
|
|
977
|
+
"yellow",
|
|
978
|
+
]
|
|
979
|
+
| Var[
|
|
980
|
+
Literal[
|
|
981
|
+
"amber",
|
|
982
|
+
"blue",
|
|
983
|
+
"bronze",
|
|
984
|
+
"brown",
|
|
985
|
+
"crimson",
|
|
986
|
+
"cyan",
|
|
987
|
+
"gold",
|
|
988
|
+
"grass",
|
|
989
|
+
"gray",
|
|
990
|
+
"green",
|
|
991
|
+
"indigo",
|
|
992
|
+
"iris",
|
|
993
|
+
"jade",
|
|
994
|
+
"lime",
|
|
995
|
+
"mint",
|
|
996
|
+
"orange",
|
|
997
|
+
"pink",
|
|
998
|
+
"plum",
|
|
999
|
+
"purple",
|
|
1000
|
+
"red",
|
|
1001
|
+
"ruby",
|
|
1002
|
+
"sky",
|
|
1003
|
+
"teal",
|
|
1004
|
+
"tomato",
|
|
1005
|
+
"violet",
|
|
1006
|
+
"yellow",
|
|
1073
1007
|
]
|
|
1074
|
-
]
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1008
|
+
]
|
|
1009
|
+
| None = None,
|
|
1010
|
+
as_child: Var[bool] | bool | None = None,
|
|
1011
|
+
value: Var[str] | str | None = None,
|
|
1012
|
+
disabled: Var[bool] | bool | None = None,
|
|
1013
|
+
text_value: Var[str] | str | None = None,
|
|
1014
|
+
items: Sequence[str] | Var[Sequence[str]] | None = None,
|
|
1015
|
+
direction: Literal["column", "column-reverse", "row", "row-reverse"]
|
|
1016
|
+
| Var[Literal["column", "column-reverse", "row", "row-reverse"]]
|
|
1017
|
+
| None = None,
|
|
1018
|
+
spacing: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
|
|
1019
|
+
| Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
|
|
1020
|
+
| None = None,
|
|
1021
|
+
size: Literal["1", "2", "3"] | Var[Literal["1", "2", "3"]] | None = None,
|
|
1022
|
+
variant: Literal["classic", "soft", "surface"]
|
|
1023
|
+
| Var[Literal["classic", "soft", "surface"]]
|
|
1024
|
+
| None = None,
|
|
1025
|
+
high_contrast: Var[bool] | bool | None = None,
|
|
1026
|
+
default_value: Var[str] | str | None = None,
|
|
1027
|
+
name: Var[str] | str | None = None,
|
|
1028
|
+
required: Var[bool] | bool | None = None,
|
|
1029
|
+
style: Style | None = None,
|
|
1030
|
+
key: Any | None = None,
|
|
1031
|
+
id: Any | None = None,
|
|
1032
|
+
class_name: Any | None = None,
|
|
1033
|
+
autofocus: bool | None = None,
|
|
1034
|
+
custom_attrs: dict[str, Var | Any] | None = None,
|
|
1085
1035
|
on_blur: Optional[EventType[()]] = None,
|
|
1086
1036
|
on_click: Optional[EventType[()]] = None,
|
|
1087
1037
|
on_context_menu: Optional[EventType[()]] = None,
|