Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML Refactor #2164

Merged
merged 35 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
b019619
Html refact
Nov 13, 2023
362ff22
Add comments
Nov 14, 2023
8048b56
Fix comments
Nov 14, 2023
6018965
Add noqa
Nov 14, 2023
15f1124
Update html and add path
Nov 20, 2023
eea3902
Lazy import modules in reflex (#2144)
picklelo Nov 14, 2023
6f0b81d
Add ConnectionModel and ConnectionBanner to lazy components (#2167)
masenf Nov 14, 2023
19830a5
form: only pass handleSubmit when on_submit is defined (#2162)
masenf Nov 14, 2023
bbb0982
Set is_hydrated var explicitly on rx.State (#2168)
ElijahAhianyo Nov 14, 2023
05c2843
Fix CustomComponent rendering (#2169)
masenf Nov 14, 2023
47fa946
bump up websockets (#2170)
martinxu9 Nov 14, 2023
b70a067
Bump to v0.3.3 (#2178)
picklelo Nov 15, 2023
1cbda68
Add chat icon (#2181)
Alek99 Nov 16, 2023
8a6a19b
Hosting CLI: remove requirements generation when init, add back timeo…
martinxu9 Nov 16, 2023
d045b21
add in new no_of_lines prop for text (#2184)
tgberkeley Nov 16, 2023
48c6ac2
Apply new pyi script (#2041)
Lendemor Nov 16, 2023
93a966d
Fix missing lazy imports (#2187)
picklelo Nov 16, 2023
8cca1b7
reflex_init_in_docker_test: export both frontend and backend (#2182)
masenf Nov 16, 2023
c74696c
Fix wrong modal sizes (#2183)
Alek99 Nov 16, 2023
4721c4f
[REF-723+] Upload with progress and cancellation (#1899)
masenf Nov 16, 2023
cdd351c
Bump to v0.3.4 (#2193)
picklelo Nov 17, 2023
437e312
_valid_children and _invalid_children accessible from class (#2192)
Lendemor Nov 17, 2023
d77b700
Speed up reflex CLI imports (#2185)
picklelo Nov 17, 2023
667d8ba
check_generated_pyi: fix diff checking (#2029)
masenf Nov 17, 2023
ff6b1e3
[fixup] _valid_children and _invalid_children pyi_generator and graph…
masenf Nov 17, 2023
a72d59d
pyproject.toml: upgrade httpx to 0.25.0 (#2013)
arnomoonens Nov 18, 2023
c7b3372
Fix import
Nov 20, 2023
7177b18
Merge branch 'main' into alek/htmlref
Alek99 Nov 20, 2023
5cce89a
Fix pre commit
Nov 20, 2023
e47491b
Added pyi and docs for them
Nov 20, 2023
166aafa
Grammar
Nov 20, 2023
ddf998f
Fix pyi
Nov 20, 2023
210474a
Fix pyi
Nov 20, 2023
7461722
Fix pyi
Nov 20, 2023
5124ccb
Remot precompile script
Nov 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3,478 changes: 175 additions & 3,303 deletions reflex/el/elements/__init__.py

Large diffs are not rendered by default.

60 changes: 60 additions & 0 deletions reflex/el/elements/base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
"""Element classes. This is an auto-generated file. Do not edit. See ../generate.py."""
from typing import Union

from reflex.el.element import Element
from reflex.vars import Var as Var_


class BaseHTML(Element):
"""Base class for common attributes."""

# Provides a hint for generating a keyboard shortcut for the current element.
access_key: Var_[Union[str, int, bool]]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd like to read this type as access_key: Var_[Attribute] or maybe Var_[HTMLAttribute].

something that reduces the complexity of what my brain has to grok to understand the line.


# Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
auto_capitalize: Var_[Union[str, int, bool]]

# Indicates whether the element's content is editable.
content_editable: Var_[Union[str, int, bool]]

# Defines the ID of a <menu> element which will serve as the element's context menu.
context_menu: Var_[Union[str, int, bool]]

# Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
dir: Var_[Union[str, int, bool]]

# Defines whether the element can be dragged.
draggable: Var_[Union[str, int, bool]]

# Hints what media types the media element is able to play.
enter_key_hint: Var_[Union[str, int, bool]]

# Defines whether the element is hidden.
hidden: Var_[Union[str, int, bool]]

# Defines the type of the element.
input_mode: Var_[Union[str, int, bool]]

# Defines the name of the element for metadata purposes.
item_prop: Var_[Union[str, int, bool]]

# Defines the language used in the element.
lang: Var_[Union[str, int, bool]]

# Defines the role of the element.
role: Var_[Union[str, int, bool]]

# Assigns a slot in a shadow DOM shadow tree to an element.
slot: Var_[Union[str, int, bool]]

# Defines whether the element may be checked for spelling errors.
spell_check: Var_[Union[str, int, bool]]

# Defines the position of the current element in the tabbing order.
tab_index: Var_[Union[str, int, bool]]

# Defines a tooltip for the element.
title: Var_[Union[str, int, bool]]

# Specifies whether the content of an element should be translated or not.
translate: Var_[Union[str, int, bool]]