reflex 0.8.4a1__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/.templates/web/utils/react-theme.js +12 -17
- 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/misc.py +0 -3
- reflex/utils/net.py +7 -2
- reflex/utils/prerequisites.py +8 -71
- reflex/utils/processes.py +6 -6
- {reflex-0.8.4a1.dist-info → reflex-0.8.5a1.dist-info}/METADATA +2 -2
- {reflex-0.8.4a1.dist-info → reflex-0.8.5a1.dist-info}/RECORD +139 -143
- 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.4a1.dist-info → reflex-0.8.5a1.dist-info}/WHEEL +0 -0
- {reflex-0.8.4a1.dist-info → reflex-0.8.5a1.dist-info}/entry_points.txt +0 -0
- {reflex-0.8.4a1.dist-info → reflex-0.8.5a1.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,501 +0,0 @@
|
|
|
1
|
-
"""Constants used to compile element classes.
|
|
2
|
-
|
|
3
|
-
Ported from React DOM's possibleStandardNames.js. See the following link for
|
|
4
|
-
more information:
|
|
5
|
-
|
|
6
|
-
https://github.com/facebook/react/blob/d1ad984db1591b131d16739a24dee4ba44886a09/packages/react-dom-bindings/src/shared/possibleStandardNames.js
|
|
7
|
-
"""
|
|
8
|
-
|
|
9
|
-
# Possible misspellings of React prop names, including incorrect casing.
|
|
10
|
-
POSSIBLE_STANDARD_NAMES = {
|
|
11
|
-
# HTML
|
|
12
|
-
"accept": "accept",
|
|
13
|
-
"acceptcharset": "acceptCharset",
|
|
14
|
-
"accept-charset": "acceptCharset",
|
|
15
|
-
"accesskey": "accessKey",
|
|
16
|
-
"action": "action",
|
|
17
|
-
"allowfullscreen": "allowFullScreen",
|
|
18
|
-
"alt": "alt",
|
|
19
|
-
"as": "as",
|
|
20
|
-
"async": "async",
|
|
21
|
-
"autocapitalize": "autoCapitalize",
|
|
22
|
-
"autocomplete": "autoComplete",
|
|
23
|
-
"autocorrect": "autoCorrect",
|
|
24
|
-
"autofocus": "autoFocus",
|
|
25
|
-
"autoplay": "autoPlay",
|
|
26
|
-
"autosave": "autoSave",
|
|
27
|
-
"capture": "capture",
|
|
28
|
-
"cellpadding": "cellPadding",
|
|
29
|
-
"cellspacing": "cellSpacing",
|
|
30
|
-
"challenge": "challenge",
|
|
31
|
-
"charset": "charSet",
|
|
32
|
-
"checked": "checked",
|
|
33
|
-
"children": "children",
|
|
34
|
-
"cite": "cite",
|
|
35
|
-
"class": "className",
|
|
36
|
-
"classid": "classID",
|
|
37
|
-
"classname": "className",
|
|
38
|
-
"cols": "cols",
|
|
39
|
-
"colspan": "colSpan",
|
|
40
|
-
"content": "content",
|
|
41
|
-
"contenteditable": "contentEditable",
|
|
42
|
-
"contextmenu": "contextMenu",
|
|
43
|
-
"controls": "controls",
|
|
44
|
-
"controlslist": "controlsList",
|
|
45
|
-
"coords": "coords",
|
|
46
|
-
"crossorigin": "crossOrigin",
|
|
47
|
-
"dangerouslysetinnerhtml": "dangerouslySetInnerHTML",
|
|
48
|
-
"data": "data",
|
|
49
|
-
"datetime": "dateTime",
|
|
50
|
-
"default": "default",
|
|
51
|
-
"defaultchecked": "defaultChecked",
|
|
52
|
-
"defaultvalue": "defaultValue",
|
|
53
|
-
"defer": "defer",
|
|
54
|
-
"dir": "dir",
|
|
55
|
-
"disabled": "disabled",
|
|
56
|
-
"disablepictureinpicture": "disablePictureInPicture",
|
|
57
|
-
"disableremoteplayback": "disableRemotePlayback",
|
|
58
|
-
"download": "download",
|
|
59
|
-
"draggable": "draggable",
|
|
60
|
-
"enctype": "encType",
|
|
61
|
-
"enterkeyhint": "enterKeyHint",
|
|
62
|
-
"fetchpriority": "fetchPriority",
|
|
63
|
-
"for": "htmlFor",
|
|
64
|
-
"form": "form",
|
|
65
|
-
"formmethod": "formMethod",
|
|
66
|
-
"formaction": "formAction",
|
|
67
|
-
"formenctype": "formEncType",
|
|
68
|
-
"formnovalidate": "formNoValidate",
|
|
69
|
-
"formtarget": "formTarget",
|
|
70
|
-
"frameborder": "frameBorder",
|
|
71
|
-
"headers": "headers",
|
|
72
|
-
"height": "height",
|
|
73
|
-
"hidden": "hidden",
|
|
74
|
-
"high": "high",
|
|
75
|
-
"href": "href",
|
|
76
|
-
"hreflang": "hrefLang",
|
|
77
|
-
"htmlfor": "htmlFor",
|
|
78
|
-
"httpequiv": "httpEquiv",
|
|
79
|
-
"http-equiv": "httpEquiv",
|
|
80
|
-
"icon": "icon",
|
|
81
|
-
"id": "id",
|
|
82
|
-
"imagesizes": "imageSizes",
|
|
83
|
-
"imagesrcset": "imageSrcSet",
|
|
84
|
-
"innerhtml": "innerHTML",
|
|
85
|
-
"inputmode": "inputMode",
|
|
86
|
-
"integrity": "integrity",
|
|
87
|
-
"is": "is",
|
|
88
|
-
"itemid": "itemID",
|
|
89
|
-
"itemprop": "itemProp",
|
|
90
|
-
"itemref": "itemRef",
|
|
91
|
-
"itemscope": "itemScope",
|
|
92
|
-
"itemtype": "itemType",
|
|
93
|
-
"keyparams": "keyParams",
|
|
94
|
-
"keytype": "keyType",
|
|
95
|
-
"kind": "kind",
|
|
96
|
-
"label": "label",
|
|
97
|
-
"lang": "lang",
|
|
98
|
-
"list": "list",
|
|
99
|
-
"loop": "loop",
|
|
100
|
-
"low": "low",
|
|
101
|
-
"manifest": "manifest",
|
|
102
|
-
"marginwidth": "marginWidth",
|
|
103
|
-
"marginheight": "marginHeight",
|
|
104
|
-
"max": "max",
|
|
105
|
-
"maxlength": "maxLength",
|
|
106
|
-
"media": "media",
|
|
107
|
-
"mediagroup": "mediaGroup",
|
|
108
|
-
"method": "method",
|
|
109
|
-
"min": "min",
|
|
110
|
-
"minlength": "minLength",
|
|
111
|
-
"multiple": "multiple",
|
|
112
|
-
"muted": "muted",
|
|
113
|
-
"name": "name",
|
|
114
|
-
"nomodule": "noModule",
|
|
115
|
-
"nonce": "nonce",
|
|
116
|
-
"novalidate": "noValidate",
|
|
117
|
-
"open": "open",
|
|
118
|
-
"optimum": "optimum",
|
|
119
|
-
"pattern": "pattern",
|
|
120
|
-
"placeholder": "placeholder",
|
|
121
|
-
"playsinline": "playsInline",
|
|
122
|
-
"poster": "poster",
|
|
123
|
-
"preload": "preload",
|
|
124
|
-
"profile": "profile",
|
|
125
|
-
"radiogroup": "radioGroup",
|
|
126
|
-
"readonly": "readOnly",
|
|
127
|
-
"referrerpolicy": "referrerPolicy",
|
|
128
|
-
"rel": "rel",
|
|
129
|
-
"required": "required",
|
|
130
|
-
"reversed": "reversed",
|
|
131
|
-
"role": "role",
|
|
132
|
-
"rows": "rows",
|
|
133
|
-
"rowspan": "rowSpan",
|
|
134
|
-
"sandbox": "sandbox",
|
|
135
|
-
"scope": "scope",
|
|
136
|
-
"scoped": "scoped",
|
|
137
|
-
"scrolling": "scrolling",
|
|
138
|
-
"seamless": "seamless",
|
|
139
|
-
"selected": "selected",
|
|
140
|
-
"shape": "shape",
|
|
141
|
-
"size": "size",
|
|
142
|
-
"sizes": "sizes",
|
|
143
|
-
"span": "span",
|
|
144
|
-
"spellcheck": "spellCheck",
|
|
145
|
-
"src": "src",
|
|
146
|
-
"srcdoc": "srcDoc",
|
|
147
|
-
"srclang": "srcLang",
|
|
148
|
-
"srcset": "srcSet",
|
|
149
|
-
"start": "start",
|
|
150
|
-
"step": "step",
|
|
151
|
-
"style": "style",
|
|
152
|
-
"summary": "summary",
|
|
153
|
-
"tabindex": "tabIndex",
|
|
154
|
-
"target": "target",
|
|
155
|
-
"title": "title",
|
|
156
|
-
"type": "type",
|
|
157
|
-
"usemap": "useMap",
|
|
158
|
-
"value": "value",
|
|
159
|
-
"width": "width",
|
|
160
|
-
"wmode": "wmode",
|
|
161
|
-
"wrap": "wrap",
|
|
162
|
-
# SVG
|
|
163
|
-
"about": "about",
|
|
164
|
-
"accentheight": "accentHeight",
|
|
165
|
-
"accent-height": "accentHeight",
|
|
166
|
-
"accumulate": "accumulate",
|
|
167
|
-
"additive": "additive",
|
|
168
|
-
"alignmentbaseline": "alignmentBaseline",
|
|
169
|
-
"alignment-baseline": "alignmentBaseline",
|
|
170
|
-
"allowreorder": "allowReorder",
|
|
171
|
-
"alphabetic": "alphabetic",
|
|
172
|
-
"amplitude": "amplitude",
|
|
173
|
-
"arabicform": "arabicForm",
|
|
174
|
-
"arabic-form": "arabicForm",
|
|
175
|
-
"ascent": "ascent",
|
|
176
|
-
"attributename": "attributeName",
|
|
177
|
-
"attributetype": "attributeType",
|
|
178
|
-
"autoreverse": "autoReverse",
|
|
179
|
-
"azimuth": "azimuth",
|
|
180
|
-
"basefrequency": "baseFrequency",
|
|
181
|
-
"baselineshift": "baselineShift",
|
|
182
|
-
"baseline-shift": "baselineShift",
|
|
183
|
-
"baseprofile": "baseProfile",
|
|
184
|
-
"bbox": "bbox",
|
|
185
|
-
"begin": "begin",
|
|
186
|
-
"bias": "bias",
|
|
187
|
-
"by": "by",
|
|
188
|
-
"calcmode": "calcMode",
|
|
189
|
-
"capheight": "capHeight",
|
|
190
|
-
"cap-height": "capHeight",
|
|
191
|
-
"clip": "clip",
|
|
192
|
-
"clippath": "clipPath",
|
|
193
|
-
"clip-path": "clipPath",
|
|
194
|
-
"clippathunits": "clipPathUnits",
|
|
195
|
-
"cliprule": "clipRule",
|
|
196
|
-
"clip-rule": "clipRule",
|
|
197
|
-
"color": "color",
|
|
198
|
-
"colorinterpolation": "colorInterpolation",
|
|
199
|
-
"color-interpolation": "colorInterpolation",
|
|
200
|
-
"colorinterpolationfilters": "colorInterpolationFilters",
|
|
201
|
-
"color-interpolation-filters": "colorInterpolationFilters",
|
|
202
|
-
"colorprofile": "colorProfile",
|
|
203
|
-
"color-profile": "colorProfile",
|
|
204
|
-
"colorrendering": "colorRendering",
|
|
205
|
-
"color-rendering": "colorRendering",
|
|
206
|
-
"contentscripttype": "contentScriptType",
|
|
207
|
-
"contentstyletype": "contentStyleType",
|
|
208
|
-
"cursor": "cursor",
|
|
209
|
-
"cx": "cx",
|
|
210
|
-
"cy": "cy",
|
|
211
|
-
"d": "d",
|
|
212
|
-
"datatype": "datatype",
|
|
213
|
-
"decelerate": "decelerate",
|
|
214
|
-
"descent": "descent",
|
|
215
|
-
"diffuseconstant": "diffuseConstant",
|
|
216
|
-
"direction": "direction",
|
|
217
|
-
"display": "display",
|
|
218
|
-
"divisor": "divisor",
|
|
219
|
-
"dominantbaseline": "dominantBaseline",
|
|
220
|
-
"dominant-baseline": "dominantBaseline",
|
|
221
|
-
"dur": "dur",
|
|
222
|
-
"dx": "dx",
|
|
223
|
-
"dy": "dy",
|
|
224
|
-
"edgemode": "edgeMode",
|
|
225
|
-
"elevation": "elevation",
|
|
226
|
-
"enablebackground": "enableBackground",
|
|
227
|
-
"enable-background": "enableBackground",
|
|
228
|
-
"end": "end",
|
|
229
|
-
"exponent": "exponent",
|
|
230
|
-
"externalresourcesrequired": "externalResourcesRequired",
|
|
231
|
-
"fill": "fill",
|
|
232
|
-
"fillopacity": "fillOpacity",
|
|
233
|
-
"fill-opacity": "fillOpacity",
|
|
234
|
-
"fillrule": "fillRule",
|
|
235
|
-
"fill-rule": "fillRule",
|
|
236
|
-
"filter": "filter",
|
|
237
|
-
"filterres": "filterRes",
|
|
238
|
-
"filterunits": "filterUnits",
|
|
239
|
-
"floodopacity": "floodOpacity",
|
|
240
|
-
"flood-opacity": "floodOpacity",
|
|
241
|
-
"floodcolor": "floodColor",
|
|
242
|
-
"flood-color": "floodColor",
|
|
243
|
-
"focusable": "focusable",
|
|
244
|
-
"fontfamily": "fontFamily",
|
|
245
|
-
"font-family": "fontFamily",
|
|
246
|
-
"fontsize": "fontSize",
|
|
247
|
-
"font-size": "fontSize",
|
|
248
|
-
"fontsizeadjust": "fontSizeAdjust",
|
|
249
|
-
"font-size-adjust": "fontSizeAdjust",
|
|
250
|
-
"fontstretch": "fontStretch",
|
|
251
|
-
"font-stretch": "fontStretch",
|
|
252
|
-
"fontstyle": "fontStyle",
|
|
253
|
-
"font-style": "fontStyle",
|
|
254
|
-
"fontvariant": "fontVariant",
|
|
255
|
-
"font-variant": "fontVariant",
|
|
256
|
-
"fontweight": "fontWeight",
|
|
257
|
-
"font-weight": "fontWeight",
|
|
258
|
-
"format": "format",
|
|
259
|
-
"from": "from",
|
|
260
|
-
"fx": "fx",
|
|
261
|
-
"fy": "fy",
|
|
262
|
-
"g1": "g1",
|
|
263
|
-
"g2": "g2",
|
|
264
|
-
"glyphname": "glyphName",
|
|
265
|
-
"glyph-name": "glyphName",
|
|
266
|
-
"glyphorientationhorizontal": "glyphOrientationHorizontal",
|
|
267
|
-
"glyph-orientation-horizontal": "glyphOrientationHorizontal",
|
|
268
|
-
"glyphorientationvertical": "glyphOrientationVertical",
|
|
269
|
-
"glyph-orientation-vertical": "glyphOrientationVertical",
|
|
270
|
-
"glyphref": "glyphRef",
|
|
271
|
-
"gradienttransform": "gradientTransform",
|
|
272
|
-
"gradientunits": "gradientUnits",
|
|
273
|
-
"hanging": "hanging",
|
|
274
|
-
"horizadvx": "horizAdvX",
|
|
275
|
-
"horiz-adv-x": "horizAdvX",
|
|
276
|
-
"horizoriginx": "horizOriginX",
|
|
277
|
-
"horiz-origin-x": "horizOriginX",
|
|
278
|
-
"ideographic": "ideographic",
|
|
279
|
-
"imagerendering": "imageRendering",
|
|
280
|
-
"image-rendering": "imageRendering",
|
|
281
|
-
"in2": "in2",
|
|
282
|
-
"in": "in",
|
|
283
|
-
"inlist": "inlist",
|
|
284
|
-
"intercept": "intercept",
|
|
285
|
-
"k1": "k1",
|
|
286
|
-
"k2": "k2",
|
|
287
|
-
"k3": "k3",
|
|
288
|
-
"k4": "k4",
|
|
289
|
-
"k": "k",
|
|
290
|
-
"kernelmatrix": "kernelMatrix",
|
|
291
|
-
"kernelunitlength": "kernelUnitLength",
|
|
292
|
-
"kerning": "kerning",
|
|
293
|
-
"keypoints": "keyPoints",
|
|
294
|
-
"keysplines": "keySplines",
|
|
295
|
-
"keytimes": "keyTimes",
|
|
296
|
-
"lengthadjust": "lengthAdjust",
|
|
297
|
-
"letterspacing": "letterSpacing",
|
|
298
|
-
"letter-spacing": "letterSpacing",
|
|
299
|
-
"lightingcolor": "lightingColor",
|
|
300
|
-
"lighting-color": "lightingColor",
|
|
301
|
-
"limitingconeangle": "limitingConeAngle",
|
|
302
|
-
"local": "local",
|
|
303
|
-
"markerend": "markerEnd",
|
|
304
|
-
"marker-end": "markerEnd",
|
|
305
|
-
"markerheight": "markerHeight",
|
|
306
|
-
"markermid": "markerMid",
|
|
307
|
-
"marker-mid": "markerMid",
|
|
308
|
-
"markerstart": "markerStart",
|
|
309
|
-
"marker-start": "markerStart",
|
|
310
|
-
"markerunits": "markerUnits",
|
|
311
|
-
"markerwidth": "markerWidth",
|
|
312
|
-
"mask": "mask",
|
|
313
|
-
"maskcontentunits": "maskContentUnits",
|
|
314
|
-
"maskunits": "maskUnits",
|
|
315
|
-
"mathematical": "mathematical",
|
|
316
|
-
"mode": "mode",
|
|
317
|
-
"numoctaves": "numOctaves",
|
|
318
|
-
"offset": "offset",
|
|
319
|
-
"opacity": "opacity",
|
|
320
|
-
"operator": "operator",
|
|
321
|
-
"order": "order",
|
|
322
|
-
"orient": "orient",
|
|
323
|
-
"orientation": "orientation",
|
|
324
|
-
"origin": "origin",
|
|
325
|
-
"overflow": "overflow",
|
|
326
|
-
"overlineposition": "overlinePosition",
|
|
327
|
-
"overline-position": "overlinePosition",
|
|
328
|
-
"overlinethickness": "overlineThickness",
|
|
329
|
-
"overline-thickness": "overlineThickness",
|
|
330
|
-
"paintorder": "paintOrder",
|
|
331
|
-
"paint-order": "paintOrder",
|
|
332
|
-
"panose1": "panose1",
|
|
333
|
-
"panose-1": "panose1",
|
|
334
|
-
"pathlength": "pathLength",
|
|
335
|
-
"patterncontentunits": "patternContentUnits",
|
|
336
|
-
"patterntransform": "patternTransform",
|
|
337
|
-
"patternunits": "patternUnits",
|
|
338
|
-
"pointerevents": "pointerEvents",
|
|
339
|
-
"pointer-events": "pointerEvents",
|
|
340
|
-
"points": "points",
|
|
341
|
-
"pointsatx": "pointsAtX",
|
|
342
|
-
"pointsaty": "pointsAtY",
|
|
343
|
-
"pointsatz": "pointsAtZ",
|
|
344
|
-
"prefix": "prefix",
|
|
345
|
-
"preservealpha": "preserveAlpha",
|
|
346
|
-
"preserveaspectratio": "preserveAspectRatio",
|
|
347
|
-
"primitiveunits": "primitiveUnits",
|
|
348
|
-
"property": "property",
|
|
349
|
-
"r": "r",
|
|
350
|
-
"radius": "radius",
|
|
351
|
-
"refx": "refX",
|
|
352
|
-
"refy": "refY",
|
|
353
|
-
"renderingintent": "renderingIntent",
|
|
354
|
-
"rendering-intent": "renderingIntent",
|
|
355
|
-
"repeatcount": "repeatCount",
|
|
356
|
-
"repeatdur": "repeatDur",
|
|
357
|
-
"requiredextensions": "requiredExtensions",
|
|
358
|
-
"requiredfeatures": "requiredFeatures",
|
|
359
|
-
"resource": "resource",
|
|
360
|
-
"restart": "restart",
|
|
361
|
-
"result": "result",
|
|
362
|
-
"results": "results",
|
|
363
|
-
"rotate": "rotate",
|
|
364
|
-
"rx": "rx",
|
|
365
|
-
"ry": "ry",
|
|
366
|
-
"scale": "scale",
|
|
367
|
-
"security": "security",
|
|
368
|
-
"seed": "seed",
|
|
369
|
-
"shaperendering": "shapeRendering",
|
|
370
|
-
"shape-rendering": "shapeRendering",
|
|
371
|
-
"slope": "slope",
|
|
372
|
-
"spacing": "spacing",
|
|
373
|
-
"specularconstant": "specularConstant",
|
|
374
|
-
"specularexponent": "specularExponent",
|
|
375
|
-
"speed": "speed",
|
|
376
|
-
"spreadmethod": "spreadMethod",
|
|
377
|
-
"startoffset": "startOffset",
|
|
378
|
-
"stddeviation": "stdDeviation",
|
|
379
|
-
"stemh": "stemh",
|
|
380
|
-
"stemv": "stemv",
|
|
381
|
-
"stitchtiles": "stitchTiles",
|
|
382
|
-
"storxolor": "stopColor",
|
|
383
|
-
"stop-color": "stopColor",
|
|
384
|
-
"stopopacity": "stopOpacity",
|
|
385
|
-
"stop-opacity": "stopOpacity",
|
|
386
|
-
"strikethroughposition": "strikethroughPosition",
|
|
387
|
-
"strikethrough-position": "strikethroughPosition",
|
|
388
|
-
"strikethroughthickness": "strikethroughThickness",
|
|
389
|
-
"strikethrough-thickness": "strikethroughThickness",
|
|
390
|
-
"string": "string",
|
|
391
|
-
"stroke": "stroke",
|
|
392
|
-
"strokedasharray": "strokeDasharray",
|
|
393
|
-
"stroke-dasharray": "strokeDasharray",
|
|
394
|
-
"strokedashoffset": "strokeDashoffset",
|
|
395
|
-
"stroke-dashoffset": "strokeDashoffset",
|
|
396
|
-
"strokelinecap": "strokeLinecap",
|
|
397
|
-
"stroke-linecap": "strokeLinecap",
|
|
398
|
-
"strokelinejoin": "strokeLinejoin",
|
|
399
|
-
"stroke-linejoin": "strokeLinejoin",
|
|
400
|
-
"strokemiterlimit": "strokeMiterlimit",
|
|
401
|
-
"stroke-miterlimit": "strokeMiterlimit",
|
|
402
|
-
"strokewidth": "strokeWidth",
|
|
403
|
-
"stroke-width": "strokeWidth",
|
|
404
|
-
"strokeopacity": "strokeOpacity",
|
|
405
|
-
"stroke-opacity": "strokeOpacity",
|
|
406
|
-
"suppresscontenteditablewarning": "suppressContentEditableWarning",
|
|
407
|
-
"suppresshydrationwarning": "suppressHydrationWarning",
|
|
408
|
-
"surfacescale": "surfaceScale",
|
|
409
|
-
"systemlanguage": "systemLanguage",
|
|
410
|
-
"tablevalues": "tableValues",
|
|
411
|
-
"targetx": "targetX",
|
|
412
|
-
"targety": "targetY",
|
|
413
|
-
"textanchor": "textAnchor",
|
|
414
|
-
"text-anchor": "textAnchor",
|
|
415
|
-
"textdecoration": "textDecoration",
|
|
416
|
-
"text-decoration": "textDecoration",
|
|
417
|
-
"textlength": "textLength",
|
|
418
|
-
"textrendering": "textRendering",
|
|
419
|
-
"text-rendering": "textRendering",
|
|
420
|
-
"to": "to",
|
|
421
|
-
"transform": "transform",
|
|
422
|
-
"transformorigin": "transformOrigin",
|
|
423
|
-
"transform-origin": "transformOrigin",
|
|
424
|
-
"typeof": "typeof",
|
|
425
|
-
"u1": "u1",
|
|
426
|
-
"u2": "u2",
|
|
427
|
-
"underlineposition": "underlinePosition",
|
|
428
|
-
"underline-position": "underlinePosition",
|
|
429
|
-
"underlinethickness": "underlineThickness",
|
|
430
|
-
"underline-thickness": "underlineThickness",
|
|
431
|
-
"unicode": "unicode",
|
|
432
|
-
"unicodebidi": "unicodeBidi",
|
|
433
|
-
"unicode-bidi": "unicodeBidi",
|
|
434
|
-
"unicoderange": "unicodeRange",
|
|
435
|
-
"unicode-range": "unicodeRange",
|
|
436
|
-
"unitsperem": "unitsPerEm",
|
|
437
|
-
"units-per-em": "unitsPerEm",
|
|
438
|
-
"unselectable": "unselectable",
|
|
439
|
-
"valphabetic": "vAlphabetic",
|
|
440
|
-
"v-alphabetic": "vAlphabetic",
|
|
441
|
-
"values": "values",
|
|
442
|
-
"vectoreffect": "vectorEffect",
|
|
443
|
-
"vector-effect": "vectorEffect",
|
|
444
|
-
"version": "version",
|
|
445
|
-
"vertadvy": "vertAdvY",
|
|
446
|
-
"vert-adv-y": "vertAdvY",
|
|
447
|
-
"vertoriginx": "vertOriginX",
|
|
448
|
-
"vert-origin-x": "vertOriginX",
|
|
449
|
-
"vertoriginy": "vertOriginY",
|
|
450
|
-
"vert-origin-y": "vertOriginY",
|
|
451
|
-
"vhanging": "vHanging",
|
|
452
|
-
"v-hanging": "vHanging",
|
|
453
|
-
"videographic": "vIdeographic",
|
|
454
|
-
"v-ideographic": "vIdeographic",
|
|
455
|
-
"viewbox": "viewBox",
|
|
456
|
-
"viewtarget": "viewTarget",
|
|
457
|
-
"visibility": "visibility",
|
|
458
|
-
"vmathematical": "vMathematical",
|
|
459
|
-
"v-mathematical": "vMathematical",
|
|
460
|
-
"vocab": "vocab",
|
|
461
|
-
"widths": "widths",
|
|
462
|
-
"wordspacing": "wordSpacing",
|
|
463
|
-
"word-spacing": "wordSpacing",
|
|
464
|
-
"writingmode": "writingMode",
|
|
465
|
-
"writing-mode": "writingMode",
|
|
466
|
-
"x1": "x1",
|
|
467
|
-
"x2": "x2",
|
|
468
|
-
"x": "x",
|
|
469
|
-
"xchannelselector": "xChannelSelector",
|
|
470
|
-
"xheight": "xHeight",
|
|
471
|
-
"x-height": "xHeight",
|
|
472
|
-
"xlinkactuate": "xlinkActuate",
|
|
473
|
-
"xlink:actuate": "xlinkActuate",
|
|
474
|
-
"xlinkarcrole": "xlinkArcrole",
|
|
475
|
-
"xlink:arcrole": "xlinkArcrole",
|
|
476
|
-
"xlinkhref": "xlinkHref",
|
|
477
|
-
"xlink:href": "xlinkHref",
|
|
478
|
-
"xlinkrole": "xlinkRole",
|
|
479
|
-
"xlink:role": "xlinkRole",
|
|
480
|
-
"xlinkshow": "xlinkShow",
|
|
481
|
-
"xlink:show": "xlinkShow",
|
|
482
|
-
"xlinktitle": "xlinkTitle",
|
|
483
|
-
"xlink:title": "xlinkTitle",
|
|
484
|
-
"xlinktype": "xlinkType",
|
|
485
|
-
"xlink:type": "xlinkType",
|
|
486
|
-
"xmlbase": "xmlBase",
|
|
487
|
-
"xml:base": "xmlBase",
|
|
488
|
-
"xmllang": "xmlLang",
|
|
489
|
-
"xml:lang": "xmlLang",
|
|
490
|
-
"xmlns": "xmlns",
|
|
491
|
-
"xml:space": "xmlSpace",
|
|
492
|
-
"xmlnsxlink": "xmlnsXlink",
|
|
493
|
-
"xmlns:xlink": "xmlnsXlink",
|
|
494
|
-
"xmlspace": "xmlSpace",
|
|
495
|
-
"y1": "y1",
|
|
496
|
-
"y2": "y2",
|
|
497
|
-
"y": "y",
|
|
498
|
-
"ychannelselector": "yChannelSelector",
|
|
499
|
-
"z": "z",
|
|
500
|
-
"zoomandpan": "zoomAndPan",
|
|
501
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"""Constants used to compile element classes."""
|
|
2
|
-
|
|
3
|
-
from collections import defaultdict
|
|
4
|
-
|
|
5
|
-
from reflex.utils import format
|
|
6
|
-
|
|
7
|
-
from .html import ATTR_TO_ELEMENTS
|
|
8
|
-
from .react import POSSIBLE_STANDARD_NAMES
|
|
9
|
-
|
|
10
|
-
# Maps HTML attributes that are invalid Python identifiers to their Reflex
|
|
11
|
-
# prop equivalents.
|
|
12
|
-
ATTR_TO_PROP_OVERRIDES = {
|
|
13
|
-
"async": "async_", # `async` is a reserved keyword in Python.
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
def attr_to_prop(attr_name: str) -> str:
|
|
18
|
-
"""Convert an HTML attribute name to its Reflex name.
|
|
19
|
-
|
|
20
|
-
This function first uses React's `possibleStandardNames` to convert the
|
|
21
|
-
HTML attribute name to its standard React name, then converts the standard
|
|
22
|
-
name to a Reflex name.
|
|
23
|
-
|
|
24
|
-
Args:
|
|
25
|
-
attr_name: The HTML attribute name.
|
|
26
|
-
|
|
27
|
-
Returns:
|
|
28
|
-
A Reflex prop name that maps to the HTML attribute.
|
|
29
|
-
"""
|
|
30
|
-
if attr_name in ATTR_TO_PROP_OVERRIDES:
|
|
31
|
-
return ATTR_TO_PROP_OVERRIDES[attr_name]
|
|
32
|
-
return format.to_snake_case(POSSIBLE_STANDARD_NAMES.get(attr_name, attr_name))
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
# Names of HTML attributes that are provided by Reflex out of the box.
|
|
36
|
-
REFLEX_PROVIDED_ATTRS = {"class", "id", "style"}
|
|
37
|
-
|
|
38
|
-
# ATTR_TO_ELEMENTS contains HTML attribute names, which might be invalid as
|
|
39
|
-
# Reflex prop names. PROP_TO_ELEMENTS contains the corresponding Reflex
|
|
40
|
-
# prop names. It omits props that are provided by Reflex out of the box.
|
|
41
|
-
PROP_TO_ELEMENTS = {
|
|
42
|
-
attr_to_prop(attr_name): elements
|
|
43
|
-
for attr_name, elements in ATTR_TO_ELEMENTS.items()
|
|
44
|
-
if attr_name not in REFLEX_PROVIDED_ATTRS
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
# Invert PROP_TO_ELEMENTS to enable easier lookup.
|
|
48
|
-
ELEMENT_TO_PROPS = defaultdict(list)
|
|
49
|
-
for prop, elements in PROP_TO_ELEMENTS.items():
|
|
50
|
-
for el in elements:
|
|
51
|
-
ELEMENT_TO_PROPS[el].append(prop)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|