reflex 0.7.8a1__py3-none-any.whl → 0.7.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/.templates/jinja/web/tailwind.config.js.jinja2 +65 -31
- reflex/.templates/web/utils/state.js +11 -1
- reflex/app.py +191 -87
- reflex/app_mixins/lifespan.py +2 -2
- reflex/compiler/compiler.py +31 -4
- reflex/components/base/body.pyi +3 -197
- reflex/components/base/link.pyi +4 -392
- reflex/components/base/meta.pyi +28 -608
- reflex/components/component.py +39 -57
- reflex/components/core/upload.py +8 -0
- reflex/components/dynamic.py +9 -1
- reflex/components/el/elements/metadata.pyi +0 -1
- reflex/components/markdown/markdown.py +0 -21
- reflex/components/markdown/markdown.pyi +2 -2
- reflex/components/radix/primitives/accordion.py +1 -1
- reflex/components/radix/primitives/form.py +1 -1
- reflex/components/radix/primitives/progress.py +1 -1
- reflex/components/radix/primitives/slider.py +1 -1
- reflex/components/radix/themes/color_mode.py +1 -1
- reflex/components/radix/themes/color_mode.pyi +1 -1
- reflex/components/radix/themes/layout/list.pyi +2 -391
- reflex/components/recharts/recharts.py +2 -2
- reflex/components/sonner/toast.py +1 -1
- reflex/config.py +4 -7
- reflex/constants/base.py +21 -0
- reflex/constants/installer.py +6 -6
- reflex/custom_components/custom_components.py +67 -64
- reflex/event.py +2 -0
- reflex/page.py +8 -0
- reflex/reflex.py +277 -265
- reflex/testing.py +30 -24
- reflex/utils/codespaces.py +6 -2
- reflex/utils/console.py +4 -3
- reflex/utils/exec.py +60 -24
- reflex/utils/format.py +17 -2
- reflex/utils/prerequisites.py +43 -30
- reflex/utils/processes.py +6 -6
- reflex/utils/types.py +11 -6
- reflex/vars/base.py +19 -1
- {reflex-0.7.8a1.dist-info → reflex-0.7.9.dist-info}/METADATA +6 -9
- {reflex-0.7.8a1.dist-info → reflex-0.7.9.dist-info}/RECORD +44 -44
- {reflex-0.7.8a1.dist-info → reflex-0.7.9.dist-info}/WHEEL +0 -0
- {reflex-0.7.8a1.dist-info → reflex-0.7.9.dist-info}/entry_points.txt +0 -0
- {reflex-0.7.8a1.dist-info → reflex-0.7.9.dist-info}/licenses/LICENSE +0 -0
reflex/components/base/link.pyi
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
6
|
from collections.abc import Mapping, Sequence
|
|
7
|
-
from typing import Any,
|
|
7
|
+
from typing import Any, overload
|
|
8
8
|
|
|
9
|
+
from reflex.components.component import Component
|
|
9
10
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
|
-
from reflex.components.el.elements.base import BaseHTML
|
|
11
11
|
from reflex.event import EventType
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
14
|
-
class RawLink(
|
|
14
|
+
class RawLink(Component):
|
|
15
15
|
@overload
|
|
16
16
|
@classmethod
|
|
17
17
|
def create( # type: ignore
|
|
@@ -19,184 +19,6 @@ class RawLink(BaseHTML):
|
|
|
19
19
|
*children,
|
|
20
20
|
href: Var[str] | str | None = None,
|
|
21
21
|
rel: Var[str] | str | None = None,
|
|
22
|
-
access_key: Var[str] | str | None = None,
|
|
23
|
-
auto_capitalize: Literal[
|
|
24
|
-
"characters", "none", "off", "on", "sentences", "words"
|
|
25
|
-
]
|
|
26
|
-
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
27
|
-
| None = None,
|
|
28
|
-
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
29
|
-
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
30
|
-
| None = None,
|
|
31
|
-
context_menu: Var[str] | str | None = None,
|
|
32
|
-
dir: Var[str] | str | None = None,
|
|
33
|
-
draggable: Var[bool] | bool | None = None,
|
|
34
|
-
enter_key_hint: Literal[
|
|
35
|
-
"done", "enter", "go", "next", "previous", "search", "send"
|
|
36
|
-
]
|
|
37
|
-
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
38
|
-
| None = None,
|
|
39
|
-
hidden: Var[bool] | bool | None = None,
|
|
40
|
-
input_mode: Literal[
|
|
41
|
-
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
42
|
-
]
|
|
43
|
-
| Var[
|
|
44
|
-
Literal[
|
|
45
|
-
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
46
|
-
]
|
|
47
|
-
]
|
|
48
|
-
| None = None,
|
|
49
|
-
item_prop: Var[str] | str | None = None,
|
|
50
|
-
lang: Var[str] | str | None = None,
|
|
51
|
-
role: Literal[
|
|
52
|
-
"alert",
|
|
53
|
-
"alertdialog",
|
|
54
|
-
"application",
|
|
55
|
-
"article",
|
|
56
|
-
"banner",
|
|
57
|
-
"button",
|
|
58
|
-
"cell",
|
|
59
|
-
"checkbox",
|
|
60
|
-
"columnheader",
|
|
61
|
-
"combobox",
|
|
62
|
-
"complementary",
|
|
63
|
-
"contentinfo",
|
|
64
|
-
"definition",
|
|
65
|
-
"dialog",
|
|
66
|
-
"directory",
|
|
67
|
-
"document",
|
|
68
|
-
"feed",
|
|
69
|
-
"figure",
|
|
70
|
-
"form",
|
|
71
|
-
"grid",
|
|
72
|
-
"gridcell",
|
|
73
|
-
"group",
|
|
74
|
-
"heading",
|
|
75
|
-
"img",
|
|
76
|
-
"link",
|
|
77
|
-
"list",
|
|
78
|
-
"listbox",
|
|
79
|
-
"listitem",
|
|
80
|
-
"log",
|
|
81
|
-
"main",
|
|
82
|
-
"marquee",
|
|
83
|
-
"math",
|
|
84
|
-
"menu",
|
|
85
|
-
"menubar",
|
|
86
|
-
"menuitem",
|
|
87
|
-
"menuitemcheckbox",
|
|
88
|
-
"menuitemradio",
|
|
89
|
-
"navigation",
|
|
90
|
-
"none",
|
|
91
|
-
"note",
|
|
92
|
-
"option",
|
|
93
|
-
"presentation",
|
|
94
|
-
"progressbar",
|
|
95
|
-
"radio",
|
|
96
|
-
"radiogroup",
|
|
97
|
-
"region",
|
|
98
|
-
"row",
|
|
99
|
-
"rowgroup",
|
|
100
|
-
"rowheader",
|
|
101
|
-
"scrollbar",
|
|
102
|
-
"search",
|
|
103
|
-
"searchbox",
|
|
104
|
-
"separator",
|
|
105
|
-
"slider",
|
|
106
|
-
"spinbutton",
|
|
107
|
-
"status",
|
|
108
|
-
"switch",
|
|
109
|
-
"tab",
|
|
110
|
-
"table",
|
|
111
|
-
"tablist",
|
|
112
|
-
"tabpanel",
|
|
113
|
-
"term",
|
|
114
|
-
"textbox",
|
|
115
|
-
"timer",
|
|
116
|
-
"toolbar",
|
|
117
|
-
"tooltip",
|
|
118
|
-
"tree",
|
|
119
|
-
"treegrid",
|
|
120
|
-
"treeitem",
|
|
121
|
-
]
|
|
122
|
-
| Var[
|
|
123
|
-
Literal[
|
|
124
|
-
"alert",
|
|
125
|
-
"alertdialog",
|
|
126
|
-
"application",
|
|
127
|
-
"article",
|
|
128
|
-
"banner",
|
|
129
|
-
"button",
|
|
130
|
-
"cell",
|
|
131
|
-
"checkbox",
|
|
132
|
-
"columnheader",
|
|
133
|
-
"combobox",
|
|
134
|
-
"complementary",
|
|
135
|
-
"contentinfo",
|
|
136
|
-
"definition",
|
|
137
|
-
"dialog",
|
|
138
|
-
"directory",
|
|
139
|
-
"document",
|
|
140
|
-
"feed",
|
|
141
|
-
"figure",
|
|
142
|
-
"form",
|
|
143
|
-
"grid",
|
|
144
|
-
"gridcell",
|
|
145
|
-
"group",
|
|
146
|
-
"heading",
|
|
147
|
-
"img",
|
|
148
|
-
"link",
|
|
149
|
-
"list",
|
|
150
|
-
"listbox",
|
|
151
|
-
"listitem",
|
|
152
|
-
"log",
|
|
153
|
-
"main",
|
|
154
|
-
"marquee",
|
|
155
|
-
"math",
|
|
156
|
-
"menu",
|
|
157
|
-
"menubar",
|
|
158
|
-
"menuitem",
|
|
159
|
-
"menuitemcheckbox",
|
|
160
|
-
"menuitemradio",
|
|
161
|
-
"navigation",
|
|
162
|
-
"none",
|
|
163
|
-
"note",
|
|
164
|
-
"option",
|
|
165
|
-
"presentation",
|
|
166
|
-
"progressbar",
|
|
167
|
-
"radio",
|
|
168
|
-
"radiogroup",
|
|
169
|
-
"region",
|
|
170
|
-
"row",
|
|
171
|
-
"rowgroup",
|
|
172
|
-
"rowheader",
|
|
173
|
-
"scrollbar",
|
|
174
|
-
"search",
|
|
175
|
-
"searchbox",
|
|
176
|
-
"separator",
|
|
177
|
-
"slider",
|
|
178
|
-
"spinbutton",
|
|
179
|
-
"status",
|
|
180
|
-
"switch",
|
|
181
|
-
"tab",
|
|
182
|
-
"table",
|
|
183
|
-
"tablist",
|
|
184
|
-
"tabpanel",
|
|
185
|
-
"term",
|
|
186
|
-
"textbox",
|
|
187
|
-
"timer",
|
|
188
|
-
"toolbar",
|
|
189
|
-
"tooltip",
|
|
190
|
-
"tree",
|
|
191
|
-
"treegrid",
|
|
192
|
-
"treeitem",
|
|
193
|
-
]
|
|
194
|
-
]
|
|
195
|
-
| None = None,
|
|
196
|
-
slot: Var[str] | str | None = None,
|
|
197
|
-
spell_check: Var[bool] | bool | None = None,
|
|
198
|
-
tab_index: Var[int] | int | None = None,
|
|
199
|
-
title: Var[str] | str | None = None,
|
|
200
22
|
style: Sequence[Mapping[str, Any]]
|
|
201
23
|
| Mapping[str, Any]
|
|
202
24
|
| Var[Mapping[str, Any]]
|
|
@@ -230,22 +52,6 @@ class RawLink(BaseHTML):
|
|
|
230
52
|
*children: The children of the component.
|
|
231
53
|
href: The href.
|
|
232
54
|
rel: The type of link.
|
|
233
|
-
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
234
|
-
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
235
|
-
content_editable: Indicates whether the element's content is editable.
|
|
236
|
-
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
237
|
-
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
238
|
-
draggable: Defines whether the element can be dragged.
|
|
239
|
-
enter_key_hint: Hints what media types the media element is able to play.
|
|
240
|
-
hidden: Defines whether the element is hidden.
|
|
241
|
-
input_mode: Defines the type of the element.
|
|
242
|
-
item_prop: Defines the name of the element for metadata purposes.
|
|
243
|
-
lang: Defines the language used in the element.
|
|
244
|
-
role: Defines the role of the element.
|
|
245
|
-
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
246
|
-
spell_check: Defines whether the element may be checked for spelling errors.
|
|
247
|
-
tab_index: Defines the position of the current element in the tabbing order.
|
|
248
|
-
title: Defines a tooltip for the element.
|
|
249
55
|
style: The style of the component.
|
|
250
56
|
key: A unique key for the component.
|
|
251
57
|
id: The id for the component.
|
|
@@ -259,7 +65,7 @@ class RawLink(BaseHTML):
|
|
|
259
65
|
"""
|
|
260
66
|
...
|
|
261
67
|
|
|
262
|
-
class ScriptTag(
|
|
68
|
+
class ScriptTag(Component):
|
|
263
69
|
@overload
|
|
264
70
|
@classmethod
|
|
265
71
|
def create( # type: ignore
|
|
@@ -272,184 +78,6 @@ class ScriptTag(BaseHTML):
|
|
|
272
78
|
referrer_policy: Var[str] | str | None = None,
|
|
273
79
|
is_async: Var[bool] | bool | None = None,
|
|
274
80
|
defer: Var[bool] | bool | None = None,
|
|
275
|
-
access_key: Var[str] | str | None = None,
|
|
276
|
-
auto_capitalize: Literal[
|
|
277
|
-
"characters", "none", "off", "on", "sentences", "words"
|
|
278
|
-
]
|
|
279
|
-
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
280
|
-
| None = None,
|
|
281
|
-
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
282
|
-
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
283
|
-
| None = None,
|
|
284
|
-
context_menu: Var[str] | str | None = None,
|
|
285
|
-
dir: Var[str] | str | None = None,
|
|
286
|
-
draggable: Var[bool] | bool | None = None,
|
|
287
|
-
enter_key_hint: Literal[
|
|
288
|
-
"done", "enter", "go", "next", "previous", "search", "send"
|
|
289
|
-
]
|
|
290
|
-
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
291
|
-
| None = None,
|
|
292
|
-
hidden: Var[bool] | bool | None = None,
|
|
293
|
-
input_mode: Literal[
|
|
294
|
-
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
295
|
-
]
|
|
296
|
-
| Var[
|
|
297
|
-
Literal[
|
|
298
|
-
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
299
|
-
]
|
|
300
|
-
]
|
|
301
|
-
| None = None,
|
|
302
|
-
item_prop: Var[str] | str | None = None,
|
|
303
|
-
lang: Var[str] | str | None = None,
|
|
304
|
-
role: Literal[
|
|
305
|
-
"alert",
|
|
306
|
-
"alertdialog",
|
|
307
|
-
"application",
|
|
308
|
-
"article",
|
|
309
|
-
"banner",
|
|
310
|
-
"button",
|
|
311
|
-
"cell",
|
|
312
|
-
"checkbox",
|
|
313
|
-
"columnheader",
|
|
314
|
-
"combobox",
|
|
315
|
-
"complementary",
|
|
316
|
-
"contentinfo",
|
|
317
|
-
"definition",
|
|
318
|
-
"dialog",
|
|
319
|
-
"directory",
|
|
320
|
-
"document",
|
|
321
|
-
"feed",
|
|
322
|
-
"figure",
|
|
323
|
-
"form",
|
|
324
|
-
"grid",
|
|
325
|
-
"gridcell",
|
|
326
|
-
"group",
|
|
327
|
-
"heading",
|
|
328
|
-
"img",
|
|
329
|
-
"link",
|
|
330
|
-
"list",
|
|
331
|
-
"listbox",
|
|
332
|
-
"listitem",
|
|
333
|
-
"log",
|
|
334
|
-
"main",
|
|
335
|
-
"marquee",
|
|
336
|
-
"math",
|
|
337
|
-
"menu",
|
|
338
|
-
"menubar",
|
|
339
|
-
"menuitem",
|
|
340
|
-
"menuitemcheckbox",
|
|
341
|
-
"menuitemradio",
|
|
342
|
-
"navigation",
|
|
343
|
-
"none",
|
|
344
|
-
"note",
|
|
345
|
-
"option",
|
|
346
|
-
"presentation",
|
|
347
|
-
"progressbar",
|
|
348
|
-
"radio",
|
|
349
|
-
"radiogroup",
|
|
350
|
-
"region",
|
|
351
|
-
"row",
|
|
352
|
-
"rowgroup",
|
|
353
|
-
"rowheader",
|
|
354
|
-
"scrollbar",
|
|
355
|
-
"search",
|
|
356
|
-
"searchbox",
|
|
357
|
-
"separator",
|
|
358
|
-
"slider",
|
|
359
|
-
"spinbutton",
|
|
360
|
-
"status",
|
|
361
|
-
"switch",
|
|
362
|
-
"tab",
|
|
363
|
-
"table",
|
|
364
|
-
"tablist",
|
|
365
|
-
"tabpanel",
|
|
366
|
-
"term",
|
|
367
|
-
"textbox",
|
|
368
|
-
"timer",
|
|
369
|
-
"toolbar",
|
|
370
|
-
"tooltip",
|
|
371
|
-
"tree",
|
|
372
|
-
"treegrid",
|
|
373
|
-
"treeitem",
|
|
374
|
-
]
|
|
375
|
-
| Var[
|
|
376
|
-
Literal[
|
|
377
|
-
"alert",
|
|
378
|
-
"alertdialog",
|
|
379
|
-
"application",
|
|
380
|
-
"article",
|
|
381
|
-
"banner",
|
|
382
|
-
"button",
|
|
383
|
-
"cell",
|
|
384
|
-
"checkbox",
|
|
385
|
-
"columnheader",
|
|
386
|
-
"combobox",
|
|
387
|
-
"complementary",
|
|
388
|
-
"contentinfo",
|
|
389
|
-
"definition",
|
|
390
|
-
"dialog",
|
|
391
|
-
"directory",
|
|
392
|
-
"document",
|
|
393
|
-
"feed",
|
|
394
|
-
"figure",
|
|
395
|
-
"form",
|
|
396
|
-
"grid",
|
|
397
|
-
"gridcell",
|
|
398
|
-
"group",
|
|
399
|
-
"heading",
|
|
400
|
-
"img",
|
|
401
|
-
"link",
|
|
402
|
-
"list",
|
|
403
|
-
"listbox",
|
|
404
|
-
"listitem",
|
|
405
|
-
"log",
|
|
406
|
-
"main",
|
|
407
|
-
"marquee",
|
|
408
|
-
"math",
|
|
409
|
-
"menu",
|
|
410
|
-
"menubar",
|
|
411
|
-
"menuitem",
|
|
412
|
-
"menuitemcheckbox",
|
|
413
|
-
"menuitemradio",
|
|
414
|
-
"navigation",
|
|
415
|
-
"none",
|
|
416
|
-
"note",
|
|
417
|
-
"option",
|
|
418
|
-
"presentation",
|
|
419
|
-
"progressbar",
|
|
420
|
-
"radio",
|
|
421
|
-
"radiogroup",
|
|
422
|
-
"region",
|
|
423
|
-
"row",
|
|
424
|
-
"rowgroup",
|
|
425
|
-
"rowheader",
|
|
426
|
-
"scrollbar",
|
|
427
|
-
"search",
|
|
428
|
-
"searchbox",
|
|
429
|
-
"separator",
|
|
430
|
-
"slider",
|
|
431
|
-
"spinbutton",
|
|
432
|
-
"status",
|
|
433
|
-
"switch",
|
|
434
|
-
"tab",
|
|
435
|
-
"table",
|
|
436
|
-
"tablist",
|
|
437
|
-
"tabpanel",
|
|
438
|
-
"term",
|
|
439
|
-
"textbox",
|
|
440
|
-
"timer",
|
|
441
|
-
"toolbar",
|
|
442
|
-
"tooltip",
|
|
443
|
-
"tree",
|
|
444
|
-
"treegrid",
|
|
445
|
-
"treeitem",
|
|
446
|
-
]
|
|
447
|
-
]
|
|
448
|
-
| None = None,
|
|
449
|
-
slot: Var[str] | str | None = None,
|
|
450
|
-
spell_check: Var[bool] | bool | None = None,
|
|
451
|
-
tab_index: Var[int] | int | None = None,
|
|
452
|
-
title: Var[str] | str | None = None,
|
|
453
81
|
style: Sequence[Mapping[str, Any]]
|
|
454
82
|
| Mapping[str, Any]
|
|
455
83
|
| Var[Mapping[str, Any]]
|
|
@@ -488,22 +116,6 @@ class ScriptTag(BaseHTML):
|
|
|
488
116
|
referrer_policy: Indicates which referrer to send when fetching the script.
|
|
489
117
|
is_async: Whether to asynchronously load the script.
|
|
490
118
|
defer: Whether to defer loading the script.
|
|
491
|
-
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
492
|
-
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
493
|
-
content_editable: Indicates whether the element's content is editable.
|
|
494
|
-
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
495
|
-
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
496
|
-
draggable: Defines whether the element can be dragged.
|
|
497
|
-
enter_key_hint: Hints what media types the media element is able to play.
|
|
498
|
-
hidden: Defines whether the element is hidden.
|
|
499
|
-
input_mode: Defines the type of the element.
|
|
500
|
-
item_prop: Defines the name of the element for metadata purposes.
|
|
501
|
-
lang: Defines the language used in the element.
|
|
502
|
-
role: Defines the role of the element.
|
|
503
|
-
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
504
|
-
spell_check: Defines whether the element may be checked for spelling errors.
|
|
505
|
-
tab_index: Defines the position of the current element in the tabbing order.
|
|
506
|
-
title: Defines a tooltip for the element.
|
|
507
119
|
style: The style of the component.
|
|
508
120
|
key: A unique key for the component.
|
|
509
121
|
id: The id for the component.
|