reflex 0.4.8.post1__py3-none-any.whl → 0.4.9a1__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/components/component.py +10 -3
- reflex/components/core/debounce.py +4 -1
- reflex/constants/installer.py +0 -1
- reflex/experimental/__init__.py +2 -0
- reflex/experimental/hooks.py +19 -1
- reflex/experimental/layout.py +223 -0
- reflex/testing.py +23 -6
- reflex/utils/prerequisites.py +6 -4
- reflex/utils/processes.py +22 -1
- reflex/utils/serializers.py +14 -0
- reflex/vars.py +1 -1
- {reflex-0.4.8.post1.dist-info → reflex-0.4.9a1.dist-info}/METADATA +1 -1
- {reflex-0.4.8.post1.dist-info → reflex-0.4.9a1.dist-info}/RECORD +16 -28
- reflex/components/radix/themes/components/alertdialog.pyi +0 -1128
- reflex/components/radix/themes/components/aspectratio.pyi +0 -162
- reflex/components/radix/themes/components/contextmenu.pyi +0 -1249
- reflex/components/radix/themes/components/dropdownmenu.pyi +0 -1350
- reflex/components/radix/themes/components/hovercard.pyi +0 -700
- reflex/components/radix/themes/components/iconbutton.pyi +0 -284
- reflex/components/radix/themes/components/radiogroup.pyi +0 -701
- reflex/components/radix/themes/components/scrollarea.pyi +0 -176
- reflex/components/radix/themes/components/textfield.pyi +0 -1092
- reflex/components/radix/themes/typography/em.pyi +0 -213
- reflex/components/radix/themes/typography/kbd.pyi +0 -222
- reflex/components/radix/themes/typography/quote.pyi +0 -215
- reflex/components/radix/themes/typography/strong.pyi +0 -213
- {reflex-0.4.8.post1.dist-info → reflex-0.4.9a1.dist-info}/LICENSE +0 -0
- {reflex-0.4.8.post1.dist-info → reflex-0.4.9a1.dist-info}/WHEEL +0 -0
- {reflex-0.4.8.post1.dist-info → reflex-0.4.9a1.dist-info}/entry_points.txt +0 -0
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
"""Stub file for reflex/components/radix/themes/components/iconbutton.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 import el
|
|
12
|
-
from reflex.components.component import Component
|
|
13
|
-
from reflex.components.core.match import Match
|
|
14
|
-
from reflex.components.lucide import Icon
|
|
15
|
-
from reflex.style import Style
|
|
16
|
-
from reflex.vars import Var
|
|
17
|
-
from ..base import (
|
|
18
|
-
LiteralAccentColor,
|
|
19
|
-
LiteralRadius,
|
|
20
|
-
LiteralVariant,
|
|
21
|
-
RadixThemesComponent,
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
LiteralButtonSize = Literal["1", "2", "3", "4"]
|
|
25
|
-
|
|
26
|
-
class IconButton(el.Button, RadixThemesComponent):
|
|
27
|
-
@overload
|
|
28
|
-
@classmethod
|
|
29
|
-
def create( # type: ignore
|
|
30
|
-
cls,
|
|
31
|
-
*children,
|
|
32
|
-
as_child: Optional[Union[Var[bool], bool]] = None,
|
|
33
|
-
size: Optional[
|
|
34
|
-
Union[Var[Literal["1", "2", "3", "4"]], Literal["1", "2", "3", "4"]]
|
|
35
|
-
] = None,
|
|
36
|
-
variant: Optional[
|
|
37
|
-
Union[
|
|
38
|
-
Var[Literal["classic", "solid", "soft", "surface", "outline", "ghost"]],
|
|
39
|
-
Literal["classic", "solid", "soft", "surface", "outline", "ghost"],
|
|
40
|
-
]
|
|
41
|
-
] = None,
|
|
42
|
-
color_scheme: Optional[
|
|
43
|
-
Union[
|
|
44
|
-
Var[
|
|
45
|
-
Literal[
|
|
46
|
-
"tomato",
|
|
47
|
-
"red",
|
|
48
|
-
"ruby",
|
|
49
|
-
"crimson",
|
|
50
|
-
"pink",
|
|
51
|
-
"plum",
|
|
52
|
-
"purple",
|
|
53
|
-
"violet",
|
|
54
|
-
"iris",
|
|
55
|
-
"indigo",
|
|
56
|
-
"blue",
|
|
57
|
-
"cyan",
|
|
58
|
-
"teal",
|
|
59
|
-
"jade",
|
|
60
|
-
"green",
|
|
61
|
-
"grass",
|
|
62
|
-
"brown",
|
|
63
|
-
"orange",
|
|
64
|
-
"sky",
|
|
65
|
-
"mint",
|
|
66
|
-
"lime",
|
|
67
|
-
"yellow",
|
|
68
|
-
"amber",
|
|
69
|
-
"gold",
|
|
70
|
-
"bronze",
|
|
71
|
-
"gray",
|
|
72
|
-
]
|
|
73
|
-
],
|
|
74
|
-
Literal[
|
|
75
|
-
"tomato",
|
|
76
|
-
"red",
|
|
77
|
-
"ruby",
|
|
78
|
-
"crimson",
|
|
79
|
-
"pink",
|
|
80
|
-
"plum",
|
|
81
|
-
"purple",
|
|
82
|
-
"violet",
|
|
83
|
-
"iris",
|
|
84
|
-
"indigo",
|
|
85
|
-
"blue",
|
|
86
|
-
"cyan",
|
|
87
|
-
"teal",
|
|
88
|
-
"jade",
|
|
89
|
-
"green",
|
|
90
|
-
"grass",
|
|
91
|
-
"brown",
|
|
92
|
-
"orange",
|
|
93
|
-
"sky",
|
|
94
|
-
"mint",
|
|
95
|
-
"lime",
|
|
96
|
-
"yellow",
|
|
97
|
-
"amber",
|
|
98
|
-
"gold",
|
|
99
|
-
"bronze",
|
|
100
|
-
"gray",
|
|
101
|
-
],
|
|
102
|
-
]
|
|
103
|
-
] = None,
|
|
104
|
-
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
|
105
|
-
radius: Optional[
|
|
106
|
-
Union[
|
|
107
|
-
Var[Literal["none", "small", "medium", "large", "full"]],
|
|
108
|
-
Literal["none", "small", "medium", "large", "full"],
|
|
109
|
-
]
|
|
110
|
-
] = None,
|
|
111
|
-
auto_focus: Optional[
|
|
112
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
113
|
-
] = None,
|
|
114
|
-
disabled: Optional[Union[Var[bool], bool]] = None,
|
|
115
|
-
form: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
116
|
-
form_action: Optional[
|
|
117
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
118
|
-
] = None,
|
|
119
|
-
form_enc_type: Optional[
|
|
120
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
121
|
-
] = None,
|
|
122
|
-
form_method: Optional[
|
|
123
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
124
|
-
] = None,
|
|
125
|
-
form_no_validate: Optional[
|
|
126
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
127
|
-
] = None,
|
|
128
|
-
form_target: Optional[
|
|
129
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
130
|
-
] = None,
|
|
131
|
-
name: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
132
|
-
type: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
133
|
-
value: Optional[
|
|
134
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
135
|
-
] = None,
|
|
136
|
-
access_key: Optional[
|
|
137
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
138
|
-
] = None,
|
|
139
|
-
auto_capitalize: Optional[
|
|
140
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
141
|
-
] = None,
|
|
142
|
-
content_editable: Optional[
|
|
143
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
144
|
-
] = None,
|
|
145
|
-
context_menu: Optional[
|
|
146
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
147
|
-
] = None,
|
|
148
|
-
dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
149
|
-
draggable: Optional[
|
|
150
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
151
|
-
] = None,
|
|
152
|
-
enter_key_hint: Optional[
|
|
153
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
154
|
-
] = None,
|
|
155
|
-
hidden: Optional[
|
|
156
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
157
|
-
] = None,
|
|
158
|
-
input_mode: Optional[
|
|
159
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
160
|
-
] = None,
|
|
161
|
-
item_prop: Optional[
|
|
162
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
163
|
-
] = None,
|
|
164
|
-
lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
165
|
-
role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
166
|
-
slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
|
|
167
|
-
spell_check: Optional[
|
|
168
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
169
|
-
] = None,
|
|
170
|
-
tab_index: Optional[
|
|
171
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
172
|
-
] = None,
|
|
173
|
-
title: Optional[
|
|
174
|
-
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
|
175
|
-
] = None,
|
|
176
|
-
style: Optional[Style] = None,
|
|
177
|
-
key: Optional[Any] = None,
|
|
178
|
-
id: Optional[Any] = None,
|
|
179
|
-
class_name: Optional[Any] = None,
|
|
180
|
-
autofocus: Optional[bool] = None,
|
|
181
|
-
_rename_props: Optional[Dict[str, str]] = None,
|
|
182
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
183
|
-
on_blur: Optional[
|
|
184
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
185
|
-
] = None,
|
|
186
|
-
on_click: Optional[
|
|
187
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
188
|
-
] = None,
|
|
189
|
-
on_context_menu: Optional[
|
|
190
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
191
|
-
] = None,
|
|
192
|
-
on_double_click: Optional[
|
|
193
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
194
|
-
] = None,
|
|
195
|
-
on_focus: Optional[
|
|
196
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
197
|
-
] = None,
|
|
198
|
-
on_mount: Optional[
|
|
199
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
200
|
-
] = None,
|
|
201
|
-
on_mouse_down: Optional[
|
|
202
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
203
|
-
] = None,
|
|
204
|
-
on_mouse_enter: Optional[
|
|
205
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
206
|
-
] = None,
|
|
207
|
-
on_mouse_leave: Optional[
|
|
208
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
209
|
-
] = None,
|
|
210
|
-
on_mouse_move: Optional[
|
|
211
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
212
|
-
] = None,
|
|
213
|
-
on_mouse_out: Optional[
|
|
214
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
215
|
-
] = None,
|
|
216
|
-
on_mouse_over: Optional[
|
|
217
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
218
|
-
] = None,
|
|
219
|
-
on_mouse_up: Optional[
|
|
220
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
221
|
-
] = None,
|
|
222
|
-
on_scroll: Optional[
|
|
223
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
224
|
-
] = None,
|
|
225
|
-
on_unmount: Optional[
|
|
226
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
227
|
-
] = None,
|
|
228
|
-
**props
|
|
229
|
-
) -> "IconButton":
|
|
230
|
-
"""Create a IconButton component.
|
|
231
|
-
|
|
232
|
-
Args:
|
|
233
|
-
*children: The children of the component.
|
|
234
|
-
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
235
|
-
size: Button size "1" - "4"
|
|
236
|
-
variant: Variant of button: "classic" | "solid" | "soft" | "surface" | "outline" | "ghost"
|
|
237
|
-
color_scheme: Override theme color for button
|
|
238
|
-
high_contrast: Whether to render the button with higher contrast color against background
|
|
239
|
-
radius: Override theme radius for button: "none" | "small" | "medium" | "large" | "full"
|
|
240
|
-
auto_focus: Automatically focuses the button when the page loads
|
|
241
|
-
disabled: Disables the button
|
|
242
|
-
form: Associates the button with a form (by id)
|
|
243
|
-
form_action: URL to send the form data to (for type="submit" buttons)
|
|
244
|
-
form_enc_type: How the form data should be encoded when submitting to the server (for type="submit" buttons)
|
|
245
|
-
form_method: HTTP method to use for sending form data (for type="submit" buttons)
|
|
246
|
-
form_no_validate: Bypasses form validation when submitting (for type="submit" buttons)
|
|
247
|
-
form_target: Specifies where to display the response after submitting the form (for type="submit" buttons)
|
|
248
|
-
name: Name of the button, used when sending form data
|
|
249
|
-
type: Type of the button (submit, reset, or button)
|
|
250
|
-
value: Value of the button, used when sending form data
|
|
251
|
-
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
252
|
-
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
253
|
-
content_editable: Indicates whether the element's content is editable.
|
|
254
|
-
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
255
|
-
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
256
|
-
draggable: Defines whether the element can be dragged.
|
|
257
|
-
enter_key_hint: Hints what media types the media element is able to play.
|
|
258
|
-
hidden: Defines whether the element is hidden.
|
|
259
|
-
input_mode: Defines the type of the element.
|
|
260
|
-
item_prop: Defines the name of the element for metadata purposes.
|
|
261
|
-
lang: Defines the language used in the element.
|
|
262
|
-
role: Defines the role of the element.
|
|
263
|
-
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
264
|
-
spell_check: Defines whether the element may be checked for spelling errors.
|
|
265
|
-
tab_index: Defines the position of the current element in the tabbing order.
|
|
266
|
-
title: Defines a tooltip for the element.
|
|
267
|
-
style: The style of the component.
|
|
268
|
-
key: A unique key for the component.
|
|
269
|
-
id: The id for the component.
|
|
270
|
-
class_name: The class name for the component.
|
|
271
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
272
|
-
_rename_props: props to change the name of
|
|
273
|
-
custom_attrs: custom attribute
|
|
274
|
-
**props: The properties of the component.
|
|
275
|
-
|
|
276
|
-
Raises:
|
|
277
|
-
ValueError: If no children are passed.
|
|
278
|
-
|
|
279
|
-
Returns:
|
|
280
|
-
The IconButton component.
|
|
281
|
-
"""
|
|
282
|
-
...
|
|
283
|
-
|
|
284
|
-
icon_button = IconButton.create
|