reflex 0.4.8.post1__py3-none-any.whl → 0.4.9__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/app.py +3 -0
- reflex/components/component.py +10 -3
- reflex/components/core/debounce.py +4 -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 +5 -3
- reflex/utils/processes.py +22 -1
- reflex/utils/pyi_generator.py +6 -1
- reflex/utils/serializers.py +14 -0
- reflex/vars.py +1 -1
- {reflex-0.4.8.post1.dist-info → reflex-0.4.9.dist-info}/METADATA +1 -1
- {reflex-0.4.8.post1.dist-info → reflex-0.4.9.dist-info}/RECORD +17 -29
- 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.9.dist-info}/LICENSE +0 -0
- {reflex-0.4.8.post1.dist-info → reflex-0.4.9.dist-info}/WHEEL +0 -0
- {reflex-0.4.8.post1.dist-info → reflex-0.4.9.dist-info}/entry_points.txt +0 -0
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
"""Stub file for reflex/components/radix/themes/components/aspectratio.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 Union
|
|
11
|
-
from reflex.vars import Var
|
|
12
|
-
from ..base import RadixThemesComponent
|
|
13
|
-
|
|
14
|
-
class AspectRatio(RadixThemesComponent):
|
|
15
|
-
@overload
|
|
16
|
-
@classmethod
|
|
17
|
-
def create( # type: ignore
|
|
18
|
-
cls,
|
|
19
|
-
*children,
|
|
20
|
-
color: Optional[Union[Var[str], str]] = None,
|
|
21
|
-
color_scheme: Optional[
|
|
22
|
-
Union[
|
|
23
|
-
Var[
|
|
24
|
-
Literal[
|
|
25
|
-
"tomato",
|
|
26
|
-
"red",
|
|
27
|
-
"ruby",
|
|
28
|
-
"crimson",
|
|
29
|
-
"pink",
|
|
30
|
-
"plum",
|
|
31
|
-
"purple",
|
|
32
|
-
"violet",
|
|
33
|
-
"iris",
|
|
34
|
-
"indigo",
|
|
35
|
-
"blue",
|
|
36
|
-
"cyan",
|
|
37
|
-
"teal",
|
|
38
|
-
"jade",
|
|
39
|
-
"green",
|
|
40
|
-
"grass",
|
|
41
|
-
"brown",
|
|
42
|
-
"orange",
|
|
43
|
-
"sky",
|
|
44
|
-
"mint",
|
|
45
|
-
"lime",
|
|
46
|
-
"yellow",
|
|
47
|
-
"amber",
|
|
48
|
-
"gold",
|
|
49
|
-
"bronze",
|
|
50
|
-
"gray",
|
|
51
|
-
]
|
|
52
|
-
],
|
|
53
|
-
Literal[
|
|
54
|
-
"tomato",
|
|
55
|
-
"red",
|
|
56
|
-
"ruby",
|
|
57
|
-
"crimson",
|
|
58
|
-
"pink",
|
|
59
|
-
"plum",
|
|
60
|
-
"purple",
|
|
61
|
-
"violet",
|
|
62
|
-
"iris",
|
|
63
|
-
"indigo",
|
|
64
|
-
"blue",
|
|
65
|
-
"cyan",
|
|
66
|
-
"teal",
|
|
67
|
-
"jade",
|
|
68
|
-
"green",
|
|
69
|
-
"grass",
|
|
70
|
-
"brown",
|
|
71
|
-
"orange",
|
|
72
|
-
"sky",
|
|
73
|
-
"mint",
|
|
74
|
-
"lime",
|
|
75
|
-
"yellow",
|
|
76
|
-
"amber",
|
|
77
|
-
"gold",
|
|
78
|
-
"bronze",
|
|
79
|
-
"gray",
|
|
80
|
-
],
|
|
81
|
-
]
|
|
82
|
-
] = None,
|
|
83
|
-
ratio: Optional[Union[Var[Union[float, int]], Union[float, int]]] = None,
|
|
84
|
-
style: Optional[Style] = None,
|
|
85
|
-
key: Optional[Any] = None,
|
|
86
|
-
id: Optional[Any] = None,
|
|
87
|
-
class_name: Optional[Any] = None,
|
|
88
|
-
autofocus: Optional[bool] = None,
|
|
89
|
-
_rename_props: Optional[Dict[str, str]] = None,
|
|
90
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
91
|
-
on_blur: Optional[
|
|
92
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
93
|
-
] = None,
|
|
94
|
-
on_click: Optional[
|
|
95
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
96
|
-
] = None,
|
|
97
|
-
on_context_menu: Optional[
|
|
98
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
99
|
-
] = None,
|
|
100
|
-
on_double_click: Optional[
|
|
101
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
102
|
-
] = None,
|
|
103
|
-
on_focus: Optional[
|
|
104
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
105
|
-
] = None,
|
|
106
|
-
on_mount: Optional[
|
|
107
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
108
|
-
] = None,
|
|
109
|
-
on_mouse_down: Optional[
|
|
110
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
111
|
-
] = None,
|
|
112
|
-
on_mouse_enter: Optional[
|
|
113
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
114
|
-
] = None,
|
|
115
|
-
on_mouse_leave: Optional[
|
|
116
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
117
|
-
] = None,
|
|
118
|
-
on_mouse_move: Optional[
|
|
119
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
120
|
-
] = None,
|
|
121
|
-
on_mouse_out: Optional[
|
|
122
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
123
|
-
] = None,
|
|
124
|
-
on_mouse_over: Optional[
|
|
125
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
126
|
-
] = None,
|
|
127
|
-
on_mouse_up: Optional[
|
|
128
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
129
|
-
] = None,
|
|
130
|
-
on_scroll: Optional[
|
|
131
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
132
|
-
] = None,
|
|
133
|
-
on_unmount: Optional[
|
|
134
|
-
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
135
|
-
] = None,
|
|
136
|
-
**props
|
|
137
|
-
) -> "AspectRatio":
|
|
138
|
-
"""Create a new component instance.
|
|
139
|
-
|
|
140
|
-
Will prepend "RadixThemes" to the component tag to avoid conflicts with
|
|
141
|
-
other UI libraries for common names, like Text and Button.
|
|
142
|
-
|
|
143
|
-
Args:
|
|
144
|
-
*children: Child components.
|
|
145
|
-
color: map to CSS default color property.
|
|
146
|
-
color_scheme: map to radix color property.
|
|
147
|
-
ratio: The ratio of the width to the height of the element
|
|
148
|
-
style: The style of the component.
|
|
149
|
-
key: A unique key for the component.
|
|
150
|
-
id: The id for the component.
|
|
151
|
-
class_name: The class name for the component.
|
|
152
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
153
|
-
_rename_props: props to change the name of
|
|
154
|
-
custom_attrs: custom attribute
|
|
155
|
-
**props: Component properties.
|
|
156
|
-
|
|
157
|
-
Returns:
|
|
158
|
-
A new component instance.
|
|
159
|
-
"""
|
|
160
|
-
...
|
|
161
|
-
|
|
162
|
-
aspect_ratio = AspectRatio.create
|