reflex 0.8.4a2__py3-none-any.whl → 0.8.5a1__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/__init__.py +2 -9
- reflex/__init__.pyi +4 -2
- reflex/app.py +16 -10
- reflex/compiler/compiler.py +10 -3
- reflex/components/base/app_wrap.pyi +0 -1
- reflex/components/base/body.pyi +0 -2
- reflex/components/base/document.pyi +0 -12
- reflex/components/base/error_boundary.pyi +0 -2
- reflex/components/base/fragment.pyi +0 -2
- reflex/components/base/link.pyi +0 -4
- reflex/components/base/meta.pyi +0 -6
- reflex/components/base/script.py +0 -2
- reflex/components/base/script.pyi +0 -2
- reflex/components/base/strict_mode.pyi +0 -2
- reflex/components/component.py +2 -30
- reflex/components/core/auto_scroll.pyi +0 -2
- reflex/components/core/banner.pyi +0 -10
- reflex/components/core/client_side_routing.pyi +0 -2
- reflex/components/core/clipboard.py +1 -3
- reflex/components/core/clipboard.pyi +0 -2
- reflex/components/core/cond.py +0 -2
- reflex/components/core/debounce.pyi +0 -1
- reflex/components/core/helmet.pyi +0 -2
- reflex/components/core/html.pyi +0 -2
- reflex/components/core/match.py +1 -2
- reflex/components/core/sticky.pyi +0 -4
- reflex/components/core/upload.pyi +0 -10
- reflex/components/core/window_events.pyi +0 -2
- reflex/components/datadisplay/code.py +6 -4
- reflex/components/datadisplay/code.pyi +0 -4
- reflex/components/datadisplay/dataeditor.pyi +0 -2
- reflex/components/datadisplay/shiki_code_block.pyi +0 -6
- reflex/components/el/element.pyi +0 -2
- reflex/components/el/elements/base.pyi +0 -2
- reflex/components/el/elements/forms.py +5 -21
- reflex/components/el/elements/forms.pyi +0 -38
- reflex/components/el/elements/inline.pyi +0 -56
- reflex/components/el/elements/media.pyi +0 -52
- reflex/components/el/elements/metadata.pyi +0 -12
- reflex/components/el/elements/other.pyi +0 -14
- reflex/components/el/elements/scripts.pyi +0 -6
- reflex/components/el/elements/sectioning.pyi +0 -30
- reflex/components/el/elements/tables.pyi +0 -20
- reflex/components/el/elements/typography.pyi +0 -32
- reflex/components/gridjs/datatable.pyi +0 -4
- reflex/components/lucide/icon.py +12 -1
- reflex/components/lucide/icon.pyi +12 -7
- reflex/components/markdown/markdown.pyi +0 -2
- reflex/components/moment/moment.pyi +0 -2
- reflex/components/plotly/plotly.py +25 -17
- reflex/components/plotly/plotly.pyi +0 -18
- reflex/components/radix/primitives/accordion.pyi +0 -14
- reflex/components/radix/primitives/base.pyi +0 -4
- reflex/components/radix/primitives/drawer.pyi +0 -22
- reflex/components/radix/primitives/form.pyi +0 -20
- reflex/components/radix/primitives/progress.pyi +0 -10
- reflex/components/radix/primitives/slider.pyi +0 -10
- reflex/components/radix/themes/base.py +2 -4
- reflex/components/radix/themes/base.pyi +0 -15
- reflex/components/radix/themes/color_mode.pyi +0 -5
- reflex/components/radix/themes/components/alert_dialog.pyi +0 -11
- reflex/components/radix/themes/components/aspect_ratio.pyi +0 -2
- reflex/components/radix/themes/components/avatar.pyi +0 -2
- reflex/components/radix/themes/components/badge.pyi +0 -2
- reflex/components/radix/themes/components/button.pyi +0 -2
- reflex/components/radix/themes/components/callout.pyi +0 -10
- reflex/components/radix/themes/components/card.pyi +0 -2
- reflex/components/radix/themes/components/checkbox.pyi +0 -6
- reflex/components/radix/themes/components/checkbox_cards.pyi +0 -4
- reflex/components/radix/themes/components/checkbox_group.pyi +0 -4
- reflex/components/radix/themes/components/context_menu.pyi +0 -26
- reflex/components/radix/themes/components/data_list.pyi +0 -8
- reflex/components/radix/themes/components/dialog.pyi +0 -12
- reflex/components/radix/themes/components/dropdown_menu.pyi +0 -14
- reflex/components/radix/themes/components/hover_card.pyi +0 -7
- reflex/components/radix/themes/components/icon_button.pyi +0 -2
- reflex/components/radix/themes/components/inset.pyi +0 -2
- reflex/components/radix/themes/components/popover.pyi +0 -6
- reflex/components/radix/themes/components/progress.pyi +0 -2
- reflex/components/radix/themes/components/radio.pyi +0 -2
- reflex/components/radix/themes/components/radio_cards.pyi +0 -4
- reflex/components/radix/themes/components/radio_group.pyi +0 -8
- reflex/components/radix/themes/components/scroll_area.pyi +0 -2
- reflex/components/radix/themes/components/segmented_control.pyi +0 -4
- reflex/components/radix/themes/components/select.pyi +0 -18
- reflex/components/radix/themes/components/separator.pyi +0 -2
- reflex/components/radix/themes/components/skeleton.pyi +0 -2
- reflex/components/radix/themes/components/slider.pyi +0 -2
- reflex/components/radix/themes/components/spinner.pyi +0 -2
- reflex/components/radix/themes/components/switch.pyi +0 -2
- reflex/components/radix/themes/components/table.pyi +0 -14
- reflex/components/radix/themes/components/tabs.pyi +0 -10
- reflex/components/radix/themes/components/text_area.pyi +0 -2
- reflex/components/radix/themes/components/text_field.pyi +0 -6
- reflex/components/radix/themes/components/tooltip.pyi +0 -2
- reflex/components/radix/themes/layout/base.pyi +0 -2
- reflex/components/radix/themes/layout/box.pyi +0 -2
- reflex/components/radix/themes/layout/center.pyi +0 -2
- reflex/components/radix/themes/layout/container.pyi +0 -1
- reflex/components/radix/themes/layout/flex.pyi +0 -2
- reflex/components/radix/themes/layout/grid.pyi +0 -2
- reflex/components/radix/themes/layout/list.pyi +0 -10
- reflex/components/radix/themes/layout/section.pyi +0 -2
- reflex/components/radix/themes/layout/spacer.pyi +0 -2
- reflex/components/radix/themes/layout/stack.pyi +0 -6
- reflex/components/radix/themes/typography/blockquote.pyi +0 -2
- reflex/components/radix/themes/typography/code.pyi +0 -2
- reflex/components/radix/themes/typography/heading.pyi +0 -2
- reflex/components/radix/themes/typography/link.pyi +0 -2
- reflex/components/radix/themes/typography/text.pyi +0 -14
- reflex/components/react_player/audio.pyi +0 -2
- reflex/components/react_player/react_player.pyi +0 -2
- reflex/components/react_player/video.pyi +0 -2
- reflex/components/react_router/dom.pyi +0 -2
- reflex/components/recharts/cartesian.pyi +0 -38
- reflex/components/recharts/charts.pyi +0 -24
- reflex/components/recharts/general.pyi +0 -12
- reflex/components/recharts/polar.pyi +0 -12
- reflex/components/recharts/recharts.pyi +0 -4
- reflex/components/sonner/toast.pyi +0 -2
- reflex/components/tags/cond_tag.py +4 -3
- reflex/components/tags/iter_tag.py +1 -1
- reflex/components/tags/match_tag.py +3 -2
- reflex/components/tags/tag.py +39 -40
- reflex/constants/compiler.py +0 -8
- reflex/constants/installer.py +5 -5
- reflex/event.py +77 -15
- reflex/page.py +62 -4
- reflex/reflex.py +2 -5
- reflex/utils/net.py +7 -2
- reflex/utils/prerequisites.py +8 -71
- reflex/utils/processes.py +6 -6
- {reflex-0.8.4a2.dist-info → reflex-0.8.5a1.dist-info}/METADATA +2 -2
- {reflex-0.8.4a2.dist-info → reflex-0.8.5a1.dist-info}/RECORD +137 -141
- reflex/components/el/constants/__init__.py +0 -5
- reflex/components/el/constants/html.py +0 -343
- reflex/components/el/constants/react.py +0 -501
- reflex/components/el/constants/reflex.py +0 -51
- {reflex-0.8.4a2.dist-info → reflex-0.8.5a1.dist-info}/WHEEL +0 -0
- {reflex-0.8.4a2.dist-info → reflex-0.8.5a1.dist-info}/entry_points.txt +0 -0
- {reflex-0.8.4a2.dist-info → reflex-0.8.5a1.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,343 +0,0 @@
|
|
|
1
|
-
"""HTML constants."""
|
|
2
|
-
|
|
3
|
-
# See https://html.spec.whatwg.org/#elements-3.
|
|
4
|
-
ELEMENTS = {
|
|
5
|
-
"a",
|
|
6
|
-
"abbr",
|
|
7
|
-
"address",
|
|
8
|
-
"area",
|
|
9
|
-
"article",
|
|
10
|
-
"aside",
|
|
11
|
-
"audio",
|
|
12
|
-
"b",
|
|
13
|
-
"base",
|
|
14
|
-
"bdi",
|
|
15
|
-
"bdo",
|
|
16
|
-
"blockquote",
|
|
17
|
-
"body",
|
|
18
|
-
"br",
|
|
19
|
-
"button",
|
|
20
|
-
"canvas",
|
|
21
|
-
"caption",
|
|
22
|
-
"cite",
|
|
23
|
-
"code",
|
|
24
|
-
"col",
|
|
25
|
-
"colgroup",
|
|
26
|
-
"data",
|
|
27
|
-
"datalist",
|
|
28
|
-
"dd",
|
|
29
|
-
"del",
|
|
30
|
-
"details",
|
|
31
|
-
"dfn",
|
|
32
|
-
"dialog",
|
|
33
|
-
"div",
|
|
34
|
-
"dl",
|
|
35
|
-
"dt",
|
|
36
|
-
"em",
|
|
37
|
-
"embed",
|
|
38
|
-
"fieldset",
|
|
39
|
-
"figcaption",
|
|
40
|
-
"figure",
|
|
41
|
-
"footer",
|
|
42
|
-
"form",
|
|
43
|
-
"h1",
|
|
44
|
-
"h2",
|
|
45
|
-
"h3",
|
|
46
|
-
"h4",
|
|
47
|
-
"h5",
|
|
48
|
-
"h6",
|
|
49
|
-
"head",
|
|
50
|
-
"header",
|
|
51
|
-
"hr",
|
|
52
|
-
"html",
|
|
53
|
-
"i",
|
|
54
|
-
"iframe",
|
|
55
|
-
"img",
|
|
56
|
-
"input",
|
|
57
|
-
"ins",
|
|
58
|
-
"kbd",
|
|
59
|
-
"label",
|
|
60
|
-
"legend",
|
|
61
|
-
"li",
|
|
62
|
-
"link",
|
|
63
|
-
"main",
|
|
64
|
-
"map",
|
|
65
|
-
"mark",
|
|
66
|
-
"math",
|
|
67
|
-
"menu",
|
|
68
|
-
"meta",
|
|
69
|
-
"meter",
|
|
70
|
-
"nav",
|
|
71
|
-
"noscript",
|
|
72
|
-
"object",
|
|
73
|
-
"ol",
|
|
74
|
-
"optgroup",
|
|
75
|
-
"option",
|
|
76
|
-
"output",
|
|
77
|
-
"p",
|
|
78
|
-
"picture",
|
|
79
|
-
"portal",
|
|
80
|
-
"pre",
|
|
81
|
-
"progress",
|
|
82
|
-
"q",
|
|
83
|
-
"rp",
|
|
84
|
-
"rt",
|
|
85
|
-
"ruby",
|
|
86
|
-
"s",
|
|
87
|
-
"samp",
|
|
88
|
-
"script",
|
|
89
|
-
"section",
|
|
90
|
-
"select",
|
|
91
|
-
"slot",
|
|
92
|
-
"small",
|
|
93
|
-
"source",
|
|
94
|
-
"span",
|
|
95
|
-
"strong",
|
|
96
|
-
"style",
|
|
97
|
-
"sub",
|
|
98
|
-
"summary",
|
|
99
|
-
"sup",
|
|
100
|
-
"svg",
|
|
101
|
-
"table",
|
|
102
|
-
"tbody",
|
|
103
|
-
"td",
|
|
104
|
-
"template",
|
|
105
|
-
"textarea",
|
|
106
|
-
"tfoot",
|
|
107
|
-
"th",
|
|
108
|
-
"thead",
|
|
109
|
-
"time",
|
|
110
|
-
"title",
|
|
111
|
-
"tr",
|
|
112
|
-
"track",
|
|
113
|
-
"u",
|
|
114
|
-
"ul",
|
|
115
|
-
"var",
|
|
116
|
-
"video",
|
|
117
|
-
"wbr",
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
# See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes.
|
|
121
|
-
ATTR_TO_ELEMENTS = {
|
|
122
|
-
"accept": {"form", "input"},
|
|
123
|
-
"accept-charset": {"form"},
|
|
124
|
-
"accesskey": ELEMENTS,
|
|
125
|
-
"action": {"form"},
|
|
126
|
-
"align": {
|
|
127
|
-
"applet",
|
|
128
|
-
"caption",
|
|
129
|
-
"col",
|
|
130
|
-
"colgroup",
|
|
131
|
-
"hr",
|
|
132
|
-
"iframe",
|
|
133
|
-
"img",
|
|
134
|
-
"table",
|
|
135
|
-
"tbody",
|
|
136
|
-
"td",
|
|
137
|
-
"tfoot",
|
|
138
|
-
"th",
|
|
139
|
-
"thead",
|
|
140
|
-
"tr",
|
|
141
|
-
},
|
|
142
|
-
"allow": {"iframe"},
|
|
143
|
-
"alt": {"applet", "area", "img", "input"},
|
|
144
|
-
"async": {"script"},
|
|
145
|
-
"autocapitalize": ELEMENTS,
|
|
146
|
-
"autocomplete": {"form", "input", "select", "textarea"},
|
|
147
|
-
"autofocus": {"button", "input", "keygen", "select", "textarea"},
|
|
148
|
-
"autoplay": {"audio", "video"},
|
|
149
|
-
"background": {"body", "table", "td", "th"},
|
|
150
|
-
"bgcolor": {
|
|
151
|
-
"body",
|
|
152
|
-
"col",
|
|
153
|
-
"colgroup",
|
|
154
|
-
"marquee",
|
|
155
|
-
"table",
|
|
156
|
-
"tbody",
|
|
157
|
-
"tfoot",
|
|
158
|
-
"td",
|
|
159
|
-
"th",
|
|
160
|
-
"tr",
|
|
161
|
-
},
|
|
162
|
-
"border": {"img", "object", "table"},
|
|
163
|
-
"buffered": {"audio", "video"},
|
|
164
|
-
"capture": {"input"},
|
|
165
|
-
"challenge": {"keygen"},
|
|
166
|
-
"charset": {"meta", "script"},
|
|
167
|
-
"checked": {"input"},
|
|
168
|
-
"cite": {"blockquote", "del", "ins", "q"},
|
|
169
|
-
"class": ELEMENTS,
|
|
170
|
-
"code": {"applet"},
|
|
171
|
-
"codebase": {"applet"},
|
|
172
|
-
"color": {"font", "hr"},
|
|
173
|
-
"cols": {"textarea"},
|
|
174
|
-
"colspan": {"td", "th"},
|
|
175
|
-
"content": {"meta"},
|
|
176
|
-
"contenteditable": ELEMENTS,
|
|
177
|
-
"contextmenu": ELEMENTS,
|
|
178
|
-
"controls": {"audio", "video"},
|
|
179
|
-
"coords": {"area"},
|
|
180
|
-
"crossorigin": {"audio", "img", "link", "script", "video"},
|
|
181
|
-
"csp": {"iframe"},
|
|
182
|
-
"data": {"object"},
|
|
183
|
-
"datetime": {"del", "ins", "time"},
|
|
184
|
-
"decoding": {"img"},
|
|
185
|
-
"default": {"track"},
|
|
186
|
-
"defer": {"script"},
|
|
187
|
-
"dir": ELEMENTS,
|
|
188
|
-
"dirname": {"input", "textarea"},
|
|
189
|
-
"disabled": {
|
|
190
|
-
"button",
|
|
191
|
-
"fieldset",
|
|
192
|
-
"input",
|
|
193
|
-
"keygen",
|
|
194
|
-
"optgroup",
|
|
195
|
-
"option",
|
|
196
|
-
"select",
|
|
197
|
-
"textarea",
|
|
198
|
-
},
|
|
199
|
-
"download": {"a", "area"},
|
|
200
|
-
"draggable": ELEMENTS,
|
|
201
|
-
"enctype": {"form"},
|
|
202
|
-
"enterkeyhint": ELEMENTS,
|
|
203
|
-
"for": {"label", "output"},
|
|
204
|
-
"form": {
|
|
205
|
-
"button",
|
|
206
|
-
"fieldset",
|
|
207
|
-
"input",
|
|
208
|
-
"keygen",
|
|
209
|
-
"label",
|
|
210
|
-
"meter",
|
|
211
|
-
"object",
|
|
212
|
-
"output",
|
|
213
|
-
"progress",
|
|
214
|
-
"select",
|
|
215
|
-
"textarea",
|
|
216
|
-
},
|
|
217
|
-
"formaction": {"button", "input"},
|
|
218
|
-
"formenctype": {"button", "input"},
|
|
219
|
-
"formmethod": {"button", "input"},
|
|
220
|
-
"formnovalidate": {"button", "input"},
|
|
221
|
-
"formtarget": {"button", "input"},
|
|
222
|
-
"headers": {"td", "th"},
|
|
223
|
-
"height": {"canvas", "embed", "iframe", "img", "input", "object", "video"},
|
|
224
|
-
"hidden": ELEMENTS,
|
|
225
|
-
"high": {"meter"},
|
|
226
|
-
"href": {"a", "area", "base", "link"},
|
|
227
|
-
"hreflang": {"a", "area", "link"},
|
|
228
|
-
"http-equiv": {"meta"},
|
|
229
|
-
"icon": {"command"},
|
|
230
|
-
"id": ELEMENTS,
|
|
231
|
-
"integrity": {"link", "script"},
|
|
232
|
-
"intrinsicsize": {"img"},
|
|
233
|
-
"inputmode": ELEMENTS,
|
|
234
|
-
"ismap": {"img"},
|
|
235
|
-
"itemprop": ELEMENTS,
|
|
236
|
-
"keytype": {"keygen"},
|
|
237
|
-
"kind": {"track"},
|
|
238
|
-
"label": {"optgroup", "option", "track"},
|
|
239
|
-
"lang": ELEMENTS,
|
|
240
|
-
"language": {"script"},
|
|
241
|
-
"loading": {"img", "iframe"},
|
|
242
|
-
"list": {"input"},
|
|
243
|
-
"loop": {"audio", "bgsound", "marquee", "video"},
|
|
244
|
-
"low": {"meter"},
|
|
245
|
-
"manifest": {"html"},
|
|
246
|
-
"max": {"input", "meter", "progress"},
|
|
247
|
-
"maxlength": {"input", "textarea"},
|
|
248
|
-
"minlength": {"input", "textarea"},
|
|
249
|
-
"media": {"a", "area", "link", "source", "style"},
|
|
250
|
-
"method": {"form"},
|
|
251
|
-
"min": {"input", "meter"},
|
|
252
|
-
"multiple": {"input", "select"},
|
|
253
|
-
"muted": {"audio", "video"},
|
|
254
|
-
"name": {
|
|
255
|
-
"button",
|
|
256
|
-
"form",
|
|
257
|
-
"fieldset",
|
|
258
|
-
"iframe",
|
|
259
|
-
"input",
|
|
260
|
-
"keygen",
|
|
261
|
-
"object",
|
|
262
|
-
"output",
|
|
263
|
-
"select",
|
|
264
|
-
"textarea",
|
|
265
|
-
"map",
|
|
266
|
-
"meta",
|
|
267
|
-
"param",
|
|
268
|
-
},
|
|
269
|
-
"novalidate": {"form"},
|
|
270
|
-
"open": {"details", "dialog"},
|
|
271
|
-
"optimum": {"meter"},
|
|
272
|
-
"pattern": {"input"},
|
|
273
|
-
"ping": {"a", "area"},
|
|
274
|
-
"placeholder": {"input", "textarea"},
|
|
275
|
-
"playsinline": {"video"},
|
|
276
|
-
"poster": {"video"},
|
|
277
|
-
"preload": {"audio", "video"},
|
|
278
|
-
"readonly": {"input", "textarea"},
|
|
279
|
-
"referrerpolicy": {"a", "area", "iframe", "img", "link", "script"},
|
|
280
|
-
"rel": {"a", "area", "link"},
|
|
281
|
-
"required": {"input", "select", "textarea"},
|
|
282
|
-
"reversed": {"ol"},
|
|
283
|
-
"role": ELEMENTS,
|
|
284
|
-
"rows": {"textarea"},
|
|
285
|
-
"rowspan": {"td", "th"},
|
|
286
|
-
"sandbox": {"iframe"},
|
|
287
|
-
"scope": {"th"},
|
|
288
|
-
"scoped": {"style"},
|
|
289
|
-
"selected": {"option"},
|
|
290
|
-
"shape": {"a", "area"},
|
|
291
|
-
"size": {"input", "select"},
|
|
292
|
-
"sizes": {"link", "img", "source"},
|
|
293
|
-
"slot": ELEMENTS,
|
|
294
|
-
"span": {"col", "colgroup"},
|
|
295
|
-
"spellcheck": ELEMENTS,
|
|
296
|
-
"src": {
|
|
297
|
-
"audio",
|
|
298
|
-
"embed",
|
|
299
|
-
"iframe",
|
|
300
|
-
"img",
|
|
301
|
-
"input",
|
|
302
|
-
"script",
|
|
303
|
-
"source",
|
|
304
|
-
"track",
|
|
305
|
-
"video",
|
|
306
|
-
},
|
|
307
|
-
"srcdoc": {"iframe"},
|
|
308
|
-
"srclang": {"track"},
|
|
309
|
-
"srcset": {"img", "source"},
|
|
310
|
-
"start": {"ol"},
|
|
311
|
-
"step": {"input"},
|
|
312
|
-
"style": ELEMENTS,
|
|
313
|
-
"summary": {"table"},
|
|
314
|
-
"tabindex": ELEMENTS,
|
|
315
|
-
"target": {"a", "area", "base", "form"},
|
|
316
|
-
"title": ELEMENTS,
|
|
317
|
-
"translate": ELEMENTS,
|
|
318
|
-
"type": {
|
|
319
|
-
"button",
|
|
320
|
-
"input",
|
|
321
|
-
"embed",
|
|
322
|
-
"object",
|
|
323
|
-
"ol",
|
|
324
|
-
"script",
|
|
325
|
-
"source",
|
|
326
|
-
"style",
|
|
327
|
-
"menu",
|
|
328
|
-
"link",
|
|
329
|
-
},
|
|
330
|
-
"usemap": {"img", "input", "object"},
|
|
331
|
-
"value": {
|
|
332
|
-
"button",
|
|
333
|
-
"data",
|
|
334
|
-
"input",
|
|
335
|
-
"li",
|
|
336
|
-
"meter",
|
|
337
|
-
"option",
|
|
338
|
-
"progress",
|
|
339
|
-
"param",
|
|
340
|
-
},
|
|
341
|
-
"width": {"canvas", "embed", "iframe", "img", "input", "object", "video"},
|
|
342
|
-
"wrap": {"textarea"},
|
|
343
|
-
}
|