reflex 0.3.6__py3-none-any.whl → 0.3.7__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/pages/base_page.js.jinja2 +2 -0
- reflex/__init__.py +29 -6
- reflex/__init__.pyi +2 -0
- reflex/app.py +3 -0
- reflex/components/__init__.py +2 -0
- reflex/components/chakra/__init__.py +23 -0
- reflex/components/{media → chakra/media}/image.py +1 -28
- reflex/components/chakra/media/image.pyi +120 -0
- reflex/components/component.py +27 -2
- reflex/components/datadisplay/datatable.py +1 -37
- reflex/components/datadisplay/datatable.pyi +1 -11
- reflex/components/el/elements/forms.py +43 -1
- reflex/components/el/elements/forms.pyi +26 -1
- reflex/components/graphing/plotly.py +0 -22
- reflex/components/graphing/plotly.pyi +0 -12
- reflex/components/media/__init__.py +0 -1
- reflex/components/media/image.pyi +0 -9
- reflex/components/next/__init__.py +8 -0
- reflex/components/next/base.py +8 -0
- reflex/components/next/base.pyi +91 -0
- reflex/components/next/image.py +114 -0
- reflex/components/next/image.pyi +122 -0
- reflex/components/next/video.py +33 -0
- reflex/components/next/video.pyi +92 -0
- reflex/components/radix/primitives/__init__.py +3 -0
- reflex/components/radix/primitives/accordion.py +279 -0
- reflex/components/radix/primitives/accordion.pyi +619 -0
- reflex/components/radix/themes/__init__.py +4 -73
- reflex/components/radix/themes/base.py +7 -7
- reflex/components/radix/themes/base.pyi +21 -21
- reflex/components/radix/themes/components/__init__.py +193 -0
- reflex/components/radix/themes/components/alertdialog.py +72 -0
- reflex/components/radix/themes/components/alertdialog.pyi +733 -0
- reflex/components/radix/themes/components/aspectratio.py +20 -0
- reflex/components/radix/themes/components/aspectratio.pyi +144 -0
- reflex/components/radix/themes/components/avatar.py +38 -0
- reflex/components/radix/themes/components/avatar.pyi +233 -0
- reflex/components/radix/themes/components/badge.py +38 -0
- reflex/components/radix/themes/components/badge.pyi +291 -0
- reflex/components/radix/themes/components/button.py +39 -0
- reflex/components/radix/themes/components/button.pyi +330 -0
- reflex/components/radix/themes/components/callout.py +49 -0
- reflex/components/radix/themes/components/callout.pyi +668 -0
- reflex/components/radix/themes/components/card.py +25 -0
- reflex/components/radix/themes/components/card.pyi +214 -0
- reflex/components/radix/themes/components/checkbox.py +67 -0
- reflex/components/radix/themes/components/checkbox.pyi +249 -0
- reflex/components/radix/themes/components/contextmenu.py +134 -0
- reflex/components/radix/themes/{typography.pyi → components/contextmenu.pyi} +182 -602
- reflex/components/radix/themes/components/dialog.py +75 -0
- reflex/components/radix/themes/components/dialog.pyi +739 -0
- reflex/components/radix/themes/components/dropdownmenu.py +101 -0
- reflex/components/radix/themes/components/dropdownmenu.pyi +1065 -0
- reflex/components/radix/themes/components/hovercard.py +63 -0
- reflex/components/radix/themes/components/hovercard.pyi +487 -0
- reflex/components/radix/themes/components/iconbutton.py +39 -0
- reflex/components/radix/themes/components/iconbutton.pyi +332 -0
- reflex/components/radix/themes/components/icons.py +400 -0
- reflex/components/radix/themes/components/icons.pyi +185 -0
- reflex/components/radix/themes/components/inset.py +44 -0
- reflex/components/radix/themes/components/inset.pyi +230 -0
- reflex/components/radix/themes/components/popover.py +85 -0
- reflex/components/radix/themes/components/popover.pyi +634 -0
- reflex/components/radix/themes/components/radiogroup.py +72 -0
- reflex/components/radix/themes/components/radiogroup.pyi +369 -0
- reflex/components/radix/themes/components/scrollarea.py +31 -0
- reflex/components/radix/themes/components/scrollarea.pyi +165 -0
- reflex/components/radix/themes/components/select.py +137 -0
- reflex/components/radix/themes/{layout.pyi → components/select.pyi} +422 -418
- reflex/components/radix/themes/components/separator.py +30 -0
- reflex/components/radix/themes/components/separator.pyi +218 -0
- reflex/components/radix/themes/components/slider.py +68 -0
- reflex/components/radix/themes/components/slider.pyi +254 -0
- reflex/components/radix/themes/components/switch.py +68 -0
- reflex/components/radix/themes/components/switch.pyi +250 -0
- reflex/components/radix/themes/components/table.py +79 -0
- reflex/components/radix/themes/components/table.pyi +1485 -0
- reflex/components/radix/themes/components/tabs.py +65 -0
- reflex/components/radix/themes/components/tabs.pyi +549 -0
- reflex/components/radix/themes/components/textarea.py +68 -0
- reflex/components/radix/themes/components/textarea.pyi +333 -0
- reflex/components/radix/themes/{components.py → components/textfield.py} +3 -87
- reflex/components/radix/themes/{components.pyi → components/textfield.pyi} +202 -591
- reflex/components/radix/themes/layout/__init__.py +13 -0
- reflex/components/radix/themes/layout/base.py +48 -0
- reflex/components/radix/themes/layout/base.pyi +195 -0
- reflex/components/radix/themes/layout/box.py +12 -0
- reflex/components/radix/themes/layout/box.pyi +252 -0
- reflex/components/radix/themes/layout/container.py +23 -0
- reflex/components/radix/themes/layout/container.pyi +260 -0
- reflex/components/radix/themes/layout/flex.py +45 -0
- reflex/components/radix/themes/layout/flex.pyi +303 -0
- reflex/components/radix/themes/layout/grid.py +53 -0
- reflex/components/radix/themes/layout/grid.pyi +203 -0
- reflex/components/radix/themes/layout/section.py +20 -0
- reflex/components/radix/themes/layout/section.pyi +260 -0
- reflex/components/radix/themes/typography/__init__.py +21 -0
- reflex/components/radix/themes/typography/base.py +12 -0
- reflex/components/radix/themes/typography/blockquote.py +36 -0
- reflex/components/radix/themes/typography/blockquote.pyi +282 -0
- reflex/components/radix/themes/typography/code.py +40 -0
- reflex/components/radix/themes/typography/code.pyi +292 -0
- reflex/components/radix/themes/typography/em.py +18 -0
- reflex/components/radix/themes/typography/em.pyi +199 -0
- reflex/components/radix/themes/typography/heading.py +50 -0
- reflex/components/radix/themes/typography/heading.pyi +298 -0
- reflex/components/radix/themes/typography/kbd.py +25 -0
- reflex/components/radix/themes/typography/kbd.pyi +208 -0
- reflex/components/radix/themes/typography/link.py +49 -0
- reflex/components/radix/themes/typography/link.pyi +238 -0
- reflex/components/radix/themes/typography/quote.py +18 -0
- reflex/components/radix/themes/typography/quote.pyi +200 -0
- reflex/components/radix/themes/typography/strong.py +18 -0
- reflex/components/radix/themes/typography/strong.pyi +199 -0
- reflex/components/radix/themes/typography/text.py +50 -0
- reflex/components/radix/themes/typography/text.pyi +298 -0
- reflex/constants/__init__.py +1 -0
- reflex/constants/base.py +7 -0
- reflex/constants/config.py +1 -1
- reflex/model.py +2 -1
- reflex/reflex.py +5 -0
- reflex/state.py +11 -0
- reflex/style.py +120 -10
- reflex/testing.py +4 -4
- reflex/utils/format.py +9 -5
- reflex/utils/prerequisites.py +49 -6
- reflex/utils/processes.py +8 -1
- reflex/utils/serializers.py +83 -0
- reflex/utils/types.py +22 -1
- reflex/vars.py +24 -1
- {reflex-0.3.6.dist-info → reflex-0.3.7.dist-info}/METADATA +3 -2
- {reflex-0.3.6.dist-info → reflex-0.3.7.dist-info}/RECORD +135 -42
- reflex/components/radix/themes/layout.py +0 -155
- {reflex-0.3.6.dist-info → reflex-0.3.7.dist-info}/LICENSE +0 -0
- {reflex-0.3.6.dist-info → reflex-0.3.7.dist-info}/WHEEL +0 -0
- {reflex-0.3.6.dist-info → reflex-0.3.7.dist-info}/entry_points.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Stub file for reflex/components/radix/themes/
|
|
1
|
+
"""Stub file for reflex/components/radix/themes/components/select.py"""
|
|
2
2
|
# ------------------- DO NOT EDIT ----------------------
|
|
3
3
|
# This file was generated by `scripts/pyi_generator.py`!
|
|
4
4
|
# ------------------------------------------------------
|
|
@@ -7,108 +7,70 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|
|
7
7
|
from reflex.vars import Var, BaseVar, ComputedVar
|
|
8
8
|
from reflex.event import EventChain, EventHandler, EventSpec
|
|
9
9
|
from reflex.style import Style
|
|
10
|
-
from typing import Literal
|
|
10
|
+
from typing import Any, Dict, Literal
|
|
11
11
|
from reflex.vars import Var
|
|
12
|
-
from
|
|
12
|
+
from ..base import (
|
|
13
13
|
CommonMarginProps,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
LiteralSize,
|
|
14
|
+
LiteralAccentColor,
|
|
15
|
+
LiteralRadius,
|
|
17
16
|
RadixThemesComponent,
|
|
18
17
|
)
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
LiteralButtonSize = Literal[1, 2, 3, 4]
|
|
21
20
|
|
|
22
|
-
class
|
|
21
|
+
class SelectRoot(CommonMarginProps, RadixThemesComponent):
|
|
22
|
+
def get_event_triggers(self) -> Dict[str, Any]: ...
|
|
23
23
|
@overload
|
|
24
24
|
@classmethod
|
|
25
25
|
def create( # type: ignore
|
|
26
26
|
cls,
|
|
27
27
|
*children,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
] = None,
|
|
34
|
-
px: Optional[
|
|
35
|
-
Union[
|
|
36
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
37
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
38
|
-
]
|
|
39
|
-
] = None,
|
|
40
|
-
py: Optional[
|
|
41
|
-
Union[
|
|
42
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
43
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
44
|
-
]
|
|
45
|
-
] = None,
|
|
46
|
-
pt: Optional[
|
|
47
|
-
Union[
|
|
48
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
49
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
50
|
-
]
|
|
51
|
-
] = None,
|
|
52
|
-
pr: Optional[
|
|
53
|
-
Union[
|
|
54
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
55
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
56
|
-
]
|
|
57
|
-
] = None,
|
|
58
|
-
pb: Optional[
|
|
59
|
-
Union[
|
|
60
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
61
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
62
|
-
]
|
|
63
|
-
] = None,
|
|
64
|
-
pl: Optional[
|
|
65
|
-
Union[
|
|
66
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
67
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
68
|
-
]
|
|
69
|
-
] = None,
|
|
70
|
-
shrink: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
71
|
-
grow: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
28
|
+
size: Optional[Union[Var[Literal[1, 2, 3]], Literal[1, 2, 3]]] = None,
|
|
29
|
+
default_value: Optional[Union[Var[str], str]] = None,
|
|
30
|
+
value: Optional[Union[Var[str], str]] = None,
|
|
31
|
+
default_open: Optional[Union[Var[bool], bool]] = None,
|
|
32
|
+
open: Optional[Union[Var[bool], bool]] = None,
|
|
33
|
+
name: Optional[Union[Var[str], str]] = None,
|
|
72
34
|
m: Optional[
|
|
73
35
|
Union[
|
|
74
|
-
Var[Literal["
|
|
75
|
-
Literal["
|
|
36
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
37
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
76
38
|
]
|
|
77
39
|
] = None,
|
|
78
40
|
mx: Optional[
|
|
79
41
|
Union[
|
|
80
|
-
Var[Literal["
|
|
81
|
-
Literal["
|
|
42
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
43
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
82
44
|
]
|
|
83
45
|
] = None,
|
|
84
46
|
my: Optional[
|
|
85
47
|
Union[
|
|
86
|
-
Var[Literal["
|
|
87
|
-
Literal["
|
|
48
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
49
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
88
50
|
]
|
|
89
51
|
] = None,
|
|
90
52
|
mt: Optional[
|
|
91
53
|
Union[
|
|
92
|
-
Var[Literal["
|
|
93
|
-
Literal["
|
|
54
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
55
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
94
56
|
]
|
|
95
57
|
] = None,
|
|
96
58
|
mr: Optional[
|
|
97
59
|
Union[
|
|
98
|
-
Var[Literal["
|
|
99
|
-
Literal["
|
|
60
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
61
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
100
62
|
]
|
|
101
63
|
] = None,
|
|
102
64
|
mb: Optional[
|
|
103
65
|
Union[
|
|
104
|
-
Var[Literal["
|
|
105
|
-
Literal["
|
|
66
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
67
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
106
68
|
]
|
|
107
69
|
] = None,
|
|
108
70
|
ml: Optional[
|
|
109
71
|
Union[
|
|
110
|
-
Var[Literal["
|
|
111
|
-
Literal["
|
|
72
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
73
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
112
74
|
]
|
|
113
75
|
] = None,
|
|
114
76
|
style: Optional[Style] = None,
|
|
@@ -156,14 +118,20 @@ class LayoutComponent(CommonMarginProps, RadixThemesComponent):
|
|
|
156
118
|
on_mouse_up: Optional[
|
|
157
119
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
158
120
|
] = None,
|
|
121
|
+
on_open_change: Optional[
|
|
122
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
123
|
+
] = None,
|
|
159
124
|
on_scroll: Optional[
|
|
160
125
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
161
126
|
] = None,
|
|
162
127
|
on_unmount: Optional[
|
|
163
128
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
164
129
|
] = None,
|
|
130
|
+
on_value_change: Optional[
|
|
131
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
132
|
+
] = None,
|
|
165
133
|
**props
|
|
166
|
-
) -> "
|
|
134
|
+
) -> "SelectRoot":
|
|
167
135
|
"""Create a new component instance.
|
|
168
136
|
|
|
169
137
|
Will prepend "RadixThemes" to the component tag to avoid conflicts with
|
|
@@ -171,15 +139,12 @@ class LayoutComponent(CommonMarginProps, RadixThemesComponent):
|
|
|
171
139
|
|
|
172
140
|
Args:
|
|
173
141
|
*children: Child components.
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
pl: Padding left: "0" - "9"
|
|
181
|
-
shrink: Whether the element will take up the smallest possible space: "0" | "1"
|
|
182
|
-
grow: Whether the element will take up the largest possible space: "0" | "1"
|
|
142
|
+
size: The size of the select: "1" | "2" | "3"
|
|
143
|
+
default_value: The value of the select when initially rendered. Use when you do not need to control the state of the select.
|
|
144
|
+
value: The controlled value of the select. Use when you need to control the state of the select.
|
|
145
|
+
default_open: The open state of the select when it is initially rendered. Use when you do not need to control its open state.
|
|
146
|
+
open: The controlled open state of the select. Must be used in conjunction with onOpenChange.
|
|
147
|
+
name: The name of the select control when submitting the form.
|
|
183
148
|
m: Margin: "0" - "9"
|
|
184
149
|
mx: Margin horizontal: "0" - "9"
|
|
185
150
|
my: Margin vertical: "0" - "9"
|
|
@@ -200,96 +165,127 @@ class LayoutComponent(CommonMarginProps, RadixThemesComponent):
|
|
|
200
165
|
"""
|
|
201
166
|
...
|
|
202
167
|
|
|
203
|
-
class
|
|
168
|
+
class SelectTrigger(CommonMarginProps, RadixThemesComponent):
|
|
204
169
|
@overload
|
|
205
170
|
@classmethod
|
|
206
171
|
def create( # type: ignore
|
|
207
172
|
cls,
|
|
208
173
|
*children,
|
|
209
|
-
|
|
210
|
-
Union[
|
|
211
|
-
Var[Literal["
|
|
212
|
-
Literal["
|
|
213
|
-
]
|
|
214
|
-
] = None,
|
|
215
|
-
|
|
216
|
-
Union[
|
|
217
|
-
Var[
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
174
|
+
variant: Optional[
|
|
175
|
+
Union[
|
|
176
|
+
Var[Literal["classic", "surface", "soft", "ghost"]],
|
|
177
|
+
Literal["classic", "surface", "soft", "ghost"],
|
|
178
|
+
]
|
|
179
|
+
] = None,
|
|
180
|
+
color: Optional[
|
|
181
|
+
Union[
|
|
182
|
+
Var[
|
|
183
|
+
Literal[
|
|
184
|
+
"tomato",
|
|
185
|
+
"red",
|
|
186
|
+
"ruby",
|
|
187
|
+
"crimson",
|
|
188
|
+
"pink",
|
|
189
|
+
"plum",
|
|
190
|
+
"purple",
|
|
191
|
+
"violet",
|
|
192
|
+
"iris",
|
|
193
|
+
"indigo",
|
|
194
|
+
"blue",
|
|
195
|
+
"cyan",
|
|
196
|
+
"teal",
|
|
197
|
+
"jade",
|
|
198
|
+
"green",
|
|
199
|
+
"grass",
|
|
200
|
+
"brown",
|
|
201
|
+
"orange",
|
|
202
|
+
"sky",
|
|
203
|
+
"mint",
|
|
204
|
+
"lime",
|
|
205
|
+
"yellow",
|
|
206
|
+
"amber",
|
|
207
|
+
"gold",
|
|
208
|
+
"bronze",
|
|
209
|
+
"gray",
|
|
210
|
+
]
|
|
211
|
+
],
|
|
212
|
+
Literal[
|
|
213
|
+
"tomato",
|
|
214
|
+
"red",
|
|
215
|
+
"ruby",
|
|
216
|
+
"crimson",
|
|
217
|
+
"pink",
|
|
218
|
+
"plum",
|
|
219
|
+
"purple",
|
|
220
|
+
"violet",
|
|
221
|
+
"iris",
|
|
222
|
+
"indigo",
|
|
223
|
+
"blue",
|
|
224
|
+
"cyan",
|
|
225
|
+
"teal",
|
|
226
|
+
"jade",
|
|
227
|
+
"green",
|
|
228
|
+
"grass",
|
|
229
|
+
"brown",
|
|
230
|
+
"orange",
|
|
231
|
+
"sky",
|
|
232
|
+
"mint",
|
|
233
|
+
"lime",
|
|
234
|
+
"yellow",
|
|
235
|
+
"amber",
|
|
236
|
+
"gold",
|
|
237
|
+
"bronze",
|
|
238
|
+
"gray",
|
|
239
|
+
],
|
|
240
|
+
]
|
|
241
|
+
] = None,
|
|
242
|
+
radius: Optional[
|
|
243
|
+
Union[
|
|
244
|
+
Var[Literal["none", "small", "medium", "large", "full"]],
|
|
245
|
+
Literal["none", "small", "medium", "large", "full"],
|
|
246
|
+
]
|
|
247
|
+
] = None,
|
|
248
|
+
placeholder: Optional[Union[Var[str], str]] = None,
|
|
253
249
|
m: Optional[
|
|
254
250
|
Union[
|
|
255
|
-
Var[Literal["
|
|
256
|
-
Literal["
|
|
251
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
252
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
257
253
|
]
|
|
258
254
|
] = None,
|
|
259
255
|
mx: Optional[
|
|
260
256
|
Union[
|
|
261
|
-
Var[Literal["
|
|
262
|
-
Literal["
|
|
257
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
258
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
263
259
|
]
|
|
264
260
|
] = None,
|
|
265
261
|
my: Optional[
|
|
266
262
|
Union[
|
|
267
|
-
Var[Literal["
|
|
268
|
-
Literal["
|
|
263
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
264
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
269
265
|
]
|
|
270
266
|
] = None,
|
|
271
267
|
mt: Optional[
|
|
272
268
|
Union[
|
|
273
|
-
Var[Literal["
|
|
274
|
-
Literal["
|
|
269
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
270
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
275
271
|
]
|
|
276
272
|
] = None,
|
|
277
273
|
mr: Optional[
|
|
278
274
|
Union[
|
|
279
|
-
Var[Literal["
|
|
280
|
-
Literal["
|
|
275
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
276
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
281
277
|
]
|
|
282
278
|
] = None,
|
|
283
279
|
mb: Optional[
|
|
284
280
|
Union[
|
|
285
|
-
Var[Literal["
|
|
286
|
-
Literal["
|
|
281
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
282
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
287
283
|
]
|
|
288
284
|
] = None,
|
|
289
285
|
ml: Optional[
|
|
290
286
|
Union[
|
|
291
|
-
Var[Literal["
|
|
292
|
-
Literal["
|
|
287
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
288
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
293
289
|
]
|
|
294
290
|
] = None,
|
|
295
291
|
style: Optional[Style] = None,
|
|
@@ -344,7 +340,7 @@ class Box(LayoutComponent):
|
|
|
344
340
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
345
341
|
] = None,
|
|
346
342
|
**props
|
|
347
|
-
) -> "
|
|
343
|
+
) -> "SelectTrigger":
|
|
348
344
|
"""Create a new component instance.
|
|
349
345
|
|
|
350
346
|
Will prepend "RadixThemes" to the component tag to avoid conflicts with
|
|
@@ -352,15 +348,10 @@ class Box(LayoutComponent):
|
|
|
352
348
|
|
|
353
349
|
Args:
|
|
354
350
|
*children: Child components.
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
pr: Padding right: "0" - "9"
|
|
360
|
-
pb: Padding bottom: "0" - "9"
|
|
361
|
-
pl: Padding left: "0" - "9"
|
|
362
|
-
shrink: Whether the element will take up the smallest possible space: "0" | "1"
|
|
363
|
-
grow: Whether the element will take up the largest possible space: "0" | "1"
|
|
351
|
+
variant: Variant of the select trigger
|
|
352
|
+
color: The color of the select trigger
|
|
353
|
+
radius: The radius of the select trigger
|
|
354
|
+
placeholder: The placeholder of the select trigger
|
|
364
355
|
m: Margin: "0" - "9"
|
|
365
356
|
mx: Margin horizontal: "0" - "9"
|
|
366
357
|
my: Margin vertical: "0" - "9"
|
|
@@ -381,137 +372,284 @@ class Box(LayoutComponent):
|
|
|
381
372
|
"""
|
|
382
373
|
...
|
|
383
374
|
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
LiteralFlexWrap = Literal["nowrap", "wrap", "wrap-reverse"]
|
|
387
|
-
|
|
388
|
-
class Flex(LayoutComponent):
|
|
375
|
+
class SelectContent(CommonMarginProps, RadixThemesComponent):
|
|
376
|
+
def get_event_triggers(self) -> Dict[str, Any]: ...
|
|
389
377
|
@overload
|
|
390
378
|
@classmethod
|
|
391
379
|
def create( # type: ignore
|
|
392
380
|
cls,
|
|
393
381
|
*children,
|
|
394
|
-
|
|
395
|
-
|
|
382
|
+
variant: Optional[
|
|
383
|
+
Union[Var[Literal["solid", "soft"]], Literal["solid", "soft"]]
|
|
384
|
+
] = None,
|
|
385
|
+
color: Optional[
|
|
386
|
+
Union[
|
|
387
|
+
Var[
|
|
388
|
+
Literal[
|
|
389
|
+
"tomato",
|
|
390
|
+
"red",
|
|
391
|
+
"ruby",
|
|
392
|
+
"crimson",
|
|
393
|
+
"pink",
|
|
394
|
+
"plum",
|
|
395
|
+
"purple",
|
|
396
|
+
"violet",
|
|
397
|
+
"iris",
|
|
398
|
+
"indigo",
|
|
399
|
+
"blue",
|
|
400
|
+
"cyan",
|
|
401
|
+
"teal",
|
|
402
|
+
"jade",
|
|
403
|
+
"green",
|
|
404
|
+
"grass",
|
|
405
|
+
"brown",
|
|
406
|
+
"orange",
|
|
407
|
+
"sky",
|
|
408
|
+
"mint",
|
|
409
|
+
"lime",
|
|
410
|
+
"yellow",
|
|
411
|
+
"amber",
|
|
412
|
+
"gold",
|
|
413
|
+
"bronze",
|
|
414
|
+
"gray",
|
|
415
|
+
]
|
|
416
|
+
],
|
|
417
|
+
Literal[
|
|
418
|
+
"tomato",
|
|
419
|
+
"red",
|
|
420
|
+
"ruby",
|
|
421
|
+
"crimson",
|
|
422
|
+
"pink",
|
|
423
|
+
"plum",
|
|
424
|
+
"purple",
|
|
425
|
+
"violet",
|
|
426
|
+
"iris",
|
|
427
|
+
"indigo",
|
|
428
|
+
"blue",
|
|
429
|
+
"cyan",
|
|
430
|
+
"teal",
|
|
431
|
+
"jade",
|
|
432
|
+
"green",
|
|
433
|
+
"grass",
|
|
434
|
+
"brown",
|
|
435
|
+
"orange",
|
|
436
|
+
"sky",
|
|
437
|
+
"mint",
|
|
438
|
+
"lime",
|
|
439
|
+
"yellow",
|
|
440
|
+
"amber",
|
|
441
|
+
"gold",
|
|
442
|
+
"bronze",
|
|
443
|
+
"gray",
|
|
444
|
+
],
|
|
445
|
+
]
|
|
446
|
+
] = None,
|
|
447
|
+
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
|
448
|
+
position: Optional[
|
|
449
|
+
Union[
|
|
450
|
+
Var[Literal["item-aligned", "popper"]],
|
|
451
|
+
Literal["item-aligned", "popper"],
|
|
452
|
+
]
|
|
453
|
+
] = None,
|
|
454
|
+
side: Optional[
|
|
455
|
+
Union[
|
|
456
|
+
Var[Literal["top", "right", "bottom", "left"]],
|
|
457
|
+
Literal["top", "right", "bottom", "left"],
|
|
458
|
+
]
|
|
459
|
+
] = None,
|
|
460
|
+
side_offset: Optional[Union[Var[int], int]] = None,
|
|
461
|
+
align: Optional[
|
|
396
462
|
Union[
|
|
397
|
-
Var[Literal["
|
|
398
|
-
Literal["
|
|
463
|
+
Var[Literal["start", "center", "end"]],
|
|
464
|
+
Literal["start", "center", "end"],
|
|
399
465
|
]
|
|
400
466
|
] = None,
|
|
401
|
-
|
|
467
|
+
align_offset: Optional[Union[Var[int], int]] = None,
|
|
468
|
+
m: Optional[
|
|
402
469
|
Union[
|
|
403
|
-
Var[Literal["
|
|
404
|
-
Literal["
|
|
470
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
471
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
405
472
|
]
|
|
406
473
|
] = None,
|
|
407
|
-
|
|
474
|
+
mx: Optional[
|
|
408
475
|
Union[
|
|
409
|
-
Var[Literal["
|
|
410
|
-
Literal["
|
|
476
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
477
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
411
478
|
]
|
|
412
479
|
] = None,
|
|
413
|
-
|
|
480
|
+
my: Optional[
|
|
414
481
|
Union[
|
|
415
|
-
Var[Literal["
|
|
416
|
-
Literal["
|
|
482
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
483
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
417
484
|
]
|
|
418
485
|
] = None,
|
|
419
|
-
|
|
486
|
+
mt: Optional[
|
|
420
487
|
Union[
|
|
421
|
-
Var[Literal["
|
|
422
|
-
Literal["
|
|
488
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
489
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
423
490
|
]
|
|
424
491
|
] = None,
|
|
425
|
-
|
|
492
|
+
mr: Optional[
|
|
426
493
|
Union[
|
|
427
|
-
Var[Literal["
|
|
428
|
-
Literal["
|
|
494
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
495
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
429
496
|
]
|
|
430
497
|
] = None,
|
|
431
|
-
|
|
498
|
+
mb: Optional[
|
|
432
499
|
Union[
|
|
433
|
-
Var[Literal["
|
|
434
|
-
Literal["
|
|
500
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
501
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
435
502
|
]
|
|
436
503
|
] = None,
|
|
437
|
-
|
|
504
|
+
ml: Optional[
|
|
438
505
|
Union[
|
|
439
|
-
Var[Literal["
|
|
440
|
-
Literal["
|
|
506
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
507
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
441
508
|
]
|
|
442
509
|
] = None,
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
510
|
+
style: Optional[Style] = None,
|
|
511
|
+
key: Optional[Any] = None,
|
|
512
|
+
id: Optional[Any] = None,
|
|
513
|
+
class_name: Optional[Any] = None,
|
|
514
|
+
autofocus: Optional[bool] = None,
|
|
515
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
516
|
+
on_blur: Optional[
|
|
517
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
448
518
|
] = None,
|
|
449
|
-
|
|
450
|
-
Union[
|
|
451
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
452
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
453
|
-
]
|
|
519
|
+
on_click: Optional[
|
|
520
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
454
521
|
] = None,
|
|
455
|
-
|
|
456
|
-
Union[
|
|
457
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
458
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
459
|
-
]
|
|
522
|
+
on_close_auto_focus: Optional[
|
|
523
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
460
524
|
] = None,
|
|
461
|
-
|
|
462
|
-
Union[
|
|
463
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
464
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
465
|
-
]
|
|
525
|
+
on_context_menu: Optional[
|
|
526
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
466
527
|
] = None,
|
|
467
|
-
|
|
468
|
-
Union[
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
]
|
|
528
|
+
on_double_click: Optional[
|
|
529
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
530
|
+
] = None,
|
|
531
|
+
on_escape_key_down: Optional[
|
|
532
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
533
|
+
] = None,
|
|
534
|
+
on_focus: Optional[
|
|
535
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
536
|
+
] = None,
|
|
537
|
+
on_mount: Optional[
|
|
538
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
539
|
+
] = None,
|
|
540
|
+
on_mouse_down: Optional[
|
|
541
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
542
|
+
] = None,
|
|
543
|
+
on_mouse_enter: Optional[
|
|
544
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
545
|
+
] = None,
|
|
546
|
+
on_mouse_leave: Optional[
|
|
547
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
548
|
+
] = None,
|
|
549
|
+
on_mouse_move: Optional[
|
|
550
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
551
|
+
] = None,
|
|
552
|
+
on_mouse_out: Optional[
|
|
553
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
554
|
+
] = None,
|
|
555
|
+
on_mouse_over: Optional[
|
|
556
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
557
|
+
] = None,
|
|
558
|
+
on_mouse_up: Optional[
|
|
559
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
560
|
+
] = None,
|
|
561
|
+
on_pointer_down_outside: Optional[
|
|
562
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
563
|
+
] = None,
|
|
564
|
+
on_scroll: Optional[
|
|
565
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
472
566
|
] = None,
|
|
473
|
-
|
|
474
|
-
|
|
567
|
+
on_unmount: Optional[
|
|
568
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
569
|
+
] = None,
|
|
570
|
+
**props
|
|
571
|
+
) -> "SelectContent":
|
|
572
|
+
"""Create a new component instance.
|
|
573
|
+
|
|
574
|
+
Will prepend "RadixThemes" to the component tag to avoid conflicts with
|
|
575
|
+
other UI libraries for common names, like Text and Button.
|
|
576
|
+
|
|
577
|
+
Args:
|
|
578
|
+
*children: Child components.
|
|
579
|
+
variant: The variant of the select content
|
|
580
|
+
color: The color of the select content
|
|
581
|
+
high_contrast: Whether to render the select content with higher contrast color against background
|
|
582
|
+
position: The positioning mode to use, item-aligned is the default and behaves similarly to a native MacOS menu by positioning content relative to the active item. popper positions content in the same way as our other primitives, for example Popover or DropdownMenu.
|
|
583
|
+
side: The preferred side of the anchor to render against when open. Will be reversed when collisions occur and avoidCollisions is enabled. Only available when position is set to popper.
|
|
584
|
+
side_offset: The distance in pixels from the anchor. Only available when position is set to popper.
|
|
585
|
+
align: The preferred alignment against the anchor. May change when collisions occur. Only available when position is set to popper.
|
|
586
|
+
align_offset: The vertical distance in pixels from the anchor. Only available when position is set to popper.
|
|
587
|
+
m: Margin: "0" - "9"
|
|
588
|
+
mx: Margin horizontal: "0" - "9"
|
|
589
|
+
my: Margin vertical: "0" - "9"
|
|
590
|
+
mt: Margin top: "0" - "9"
|
|
591
|
+
mr: Margin right: "0" - "9"
|
|
592
|
+
mb: Margin bottom: "0" - "9"
|
|
593
|
+
ml: Margin left: "0" - "9"
|
|
594
|
+
style: The style of the component.
|
|
595
|
+
key: A unique key for the component.
|
|
596
|
+
id: The id for the component.
|
|
597
|
+
class_name: The class name for the component.
|
|
598
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
599
|
+
custom_attrs: custom attribute
|
|
600
|
+
**props: Component properties.
|
|
601
|
+
|
|
602
|
+
Returns:
|
|
603
|
+
A new component instance.
|
|
604
|
+
"""
|
|
605
|
+
...
|
|
606
|
+
|
|
607
|
+
class SelectGroup(CommonMarginProps, RadixThemesComponent):
|
|
608
|
+
@overload
|
|
609
|
+
@classmethod
|
|
610
|
+
def create( # type: ignore
|
|
611
|
+
cls,
|
|
612
|
+
*children,
|
|
475
613
|
m: Optional[
|
|
476
614
|
Union[
|
|
477
|
-
Var[Literal["
|
|
478
|
-
Literal["
|
|
615
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
616
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
479
617
|
]
|
|
480
618
|
] = None,
|
|
481
619
|
mx: Optional[
|
|
482
620
|
Union[
|
|
483
|
-
Var[Literal["
|
|
484
|
-
Literal["
|
|
621
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
622
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
485
623
|
]
|
|
486
624
|
] = None,
|
|
487
625
|
my: Optional[
|
|
488
626
|
Union[
|
|
489
|
-
Var[Literal["
|
|
490
|
-
Literal["
|
|
627
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
628
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
491
629
|
]
|
|
492
630
|
] = None,
|
|
493
631
|
mt: Optional[
|
|
494
632
|
Union[
|
|
495
|
-
Var[Literal["
|
|
496
|
-
Literal["
|
|
633
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
634
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
497
635
|
]
|
|
498
636
|
] = None,
|
|
499
637
|
mr: Optional[
|
|
500
638
|
Union[
|
|
501
|
-
Var[Literal["
|
|
502
|
-
Literal["
|
|
639
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
640
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
503
641
|
]
|
|
504
642
|
] = None,
|
|
505
643
|
mb: Optional[
|
|
506
644
|
Union[
|
|
507
|
-
Var[Literal["
|
|
508
|
-
Literal["
|
|
645
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
646
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
509
647
|
]
|
|
510
648
|
] = None,
|
|
511
649
|
ml: Optional[
|
|
512
650
|
Union[
|
|
513
|
-
Var[Literal["
|
|
514
|
-
Literal["
|
|
651
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
652
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
515
653
|
]
|
|
516
654
|
] = None,
|
|
517
655
|
style: Optional[Style] = None,
|
|
@@ -566,7 +704,7 @@ class Flex(LayoutComponent):
|
|
|
566
704
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
567
705
|
] = None,
|
|
568
706
|
**props
|
|
569
|
-
) -> "
|
|
707
|
+
) -> "SelectGroup":
|
|
570
708
|
"""Create a new component instance.
|
|
571
709
|
|
|
572
710
|
Will prepend "RadixThemes" to the component tag to avoid conflicts with
|
|
@@ -574,22 +712,6 @@ class Flex(LayoutComponent):
|
|
|
574
712
|
|
|
575
713
|
Args:
|
|
576
714
|
*children: Child components.
|
|
577
|
-
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
578
|
-
display: How to display the element: "none" | "inline-flex" | "flex"
|
|
579
|
-
direction: How child items are layed out: "row" | "column" | "row-reverse" | "column-reverse"
|
|
580
|
-
align: Alignment of children along the main axis: "start" | "center" | "end" | "baseline" | "stretch"
|
|
581
|
-
justify: Alignment of children along the cross axis: "start" | "center" | "end" | "between"
|
|
582
|
-
wrap: Whether children should wrap when they reach the end of their container: "nowrap" | "wrap" | "wrap-reverse"
|
|
583
|
-
gap: Gap between children: "0" - "9"
|
|
584
|
-
p: Padding: "0" - "9"
|
|
585
|
-
px: Padding horizontal: "0" - "9"
|
|
586
|
-
py: Padding vertical: "0" - "9"
|
|
587
|
-
pt: Padding top: "0" - "9"
|
|
588
|
-
pr: Padding right: "0" - "9"
|
|
589
|
-
pb: Padding bottom: "0" - "9"
|
|
590
|
-
pl: Padding left: "0" - "9"
|
|
591
|
-
shrink: Whether the element will take up the smallest possible space: "0" | "1"
|
|
592
|
-
grow: Whether the element will take up the largest possible space: "0" | "1"
|
|
593
715
|
m: Margin: "0" - "9"
|
|
594
716
|
mx: Margin horizontal: "0" - "9"
|
|
595
717
|
my: Margin vertical: "0" - "9"
|
|
@@ -610,52 +732,53 @@ class Flex(LayoutComponent):
|
|
|
610
732
|
"""
|
|
611
733
|
...
|
|
612
734
|
|
|
613
|
-
|
|
614
|
-
LiteralGridFlow = Literal["row", "column", "dense", "row-dense", "column-dense"]
|
|
615
|
-
|
|
616
|
-
class Grid(RadixThemesComponent):
|
|
735
|
+
class SelectItem(CommonMarginProps, RadixThemesComponent):
|
|
617
736
|
@overload
|
|
618
737
|
@classmethod
|
|
619
738
|
def create( # type: ignore
|
|
620
739
|
cls,
|
|
621
740
|
*children,
|
|
622
|
-
|
|
623
|
-
|
|
741
|
+
value: Optional[Union[Var[str], str]] = None,
|
|
742
|
+
m: Optional[
|
|
624
743
|
Union[
|
|
625
|
-
Var[Literal["
|
|
626
|
-
Literal["
|
|
744
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
745
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
627
746
|
]
|
|
628
747
|
] = None,
|
|
629
|
-
|
|
630
|
-
rows: Optional[Union[Var[str], str]] = None,
|
|
631
|
-
flow: Optional[
|
|
748
|
+
mx: Optional[
|
|
632
749
|
Union[
|
|
633
|
-
Var[Literal["
|
|
634
|
-
Literal["
|
|
750
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
751
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
635
752
|
]
|
|
636
753
|
] = None,
|
|
637
|
-
|
|
754
|
+
my: Optional[
|
|
638
755
|
Union[
|
|
639
|
-
Var[Literal["
|
|
640
|
-
Literal["
|
|
756
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
757
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
641
758
|
]
|
|
642
759
|
] = None,
|
|
643
|
-
|
|
760
|
+
mt: Optional[
|
|
761
|
+
Union[
|
|
762
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
763
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
764
|
+
]
|
|
765
|
+
] = None,
|
|
766
|
+
mr: Optional[
|
|
644
767
|
Union[
|
|
645
|
-
Var[Literal["
|
|
646
|
-
Literal["
|
|
768
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
769
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
647
770
|
]
|
|
648
771
|
] = None,
|
|
649
|
-
|
|
772
|
+
mb: Optional[
|
|
650
773
|
Union[
|
|
651
|
-
Var[Literal["
|
|
652
|
-
Literal["
|
|
774
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
775
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
653
776
|
]
|
|
654
777
|
] = None,
|
|
655
|
-
|
|
778
|
+
ml: Optional[
|
|
656
779
|
Union[
|
|
657
|
-
Var[Literal["
|
|
658
|
-
Literal["
|
|
780
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
781
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
659
782
|
]
|
|
660
783
|
] = None,
|
|
661
784
|
style: Optional[Style] = None,
|
|
@@ -710,7 +833,7 @@ class Grid(RadixThemesComponent):
|
|
|
710
833
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
711
834
|
] = None,
|
|
712
835
|
**props
|
|
713
|
-
) -> "
|
|
836
|
+
) -> "SelectItem":
|
|
714
837
|
"""Create a new component instance.
|
|
715
838
|
|
|
716
839
|
Will prepend "RadixThemes" to the component tag to avoid conflicts with
|
|
@@ -718,15 +841,14 @@ class Grid(RadixThemesComponent):
|
|
|
718
841
|
|
|
719
842
|
Args:
|
|
720
843
|
*children: Child components.
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
gap_x: Gap between children vertical: "0" - "9"
|
|
844
|
+
value: The value of the select item when submitting the form.
|
|
845
|
+
m: Margin: "0" - "9"
|
|
846
|
+
mx: Margin horizontal: "0" - "9"
|
|
847
|
+
my: Margin vertical: "0" - "9"
|
|
848
|
+
mt: Margin top: "0" - "9"
|
|
849
|
+
mr: Margin right: "0" - "9"
|
|
850
|
+
mb: Margin bottom: "0" - "9"
|
|
851
|
+
ml: Margin left: "0" - "9"
|
|
730
852
|
style: The style of the component.
|
|
731
853
|
key: A unique key for the component.
|
|
732
854
|
id: The id for the component.
|
|
@@ -740,101 +862,52 @@ class Grid(RadixThemesComponent):
|
|
|
740
862
|
"""
|
|
741
863
|
...
|
|
742
864
|
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
class Container(LayoutComponent):
|
|
865
|
+
class SelectLabel(CommonMarginProps, RadixThemesComponent):
|
|
746
866
|
@overload
|
|
747
867
|
@classmethod
|
|
748
868
|
def create( # type: ignore
|
|
749
869
|
cls,
|
|
750
870
|
*children,
|
|
751
|
-
size: Optional[
|
|
752
|
-
Union[Var[Literal["1", "2", "3", "4"]], Literal["1", "2", "3", "4"]]
|
|
753
|
-
] = None,
|
|
754
|
-
p: Optional[
|
|
755
|
-
Union[
|
|
756
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
757
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
758
|
-
]
|
|
759
|
-
] = None,
|
|
760
|
-
px: Optional[
|
|
761
|
-
Union[
|
|
762
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
763
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
764
|
-
]
|
|
765
|
-
] = None,
|
|
766
|
-
py: Optional[
|
|
767
|
-
Union[
|
|
768
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
769
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
770
|
-
]
|
|
771
|
-
] = None,
|
|
772
|
-
pt: Optional[
|
|
773
|
-
Union[
|
|
774
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
775
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
776
|
-
]
|
|
777
|
-
] = None,
|
|
778
|
-
pr: Optional[
|
|
779
|
-
Union[
|
|
780
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
781
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
782
|
-
]
|
|
783
|
-
] = None,
|
|
784
|
-
pb: Optional[
|
|
785
|
-
Union[
|
|
786
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
787
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
788
|
-
]
|
|
789
|
-
] = None,
|
|
790
|
-
pl: Optional[
|
|
791
|
-
Union[
|
|
792
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
793
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
794
|
-
]
|
|
795
|
-
] = None,
|
|
796
|
-
shrink: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
797
|
-
grow: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
798
871
|
m: Optional[
|
|
799
872
|
Union[
|
|
800
|
-
Var[Literal["
|
|
801
|
-
Literal["
|
|
873
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
874
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
802
875
|
]
|
|
803
876
|
] = None,
|
|
804
877
|
mx: Optional[
|
|
805
878
|
Union[
|
|
806
|
-
Var[Literal["
|
|
807
|
-
Literal["
|
|
879
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
880
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
808
881
|
]
|
|
809
882
|
] = None,
|
|
810
883
|
my: Optional[
|
|
811
884
|
Union[
|
|
812
|
-
Var[Literal["
|
|
813
|
-
Literal["
|
|
885
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
886
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
814
887
|
]
|
|
815
888
|
] = None,
|
|
816
889
|
mt: Optional[
|
|
817
890
|
Union[
|
|
818
|
-
Var[Literal["
|
|
819
|
-
Literal["
|
|
891
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
892
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
820
893
|
]
|
|
821
894
|
] = None,
|
|
822
895
|
mr: Optional[
|
|
823
896
|
Union[
|
|
824
|
-
Var[Literal["
|
|
825
|
-
Literal["
|
|
897
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
898
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
826
899
|
]
|
|
827
900
|
] = None,
|
|
828
901
|
mb: Optional[
|
|
829
902
|
Union[
|
|
830
|
-
Var[Literal["
|
|
831
|
-
Literal["
|
|
903
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
904
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
832
905
|
]
|
|
833
906
|
] = None,
|
|
834
907
|
ml: Optional[
|
|
835
908
|
Union[
|
|
836
|
-
Var[Literal["
|
|
837
|
-
Literal["
|
|
909
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
910
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
838
911
|
]
|
|
839
912
|
] = None,
|
|
840
913
|
style: Optional[Style] = None,
|
|
@@ -889,7 +962,7 @@ class Container(LayoutComponent):
|
|
|
889
962
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
890
963
|
] = None,
|
|
891
964
|
**props
|
|
892
|
-
) -> "
|
|
965
|
+
) -> "SelectLabel":
|
|
893
966
|
"""Create a new component instance.
|
|
894
967
|
|
|
895
968
|
Will prepend "RadixThemes" to the component tag to avoid conflicts with
|
|
@@ -897,16 +970,6 @@ class Container(LayoutComponent):
|
|
|
897
970
|
|
|
898
971
|
Args:
|
|
899
972
|
*children: Child components.
|
|
900
|
-
size: The size of the container: "1" - "4" (default "4")
|
|
901
|
-
p: Padding: "0" - "9"
|
|
902
|
-
px: Padding horizontal: "0" - "9"
|
|
903
|
-
py: Padding vertical: "0" - "9"
|
|
904
|
-
pt: Padding top: "0" - "9"
|
|
905
|
-
pr: Padding right: "0" - "9"
|
|
906
|
-
pb: Padding bottom: "0" - "9"
|
|
907
|
-
pl: Padding left: "0" - "9"
|
|
908
|
-
shrink: Whether the element will take up the smallest possible space: "0" | "1"
|
|
909
|
-
grow: Whether the element will take up the largest possible space: "0" | "1"
|
|
910
973
|
m: Margin: "0" - "9"
|
|
911
974
|
mx: Margin horizontal: "0" - "9"
|
|
912
975
|
my: Margin vertical: "0" - "9"
|
|
@@ -927,101 +990,52 @@ class Container(LayoutComponent):
|
|
|
927
990
|
"""
|
|
928
991
|
...
|
|
929
992
|
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
class Section(LayoutComponent):
|
|
993
|
+
class SelectSeparator(CommonMarginProps, RadixThemesComponent):
|
|
933
994
|
@overload
|
|
934
995
|
@classmethod
|
|
935
996
|
def create( # type: ignore
|
|
936
997
|
cls,
|
|
937
998
|
*children,
|
|
938
|
-
size: Optional[
|
|
939
|
-
Union[Var[Literal["1", "2", "3"]], Literal["1", "2", "3"]]
|
|
940
|
-
] = None,
|
|
941
|
-
p: Optional[
|
|
942
|
-
Union[
|
|
943
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
944
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
945
|
-
]
|
|
946
|
-
] = None,
|
|
947
|
-
px: Optional[
|
|
948
|
-
Union[
|
|
949
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
950
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
951
|
-
]
|
|
952
|
-
] = None,
|
|
953
|
-
py: Optional[
|
|
954
|
-
Union[
|
|
955
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
956
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
957
|
-
]
|
|
958
|
-
] = None,
|
|
959
|
-
pt: Optional[
|
|
960
|
-
Union[
|
|
961
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
962
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
963
|
-
]
|
|
964
|
-
] = None,
|
|
965
|
-
pr: Optional[
|
|
966
|
-
Union[
|
|
967
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
968
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
969
|
-
]
|
|
970
|
-
] = None,
|
|
971
|
-
pb: Optional[
|
|
972
|
-
Union[
|
|
973
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
974
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
975
|
-
]
|
|
976
|
-
] = None,
|
|
977
|
-
pl: Optional[
|
|
978
|
-
Union[
|
|
979
|
-
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
980
|
-
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
981
|
-
]
|
|
982
|
-
] = None,
|
|
983
|
-
shrink: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
984
|
-
grow: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
985
999
|
m: Optional[
|
|
986
1000
|
Union[
|
|
987
|
-
Var[Literal["
|
|
988
|
-
Literal["
|
|
1001
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1002
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
989
1003
|
]
|
|
990
1004
|
] = None,
|
|
991
1005
|
mx: Optional[
|
|
992
1006
|
Union[
|
|
993
|
-
Var[Literal["
|
|
994
|
-
Literal["
|
|
1007
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1008
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
995
1009
|
]
|
|
996
1010
|
] = None,
|
|
997
1011
|
my: Optional[
|
|
998
1012
|
Union[
|
|
999
|
-
Var[Literal["
|
|
1000
|
-
Literal["
|
|
1013
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1014
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1001
1015
|
]
|
|
1002
1016
|
] = None,
|
|
1003
1017
|
mt: Optional[
|
|
1004
1018
|
Union[
|
|
1005
|
-
Var[Literal["
|
|
1006
|
-
Literal["
|
|
1019
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1020
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1007
1021
|
]
|
|
1008
1022
|
] = None,
|
|
1009
1023
|
mr: Optional[
|
|
1010
1024
|
Union[
|
|
1011
|
-
Var[Literal["
|
|
1012
|
-
Literal["
|
|
1025
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1026
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1013
1027
|
]
|
|
1014
1028
|
] = None,
|
|
1015
1029
|
mb: Optional[
|
|
1016
1030
|
Union[
|
|
1017
|
-
Var[Literal["
|
|
1018
|
-
Literal["
|
|
1031
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1032
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1019
1033
|
]
|
|
1020
1034
|
] = None,
|
|
1021
1035
|
ml: Optional[
|
|
1022
1036
|
Union[
|
|
1023
|
-
Var[Literal["
|
|
1024
|
-
Literal["
|
|
1037
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
1038
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1025
1039
|
]
|
|
1026
1040
|
] = None,
|
|
1027
1041
|
style: Optional[Style] = None,
|
|
@@ -1076,7 +1090,7 @@ class Section(LayoutComponent):
|
|
|
1076
1090
|
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
1077
1091
|
] = None,
|
|
1078
1092
|
**props
|
|
1079
|
-
) -> "
|
|
1093
|
+
) -> "SelectSeparator":
|
|
1080
1094
|
"""Create a new component instance.
|
|
1081
1095
|
|
|
1082
1096
|
Will prepend "RadixThemes" to the component tag to avoid conflicts with
|
|
@@ -1084,16 +1098,6 @@ class Section(LayoutComponent):
|
|
|
1084
1098
|
|
|
1085
1099
|
Args:
|
|
1086
1100
|
*children: Child components.
|
|
1087
|
-
size: The size of the section: "1" - "3" (default "3")
|
|
1088
|
-
p: Padding: "0" - "9"
|
|
1089
|
-
px: Padding horizontal: "0" - "9"
|
|
1090
|
-
py: Padding vertical: "0" - "9"
|
|
1091
|
-
pt: Padding top: "0" - "9"
|
|
1092
|
-
pr: Padding right: "0" - "9"
|
|
1093
|
-
pb: Padding bottom: "0" - "9"
|
|
1094
|
-
pl: Padding left: "0" - "9"
|
|
1095
|
-
shrink: Whether the element will take up the smallest possible space: "0" | "1"
|
|
1096
|
-
grow: Whether the element will take up the largest possible space: "0" | "1"
|
|
1097
1101
|
m: Margin: "0" - "9"
|
|
1098
1102
|
mx: Margin horizontal: "0" - "9"
|
|
1099
1103
|
my: Margin vertical: "0" - "9"
|