__init__.py 624 B

1234567891011121314151617181920212223242526272829303132333435
  1. """Import all the components."""
  2. from __future__ import annotations
  3. from reflex.utils import lazy_loader
  4. _SUBMODULES: set[str] = {
  5. "lucide",
  6. "core",
  7. "datadisplay",
  8. "gridjs",
  9. "markdown",
  10. "moment",
  11. "plotly",
  12. "radix",
  13. "react_player",
  14. "sonner",
  15. "suneditor",
  16. "el",
  17. "base",
  18. "recharts",
  19. }
  20. _SUBMOD_ATTRS: dict[str, list[str]] = {
  21. "component": [
  22. "Component",
  23. "NoSSRComponent",
  24. ],
  25. "next": ["NextLink", "next_link"],
  26. }
  27. __getattr__, __dir__, __all__ = lazy_loader.attach(
  28. __name__,
  29. submodules=_SUBMODULES,
  30. submod_attrs=_SUBMOD_ATTRS,
  31. )