reflex 0.8.15a2__py3-none-any.whl → 0.8.16__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 +40 -46
- reflex/app_mixins/lifespan.py +12 -5
- reflex/base.py +1 -0
- reflex/compiler/compiler.py +4 -6
- reflex/compiler/templates.py +25 -31
- reflex/compiler/utils.py +6 -5
- reflex/components/base/body.pyi +1 -195
- reflex/components/base/link.pyi +1 -407
- reflex/components/base/meta.pyi +1 -405
- reflex/components/base/script.pyi +1 -237
- reflex/components/component.py +41 -46
- reflex/components/core/auto_scroll.pyi +1 -195
- reflex/components/core/banner.pyi +1 -391
- reflex/components/core/breakpoints.py +14 -18
- reflex/components/core/html.pyi +1 -197
- reflex/components/core/match.py +2 -2
- reflex/components/core/sticky.py +11 -15
- reflex/components/core/sticky.pyi +0 -788
- reflex/components/core/upload.py +1 -3
- reflex/components/core/window_events.pyi +6 -5
- reflex/components/datadisplay/code.pyi +1 -0
- reflex/components/datadisplay/dataeditor.py +4 -6
- reflex/components/datadisplay/shiki_code_block.py +106 -110
- reflex/components/dynamic.py +4 -6
- reflex/components/el/elements/__init__.py +5 -7
- reflex/components/el/elements/__init__.pyi +5 -7
- reflex/components/el/elements/base.py +1 -1
- reflex/components/el/elements/base.pyi +1 -195
- reflex/components/el/elements/forms.py +7 -9
- reflex/components/el/elements/forms.pyi +12 -3112
- reflex/components/el/elements/inline.pyi +0 -5481
- reflex/components/el/elements/media.pyi +0 -10280
- reflex/components/el/elements/metadata.pyi +1 -835
- reflex/components/el/elements/other.pyi +1 -1365
- reflex/components/el/elements/scripts.pyi +1 -625
- reflex/components/el/elements/sectioning.pyi +1 -2911
- reflex/components/el/elements/tables.pyi +1 -1973
- reflex/components/el/elements/typography.pyi +1 -3125
- reflex/components/lucide/icon.py +4 -4
- reflex/components/lucide/icon.pyi +0 -4
- reflex/components/markdown/markdown.py +15 -19
- reflex/components/markdown/markdown.pyi +1 -0
- reflex/components/moment/moment.pyi +0 -49
- reflex/components/props.py +3 -3
- reflex/components/radix/primitives/accordion.py +4 -6
- reflex/components/radix/primitives/accordion.pyi +0 -14
- reflex/components/radix/primitives/base.pyi +0 -5
- reflex/components/radix/primitives/dialog.py +2 -0
- reflex/components/radix/primitives/dialog.pyi +1 -233
- reflex/components/radix/primitives/drawer.pyi +0 -18
- reflex/components/radix/primitives/form.pyi +30 -632
- reflex/components/radix/primitives/progress.pyi +0 -10
- reflex/components/radix/primitives/slider.pyi +0 -10
- reflex/components/radix/themes/color_mode.pyi +1 -284
- reflex/components/radix/themes/components/alert_dialog.pyi +0 -207
- reflex/components/radix/themes/components/aspect_ratio.pyi +0 -2
- reflex/components/radix/themes/components/avatar.pyi +0 -80
- reflex/components/radix/themes/components/badge.pyi +1 -270
- reflex/components/radix/themes/components/button.pyi +1 -274
- reflex/components/radix/themes/components/callout.pyi +0 -1197
- reflex/components/radix/themes/components/card.pyi +1 -209
- reflex/components/radix/themes/components/checkbox.pyi +0 -261
- reflex/components/radix/themes/components/checkbox_cards.pyi +1 -96
- reflex/components/radix/themes/components/checkbox_group.pyi +1 -80
- reflex/components/radix/themes/components/context_menu.pyi +13 -321
- reflex/components/radix/themes/components/data_list.pyi +1 -107
- reflex/components/radix/themes/components/dialog.pyi +1 -210
- reflex/components/radix/themes/components/dropdown_menu.pyi +0 -209
- reflex/components/radix/themes/components/hover_card.pyi +1 -246
- reflex/components/radix/themes/components/icon_button.pyi +1 -195
- reflex/components/radix/themes/components/inset.pyi +0 -252
- reflex/components/radix/themes/components/popover.pyi +1 -234
- reflex/components/radix/themes/components/progress.pyi +1 -84
- reflex/components/radix/themes/components/radio.pyi +1 -72
- reflex/components/radix/themes/components/radio_cards.pyi +1 -123
- reflex/components/radix/themes/components/scroll_area.pyi +1 -11
- reflex/components/radix/themes/components/select.pyi +1 -376
- reflex/components/radix/themes/components/separator.pyi +0 -77
- reflex/components/radix/themes/components/skeleton.pyi +0 -30
- reflex/components/radix/themes/components/slider.py +3 -5
- reflex/components/radix/themes/components/spinner.pyi +0 -5
- reflex/components/radix/themes/components/switch.pyi +0 -89
- reflex/components/radix/themes/components/table.pyi +0 -1453
- reflex/components/radix/themes/components/text_area.pyi +7 -282
- reflex/components/radix/themes/components/text_field.pyi +6 -392
- reflex/components/radix/themes/components/tooltip.pyi +0 -42
- reflex/components/radix/themes/layout/box.pyi +1 -195
- reflex/components/radix/themes/layout/center.pyi +0 -194
- reflex/components/radix/themes/layout/container.pyi +0 -178
- reflex/components/radix/themes/layout/flex.pyi +0 -194
- reflex/components/radix/themes/layout/grid.pyi +0 -194
- reflex/components/radix/themes/layout/list.pyi +0 -978
- reflex/components/radix/themes/layout/section.pyi +0 -194
- reflex/components/radix/themes/layout/spacer.pyi +0 -194
- reflex/components/radix/themes/layout/stack.pyi +0 -582
- reflex/components/radix/themes/typography/blockquote.pyi +0 -196
- reflex/components/radix/themes/typography/code.pyi +0 -194
- reflex/components/radix/themes/typography/heading.pyi +0 -194
- reflex/components/radix/themes/typography/link.pyi +0 -237
- reflex/components/radix/themes/typography/text.pyi +0 -1360
- reflex/components/react_router/dom.pyi +0 -237
- reflex/components/recharts/cartesian.py +12 -18
- reflex/components/recharts/general.py +12 -18
- reflex/constants/installer.py +5 -5
- reflex/custom_components/custom_components.py +6 -5
- reflex/environment.py +30 -7
- reflex/event.py +14 -12
- reflex/experimental/client_state.py +11 -12
- reflex/istate/data.py +8 -10
- reflex/istate/manager/__init__.py +3 -0
- reflex/istate/manager/disk.py +151 -5
- reflex/model.py +1 -1
- reflex/plugins/_screenshot.py +2 -2
- reflex/plugins/shared_tailwind.py +9 -14
- reflex/reflex.py +7 -9
- reflex/state.py +30 -37
- reflex/style.py +6 -6
- reflex/testing.py +54 -30
- reflex/utils/codespaces.py +1 -1
- reflex/utils/compat.py +1 -0
- reflex/utils/decorator.py +3 -3
- reflex/utils/format.py +18 -22
- reflex/utils/prerequisites.py +1 -1
- reflex/utils/pyi_generator.py +51 -57
- reflex/utils/serializers.py +1 -1
- reflex/utils/telemetry.py +1 -1
- reflex/utils/templates.py +4 -4
- reflex/utils/types.py +3 -3
- reflex/vars/base.py +26 -29
- reflex/vars/color.py +6 -8
- reflex/vars/dep_tracking.py +5 -3
- reflex/vars/function.py +3 -3
- reflex/vars/object.py +9 -13
- reflex/vars/sequence.py +18 -24
- {reflex-0.8.15a2.dist-info → reflex-0.8.16.dist-info}/METADATA +1 -1
- {reflex-0.8.15a2.dist-info → reflex-0.8.16.dist-info}/RECORD +139 -139
- {reflex-0.8.15a2.dist-info → reflex-0.8.16.dist-info}/WHEEL +0 -0
- {reflex-0.8.15a2.dist-info → reflex-0.8.16.dist-info}/entry_points.txt +0 -0
- {reflex-0.8.15a2.dist-info → reflex-0.8.16.dist-info}/licenses/LICENSE +0 -0
|
@@ -19,79 +19,6 @@ class Button(elements.Button, RadixLoadingProp, RadixThemesComponent):
|
|
|
19
19
|
def create(
|
|
20
20
|
cls,
|
|
21
21
|
*children,
|
|
22
|
-
as_child: Var[bool] | bool | None = None,
|
|
23
|
-
size: Breakpoints[str, Literal["1", "2", "3", "4"]]
|
|
24
|
-
| Literal["1", "2", "3", "4"]
|
|
25
|
-
| Var[
|
|
26
|
-
Breakpoints[str, Literal["1", "2", "3", "4"]] | Literal["1", "2", "3", "4"]
|
|
27
|
-
]
|
|
28
|
-
| None = None,
|
|
29
|
-
variant: Literal["classic", "ghost", "outline", "soft", "solid", "surface"]
|
|
30
|
-
| Var[Literal["classic", "ghost", "outline", "soft", "solid", "surface"]]
|
|
31
|
-
| None = None,
|
|
32
|
-
color_scheme: Literal[
|
|
33
|
-
"amber",
|
|
34
|
-
"blue",
|
|
35
|
-
"bronze",
|
|
36
|
-
"brown",
|
|
37
|
-
"crimson",
|
|
38
|
-
"cyan",
|
|
39
|
-
"gold",
|
|
40
|
-
"grass",
|
|
41
|
-
"gray",
|
|
42
|
-
"green",
|
|
43
|
-
"indigo",
|
|
44
|
-
"iris",
|
|
45
|
-
"jade",
|
|
46
|
-
"lime",
|
|
47
|
-
"mint",
|
|
48
|
-
"orange",
|
|
49
|
-
"pink",
|
|
50
|
-
"plum",
|
|
51
|
-
"purple",
|
|
52
|
-
"red",
|
|
53
|
-
"ruby",
|
|
54
|
-
"sky",
|
|
55
|
-
"teal",
|
|
56
|
-
"tomato",
|
|
57
|
-
"violet",
|
|
58
|
-
"yellow",
|
|
59
|
-
]
|
|
60
|
-
| Var[
|
|
61
|
-
Literal[
|
|
62
|
-
"amber",
|
|
63
|
-
"blue",
|
|
64
|
-
"bronze",
|
|
65
|
-
"brown",
|
|
66
|
-
"crimson",
|
|
67
|
-
"cyan",
|
|
68
|
-
"gold",
|
|
69
|
-
"grass",
|
|
70
|
-
"gray",
|
|
71
|
-
"green",
|
|
72
|
-
"indigo",
|
|
73
|
-
"iris",
|
|
74
|
-
"jade",
|
|
75
|
-
"lime",
|
|
76
|
-
"mint",
|
|
77
|
-
"orange",
|
|
78
|
-
"pink",
|
|
79
|
-
"plum",
|
|
80
|
-
"purple",
|
|
81
|
-
"red",
|
|
82
|
-
"ruby",
|
|
83
|
-
"sky",
|
|
84
|
-
"teal",
|
|
85
|
-
"tomato",
|
|
86
|
-
"violet",
|
|
87
|
-
"yellow",
|
|
88
|
-
]
|
|
89
|
-
]
|
|
90
|
-
| None = None,
|
|
91
|
-
high_contrast: Var[bool] | bool | None = None,
|
|
92
|
-
radius: Literal["full", "large", "medium", "none", "small"]
|
|
93
|
-
| Var[Literal["full", "large", "medium", "none", "small"]]
|
|
94
|
-
| None = None,
|
|
95
22
|
auto_focus: Var[bool] | bool | None = None,
|
|
96
23
|
disabled: Var[bool] | bool | None = None,
|
|
97
24
|
form: Var[str] | str | None = None,
|
|
@@ -105,185 +32,6 @@ class Button(elements.Button, RadixLoadingProp, RadixThemesComponent):
|
|
|
105
32
|
| Var[Literal["button", "reset", "submit"]]
|
|
106
33
|
| None = None,
|
|
107
34
|
value: Var[float | int | str] | float | int | str | None = None,
|
|
108
|
-
access_key: Var[str] | str | None = None,
|
|
109
|
-
auto_capitalize: Literal[
|
|
110
|
-
"characters", "none", "off", "on", "sentences", "words"
|
|
111
|
-
]
|
|
112
|
-
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
113
|
-
| None = None,
|
|
114
|
-
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
115
|
-
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
116
|
-
| None = None,
|
|
117
|
-
context_menu: Var[str] | str | None = None,
|
|
118
|
-
dir: Var[str] | str | None = None,
|
|
119
|
-
draggable: Var[bool] | bool | None = None,
|
|
120
|
-
enter_key_hint: Literal[
|
|
121
|
-
"done", "enter", "go", "next", "previous", "search", "send"
|
|
122
|
-
]
|
|
123
|
-
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
124
|
-
| None = None,
|
|
125
|
-
hidden: Var[bool] | bool | None = None,
|
|
126
|
-
input_mode: Literal[
|
|
127
|
-
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
128
|
-
]
|
|
129
|
-
| Var[
|
|
130
|
-
Literal[
|
|
131
|
-
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
132
|
-
]
|
|
133
|
-
]
|
|
134
|
-
| None = None,
|
|
135
|
-
item_prop: Var[str] | str | None = None,
|
|
136
|
-
lang: Var[str] | str | None = None,
|
|
137
|
-
role: Literal[
|
|
138
|
-
"alert",
|
|
139
|
-
"alertdialog",
|
|
140
|
-
"application",
|
|
141
|
-
"article",
|
|
142
|
-
"banner",
|
|
143
|
-
"button",
|
|
144
|
-
"cell",
|
|
145
|
-
"checkbox",
|
|
146
|
-
"columnheader",
|
|
147
|
-
"combobox",
|
|
148
|
-
"complementary",
|
|
149
|
-
"contentinfo",
|
|
150
|
-
"definition",
|
|
151
|
-
"dialog",
|
|
152
|
-
"directory",
|
|
153
|
-
"document",
|
|
154
|
-
"feed",
|
|
155
|
-
"figure",
|
|
156
|
-
"form",
|
|
157
|
-
"grid",
|
|
158
|
-
"gridcell",
|
|
159
|
-
"group",
|
|
160
|
-
"heading",
|
|
161
|
-
"img",
|
|
162
|
-
"link",
|
|
163
|
-
"list",
|
|
164
|
-
"listbox",
|
|
165
|
-
"listitem",
|
|
166
|
-
"log",
|
|
167
|
-
"main",
|
|
168
|
-
"marquee",
|
|
169
|
-
"math",
|
|
170
|
-
"menu",
|
|
171
|
-
"menubar",
|
|
172
|
-
"menuitem",
|
|
173
|
-
"menuitemcheckbox",
|
|
174
|
-
"menuitemradio",
|
|
175
|
-
"navigation",
|
|
176
|
-
"none",
|
|
177
|
-
"note",
|
|
178
|
-
"option",
|
|
179
|
-
"presentation",
|
|
180
|
-
"progressbar",
|
|
181
|
-
"radio",
|
|
182
|
-
"radiogroup",
|
|
183
|
-
"region",
|
|
184
|
-
"row",
|
|
185
|
-
"rowgroup",
|
|
186
|
-
"rowheader",
|
|
187
|
-
"scrollbar",
|
|
188
|
-
"search",
|
|
189
|
-
"searchbox",
|
|
190
|
-
"separator",
|
|
191
|
-
"slider",
|
|
192
|
-
"spinbutton",
|
|
193
|
-
"status",
|
|
194
|
-
"switch",
|
|
195
|
-
"tab",
|
|
196
|
-
"table",
|
|
197
|
-
"tablist",
|
|
198
|
-
"tabpanel",
|
|
199
|
-
"term",
|
|
200
|
-
"textbox",
|
|
201
|
-
"timer",
|
|
202
|
-
"toolbar",
|
|
203
|
-
"tooltip",
|
|
204
|
-
"tree",
|
|
205
|
-
"treegrid",
|
|
206
|
-
"treeitem",
|
|
207
|
-
]
|
|
208
|
-
| Var[
|
|
209
|
-
Literal[
|
|
210
|
-
"alert",
|
|
211
|
-
"alertdialog",
|
|
212
|
-
"application",
|
|
213
|
-
"article",
|
|
214
|
-
"banner",
|
|
215
|
-
"button",
|
|
216
|
-
"cell",
|
|
217
|
-
"checkbox",
|
|
218
|
-
"columnheader",
|
|
219
|
-
"combobox",
|
|
220
|
-
"complementary",
|
|
221
|
-
"contentinfo",
|
|
222
|
-
"definition",
|
|
223
|
-
"dialog",
|
|
224
|
-
"directory",
|
|
225
|
-
"document",
|
|
226
|
-
"feed",
|
|
227
|
-
"figure",
|
|
228
|
-
"form",
|
|
229
|
-
"grid",
|
|
230
|
-
"gridcell",
|
|
231
|
-
"group",
|
|
232
|
-
"heading",
|
|
233
|
-
"img",
|
|
234
|
-
"link",
|
|
235
|
-
"list",
|
|
236
|
-
"listbox",
|
|
237
|
-
"listitem",
|
|
238
|
-
"log",
|
|
239
|
-
"main",
|
|
240
|
-
"marquee",
|
|
241
|
-
"math",
|
|
242
|
-
"menu",
|
|
243
|
-
"menubar",
|
|
244
|
-
"menuitem",
|
|
245
|
-
"menuitemcheckbox",
|
|
246
|
-
"menuitemradio",
|
|
247
|
-
"navigation",
|
|
248
|
-
"none",
|
|
249
|
-
"note",
|
|
250
|
-
"option",
|
|
251
|
-
"presentation",
|
|
252
|
-
"progressbar",
|
|
253
|
-
"radio",
|
|
254
|
-
"radiogroup",
|
|
255
|
-
"region",
|
|
256
|
-
"row",
|
|
257
|
-
"rowgroup",
|
|
258
|
-
"rowheader",
|
|
259
|
-
"scrollbar",
|
|
260
|
-
"search",
|
|
261
|
-
"searchbox",
|
|
262
|
-
"separator",
|
|
263
|
-
"slider",
|
|
264
|
-
"spinbutton",
|
|
265
|
-
"status",
|
|
266
|
-
"switch",
|
|
267
|
-
"tab",
|
|
268
|
-
"table",
|
|
269
|
-
"tablist",
|
|
270
|
-
"tabpanel",
|
|
271
|
-
"term",
|
|
272
|
-
"textbox",
|
|
273
|
-
"timer",
|
|
274
|
-
"toolbar",
|
|
275
|
-
"tooltip",
|
|
276
|
-
"tree",
|
|
277
|
-
"treegrid",
|
|
278
|
-
"treeitem",
|
|
279
|
-
]
|
|
280
|
-
]
|
|
281
|
-
| None = None,
|
|
282
|
-
slot: Var[str] | str | None = None,
|
|
283
|
-
spell_check: Var[bool] | bool | None = None,
|
|
284
|
-
tab_index: Var[int] | int | None = None,
|
|
285
|
-
title: Var[str] | str | None = None,
|
|
286
|
-
loading: Var[bool] | bool | None = None,
|
|
287
35
|
style: Sequence[Mapping[str, Any]]
|
|
288
36
|
| Mapping[str, Any]
|
|
289
37
|
| Var[Mapping[str, Any]]
|
|
@@ -294,6 +42,7 @@ class Button(elements.Button, RadixLoadingProp, RadixThemesComponent):
|
|
|
294
42
|
ref: Var | None = None,
|
|
295
43
|
class_name: Any | None = None,
|
|
296
44
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
45
|
+
loading: Var[bool] | bool | None = None,
|
|
297
46
|
on_blur: EventType[()] | None = None,
|
|
298
47
|
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
299
48
|
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
@@ -319,12 +68,6 @@ class Button(elements.Button, RadixLoadingProp, RadixThemesComponent):
|
|
|
319
68
|
|
|
320
69
|
Args:
|
|
321
70
|
*children: Child components.
|
|
322
|
-
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
323
|
-
size: Button size "1" - "4"
|
|
324
|
-
variant: Variant of button: "solid" | "soft" | "outline" | "ghost"
|
|
325
|
-
color_scheme: Override theme color for button
|
|
326
|
-
high_contrast: Whether to render the button with higher contrast color against background
|
|
327
|
-
radius: Override theme radius for button: "none" | "small" | "medium" | "large" | "full"
|
|
328
71
|
auto_focus: Automatically focuses the button when the page loads
|
|
329
72
|
disabled: Disables the button
|
|
330
73
|
form: Associates the button with a form (by id)
|
|
@@ -336,22 +79,6 @@ class Button(elements.Button, RadixLoadingProp, RadixThemesComponent):
|
|
|
336
79
|
name: Name of the button, used when sending form data
|
|
337
80
|
type: Type of the button (submit, reset, or button)
|
|
338
81
|
value: Value of the button, used when sending form data
|
|
339
|
-
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
340
|
-
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
341
|
-
content_editable: Indicates whether the element's content is editable.
|
|
342
|
-
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
343
|
-
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
344
|
-
draggable: Defines whether the element can be dragged.
|
|
345
|
-
enter_key_hint: Hints what media types the media element is able to play.
|
|
346
|
-
hidden: Defines whether the element is hidden.
|
|
347
|
-
input_mode: Defines the type of the element.
|
|
348
|
-
item_prop: Defines the name of the element for metadata purposes.
|
|
349
|
-
lang: Defines the language used in the element.
|
|
350
|
-
role: Defines the role of the element.
|
|
351
|
-
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
352
|
-
spell_check: Defines whether the element may be checked for spelling errors.
|
|
353
|
-
tab_index: Defines the position of the current element in the tabbing order.
|
|
354
|
-
title: Defines a tooltip for the element.
|
|
355
82
|
loading: If set, show an rx.spinner instead of the component children.
|
|
356
83
|
style: The style of the component.
|
|
357
84
|
key: A unique key for the component.
|