reflex 0.6.0__py3-none-any.whl → 0.6.0a1__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/custom_components/pyproject.toml.jinja2 +2 -2
- reflex/.templates/jinja/web/pages/_app.js.jinja2 +1 -1
- reflex/.templates/jinja/web/pages/utils.js.jinja2 +2 -2
- reflex/.templates/web/components/reflex/chakra_color_mode_provider.js +36 -0
- reflex/.templates/web/utils/state.js +1 -3
- reflex/__init__.py +2 -8
- reflex/__init__.pyi +1 -2
- reflex/app.py +2 -4
- reflex/app_module_for_backend.py +1 -1
- reflex/base.py +1 -1
- reflex/compiler/compiler.py +2 -2
- reflex/compiler/utils.py +3 -3
- reflex/components/base/app_wrap.py +2 -2
- reflex/components/base/app_wrap.pyi +27 -17
- reflex/components/base/bare.py +5 -4
- reflex/components/base/body.pyi +27 -17
- reflex/components/base/document.pyi +131 -81
- reflex/components/base/error_boundary.py +7 -6
- reflex/components/base/error_boundary.pyi +33 -20
- reflex/components/base/fragment.pyi +27 -17
- reflex/components/base/head.pyi +53 -33
- reflex/components/base/link.py +1 -1
- reflex/components/base/link.pyi +54 -33
- reflex/components/base/meta.pyi +105 -65
- reflex/components/base/script.py +2 -1
- reflex/components/base/script.pyi +38 -21
- reflex/components/component.py +47 -53
- reflex/components/core/banner.py +27 -23
- reflex/components/core/banner.pyi +171 -134
- reflex/components/core/client_side_routing.py +3 -2
- reflex/components/core/client_side_routing.pyi +54 -33
- reflex/components/core/clipboard.py +1 -2
- reflex/components/core/clipboard.pyi +33 -20
- reflex/components/core/cond.py +5 -5
- reflex/components/core/debounce.py +5 -5
- reflex/components/core/debounce.pyi +33 -20
- reflex/components/core/foreach.py +4 -3
- reflex/components/core/html.py +1 -1
- reflex/components/core/html.pyi +46 -35
- reflex/components/core/match.py +17 -17
- reflex/components/core/upload.py +23 -17
- reflex/components/core/upload.pyi +124 -78
- reflex/components/datadisplay/code.py +10 -9
- reflex/components/datadisplay/code.pyi +409 -299
- reflex/components/datadisplay/dataeditor.py +10 -8
- reflex/components/datadisplay/dataeditor.pyi +53 -40
- reflex/components/el/element.pyi +27 -17
- reflex/components/el/elements/base.py +1 -1
- reflex/components/el/elements/base.pyi +45 -34
- reflex/components/el/elements/forms.py +16 -16
- reflex/components/el/elements/forms.pyi +707 -554
- reflex/components/el/elements/inline.py +1 -1
- reflex/components/el/elements/inline.pyi +1218 -937
- reflex/components/el/elements/media.py +1 -1
- reflex/components/el/elements/media.pyi +997 -786
- reflex/components/el/elements/metadata.py +6 -3
- reflex/components/el/elements/metadata.pyi +242 -181
- reflex/components/el/elements/other.py +1 -1
- reflex/components/el/elements/other.pyi +306 -235
- reflex/components/el/elements/scripts.py +1 -1
- reflex/components/el/elements/scripts.pyi +140 -109
- reflex/components/el/elements/sectioning.py +2 -0
- reflex/components/el/elements/sectioning.pyi +647 -496
- reflex/components/el/elements/tables.py +1 -1
- reflex/components/el/elements/tables.pyi +452 -351
- reflex/components/el/elements/typography.py +1 -1
- reflex/components/el/elements/typography.pyi +657 -506
- reflex/components/gridjs/datatable.py +9 -6
- reflex/components/gridjs/datatable.pyi +56 -35
- reflex/components/lucide/icon.py +1 -1
- reflex/components/lucide/icon.pyi +54 -33
- reflex/components/markdown/markdown.py +31 -26
- reflex/components/markdown/markdown.pyi +37 -27
- reflex/components/moment/moment.py +12 -13
- reflex/components/moment/moment.pyi +35 -23
- reflex/components/next/base.pyi +27 -17
- reflex/components/next/image.py +1 -1
- reflex/components/next/image.pyi +37 -22
- reflex/components/next/link.py +1 -1
- reflex/components/next/link.pyi +28 -17
- reflex/components/next/video.py +1 -1
- reflex/components/next/video.pyi +28 -17
- reflex/components/plotly/plotly.py +13 -12
- reflex/components/plotly/plotly.pyi +54 -39
- reflex/components/props.py +1 -1
- reflex/components/radix/__init__.pyi +0 -1
- reflex/components/radix/primitives/__init__.pyi +0 -1
- reflex/components/radix/primitives/accordion.py +4 -4
- reflex/components/radix/primitives/accordion.pyi +495 -424
- reflex/components/radix/primitives/base.py +1 -1
- reflex/components/radix/primitives/base.pyi +54 -33
- reflex/components/radix/primitives/drawer.py +1 -1
- reflex/components/radix/primitives/drawer.pyi +273 -172
- reflex/components/radix/primitives/form.py +1 -1
- reflex/components/radix/primitives/form.pyi +364 -257
- reflex/components/radix/primitives/progress.py +1 -1
- reflex/components/radix/primitives/progress.pyi +282 -231
- reflex/components/radix/primitives/slider.py +1 -1
- reflex/components/radix/primitives/slider.pyi +138 -87
- reflex/components/radix/themes/base.py +24 -3
- reflex/components/radix/themes/base.pyi +250 -178
- reflex/components/radix/themes/color_mode.py +5 -5
- reflex/components/radix/themes/color_mode.pyi +220 -187
- reflex/components/radix/themes/components/alert_dialog.py +1 -1
- reflex/components/radix/themes/components/alert_dialog.pyi +207 -136
- reflex/components/radix/themes/components/aspect_ratio.py +1 -1
- reflex/components/radix/themes/components/aspect_ratio.pyi +28 -17
- reflex/components/radix/themes/components/avatar.py +1 -1
- reflex/components/radix/themes/components/avatar.pyi +81 -70
- reflex/components/radix/themes/components/badge.py +1 -1
- reflex/components/radix/themes/components/badge.pyi +99 -88
- reflex/components/radix/themes/components/button.py +1 -1
- reflex/components/radix/themes/components/button.pyi +109 -98
- reflex/components/radix/themes/components/callout.py +1 -1
- reflex/components/radix/themes/components/callout.pyi +373 -322
- reflex/components/radix/themes/components/card.py +1 -1
- reflex/components/radix/themes/components/card.pyi +49 -38
- reflex/components/radix/themes/components/checkbox.py +2 -1
- reflex/components/radix/themes/components/checkbox.pyi +245 -208
- reflex/components/radix/themes/components/checkbox_cards.py +1 -1
- reflex/components/radix/themes/components/checkbox_cards.pyi +115 -94
- reflex/components/radix/themes/components/checkbox_group.py +1 -1
- reflex/components/radix/themes/components/checkbox_group.pyi +107 -86
- reflex/components/radix/themes/components/context_menu.py +1 -1
- reflex/components/radix/themes/components/context_menu.pyi +319 -238
- reflex/components/radix/themes/components/data_list.py +1 -1
- reflex/components/radix/themes/components/data_list.pyi +171 -130
- reflex/components/radix/themes/components/dialog.py +1 -1
- reflex/components/radix/themes/components/dialog.pyi +210 -139
- reflex/components/radix/themes/components/dropdown_menu.py +1 -1
- reflex/components/radix/themes/components/dropdown_menu.pyi +332 -249
- reflex/components/radix/themes/components/hover_card.py +1 -1
- reflex/components/radix/themes/components/hover_card.pyi +131 -90
- reflex/components/radix/themes/components/icon_button.py +3 -2
- reflex/components/radix/themes/components/icon_button.pyi +109 -98
- reflex/components/radix/themes/components/inset.py +1 -1
- reflex/components/radix/themes/components/inset.pyi +58 -47
- reflex/components/radix/themes/components/popover.py +1 -1
- reflex/components/radix/themes/components/popover.pyi +136 -95
- reflex/components/radix/themes/components/progress.py +1 -1
- reflex/components/radix/themes/components/progress.pyi +82 -71
- reflex/components/radix/themes/components/radio.py +1 -1
- reflex/components/radix/themes/components/radio.pyi +80 -69
- reflex/components/radix/themes/components/radio_cards.py +1 -1
- reflex/components/radix/themes/components/radio_cards.pyi +119 -98
- reflex/components/radix/themes/components/radio_group.py +11 -8
- reflex/components/radix/themes/components/radio_group.pyi +271 -228
- reflex/components/radix/themes/components/scroll_area.py +1 -1
- reflex/components/radix/themes/components/scroll_area.pyi +32 -21
- reflex/components/radix/themes/components/segmented_control.py +1 -1
- reflex/components/radix/themes/components/segmented_control.pyi +113 -90
- reflex/components/radix/themes/components/select.py +3 -2
- reflex/components/radix/themes/components/select.pyi +471 -374
- reflex/components/radix/themes/components/separator.py +2 -1
- reflex/components/radix/themes/components/separator.pyi +80 -69
- reflex/components/radix/themes/components/skeleton.py +1 -1
- reflex/components/radix/themes/components/skeleton.pyi +34 -23
- reflex/components/radix/themes/components/slider.py +3 -2
- reflex/components/radix/themes/components/slider.pyi +88 -75
- reflex/components/radix/themes/components/spinner.py +1 -1
- reflex/components/radix/themes/components/spinner.pyi +30 -19
- reflex/components/radix/themes/components/switch.py +1 -1
- reflex/components/radix/themes/components/switch.pyi +84 -71
- reflex/components/radix/themes/components/table.py +1 -1
- reflex/components/radix/themes/components/table.pyi +332 -261
- reflex/components/radix/themes/components/tabs.py +1 -1
- reflex/components/radix/themes/components/tabs.pyi +194 -139
- reflex/components/radix/themes/components/text_area.py +1 -1
- reflex/components/radix/themes/components/text_area.pyi +111 -96
- reflex/components/radix/themes/components/text_field.py +1 -1
- reflex/components/radix/themes/components/text_field.pyi +286 -247
- reflex/components/radix/themes/components/tooltip.py +1 -1
- reflex/components/radix/themes/components/tooltip.pyi +37 -26
- reflex/components/radix/themes/layout/__init__.pyi +0 -1
- reflex/components/radix/themes/layout/base.py +1 -1
- reflex/components/radix/themes/layout/base.pyi +67 -56
- reflex/components/radix/themes/layout/box.pyi +45 -34
- reflex/components/radix/themes/layout/center.pyi +67 -56
- reflex/components/radix/themes/layout/container.py +2 -1
- reflex/components/radix/themes/layout/container.pyi +47 -36
- reflex/components/radix/themes/layout/flex.py +1 -1
- reflex/components/radix/themes/layout/flex.pyi +67 -56
- reflex/components/radix/themes/layout/grid.py +1 -1
- reflex/components/radix/themes/layout/grid.pyi +75 -64
- reflex/components/radix/themes/layout/list.py +6 -5
- reflex/components/radix/themes/layout/list.pyi +244 -193
- reflex/components/radix/themes/layout/section.py +2 -1
- reflex/components/radix/themes/layout/section.pyi +47 -36
- reflex/components/radix/themes/layout/spacer.pyi +67 -56
- reflex/components/radix/themes/layout/stack.py +1 -1
- reflex/components/radix/themes/layout/stack.pyi +159 -128
- reflex/components/radix/themes/typography/blockquote.py +1 -1
- reflex/components/radix/themes/typography/blockquote.pyi +100 -89
- reflex/components/radix/themes/typography/code.py +1 -1
- reflex/components/radix/themes/typography/code.pyi +101 -90
- reflex/components/radix/themes/typography/heading.py +1 -1
- reflex/components/radix/themes/typography/heading.pyi +107 -96
- reflex/components/radix/themes/typography/link.py +1 -1
- reflex/components/radix/themes/typography/link.pyi +113 -102
- reflex/components/radix/themes/typography/text.py +1 -1
- reflex/components/radix/themes/typography/text.pyi +572 -501
- reflex/components/react_player/audio.pyi +60 -33
- reflex/components/react_player/react_player.py +1 -1
- reflex/components/react_player/react_player.pyi +60 -33
- reflex/components/react_player/video.pyi +60 -33
- reflex/components/recharts/cartesian.py +3 -2
- reflex/components/recharts/cartesian.pyi +861 -678
- reflex/components/recharts/charts.py +5 -4
- reflex/components/recharts/charts.pyi +357 -252
- reflex/components/recharts/general.py +2 -1
- reflex/components/recharts/general.pyi +231 -180
- reflex/components/recharts/polar.py +5 -4
- reflex/components/recharts/polar.pyi +181 -144
- reflex/components/recharts/recharts.pyi +53 -33
- reflex/components/sonner/toast.py +17 -16
- reflex/components/sonner/toast.pyi +47 -36
- reflex/components/suneditor/editor.py +3 -2
- reflex/components/suneditor/editor.pyi +78 -55
- reflex/components/tags/cond_tag.py +4 -6
- reflex/components/tags/iter_tag.py +16 -28
- reflex/components/tags/match_tag.py +4 -6
- reflex/components/tags/tag.py +23 -40
- reflex/custom_components/custom_components.py +1 -3
- reflex/event.py +65 -113
- reflex/experimental/client_state.py +24 -25
- reflex/experimental/hooks.py +16 -16
- reflex/experimental/layout.py +5 -5
- reflex/experimental/layout.pyi +187 -136
- reflex/{vars → ivars}/__init__.py +2 -6
- reflex/{vars → ivars}/base.py +216 -599
- reflex/{vars → ivars}/function.py +19 -15
- reflex/{vars → ivars}/number.py +20 -41
- reflex/{vars → ivars}/object.py +30 -28
- reflex/{vars → ivars}/sequence.py +50 -53
- reflex/middleware/hydrate_middleware.py +0 -2
- reflex/middleware/middleware.py +3 -3
- reflex/state.py +82 -148
- reflex/style.py +22 -21
- reflex/utils/exceptions.py +0 -20
- reflex/utils/format.py +34 -54
- reflex/utils/imports.py +73 -16
- reflex/utils/prerequisites.py +15 -35
- reflex/utils/pyi_generator.py +8 -13
- reflex/utils/serializers.py +22 -12
- reflex/utils/telemetry.py +2 -3
- reflex/utils/types.py +5 -10
- reflex/vars.py +501 -0
- {reflex-0.6.0.dist-info → reflex-0.6.0a1.dist-info}/METADATA +5 -4
- reflex-0.6.0a1.dist-info/RECORD +384 -0
- reflex-0.6.0.dist-info/RECORD +0 -382
- {reflex-0.6.0.dist-info → reflex-0.6.0a1.dist-info}/LICENSE +0 -0
- {reflex-0.6.0.dist-info → reflex-0.6.0a1.dist-info}/WHEEL +0 -0
- {reflex-0.6.0.dist-info → reflex-0.6.0a1.dist-info}/entry_points.txt +0 -0
|
@@ -8,8 +8,9 @@ from typing import Any, Callable, Dict, List, Literal, Optional, Union, overload
|
|
|
8
8
|
from reflex.components.component import ComponentNamespace
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
10
|
from reflex.event import EventHandler, EventSpec
|
|
11
|
+
from reflex.ivars.base import ImmutableVar
|
|
11
12
|
from reflex.style import Style
|
|
12
|
-
from reflex.vars
|
|
13
|
+
from reflex.vars import Var
|
|
13
14
|
|
|
14
15
|
from ..base import RadixThemesComponent
|
|
15
16
|
|
|
@@ -21,13 +22,13 @@ class SelectRoot(RadixThemesComponent):
|
|
|
21
22
|
*children,
|
|
22
23
|
size: Optional[
|
|
23
24
|
Union[
|
|
24
|
-
Breakpoints[str, Literal["1", "2", "3"]],
|
|
25
|
-
Literal["1", "2", "3"],
|
|
26
25
|
Var[
|
|
27
26
|
Union[
|
|
28
27
|
Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
|
|
29
28
|
]
|
|
30
29
|
],
|
|
30
|
+
Literal["1", "2", "3"],
|
|
31
|
+
Breakpoints[str, Literal["1", "2", "3"]],
|
|
31
32
|
]
|
|
32
33
|
] = None,
|
|
33
34
|
default_value: Optional[Union[Var[str], str]] = None,
|
|
@@ -42,45 +43,57 @@ class SelectRoot(RadixThemesComponent):
|
|
|
42
43
|
id: Optional[Any] = None,
|
|
43
44
|
class_name: Optional[Any] = None,
|
|
44
45
|
autofocus: Optional[bool] = None,
|
|
45
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
46
|
-
on_blur: Optional[
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
47
|
+
on_blur: Optional[
|
|
48
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
49
|
+
] = None,
|
|
50
|
+
on_change: Optional[
|
|
51
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
52
|
+
] = None,
|
|
53
|
+
on_click: Optional[
|
|
54
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
55
|
+
] = None,
|
|
49
56
|
on_context_menu: Optional[
|
|
50
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
57
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
51
58
|
] = None,
|
|
52
59
|
on_double_click: Optional[
|
|
53
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
60
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
61
|
+
] = None,
|
|
62
|
+
on_focus: Optional[
|
|
63
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
64
|
+
] = None,
|
|
65
|
+
on_mount: Optional[
|
|
66
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
54
67
|
] = None,
|
|
55
|
-
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
56
|
-
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
57
68
|
on_mouse_down: Optional[
|
|
58
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
69
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
59
70
|
] = None,
|
|
60
71
|
on_mouse_enter: Optional[
|
|
61
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
72
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
62
73
|
] = None,
|
|
63
74
|
on_mouse_leave: Optional[
|
|
64
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
75
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
65
76
|
] = None,
|
|
66
77
|
on_mouse_move: Optional[
|
|
67
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
78
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
68
79
|
] = None,
|
|
69
80
|
on_mouse_out: Optional[
|
|
70
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
81
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
71
82
|
] = None,
|
|
72
83
|
on_mouse_over: Optional[
|
|
73
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
84
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
74
85
|
] = None,
|
|
75
86
|
on_mouse_up: Optional[
|
|
76
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
87
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
77
88
|
] = None,
|
|
78
89
|
on_open_change: Optional[
|
|
79
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
90
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
91
|
+
] = None,
|
|
92
|
+
on_scroll: Optional[
|
|
93
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
80
94
|
] = None,
|
|
81
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
82
95
|
on_unmount: Optional[
|
|
83
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
96
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
84
97
|
] = None,
|
|
85
98
|
**props,
|
|
86
99
|
) -> "SelectRoot":
|
|
@@ -120,76 +133,76 @@ class SelectTrigger(RadixThemesComponent):
|
|
|
120
133
|
*children,
|
|
121
134
|
variant: Optional[
|
|
122
135
|
Union[
|
|
123
|
-
Literal["classic", "
|
|
124
|
-
|
|
136
|
+
Var[Literal["classic", "surface", "soft", "ghost"]],
|
|
137
|
+
Literal["classic", "surface", "soft", "ghost"],
|
|
125
138
|
]
|
|
126
139
|
] = None,
|
|
127
140
|
color_scheme: Optional[
|
|
128
141
|
Union[
|
|
129
|
-
Literal[
|
|
130
|
-
"amber",
|
|
131
|
-
"blue",
|
|
132
|
-
"bronze",
|
|
133
|
-
"brown",
|
|
134
|
-
"crimson",
|
|
135
|
-
"cyan",
|
|
136
|
-
"gold",
|
|
137
|
-
"grass",
|
|
138
|
-
"gray",
|
|
139
|
-
"green",
|
|
140
|
-
"indigo",
|
|
141
|
-
"iris",
|
|
142
|
-
"jade",
|
|
143
|
-
"lime",
|
|
144
|
-
"mint",
|
|
145
|
-
"orange",
|
|
146
|
-
"pink",
|
|
147
|
-
"plum",
|
|
148
|
-
"purple",
|
|
149
|
-
"red",
|
|
150
|
-
"ruby",
|
|
151
|
-
"sky",
|
|
152
|
-
"teal",
|
|
153
|
-
"tomato",
|
|
154
|
-
"violet",
|
|
155
|
-
"yellow",
|
|
156
|
-
],
|
|
157
142
|
Var[
|
|
158
143
|
Literal[
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"brown",
|
|
144
|
+
"tomato",
|
|
145
|
+
"red",
|
|
146
|
+
"ruby",
|
|
163
147
|
"crimson",
|
|
164
|
-
"cyan",
|
|
165
|
-
"gold",
|
|
166
|
-
"grass",
|
|
167
|
-
"gray",
|
|
168
|
-
"green",
|
|
169
|
-
"indigo",
|
|
170
|
-
"iris",
|
|
171
|
-
"jade",
|
|
172
|
-
"lime",
|
|
173
|
-
"mint",
|
|
174
|
-
"orange",
|
|
175
148
|
"pink",
|
|
176
149
|
"plum",
|
|
177
150
|
"purple",
|
|
178
|
-
"red",
|
|
179
|
-
"ruby",
|
|
180
|
-
"sky",
|
|
181
|
-
"teal",
|
|
182
|
-
"tomato",
|
|
183
151
|
"violet",
|
|
152
|
+
"iris",
|
|
153
|
+
"indigo",
|
|
154
|
+
"blue",
|
|
155
|
+
"cyan",
|
|
156
|
+
"teal",
|
|
157
|
+
"jade",
|
|
158
|
+
"green",
|
|
159
|
+
"grass",
|
|
160
|
+
"brown",
|
|
161
|
+
"orange",
|
|
162
|
+
"sky",
|
|
163
|
+
"mint",
|
|
164
|
+
"lime",
|
|
184
165
|
"yellow",
|
|
166
|
+
"amber",
|
|
167
|
+
"gold",
|
|
168
|
+
"bronze",
|
|
169
|
+
"gray",
|
|
185
170
|
]
|
|
186
171
|
],
|
|
172
|
+
Literal[
|
|
173
|
+
"tomato",
|
|
174
|
+
"red",
|
|
175
|
+
"ruby",
|
|
176
|
+
"crimson",
|
|
177
|
+
"pink",
|
|
178
|
+
"plum",
|
|
179
|
+
"purple",
|
|
180
|
+
"violet",
|
|
181
|
+
"iris",
|
|
182
|
+
"indigo",
|
|
183
|
+
"blue",
|
|
184
|
+
"cyan",
|
|
185
|
+
"teal",
|
|
186
|
+
"jade",
|
|
187
|
+
"green",
|
|
188
|
+
"grass",
|
|
189
|
+
"brown",
|
|
190
|
+
"orange",
|
|
191
|
+
"sky",
|
|
192
|
+
"mint",
|
|
193
|
+
"lime",
|
|
194
|
+
"yellow",
|
|
195
|
+
"amber",
|
|
196
|
+
"gold",
|
|
197
|
+
"bronze",
|
|
198
|
+
"gray",
|
|
199
|
+
],
|
|
187
200
|
]
|
|
188
201
|
] = None,
|
|
189
202
|
radius: Optional[
|
|
190
203
|
Union[
|
|
191
|
-
Literal["
|
|
192
|
-
|
|
204
|
+
Var[Literal["none", "small", "medium", "large", "full"]],
|
|
205
|
+
Literal["none", "small", "medium", "large", "full"],
|
|
193
206
|
]
|
|
194
207
|
] = None,
|
|
195
208
|
placeholder: Optional[Union[Var[str], str]] = None,
|
|
@@ -198,41 +211,51 @@ class SelectTrigger(RadixThemesComponent):
|
|
|
198
211
|
id: Optional[Any] = None,
|
|
199
212
|
class_name: Optional[Any] = None,
|
|
200
213
|
autofocus: Optional[bool] = None,
|
|
201
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
202
|
-
on_blur: Optional[
|
|
203
|
-
|
|
214
|
+
custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
215
|
+
on_blur: Optional[
|
|
216
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
217
|
+
] = None,
|
|
218
|
+
on_click: Optional[
|
|
219
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
220
|
+
] = None,
|
|
204
221
|
on_context_menu: Optional[
|
|
205
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
222
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
206
223
|
] = None,
|
|
207
224
|
on_double_click: Optional[
|
|
208
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
225
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
226
|
+
] = None,
|
|
227
|
+
on_focus: Optional[
|
|
228
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
229
|
+
] = None,
|
|
230
|
+
on_mount: Optional[
|
|
231
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
209
232
|
] = None,
|
|
210
|
-
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
211
|
-
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
212
233
|
on_mouse_down: Optional[
|
|
213
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
234
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
214
235
|
] = None,
|
|
215
236
|
on_mouse_enter: Optional[
|
|
216
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
237
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
217
238
|
] = None,
|
|
218
239
|
on_mouse_leave: Optional[
|
|
219
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
240
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
220
241
|
] = None,
|
|
221
242
|
on_mouse_move: Optional[
|
|
222
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
243
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
223
244
|
] = None,
|
|
224
245
|
on_mouse_out: Optional[
|
|
225
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
246
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
226
247
|
] = None,
|
|
227
248
|
on_mouse_over: Optional[
|
|
228
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
249
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
229
250
|
] = None,
|
|
230
251
|
on_mouse_up: Optional[
|
|
231
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
252
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
253
|
+
] = None,
|
|
254
|
+
on_scroll: Optional[
|
|
255
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
232
256
|
] = None,
|
|
233
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
234
257
|
on_unmount: Optional[
|
|
235
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
258
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
236
259
|
] = None,
|
|
237
260
|
**props,
|
|
238
261
|
) -> "SelectTrigger":
|
|
@@ -267,88 +290,88 @@ class SelectContent(RadixThemesComponent):
|
|
|
267
290
|
cls,
|
|
268
291
|
*children,
|
|
269
292
|
variant: Optional[
|
|
270
|
-
Union[Literal["
|
|
293
|
+
Union[Var[Literal["solid", "soft"]], Literal["solid", "soft"]]
|
|
271
294
|
] = None,
|
|
272
295
|
color_scheme: Optional[
|
|
273
296
|
Union[
|
|
274
|
-
Literal[
|
|
275
|
-
"amber",
|
|
276
|
-
"blue",
|
|
277
|
-
"bronze",
|
|
278
|
-
"brown",
|
|
279
|
-
"crimson",
|
|
280
|
-
"cyan",
|
|
281
|
-
"gold",
|
|
282
|
-
"grass",
|
|
283
|
-
"gray",
|
|
284
|
-
"green",
|
|
285
|
-
"indigo",
|
|
286
|
-
"iris",
|
|
287
|
-
"jade",
|
|
288
|
-
"lime",
|
|
289
|
-
"mint",
|
|
290
|
-
"orange",
|
|
291
|
-
"pink",
|
|
292
|
-
"plum",
|
|
293
|
-
"purple",
|
|
294
|
-
"red",
|
|
295
|
-
"ruby",
|
|
296
|
-
"sky",
|
|
297
|
-
"teal",
|
|
298
|
-
"tomato",
|
|
299
|
-
"violet",
|
|
300
|
-
"yellow",
|
|
301
|
-
],
|
|
302
297
|
Var[
|
|
303
298
|
Literal[
|
|
304
|
-
"
|
|
305
|
-
"
|
|
306
|
-
"
|
|
307
|
-
"brown",
|
|
299
|
+
"tomato",
|
|
300
|
+
"red",
|
|
301
|
+
"ruby",
|
|
308
302
|
"crimson",
|
|
309
|
-
"cyan",
|
|
310
|
-
"gold",
|
|
311
|
-
"grass",
|
|
312
|
-
"gray",
|
|
313
|
-
"green",
|
|
314
|
-
"indigo",
|
|
315
|
-
"iris",
|
|
316
|
-
"jade",
|
|
317
|
-
"lime",
|
|
318
|
-
"mint",
|
|
319
|
-
"orange",
|
|
320
303
|
"pink",
|
|
321
304
|
"plum",
|
|
322
305
|
"purple",
|
|
323
|
-
"red",
|
|
324
|
-
"ruby",
|
|
325
|
-
"sky",
|
|
326
|
-
"teal",
|
|
327
|
-
"tomato",
|
|
328
306
|
"violet",
|
|
307
|
+
"iris",
|
|
308
|
+
"indigo",
|
|
309
|
+
"blue",
|
|
310
|
+
"cyan",
|
|
311
|
+
"teal",
|
|
312
|
+
"jade",
|
|
313
|
+
"green",
|
|
314
|
+
"grass",
|
|
315
|
+
"brown",
|
|
316
|
+
"orange",
|
|
317
|
+
"sky",
|
|
318
|
+
"mint",
|
|
319
|
+
"lime",
|
|
329
320
|
"yellow",
|
|
321
|
+
"amber",
|
|
322
|
+
"gold",
|
|
323
|
+
"bronze",
|
|
324
|
+
"gray",
|
|
330
325
|
]
|
|
331
326
|
],
|
|
327
|
+
Literal[
|
|
328
|
+
"tomato",
|
|
329
|
+
"red",
|
|
330
|
+
"ruby",
|
|
331
|
+
"crimson",
|
|
332
|
+
"pink",
|
|
333
|
+
"plum",
|
|
334
|
+
"purple",
|
|
335
|
+
"violet",
|
|
336
|
+
"iris",
|
|
337
|
+
"indigo",
|
|
338
|
+
"blue",
|
|
339
|
+
"cyan",
|
|
340
|
+
"teal",
|
|
341
|
+
"jade",
|
|
342
|
+
"green",
|
|
343
|
+
"grass",
|
|
344
|
+
"brown",
|
|
345
|
+
"orange",
|
|
346
|
+
"sky",
|
|
347
|
+
"mint",
|
|
348
|
+
"lime",
|
|
349
|
+
"yellow",
|
|
350
|
+
"amber",
|
|
351
|
+
"gold",
|
|
352
|
+
"bronze",
|
|
353
|
+
"gray",
|
|
354
|
+
],
|
|
332
355
|
]
|
|
333
356
|
] = None,
|
|
334
357
|
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
|
335
358
|
position: Optional[
|
|
336
359
|
Union[
|
|
337
|
-
Literal["item-aligned", "popper"],
|
|
338
360
|
Var[Literal["item-aligned", "popper"]],
|
|
361
|
+
Literal["item-aligned", "popper"],
|
|
339
362
|
]
|
|
340
363
|
] = None,
|
|
341
364
|
side: Optional[
|
|
342
365
|
Union[
|
|
343
|
-
Literal["
|
|
344
|
-
|
|
366
|
+
Var[Literal["top", "right", "bottom", "left"]],
|
|
367
|
+
Literal["top", "right", "bottom", "left"],
|
|
345
368
|
]
|
|
346
369
|
] = None,
|
|
347
370
|
side_offset: Optional[Union[Var[int], int]] = None,
|
|
348
371
|
align: Optional[
|
|
349
372
|
Union[
|
|
350
|
-
Literal["
|
|
351
|
-
|
|
373
|
+
Var[Literal["start", "center", "end"]],
|
|
374
|
+
Literal["start", "center", "end"],
|
|
352
375
|
]
|
|
353
376
|
] = None,
|
|
354
377
|
align_offset: Optional[Union[Var[int], int]] = None,
|
|
@@ -357,50 +380,60 @@ class SelectContent(RadixThemesComponent):
|
|
|
357
380
|
id: Optional[Any] = None,
|
|
358
381
|
class_name: Optional[Any] = None,
|
|
359
382
|
autofocus: Optional[bool] = None,
|
|
360
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
361
|
-
on_blur: Optional[
|
|
362
|
-
|
|
383
|
+
custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
384
|
+
on_blur: Optional[
|
|
385
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
386
|
+
] = None,
|
|
387
|
+
on_click: Optional[
|
|
388
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
389
|
+
] = None,
|
|
363
390
|
on_close_auto_focus: Optional[
|
|
364
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
391
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
365
392
|
] = None,
|
|
366
393
|
on_context_menu: Optional[
|
|
367
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
394
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
368
395
|
] = None,
|
|
369
396
|
on_double_click: Optional[
|
|
370
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
397
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
371
398
|
] = None,
|
|
372
399
|
on_escape_key_down: Optional[
|
|
373
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
400
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
401
|
+
] = None,
|
|
402
|
+
on_focus: Optional[
|
|
403
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
404
|
+
] = None,
|
|
405
|
+
on_mount: Optional[
|
|
406
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
374
407
|
] = None,
|
|
375
|
-
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
376
|
-
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
377
408
|
on_mouse_down: Optional[
|
|
378
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
409
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
379
410
|
] = None,
|
|
380
411
|
on_mouse_enter: Optional[
|
|
381
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
412
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
382
413
|
] = None,
|
|
383
414
|
on_mouse_leave: Optional[
|
|
384
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
415
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
385
416
|
] = None,
|
|
386
417
|
on_mouse_move: Optional[
|
|
387
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
418
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
388
419
|
] = None,
|
|
389
420
|
on_mouse_out: Optional[
|
|
390
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
421
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
391
422
|
] = None,
|
|
392
423
|
on_mouse_over: Optional[
|
|
393
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
424
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
394
425
|
] = None,
|
|
395
426
|
on_mouse_up: Optional[
|
|
396
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
427
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
397
428
|
] = None,
|
|
398
429
|
on_pointer_down_outside: Optional[
|
|
399
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
430
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
431
|
+
] = None,
|
|
432
|
+
on_scroll: Optional[
|
|
433
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
400
434
|
] = None,
|
|
401
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
402
435
|
on_unmount: Optional[
|
|
403
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
436
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
404
437
|
] = None,
|
|
405
438
|
**props,
|
|
406
439
|
) -> "SelectContent":
|
|
@@ -443,41 +476,51 @@ class SelectGroup(RadixThemesComponent):
|
|
|
443
476
|
id: Optional[Any] = None,
|
|
444
477
|
class_name: Optional[Any] = None,
|
|
445
478
|
autofocus: Optional[bool] = None,
|
|
446
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
447
|
-
on_blur: Optional[
|
|
448
|
-
|
|
479
|
+
custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
480
|
+
on_blur: Optional[
|
|
481
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
482
|
+
] = None,
|
|
483
|
+
on_click: Optional[
|
|
484
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
485
|
+
] = None,
|
|
449
486
|
on_context_menu: Optional[
|
|
450
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
487
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
451
488
|
] = None,
|
|
452
489
|
on_double_click: Optional[
|
|
453
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
490
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
491
|
+
] = None,
|
|
492
|
+
on_focus: Optional[
|
|
493
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
494
|
+
] = None,
|
|
495
|
+
on_mount: Optional[
|
|
496
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
454
497
|
] = None,
|
|
455
|
-
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
456
|
-
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
457
498
|
on_mouse_down: Optional[
|
|
458
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
499
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
459
500
|
] = None,
|
|
460
501
|
on_mouse_enter: Optional[
|
|
461
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
502
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
462
503
|
] = None,
|
|
463
504
|
on_mouse_leave: Optional[
|
|
464
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
505
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
465
506
|
] = None,
|
|
466
507
|
on_mouse_move: Optional[
|
|
467
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
508
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
468
509
|
] = None,
|
|
469
510
|
on_mouse_out: Optional[
|
|
470
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
511
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
471
512
|
] = None,
|
|
472
513
|
on_mouse_over: Optional[
|
|
473
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
514
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
474
515
|
] = None,
|
|
475
516
|
on_mouse_up: Optional[
|
|
476
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
517
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
518
|
+
] = None,
|
|
519
|
+
on_scroll: Optional[
|
|
520
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
477
521
|
] = None,
|
|
478
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
479
522
|
on_unmount: Optional[
|
|
480
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
523
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
481
524
|
] = None,
|
|
482
525
|
**props,
|
|
483
526
|
) -> "SelectGroup":
|
|
@@ -514,41 +557,51 @@ class SelectItem(RadixThemesComponent):
|
|
|
514
557
|
id: Optional[Any] = None,
|
|
515
558
|
class_name: Optional[Any] = None,
|
|
516
559
|
autofocus: Optional[bool] = None,
|
|
517
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
518
|
-
on_blur: Optional[
|
|
519
|
-
|
|
560
|
+
custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
561
|
+
on_blur: Optional[
|
|
562
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
563
|
+
] = None,
|
|
564
|
+
on_click: Optional[
|
|
565
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
566
|
+
] = None,
|
|
520
567
|
on_context_menu: Optional[
|
|
521
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
568
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
522
569
|
] = None,
|
|
523
570
|
on_double_click: Optional[
|
|
524
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
571
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
572
|
+
] = None,
|
|
573
|
+
on_focus: Optional[
|
|
574
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
575
|
+
] = None,
|
|
576
|
+
on_mount: Optional[
|
|
577
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
525
578
|
] = None,
|
|
526
|
-
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
527
|
-
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
528
579
|
on_mouse_down: Optional[
|
|
529
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
580
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
530
581
|
] = None,
|
|
531
582
|
on_mouse_enter: Optional[
|
|
532
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
583
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
533
584
|
] = None,
|
|
534
585
|
on_mouse_leave: Optional[
|
|
535
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
586
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
536
587
|
] = None,
|
|
537
588
|
on_mouse_move: Optional[
|
|
538
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
589
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
539
590
|
] = None,
|
|
540
591
|
on_mouse_out: Optional[
|
|
541
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
592
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
542
593
|
] = None,
|
|
543
594
|
on_mouse_over: Optional[
|
|
544
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
595
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
545
596
|
] = None,
|
|
546
597
|
on_mouse_up: Optional[
|
|
547
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
598
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
599
|
+
] = None,
|
|
600
|
+
on_scroll: Optional[
|
|
601
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
548
602
|
] = None,
|
|
549
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
550
603
|
on_unmount: Optional[
|
|
551
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
604
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
552
605
|
] = None,
|
|
553
606
|
**props,
|
|
554
607
|
) -> "SelectItem":
|
|
@@ -585,41 +638,51 @@ class SelectLabel(RadixThemesComponent):
|
|
|
585
638
|
id: Optional[Any] = None,
|
|
586
639
|
class_name: Optional[Any] = None,
|
|
587
640
|
autofocus: Optional[bool] = None,
|
|
588
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
589
|
-
on_blur: Optional[
|
|
590
|
-
|
|
641
|
+
custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
642
|
+
on_blur: Optional[
|
|
643
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
644
|
+
] = None,
|
|
645
|
+
on_click: Optional[
|
|
646
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
647
|
+
] = None,
|
|
591
648
|
on_context_menu: Optional[
|
|
592
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
649
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
593
650
|
] = None,
|
|
594
651
|
on_double_click: Optional[
|
|
595
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
652
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
653
|
+
] = None,
|
|
654
|
+
on_focus: Optional[
|
|
655
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
656
|
+
] = None,
|
|
657
|
+
on_mount: Optional[
|
|
658
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
596
659
|
] = None,
|
|
597
|
-
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
598
|
-
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
599
660
|
on_mouse_down: Optional[
|
|
600
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
661
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
601
662
|
] = None,
|
|
602
663
|
on_mouse_enter: Optional[
|
|
603
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
664
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
604
665
|
] = None,
|
|
605
666
|
on_mouse_leave: Optional[
|
|
606
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
667
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
607
668
|
] = None,
|
|
608
669
|
on_mouse_move: Optional[
|
|
609
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
670
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
610
671
|
] = None,
|
|
611
672
|
on_mouse_out: Optional[
|
|
612
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
673
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
613
674
|
] = None,
|
|
614
675
|
on_mouse_over: Optional[
|
|
615
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
676
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
616
677
|
] = None,
|
|
617
678
|
on_mouse_up: Optional[
|
|
618
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
679
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
680
|
+
] = None,
|
|
681
|
+
on_scroll: Optional[
|
|
682
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
619
683
|
] = None,
|
|
620
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
621
684
|
on_unmount: Optional[
|
|
622
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
685
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
623
686
|
] = None,
|
|
624
687
|
**props,
|
|
625
688
|
) -> "SelectLabel":
|
|
@@ -654,41 +717,51 @@ class SelectSeparator(RadixThemesComponent):
|
|
|
654
717
|
id: Optional[Any] = None,
|
|
655
718
|
class_name: Optional[Any] = None,
|
|
656
719
|
autofocus: Optional[bool] = None,
|
|
657
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
658
|
-
on_blur: Optional[
|
|
659
|
-
|
|
720
|
+
custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
721
|
+
on_blur: Optional[
|
|
722
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
723
|
+
] = None,
|
|
724
|
+
on_click: Optional[
|
|
725
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
726
|
+
] = None,
|
|
660
727
|
on_context_menu: Optional[
|
|
661
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
728
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
662
729
|
] = None,
|
|
663
730
|
on_double_click: Optional[
|
|
664
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
731
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
732
|
+
] = None,
|
|
733
|
+
on_focus: Optional[
|
|
734
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
735
|
+
] = None,
|
|
736
|
+
on_mount: Optional[
|
|
737
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
665
738
|
] = None,
|
|
666
|
-
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
667
|
-
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
668
739
|
on_mouse_down: Optional[
|
|
669
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
740
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
670
741
|
] = None,
|
|
671
742
|
on_mouse_enter: Optional[
|
|
672
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
743
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
673
744
|
] = None,
|
|
674
745
|
on_mouse_leave: Optional[
|
|
675
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
746
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
676
747
|
] = None,
|
|
677
748
|
on_mouse_move: Optional[
|
|
678
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
749
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
679
750
|
] = None,
|
|
680
751
|
on_mouse_out: Optional[
|
|
681
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
752
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
682
753
|
] = None,
|
|
683
754
|
on_mouse_over: Optional[
|
|
684
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
755
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
685
756
|
] = None,
|
|
686
757
|
on_mouse_up: Optional[
|
|
687
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
758
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
759
|
+
] = None,
|
|
760
|
+
on_scroll: Optional[
|
|
761
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
688
762
|
] = None,
|
|
689
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
690
763
|
on_unmount: Optional[
|
|
691
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
764
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
692
765
|
] = None,
|
|
693
766
|
**props,
|
|
694
767
|
) -> "SelectSeparator":
|
|
@@ -718,100 +791,100 @@ class HighLevelSelect(SelectRoot):
|
|
|
718
791
|
def create( # type: ignore
|
|
719
792
|
cls,
|
|
720
793
|
*children,
|
|
721
|
-
items: Optional[Union[List[str],
|
|
794
|
+
items: Optional[Union[Var[List[str]], List[str]]] = None,
|
|
722
795
|
placeholder: Optional[Union[Var[str], str]] = None,
|
|
723
796
|
label: Optional[Union[Var[str], str]] = None,
|
|
724
797
|
color_scheme: Optional[
|
|
725
798
|
Union[
|
|
726
|
-
Literal[
|
|
727
|
-
"amber",
|
|
728
|
-
"blue",
|
|
729
|
-
"bronze",
|
|
730
|
-
"brown",
|
|
731
|
-
"crimson",
|
|
732
|
-
"cyan",
|
|
733
|
-
"gold",
|
|
734
|
-
"grass",
|
|
735
|
-
"gray",
|
|
736
|
-
"green",
|
|
737
|
-
"indigo",
|
|
738
|
-
"iris",
|
|
739
|
-
"jade",
|
|
740
|
-
"lime",
|
|
741
|
-
"mint",
|
|
742
|
-
"orange",
|
|
743
|
-
"pink",
|
|
744
|
-
"plum",
|
|
745
|
-
"purple",
|
|
746
|
-
"red",
|
|
747
|
-
"ruby",
|
|
748
|
-
"sky",
|
|
749
|
-
"teal",
|
|
750
|
-
"tomato",
|
|
751
|
-
"violet",
|
|
752
|
-
"yellow",
|
|
753
|
-
],
|
|
754
799
|
Var[
|
|
755
800
|
Literal[
|
|
756
|
-
"
|
|
757
|
-
"
|
|
758
|
-
"
|
|
759
|
-
"brown",
|
|
801
|
+
"tomato",
|
|
802
|
+
"red",
|
|
803
|
+
"ruby",
|
|
760
804
|
"crimson",
|
|
761
|
-
"cyan",
|
|
762
|
-
"gold",
|
|
763
|
-
"grass",
|
|
764
|
-
"gray",
|
|
765
|
-
"green",
|
|
766
|
-
"indigo",
|
|
767
|
-
"iris",
|
|
768
|
-
"jade",
|
|
769
|
-
"lime",
|
|
770
|
-
"mint",
|
|
771
|
-
"orange",
|
|
772
805
|
"pink",
|
|
773
806
|
"plum",
|
|
774
807
|
"purple",
|
|
775
|
-
"red",
|
|
776
|
-
"ruby",
|
|
777
|
-
"sky",
|
|
778
|
-
"teal",
|
|
779
|
-
"tomato",
|
|
780
808
|
"violet",
|
|
809
|
+
"iris",
|
|
810
|
+
"indigo",
|
|
811
|
+
"blue",
|
|
812
|
+
"cyan",
|
|
813
|
+
"teal",
|
|
814
|
+
"jade",
|
|
815
|
+
"green",
|
|
816
|
+
"grass",
|
|
817
|
+
"brown",
|
|
818
|
+
"orange",
|
|
819
|
+
"sky",
|
|
820
|
+
"mint",
|
|
821
|
+
"lime",
|
|
781
822
|
"yellow",
|
|
823
|
+
"amber",
|
|
824
|
+
"gold",
|
|
825
|
+
"bronze",
|
|
826
|
+
"gray",
|
|
782
827
|
]
|
|
783
828
|
],
|
|
829
|
+
Literal[
|
|
830
|
+
"tomato",
|
|
831
|
+
"red",
|
|
832
|
+
"ruby",
|
|
833
|
+
"crimson",
|
|
834
|
+
"pink",
|
|
835
|
+
"plum",
|
|
836
|
+
"purple",
|
|
837
|
+
"violet",
|
|
838
|
+
"iris",
|
|
839
|
+
"indigo",
|
|
840
|
+
"blue",
|
|
841
|
+
"cyan",
|
|
842
|
+
"teal",
|
|
843
|
+
"jade",
|
|
844
|
+
"green",
|
|
845
|
+
"grass",
|
|
846
|
+
"brown",
|
|
847
|
+
"orange",
|
|
848
|
+
"sky",
|
|
849
|
+
"mint",
|
|
850
|
+
"lime",
|
|
851
|
+
"yellow",
|
|
852
|
+
"amber",
|
|
853
|
+
"gold",
|
|
854
|
+
"bronze",
|
|
855
|
+
"gray",
|
|
856
|
+
],
|
|
784
857
|
]
|
|
785
858
|
] = None,
|
|
786
859
|
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
|
787
860
|
variant: Optional[
|
|
788
861
|
Union[
|
|
789
|
-
Literal["classic", "
|
|
790
|
-
|
|
862
|
+
Var[Literal["classic", "surface", "soft", "ghost"]],
|
|
863
|
+
Literal["classic", "surface", "soft", "ghost"],
|
|
791
864
|
]
|
|
792
865
|
] = None,
|
|
793
866
|
radius: Optional[
|
|
794
867
|
Union[
|
|
795
|
-
Literal["
|
|
796
|
-
|
|
868
|
+
Var[Literal["none", "small", "medium", "large", "full"]],
|
|
869
|
+
Literal["none", "small", "medium", "large", "full"],
|
|
797
870
|
]
|
|
798
871
|
] = None,
|
|
799
872
|
width: Optional[Union[Var[str], str]] = None,
|
|
800
873
|
position: Optional[
|
|
801
874
|
Union[
|
|
802
|
-
Literal["item-aligned", "popper"],
|
|
803
875
|
Var[Literal["item-aligned", "popper"]],
|
|
876
|
+
Literal["item-aligned", "popper"],
|
|
804
877
|
]
|
|
805
878
|
] = None,
|
|
806
879
|
size: Optional[
|
|
807
880
|
Union[
|
|
808
|
-
Breakpoints[str, Literal["1", "2", "3"]],
|
|
809
|
-
Literal["1", "2", "3"],
|
|
810
881
|
Var[
|
|
811
882
|
Union[
|
|
812
883
|
Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
|
|
813
884
|
]
|
|
814
885
|
],
|
|
886
|
+
Literal["1", "2", "3"],
|
|
887
|
+
Breakpoints[str, Literal["1", "2", "3"]],
|
|
815
888
|
]
|
|
816
889
|
] = None,
|
|
817
890
|
default_value: Optional[Union[Var[str], str]] = None,
|
|
@@ -826,45 +899,57 @@ class HighLevelSelect(SelectRoot):
|
|
|
826
899
|
id: Optional[Any] = None,
|
|
827
900
|
class_name: Optional[Any] = None,
|
|
828
901
|
autofocus: Optional[bool] = None,
|
|
829
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
830
|
-
on_blur: Optional[
|
|
831
|
-
|
|
832
|
-
|
|
902
|
+
custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
903
|
+
on_blur: Optional[
|
|
904
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
905
|
+
] = None,
|
|
906
|
+
on_change: Optional[
|
|
907
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
908
|
+
] = None,
|
|
909
|
+
on_click: Optional[
|
|
910
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
911
|
+
] = None,
|
|
833
912
|
on_context_menu: Optional[
|
|
834
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
913
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
835
914
|
] = None,
|
|
836
915
|
on_double_click: Optional[
|
|
837
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
916
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
917
|
+
] = None,
|
|
918
|
+
on_focus: Optional[
|
|
919
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
920
|
+
] = None,
|
|
921
|
+
on_mount: Optional[
|
|
922
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
838
923
|
] = None,
|
|
839
|
-
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
840
|
-
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
841
924
|
on_mouse_down: Optional[
|
|
842
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
925
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
843
926
|
] = None,
|
|
844
927
|
on_mouse_enter: Optional[
|
|
845
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
928
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
846
929
|
] = None,
|
|
847
930
|
on_mouse_leave: Optional[
|
|
848
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
931
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
849
932
|
] = None,
|
|
850
933
|
on_mouse_move: Optional[
|
|
851
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
934
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
852
935
|
] = None,
|
|
853
936
|
on_mouse_out: Optional[
|
|
854
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
937
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
855
938
|
] = None,
|
|
856
939
|
on_mouse_over: Optional[
|
|
857
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
940
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
858
941
|
] = None,
|
|
859
942
|
on_mouse_up: Optional[
|
|
860
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
943
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
861
944
|
] = None,
|
|
862
945
|
on_open_change: Optional[
|
|
863
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
946
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
947
|
+
] = None,
|
|
948
|
+
on_scroll: Optional[
|
|
949
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
864
950
|
] = None,
|
|
865
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
866
951
|
on_unmount: Optional[
|
|
867
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
952
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
868
953
|
] = None,
|
|
869
954
|
**props,
|
|
870
955
|
) -> "HighLevelSelect":
|
|
@@ -914,100 +999,100 @@ class Select(ComponentNamespace):
|
|
|
914
999
|
@staticmethod
|
|
915
1000
|
def __call__(
|
|
916
1001
|
*children,
|
|
917
|
-
items: Optional[Union[List[str],
|
|
1002
|
+
items: Optional[Union[Var[List[str]], List[str]]] = None,
|
|
918
1003
|
placeholder: Optional[Union[Var[str], str]] = None,
|
|
919
1004
|
label: Optional[Union[Var[str], str]] = None,
|
|
920
1005
|
color_scheme: Optional[
|
|
921
1006
|
Union[
|
|
922
|
-
Literal[
|
|
923
|
-
"amber",
|
|
924
|
-
"blue",
|
|
925
|
-
"bronze",
|
|
926
|
-
"brown",
|
|
927
|
-
"crimson",
|
|
928
|
-
"cyan",
|
|
929
|
-
"gold",
|
|
930
|
-
"grass",
|
|
931
|
-
"gray",
|
|
932
|
-
"green",
|
|
933
|
-
"indigo",
|
|
934
|
-
"iris",
|
|
935
|
-
"jade",
|
|
936
|
-
"lime",
|
|
937
|
-
"mint",
|
|
938
|
-
"orange",
|
|
939
|
-
"pink",
|
|
940
|
-
"plum",
|
|
941
|
-
"purple",
|
|
942
|
-
"red",
|
|
943
|
-
"ruby",
|
|
944
|
-
"sky",
|
|
945
|
-
"teal",
|
|
946
|
-
"tomato",
|
|
947
|
-
"violet",
|
|
948
|
-
"yellow",
|
|
949
|
-
],
|
|
950
1007
|
Var[
|
|
951
1008
|
Literal[
|
|
952
|
-
"
|
|
953
|
-
"
|
|
954
|
-
"
|
|
955
|
-
"brown",
|
|
1009
|
+
"tomato",
|
|
1010
|
+
"red",
|
|
1011
|
+
"ruby",
|
|
956
1012
|
"crimson",
|
|
957
|
-
"cyan",
|
|
958
|
-
"gold",
|
|
959
|
-
"grass",
|
|
960
|
-
"gray",
|
|
961
|
-
"green",
|
|
962
|
-
"indigo",
|
|
963
|
-
"iris",
|
|
964
|
-
"jade",
|
|
965
|
-
"lime",
|
|
966
|
-
"mint",
|
|
967
|
-
"orange",
|
|
968
1013
|
"pink",
|
|
969
1014
|
"plum",
|
|
970
1015
|
"purple",
|
|
971
|
-
"red",
|
|
972
|
-
"ruby",
|
|
973
|
-
"sky",
|
|
974
|
-
"teal",
|
|
975
|
-
"tomato",
|
|
976
1016
|
"violet",
|
|
1017
|
+
"iris",
|
|
1018
|
+
"indigo",
|
|
1019
|
+
"blue",
|
|
1020
|
+
"cyan",
|
|
1021
|
+
"teal",
|
|
1022
|
+
"jade",
|
|
1023
|
+
"green",
|
|
1024
|
+
"grass",
|
|
1025
|
+
"brown",
|
|
1026
|
+
"orange",
|
|
1027
|
+
"sky",
|
|
1028
|
+
"mint",
|
|
1029
|
+
"lime",
|
|
977
1030
|
"yellow",
|
|
1031
|
+
"amber",
|
|
1032
|
+
"gold",
|
|
1033
|
+
"bronze",
|
|
1034
|
+
"gray",
|
|
978
1035
|
]
|
|
979
1036
|
],
|
|
1037
|
+
Literal[
|
|
1038
|
+
"tomato",
|
|
1039
|
+
"red",
|
|
1040
|
+
"ruby",
|
|
1041
|
+
"crimson",
|
|
1042
|
+
"pink",
|
|
1043
|
+
"plum",
|
|
1044
|
+
"purple",
|
|
1045
|
+
"violet",
|
|
1046
|
+
"iris",
|
|
1047
|
+
"indigo",
|
|
1048
|
+
"blue",
|
|
1049
|
+
"cyan",
|
|
1050
|
+
"teal",
|
|
1051
|
+
"jade",
|
|
1052
|
+
"green",
|
|
1053
|
+
"grass",
|
|
1054
|
+
"brown",
|
|
1055
|
+
"orange",
|
|
1056
|
+
"sky",
|
|
1057
|
+
"mint",
|
|
1058
|
+
"lime",
|
|
1059
|
+
"yellow",
|
|
1060
|
+
"amber",
|
|
1061
|
+
"gold",
|
|
1062
|
+
"bronze",
|
|
1063
|
+
"gray",
|
|
1064
|
+
],
|
|
980
1065
|
]
|
|
981
1066
|
] = None,
|
|
982
1067
|
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
|
983
1068
|
variant: Optional[
|
|
984
1069
|
Union[
|
|
985
|
-
Literal["classic", "
|
|
986
|
-
|
|
1070
|
+
Var[Literal["classic", "surface", "soft", "ghost"]],
|
|
1071
|
+
Literal["classic", "surface", "soft", "ghost"],
|
|
987
1072
|
]
|
|
988
1073
|
] = None,
|
|
989
1074
|
radius: Optional[
|
|
990
1075
|
Union[
|
|
991
|
-
Literal["
|
|
992
|
-
|
|
1076
|
+
Var[Literal["none", "small", "medium", "large", "full"]],
|
|
1077
|
+
Literal["none", "small", "medium", "large", "full"],
|
|
993
1078
|
]
|
|
994
1079
|
] = None,
|
|
995
1080
|
width: Optional[Union[Var[str], str]] = None,
|
|
996
1081
|
position: Optional[
|
|
997
1082
|
Union[
|
|
998
|
-
Literal["item-aligned", "popper"],
|
|
999
1083
|
Var[Literal["item-aligned", "popper"]],
|
|
1084
|
+
Literal["item-aligned", "popper"],
|
|
1000
1085
|
]
|
|
1001
1086
|
] = None,
|
|
1002
1087
|
size: Optional[
|
|
1003
1088
|
Union[
|
|
1004
|
-
Breakpoints[str, Literal["1", "2", "3"]],
|
|
1005
|
-
Literal["1", "2", "3"],
|
|
1006
1089
|
Var[
|
|
1007
1090
|
Union[
|
|
1008
1091
|
Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
|
|
1009
1092
|
]
|
|
1010
1093
|
],
|
|
1094
|
+
Literal["1", "2", "3"],
|
|
1095
|
+
Breakpoints[str, Literal["1", "2", "3"]],
|
|
1011
1096
|
]
|
|
1012
1097
|
] = None,
|
|
1013
1098
|
default_value: Optional[Union[Var[str], str]] = None,
|
|
@@ -1022,45 +1107,57 @@ class Select(ComponentNamespace):
|
|
|
1022
1107
|
id: Optional[Any] = None,
|
|
1023
1108
|
class_name: Optional[Any] = None,
|
|
1024
1109
|
autofocus: Optional[bool] = None,
|
|
1025
|
-
custom_attrs: Optional[Dict[str, Union[
|
|
1026
|
-
on_blur: Optional[
|
|
1027
|
-
|
|
1028
|
-
|
|
1110
|
+
custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
1111
|
+
on_blur: Optional[
|
|
1112
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1113
|
+
] = None,
|
|
1114
|
+
on_change: Optional[
|
|
1115
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1116
|
+
] = None,
|
|
1117
|
+
on_click: Optional[
|
|
1118
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1119
|
+
] = None,
|
|
1029
1120
|
on_context_menu: Optional[
|
|
1030
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1121
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1031
1122
|
] = None,
|
|
1032
1123
|
on_double_click: Optional[
|
|
1033
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1124
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1125
|
+
] = None,
|
|
1126
|
+
on_focus: Optional[
|
|
1127
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1128
|
+
] = None,
|
|
1129
|
+
on_mount: Optional[
|
|
1130
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1034
1131
|
] = None,
|
|
1035
|
-
on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
1036
|
-
on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
1037
1132
|
on_mouse_down: Optional[
|
|
1038
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1133
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1039
1134
|
] = None,
|
|
1040
1135
|
on_mouse_enter: Optional[
|
|
1041
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1136
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1042
1137
|
] = None,
|
|
1043
1138
|
on_mouse_leave: Optional[
|
|
1044
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1139
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1045
1140
|
] = None,
|
|
1046
1141
|
on_mouse_move: Optional[
|
|
1047
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1142
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1048
1143
|
] = None,
|
|
1049
1144
|
on_mouse_out: Optional[
|
|
1050
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1145
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1051
1146
|
] = None,
|
|
1052
1147
|
on_mouse_over: Optional[
|
|
1053
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1148
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1054
1149
|
] = None,
|
|
1055
1150
|
on_mouse_up: Optional[
|
|
1056
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1151
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1057
1152
|
] = None,
|
|
1058
1153
|
on_open_change: Optional[
|
|
1059
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1154
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1155
|
+
] = None,
|
|
1156
|
+
on_scroll: Optional[
|
|
1157
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1060
1158
|
] = None,
|
|
1061
|
-
on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
1062
1159
|
on_unmount: Optional[
|
|
1063
|
-
Union[EventHandler, EventSpec, list, Callable,
|
|
1160
|
+
Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
1064
1161
|
] = None,
|
|
1065
1162
|
**props,
|
|
1066
1163
|
) -> "HighLevelSelect":
|