reflex 0.3.5a4__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/.templates/web/utils/state.js +1 -1
- 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 +32 -4
- 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/components/radix/themes/typography.py +1 -1
- 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 +8 -1
- 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.5a4.dist-info → reflex-0.3.7.dist-info}/METADATA +3 -2
- {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/RECORD +137 -44
- reflex/components/radix/themes/layout.py +0 -155
- {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/LICENSE +0 -0
- {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/WHEEL +0 -0
- {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,619 @@
|
|
|
1
|
+
"""Stub file for reflex/components/radix/primitives/accordion.py"""
|
|
2
|
+
# ------------------- DO NOT EDIT ----------------------
|
|
3
|
+
# This file was generated by `scripts/pyi_generator.py`!
|
|
4
|
+
# ------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
from typing import Any, Dict, Literal, Optional, Union, overload
|
|
7
|
+
from reflex.vars import Var, BaseVar, ComputedVar
|
|
8
|
+
from reflex.event import EventChain, EventHandler, EventSpec
|
|
9
|
+
from reflex.style import Style
|
|
10
|
+
from typing import Literal
|
|
11
|
+
from reflex.components.component import Component
|
|
12
|
+
from reflex.components.tags import Tag
|
|
13
|
+
from reflex.style import Style
|
|
14
|
+
from reflex.utils import format, imports
|
|
15
|
+
from reflex.vars import Var
|
|
16
|
+
|
|
17
|
+
LiteralAccordionType = Literal["single", "multiple"]
|
|
18
|
+
LiteralAccordionDir = Literal["ltr", "rtl"]
|
|
19
|
+
LiteralAccordionOrientation = Literal["vertical", "horizontal"]
|
|
20
|
+
DEFAULT_ANIMATION_DURATION = 250
|
|
21
|
+
|
|
22
|
+
class AccordionComponent(Component):
|
|
23
|
+
@overload
|
|
24
|
+
@classmethod
|
|
25
|
+
def create( # type: ignore
|
|
26
|
+
cls,
|
|
27
|
+
*children,
|
|
28
|
+
as_child: Optional[Union[Var[bool], bool]] = None,
|
|
29
|
+
style: Optional[Style] = None,
|
|
30
|
+
key: Optional[Any] = None,
|
|
31
|
+
id: Optional[Any] = None,
|
|
32
|
+
class_name: Optional[Any] = None,
|
|
33
|
+
autofocus: Optional[bool] = None,
|
|
34
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
35
|
+
on_blur: Optional[
|
|
36
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
37
|
+
] = None,
|
|
38
|
+
on_click: Optional[
|
|
39
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
40
|
+
] = None,
|
|
41
|
+
on_context_menu: Optional[
|
|
42
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
43
|
+
] = None,
|
|
44
|
+
on_double_click: Optional[
|
|
45
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
46
|
+
] = None,
|
|
47
|
+
on_focus: Optional[
|
|
48
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
49
|
+
] = None,
|
|
50
|
+
on_mount: Optional[
|
|
51
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
52
|
+
] = None,
|
|
53
|
+
on_mouse_down: Optional[
|
|
54
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
55
|
+
] = None,
|
|
56
|
+
on_mouse_enter: Optional[
|
|
57
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
58
|
+
] = None,
|
|
59
|
+
on_mouse_leave: Optional[
|
|
60
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
61
|
+
] = None,
|
|
62
|
+
on_mouse_move: Optional[
|
|
63
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
64
|
+
] = None,
|
|
65
|
+
on_mouse_out: Optional[
|
|
66
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
67
|
+
] = None,
|
|
68
|
+
on_mouse_over: Optional[
|
|
69
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
70
|
+
] = None,
|
|
71
|
+
on_mouse_up: Optional[
|
|
72
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
73
|
+
] = None,
|
|
74
|
+
on_scroll: Optional[
|
|
75
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
76
|
+
] = None,
|
|
77
|
+
on_unmount: Optional[
|
|
78
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
79
|
+
] = None,
|
|
80
|
+
**props
|
|
81
|
+
) -> "AccordionComponent":
|
|
82
|
+
"""Create the component.
|
|
83
|
+
|
|
84
|
+
Args:
|
|
85
|
+
*children: The children of the component.
|
|
86
|
+
as_child: Change the default rendered element for the one passed as a child.
|
|
87
|
+
style: The style of the component.
|
|
88
|
+
key: A unique key for the component.
|
|
89
|
+
id: The id for the component.
|
|
90
|
+
class_name: The class name for the component.
|
|
91
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
92
|
+
custom_attrs: custom attribute
|
|
93
|
+
**props: The props of the component.
|
|
94
|
+
|
|
95
|
+
Returns:
|
|
96
|
+
The component.
|
|
97
|
+
|
|
98
|
+
Raises:
|
|
99
|
+
TypeError: If an invalid child is passed.
|
|
100
|
+
"""
|
|
101
|
+
...
|
|
102
|
+
|
|
103
|
+
class AccordionRoot(AccordionComponent):
|
|
104
|
+
@overload
|
|
105
|
+
@classmethod
|
|
106
|
+
def create( # type: ignore
|
|
107
|
+
cls,
|
|
108
|
+
*children,
|
|
109
|
+
type_: Optional[
|
|
110
|
+
Union[Var[Literal["single", "multiple"]], Literal["single", "multiple"]]
|
|
111
|
+
] = None,
|
|
112
|
+
value: Optional[Union[Var[str], str]] = None,
|
|
113
|
+
default_value: Optional[Union[Var[str], str]] = None,
|
|
114
|
+
collapsible: Optional[Union[Var[bool], bool]] = None,
|
|
115
|
+
disabled: Optional[Union[Var[bool], bool]] = None,
|
|
116
|
+
dir: Optional[Union[Var[Literal["ltr", "rtl"]], Literal["ltr", "rtl"]]] = None,
|
|
117
|
+
orientation: Optional[
|
|
118
|
+
Union[
|
|
119
|
+
Var[Literal["vertical", "horizontal"]],
|
|
120
|
+
Literal["vertical", "horizontal"],
|
|
121
|
+
]
|
|
122
|
+
] = None,
|
|
123
|
+
as_child: Optional[Union[Var[bool], bool]] = None,
|
|
124
|
+
style: Optional[Style] = None,
|
|
125
|
+
key: Optional[Any] = None,
|
|
126
|
+
id: Optional[Any] = None,
|
|
127
|
+
class_name: Optional[Any] = None,
|
|
128
|
+
autofocus: Optional[bool] = None,
|
|
129
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
130
|
+
on_blur: Optional[
|
|
131
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
132
|
+
] = None,
|
|
133
|
+
on_click: Optional[
|
|
134
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
135
|
+
] = None,
|
|
136
|
+
on_context_menu: Optional[
|
|
137
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
138
|
+
] = None,
|
|
139
|
+
on_double_click: Optional[
|
|
140
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
141
|
+
] = None,
|
|
142
|
+
on_focus: Optional[
|
|
143
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
144
|
+
] = None,
|
|
145
|
+
on_mount: Optional[
|
|
146
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
147
|
+
] = None,
|
|
148
|
+
on_mouse_down: Optional[
|
|
149
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
150
|
+
] = None,
|
|
151
|
+
on_mouse_enter: Optional[
|
|
152
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
153
|
+
] = None,
|
|
154
|
+
on_mouse_leave: Optional[
|
|
155
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
156
|
+
] = None,
|
|
157
|
+
on_mouse_move: Optional[
|
|
158
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
159
|
+
] = None,
|
|
160
|
+
on_mouse_out: Optional[
|
|
161
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
162
|
+
] = None,
|
|
163
|
+
on_mouse_over: Optional[
|
|
164
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
165
|
+
] = None,
|
|
166
|
+
on_mouse_up: Optional[
|
|
167
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
168
|
+
] = None,
|
|
169
|
+
on_scroll: Optional[
|
|
170
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
171
|
+
] = None,
|
|
172
|
+
on_unmount: Optional[
|
|
173
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
174
|
+
] = None,
|
|
175
|
+
**props
|
|
176
|
+
) -> "AccordionRoot":
|
|
177
|
+
"""Create the component.
|
|
178
|
+
|
|
179
|
+
Args:
|
|
180
|
+
*children: The children of the component.
|
|
181
|
+
type_: The type of accordion (single or multiple).
|
|
182
|
+
value: The value of the item to expand.
|
|
183
|
+
default_value: The default value of the item to expand.
|
|
184
|
+
collapsible: Whether or not the accordion is collapsible.
|
|
185
|
+
disabled: Whether or not the accordion is disabled.
|
|
186
|
+
dir: The reading direction of the accordion when applicable.
|
|
187
|
+
orientation: The orientation of the accordion.
|
|
188
|
+
as_child: Change the default rendered element for the one passed as a child.
|
|
189
|
+
style: The style of the component.
|
|
190
|
+
key: A unique key for the component.
|
|
191
|
+
id: The id for the component.
|
|
192
|
+
class_name: The class name for the component.
|
|
193
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
194
|
+
custom_attrs: custom attribute
|
|
195
|
+
**props: The props of the component.
|
|
196
|
+
|
|
197
|
+
Returns:
|
|
198
|
+
The component.
|
|
199
|
+
|
|
200
|
+
Raises:
|
|
201
|
+
TypeError: If an invalid child is passed.
|
|
202
|
+
"""
|
|
203
|
+
...
|
|
204
|
+
|
|
205
|
+
class AccordionItem(AccordionComponent):
|
|
206
|
+
@overload
|
|
207
|
+
@classmethod
|
|
208
|
+
def create( # type: ignore
|
|
209
|
+
cls,
|
|
210
|
+
*children,
|
|
211
|
+
value: Optional[Union[Var[str], str]] = None,
|
|
212
|
+
disabled: Optional[Union[Var[bool], bool]] = None,
|
|
213
|
+
as_child: Optional[Union[Var[bool], bool]] = None,
|
|
214
|
+
style: Optional[Style] = None,
|
|
215
|
+
key: Optional[Any] = None,
|
|
216
|
+
id: Optional[Any] = None,
|
|
217
|
+
class_name: Optional[Any] = None,
|
|
218
|
+
autofocus: Optional[bool] = None,
|
|
219
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
220
|
+
on_blur: Optional[
|
|
221
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
222
|
+
] = None,
|
|
223
|
+
on_click: Optional[
|
|
224
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
225
|
+
] = None,
|
|
226
|
+
on_context_menu: Optional[
|
|
227
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
228
|
+
] = None,
|
|
229
|
+
on_double_click: Optional[
|
|
230
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
231
|
+
] = None,
|
|
232
|
+
on_focus: Optional[
|
|
233
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
234
|
+
] = None,
|
|
235
|
+
on_mount: Optional[
|
|
236
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
237
|
+
] = None,
|
|
238
|
+
on_mouse_down: Optional[
|
|
239
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
240
|
+
] = None,
|
|
241
|
+
on_mouse_enter: Optional[
|
|
242
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
243
|
+
] = None,
|
|
244
|
+
on_mouse_leave: Optional[
|
|
245
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
246
|
+
] = None,
|
|
247
|
+
on_mouse_move: Optional[
|
|
248
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
249
|
+
] = None,
|
|
250
|
+
on_mouse_out: Optional[
|
|
251
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
252
|
+
] = None,
|
|
253
|
+
on_mouse_over: Optional[
|
|
254
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
255
|
+
] = None,
|
|
256
|
+
on_mouse_up: Optional[
|
|
257
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
258
|
+
] = None,
|
|
259
|
+
on_scroll: Optional[
|
|
260
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
261
|
+
] = None,
|
|
262
|
+
on_unmount: Optional[
|
|
263
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
264
|
+
] = None,
|
|
265
|
+
**props
|
|
266
|
+
) -> "AccordionItem":
|
|
267
|
+
"""Create the component.
|
|
268
|
+
|
|
269
|
+
Args:
|
|
270
|
+
*children: The children of the component.
|
|
271
|
+
value: A unique identifier for the item.
|
|
272
|
+
disabled: When true, prevents the user from interacting with the item.
|
|
273
|
+
as_child: Change the default rendered element for the one passed as a child.
|
|
274
|
+
style: The style of the component.
|
|
275
|
+
key: A unique key for the component.
|
|
276
|
+
id: The id for the component.
|
|
277
|
+
class_name: The class name for the component.
|
|
278
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
279
|
+
custom_attrs: custom attribute
|
|
280
|
+
**props: The props of the component.
|
|
281
|
+
|
|
282
|
+
Returns:
|
|
283
|
+
The component.
|
|
284
|
+
|
|
285
|
+
Raises:
|
|
286
|
+
TypeError: If an invalid child is passed.
|
|
287
|
+
"""
|
|
288
|
+
...
|
|
289
|
+
|
|
290
|
+
class AccordionHeader(AccordionComponent):
|
|
291
|
+
@overload
|
|
292
|
+
@classmethod
|
|
293
|
+
def create( # type: ignore
|
|
294
|
+
cls,
|
|
295
|
+
*children,
|
|
296
|
+
as_child: Optional[Union[Var[bool], bool]] = None,
|
|
297
|
+
style: Optional[Style] = None,
|
|
298
|
+
key: Optional[Any] = None,
|
|
299
|
+
id: Optional[Any] = None,
|
|
300
|
+
class_name: Optional[Any] = None,
|
|
301
|
+
autofocus: Optional[bool] = None,
|
|
302
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
303
|
+
on_blur: Optional[
|
|
304
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
305
|
+
] = None,
|
|
306
|
+
on_click: Optional[
|
|
307
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
308
|
+
] = None,
|
|
309
|
+
on_context_menu: Optional[
|
|
310
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
311
|
+
] = None,
|
|
312
|
+
on_double_click: Optional[
|
|
313
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
314
|
+
] = None,
|
|
315
|
+
on_focus: Optional[
|
|
316
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
317
|
+
] = None,
|
|
318
|
+
on_mount: Optional[
|
|
319
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
320
|
+
] = None,
|
|
321
|
+
on_mouse_down: Optional[
|
|
322
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
323
|
+
] = None,
|
|
324
|
+
on_mouse_enter: Optional[
|
|
325
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
326
|
+
] = None,
|
|
327
|
+
on_mouse_leave: Optional[
|
|
328
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
329
|
+
] = None,
|
|
330
|
+
on_mouse_move: Optional[
|
|
331
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
332
|
+
] = None,
|
|
333
|
+
on_mouse_out: Optional[
|
|
334
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
335
|
+
] = None,
|
|
336
|
+
on_mouse_over: Optional[
|
|
337
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
338
|
+
] = None,
|
|
339
|
+
on_mouse_up: Optional[
|
|
340
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
341
|
+
] = None,
|
|
342
|
+
on_scroll: Optional[
|
|
343
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
344
|
+
] = None,
|
|
345
|
+
on_unmount: Optional[
|
|
346
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
347
|
+
] = None,
|
|
348
|
+
**props
|
|
349
|
+
) -> "AccordionHeader":
|
|
350
|
+
"""Create the component.
|
|
351
|
+
|
|
352
|
+
Args:
|
|
353
|
+
*children: The children of the component.
|
|
354
|
+
as_child: Change the default rendered element for the one passed as a child.
|
|
355
|
+
style: The style of the component.
|
|
356
|
+
key: A unique key for the component.
|
|
357
|
+
id: The id for the component.
|
|
358
|
+
class_name: The class name for the component.
|
|
359
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
360
|
+
custom_attrs: custom attribute
|
|
361
|
+
**props: The props of the component.
|
|
362
|
+
|
|
363
|
+
Returns:
|
|
364
|
+
The component.
|
|
365
|
+
|
|
366
|
+
Raises:
|
|
367
|
+
TypeError: If an invalid child is passed.
|
|
368
|
+
"""
|
|
369
|
+
...
|
|
370
|
+
|
|
371
|
+
class AccordionTrigger(AccordionComponent):
|
|
372
|
+
@overload
|
|
373
|
+
@classmethod
|
|
374
|
+
def create( # type: ignore
|
|
375
|
+
cls,
|
|
376
|
+
*children,
|
|
377
|
+
as_child: Optional[Union[Var[bool], bool]] = None,
|
|
378
|
+
style: Optional[Style] = None,
|
|
379
|
+
key: Optional[Any] = None,
|
|
380
|
+
id: Optional[Any] = None,
|
|
381
|
+
class_name: Optional[Any] = None,
|
|
382
|
+
autofocus: Optional[bool] = None,
|
|
383
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
384
|
+
on_blur: Optional[
|
|
385
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
386
|
+
] = None,
|
|
387
|
+
on_click: Optional[
|
|
388
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
389
|
+
] = None,
|
|
390
|
+
on_context_menu: Optional[
|
|
391
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
392
|
+
] = None,
|
|
393
|
+
on_double_click: Optional[
|
|
394
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
395
|
+
] = None,
|
|
396
|
+
on_focus: Optional[
|
|
397
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
398
|
+
] = None,
|
|
399
|
+
on_mount: Optional[
|
|
400
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
401
|
+
] = None,
|
|
402
|
+
on_mouse_down: Optional[
|
|
403
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
404
|
+
] = None,
|
|
405
|
+
on_mouse_enter: Optional[
|
|
406
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
407
|
+
] = None,
|
|
408
|
+
on_mouse_leave: Optional[
|
|
409
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
410
|
+
] = None,
|
|
411
|
+
on_mouse_move: Optional[
|
|
412
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
413
|
+
] = None,
|
|
414
|
+
on_mouse_out: Optional[
|
|
415
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
416
|
+
] = None,
|
|
417
|
+
on_mouse_over: Optional[
|
|
418
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
419
|
+
] = None,
|
|
420
|
+
on_mouse_up: Optional[
|
|
421
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
422
|
+
] = None,
|
|
423
|
+
on_scroll: Optional[
|
|
424
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
425
|
+
] = None,
|
|
426
|
+
on_unmount: Optional[
|
|
427
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
428
|
+
] = None,
|
|
429
|
+
**props
|
|
430
|
+
) -> "AccordionTrigger":
|
|
431
|
+
"""Create the component.
|
|
432
|
+
|
|
433
|
+
Args:
|
|
434
|
+
*children: The children of the component.
|
|
435
|
+
as_child: Change the default rendered element for the one passed as a child.
|
|
436
|
+
style: The style of the component.
|
|
437
|
+
key: A unique key for the component.
|
|
438
|
+
id: The id for the component.
|
|
439
|
+
class_name: The class name for the component.
|
|
440
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
441
|
+
custom_attrs: custom attribute
|
|
442
|
+
**props: The props of the component.
|
|
443
|
+
|
|
444
|
+
Returns:
|
|
445
|
+
The component.
|
|
446
|
+
|
|
447
|
+
Raises:
|
|
448
|
+
TypeError: If an invalid child is passed.
|
|
449
|
+
"""
|
|
450
|
+
...
|
|
451
|
+
|
|
452
|
+
class AccordionContent(AccordionComponent):
|
|
453
|
+
@overload
|
|
454
|
+
@classmethod
|
|
455
|
+
def create( # type: ignore
|
|
456
|
+
cls,
|
|
457
|
+
*children,
|
|
458
|
+
as_child: Optional[Union[Var[bool], bool]] = None,
|
|
459
|
+
style: Optional[Style] = None,
|
|
460
|
+
key: Optional[Any] = None,
|
|
461
|
+
id: Optional[Any] = None,
|
|
462
|
+
class_name: Optional[Any] = None,
|
|
463
|
+
autofocus: Optional[bool] = None,
|
|
464
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
465
|
+
on_blur: Optional[
|
|
466
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
467
|
+
] = None,
|
|
468
|
+
on_click: Optional[
|
|
469
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
470
|
+
] = None,
|
|
471
|
+
on_context_menu: Optional[
|
|
472
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
473
|
+
] = None,
|
|
474
|
+
on_double_click: Optional[
|
|
475
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
476
|
+
] = None,
|
|
477
|
+
on_focus: Optional[
|
|
478
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
479
|
+
] = None,
|
|
480
|
+
on_mount: Optional[
|
|
481
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
482
|
+
] = None,
|
|
483
|
+
on_mouse_down: Optional[
|
|
484
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
485
|
+
] = None,
|
|
486
|
+
on_mouse_enter: Optional[
|
|
487
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
488
|
+
] = None,
|
|
489
|
+
on_mouse_leave: Optional[
|
|
490
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
491
|
+
] = None,
|
|
492
|
+
on_mouse_move: Optional[
|
|
493
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
494
|
+
] = None,
|
|
495
|
+
on_mouse_out: Optional[
|
|
496
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
497
|
+
] = None,
|
|
498
|
+
on_mouse_over: Optional[
|
|
499
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
500
|
+
] = None,
|
|
501
|
+
on_mouse_up: Optional[
|
|
502
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
503
|
+
] = None,
|
|
504
|
+
on_scroll: Optional[
|
|
505
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
506
|
+
] = None,
|
|
507
|
+
on_unmount: Optional[
|
|
508
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
509
|
+
] = None,
|
|
510
|
+
**props
|
|
511
|
+
) -> "AccordionContent":
|
|
512
|
+
"""Create the component.
|
|
513
|
+
|
|
514
|
+
Args:
|
|
515
|
+
*children: The children of the component.
|
|
516
|
+
as_child: Change the default rendered element for the one passed as a child.
|
|
517
|
+
style: The style of the component.
|
|
518
|
+
key: A unique key for the component.
|
|
519
|
+
id: The id for the component.
|
|
520
|
+
class_name: The class name for the component.
|
|
521
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
522
|
+
custom_attrs: custom attribute
|
|
523
|
+
**props: The props of the component.
|
|
524
|
+
|
|
525
|
+
Returns:
|
|
526
|
+
The component.
|
|
527
|
+
|
|
528
|
+
Raises:
|
|
529
|
+
TypeError: If an invalid child is passed.
|
|
530
|
+
"""
|
|
531
|
+
...
|
|
532
|
+
|
|
533
|
+
class ChevronDownIcon(Component):
|
|
534
|
+
@overload
|
|
535
|
+
@classmethod
|
|
536
|
+
def create( # type: ignore
|
|
537
|
+
cls,
|
|
538
|
+
*children,
|
|
539
|
+
style: Optional[Style] = None,
|
|
540
|
+
key: Optional[Any] = None,
|
|
541
|
+
id: Optional[Any] = None,
|
|
542
|
+
class_name: Optional[Any] = None,
|
|
543
|
+
autofocus: Optional[bool] = None,
|
|
544
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
545
|
+
on_blur: Optional[
|
|
546
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
547
|
+
] = None,
|
|
548
|
+
on_click: Optional[
|
|
549
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
550
|
+
] = None,
|
|
551
|
+
on_context_menu: Optional[
|
|
552
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
553
|
+
] = None,
|
|
554
|
+
on_double_click: Optional[
|
|
555
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
556
|
+
] = None,
|
|
557
|
+
on_focus: Optional[
|
|
558
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
559
|
+
] = None,
|
|
560
|
+
on_mount: Optional[
|
|
561
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
562
|
+
] = None,
|
|
563
|
+
on_mouse_down: Optional[
|
|
564
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
565
|
+
] = None,
|
|
566
|
+
on_mouse_enter: Optional[
|
|
567
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
568
|
+
] = None,
|
|
569
|
+
on_mouse_leave: Optional[
|
|
570
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
571
|
+
] = None,
|
|
572
|
+
on_mouse_move: Optional[
|
|
573
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
574
|
+
] = None,
|
|
575
|
+
on_mouse_out: Optional[
|
|
576
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
577
|
+
] = None,
|
|
578
|
+
on_mouse_over: Optional[
|
|
579
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
580
|
+
] = None,
|
|
581
|
+
on_mouse_up: Optional[
|
|
582
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
583
|
+
] = None,
|
|
584
|
+
on_scroll: Optional[
|
|
585
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
586
|
+
] = None,
|
|
587
|
+
on_unmount: Optional[
|
|
588
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
589
|
+
] = None,
|
|
590
|
+
**props
|
|
591
|
+
) -> "ChevronDownIcon":
|
|
592
|
+
"""Create the component.
|
|
593
|
+
|
|
594
|
+
Args:
|
|
595
|
+
*children: The children of the component.
|
|
596
|
+
style: The style of the component.
|
|
597
|
+
key: A unique key for the component.
|
|
598
|
+
id: The id for the component.
|
|
599
|
+
class_name: The class name for the component.
|
|
600
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
601
|
+
custom_attrs: custom attribute
|
|
602
|
+
**props: The props of the component.
|
|
603
|
+
|
|
604
|
+
Returns:
|
|
605
|
+
The component.
|
|
606
|
+
|
|
607
|
+
Raises:
|
|
608
|
+
TypeError: If an invalid child is passed.
|
|
609
|
+
"""
|
|
610
|
+
...
|
|
611
|
+
|
|
612
|
+
accordion_root = AccordionRoot.create
|
|
613
|
+
accordion_item = AccordionItem.create
|
|
614
|
+
accordion_trigger = AccordionTrigger.create
|
|
615
|
+
accordion_content = AccordionContent.create
|
|
616
|
+
accordion_header = AccordionHeader.create
|
|
617
|
+
chevron_down_icon = ChevronDownIcon.create
|
|
618
|
+
|
|
619
|
+
def accordion(items: list[tuple[str, str]], **props) -> Component: ...
|
|
@@ -1,77 +1,8 @@
|
|
|
1
1
|
"""Namespace for components provided by the @radix-ui/themes library."""
|
|
2
|
-
from .base import
|
|
3
|
-
from .
|
|
4
|
-
from .
|
|
5
|
-
from .
|
|
6
|
-
from .base import LiteralJustify as LiteralJustify
|
|
7
|
-
from .base import LiteralPanelBackground as LiteralPanelBackground
|
|
8
|
-
from .base import LiteralRadius as LiteralRadius
|
|
9
|
-
from .base import LiteralScaling as LiteralScaling
|
|
10
|
-
from .base import LiteralSize as LiteralSize
|
|
11
|
-
from .base import LiteralVariant as LiteralVariant
|
|
12
|
-
from .base import (
|
|
13
|
-
Theme,
|
|
14
|
-
ThemePanel,
|
|
15
|
-
)
|
|
16
|
-
from .components import (
|
|
17
|
-
Button,
|
|
18
|
-
Switch,
|
|
19
|
-
TextField,
|
|
20
|
-
TextFieldRoot,
|
|
21
|
-
TextFieldSlot,
|
|
22
|
-
)
|
|
23
|
-
from .components import LiteralButtonSize as LiteralButtonSize
|
|
24
|
-
from .components import LiteralSwitchSize as LiteralSwitchSize
|
|
25
|
-
from .layout import (
|
|
26
|
-
Box,
|
|
27
|
-
Container,
|
|
28
|
-
Flex,
|
|
29
|
-
Grid,
|
|
30
|
-
Section,
|
|
31
|
-
)
|
|
32
|
-
from .layout import LiteralBoolNumber as LiteralBoolNumber
|
|
33
|
-
from .layout import LiteralContainerSize as LiteralContainerSize
|
|
34
|
-
from .layout import LiteralFlexDirection as LiteralFlexDirection
|
|
35
|
-
from .layout import LiteralFlexDisplay as LiteralFlexDisplay
|
|
36
|
-
from .layout import LiteralFlexWrap as LiteralFlexWrap
|
|
37
|
-
from .layout import LiteralGridDisplay as LiteralGridDisplay
|
|
38
|
-
from .layout import LiteralGridFlow as LiteralGridFlow
|
|
39
|
-
from .layout import LiteralSectionSize as LiteralSectionSize
|
|
40
|
-
from .typography import (
|
|
41
|
-
Blockquote,
|
|
42
|
-
Code,
|
|
43
|
-
Em,
|
|
44
|
-
Heading,
|
|
45
|
-
Kbd,
|
|
46
|
-
Link,
|
|
47
|
-
Quote,
|
|
48
|
-
Strong,
|
|
49
|
-
Text,
|
|
50
|
-
)
|
|
51
|
-
from .typography import LiteralLinkUnderline as LiteralLinkUnderline
|
|
52
|
-
from .typography import LiteralTextAlign as LiteralTextAlign
|
|
53
|
-
from .typography import LiteralTextSize as LiteralTextSize
|
|
54
|
-
from .typography import LiteralTextTrim as LiteralTextTrim
|
|
55
|
-
from .typography import LiteralTextWeight as LiteralTextWeight
|
|
2
|
+
from .base import Theme, ThemePanel
|
|
3
|
+
from .components import *
|
|
4
|
+
from .layout import *
|
|
5
|
+
from .typography import *
|
|
56
6
|
|
|
57
|
-
blockquote = Blockquote.create
|
|
58
|
-
box = Box.create
|
|
59
|
-
button = Button.create
|
|
60
|
-
code = Code.create
|
|
61
|
-
container = Container.create
|
|
62
|
-
em = Em.create
|
|
63
|
-
flex = Flex.create
|
|
64
|
-
grid = Grid.create
|
|
65
|
-
heading = Heading.create
|
|
66
|
-
kbd = Kbd.create
|
|
67
|
-
link = Link.create
|
|
68
|
-
quote = Quote.create
|
|
69
|
-
section = Section.create
|
|
70
|
-
strong = Strong.create
|
|
71
|
-
switch = Switch.create
|
|
72
|
-
text = Text.create
|
|
73
|
-
text_field = TextField.create
|
|
74
|
-
text_field_root = TextFieldRoot.create
|
|
75
|
-
text_field_slot = TextFieldSlot.create
|
|
76
7
|
theme = Theme.create
|
|
77
8
|
theme_panel = ThemePanel.create
|