reflex/reflex/components/el/elements/sectioning.py
Elijah Ahianyo 34bf25071a
[REF-2821]Improve Dynamic Imports (#3345)
* Improve import times

* add lazy loading to rx.el

* add lazy loading to reflex core components

* minor refactor

* Get imports working with reflex web

* get imports to work with all reflex examples

* refactor to define imports only in the root.

* lint

* deadcode remove

* update poetry deps

* unit tests fix

* app_harness fix

* app_harness fix

* pyi file generate

* pyi file generate

* sort pyi order

* fix pyi

* fix docker ci

* rework pyi-generator

* generate pyi for __init__ files

* test pyright

* test pyright ci

* partial pyright fix

* more pyright fix

* pyright fix

* fix pyi_generator

* add rx.serializer and others

* add future annotation import which fixes container CI, then also load recharts lazily

* add new pyi files

* pyright fix

* minor fixes for reflex-web and flexdown

* forward references for py38

* ruff fix

* pyi fix

* unit tests fix

* reduce coverage to 68%

* reduce coverage to 67%

* reduce coverage to 66%as a workaround to coverage's rounding issue

* reduce coverage to 66%as a workaround to coverage's rounding issue

* exclude lazy_loader dependency review checks.

* its lazy-loader

* Add docstrings and regenerate pyi files

* add link

* address Pr comments

* CI fix

* partially address PR comments.

* edit docstrings and fix integration tests

* fix typo in docstring

* pyi fix
2024-05-31 16:43:10 +00:00

113 lines
1.8 KiB
Python

"""Element classes. This is an auto-generated file. Do not edit. See ../generate.py."""
from reflex.vars import Var as Var
from .base import BaseHTML
class Body(BaseHTML): # noqa: E742
"""Display the body element."""
tag = "body"
class Address(BaseHTML): # noqa: E742
"""Display the address element."""
tag = "address"
class Article(BaseHTML): # noqa: E742
"""Display the article element."""
tag = "article"
class Aside(BaseHTML): # noqa: E742
"""Display the aside element."""
tag = "aside"
class Footer(BaseHTML): # noqa: E742
"""Display the footer element."""
tag = "footer"
class Header(BaseHTML): # noqa: E742
"""Display the header element."""
tag = "header"
class H1(BaseHTML): # noqa: E742
"""Display the h1 element."""
tag = "h1"
class H2(BaseHTML): # noqa: E742
"""Display the h1 element."""
tag = "h2"
class H3(BaseHTML): # noqa: E742
"""Display the h1 element."""
tag = "h3"
class H4(BaseHTML): # noqa: E742
"""Display the h1 element."""
tag = "h4"
class H5(BaseHTML): # noqa: E742
"""Display the h1 element."""
tag = "h5"
class H6(BaseHTML): # noqa: E742
"""Display the h1 element."""
tag = "h6"
class Main(BaseHTML): # noqa: E742
"""Display the main element."""
tag = "main"
class Nav(BaseHTML): # noqa: E742
"""Display the nav element."""
tag = "nav"
class Section(BaseHTML): # noqa: E742
"""Display the section element."""
tag = "section"
address = Address.create
article = Article.create
aside = Aside.create
body = Body.create
header = Header.create
footer = Footer.create
h1 = H1.create
h2 = H2.create
h3 = H3.create
h4 = H4.create
h5 = H5.create
h6 = H6.create
main = Main.create
nav = Nav.create
section = Section.create