reflex 0.5.2a1__py3-none-any.whl → 0.5.3a1__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.

Files changed (163) hide show
  1. reflex/.templates/web/postcss.config.js +1 -0
  2. reflex/.templates/web/styles/tailwind.css +4 -1
  3. reflex/__init__.py +298 -204
  4. reflex/__init__.pyi +196 -157
  5. reflex/app.py +13 -2
  6. reflex/components/__init__.py +31 -17
  7. reflex/components/__init__.pyi +26 -0
  8. reflex/components/base/__init__.py +25 -9
  9. reflex/components/base/__init__.pyi +26 -0
  10. reflex/components/base/fragment.py +3 -0
  11. reflex/components/base/fragment.pyi +2 -0
  12. reflex/components/base/head.py +3 -0
  13. reflex/components/base/head.pyi +2 -0
  14. reflex/components/base/script.py +3 -0
  15. reflex/components/base/script.pyi +2 -0
  16. reflex/components/core/__init__.py +51 -37
  17. reflex/components/core/__init__.pyi +39 -0
  18. reflex/components/core/banner.py +7 -1
  19. reflex/components/core/banner.pyi +6 -1
  20. reflex/components/core/debounce.py +3 -0
  21. reflex/components/core/debounce.pyi +2 -0
  22. reflex/components/core/foreach.py +3 -0
  23. reflex/components/core/html.py +3 -0
  24. reflex/components/core/html.pyi +2 -0
  25. reflex/components/core/match.py +3 -0
  26. reflex/components/core/responsive.py +1 -1
  27. reflex/components/core/upload.py +5 -2
  28. reflex/components/core/upload.pyi +4 -2
  29. reflex/components/datadisplay/__init__.py +17 -8
  30. reflex/components/datadisplay/__init__.pyi +14 -0
  31. reflex/components/datadisplay/code.py +3 -0
  32. reflex/components/datadisplay/code.pyi +2 -0
  33. reflex/components/datadisplay/dataeditor.py +4 -0
  34. reflex/components/datadisplay/dataeditor.pyi +3 -0
  35. reflex/components/el/__init__.py +15 -1
  36. reflex/components/el/__init__.pyi +227 -0
  37. reflex/components/el/elements/__init__.py +129 -220
  38. reflex/components/el/elements/__init__.pyi +341 -0
  39. reflex/components/el/elements/forms.py +15 -0
  40. reflex/components/el/elements/forms.pyi +14 -0
  41. reflex/components/el/elements/inline.py +30 -0
  42. reflex/components/el/elements/inline.pyi +29 -0
  43. reflex/components/el/elements/media.py +16 -0
  44. reflex/components/el/elements/media.pyi +15 -0
  45. reflex/components/el/elements/metadata.py +7 -0
  46. reflex/components/el/elements/metadata.pyi +6 -0
  47. reflex/components/el/elements/other.py +9 -0
  48. reflex/components/el/elements/other.pyi +8 -0
  49. reflex/components/el/elements/scripts.py +5 -0
  50. reflex/components/el/elements/scripts.pyi +4 -0
  51. reflex/components/el/elements/sectioning.py +17 -0
  52. reflex/components/el/elements/sectioning.pyi +16 -0
  53. reflex/components/el/elements/tables.py +12 -0
  54. reflex/components/el/elements/tables.pyi +11 -0
  55. reflex/components/el/elements/typography.py +16 -0
  56. reflex/components/el/elements/typography.pyi +15 -0
  57. reflex/components/moment/__init__.py +1 -1
  58. reflex/components/plotly/plotly.py +184 -6
  59. reflex/components/plotly/plotly.pyi +62 -4
  60. reflex/components/radix/__init__.py +14 -2
  61. reflex/components/radix/__init__.pyi +73 -0
  62. reflex/components/radix/primitives/__init__.py +13 -5
  63. reflex/components/radix/primitives/__init__.pyi +11 -0
  64. reflex/components/radix/themes/__init__.py +20 -6
  65. reflex/components/radix/themes/__init__.pyi +13 -0
  66. reflex/components/radix/themes/base.py +26 -20
  67. reflex/components/radix/themes/base.pyi +4 -1
  68. reflex/components/radix/themes/color_mode.py +3 -1
  69. reflex/components/radix/themes/color_mode.pyi +3 -1
  70. reflex/components/radix/themes/components/__init__.py +11 -79
  71. reflex/components/radix/themes/components/__init__.pyi +44 -0
  72. reflex/components/radix/themes/components/alert_dialog.py +2 -2
  73. reflex/components/radix/themes/components/alert_dialog.pyi +2 -2
  74. reflex/components/radix/themes/components/badge.py +2 -2
  75. reflex/components/radix/themes/components/badge.pyi +2 -2
  76. reflex/components/radix/themes/components/button.py +2 -2
  77. reflex/components/radix/themes/components/button.pyi +2 -2
  78. reflex/components/radix/themes/components/callout.py +4 -4
  79. reflex/components/radix/themes/components/callout.pyi +4 -4
  80. reflex/components/radix/themes/components/card.py +2 -2
  81. reflex/components/radix/themes/components/card.pyi +2 -2
  82. reflex/components/radix/themes/components/dialog.py +2 -2
  83. reflex/components/radix/themes/components/dialog.pyi +2 -2
  84. reflex/components/radix/themes/components/hover_card.py +2 -2
  85. reflex/components/radix/themes/components/hover_card.pyi +2 -2
  86. reflex/components/radix/themes/components/icon_button.py +2 -2
  87. reflex/components/radix/themes/components/icon_button.pyi +2 -2
  88. reflex/components/radix/themes/components/inset.py +2 -2
  89. reflex/components/radix/themes/components/inset.pyi +2 -2
  90. reflex/components/radix/themes/components/popover.py +2 -2
  91. reflex/components/radix/themes/components/popover.pyi +2 -2
  92. reflex/components/radix/themes/components/table.py +8 -8
  93. reflex/components/radix/themes/components/table.pyi +8 -8
  94. reflex/components/radix/themes/components/text_area.py +11 -2
  95. reflex/components/radix/themes/components/text_area.pyi +18 -3
  96. reflex/components/radix/themes/components/text_field.py +3 -3
  97. reflex/components/radix/themes/components/text_field.pyi +3 -3
  98. reflex/components/radix/themes/layout/__init__.py +12 -38
  99. reflex/components/radix/themes/layout/__init__.pyi +21 -0
  100. reflex/components/radix/themes/layout/box.py +5 -2
  101. reflex/components/radix/themes/layout/box.pyi +4 -2
  102. reflex/components/radix/themes/layout/center.py +3 -0
  103. reflex/components/radix/themes/layout/center.pyi +2 -0
  104. reflex/components/radix/themes/layout/container.py +5 -2
  105. reflex/components/radix/themes/layout/container.pyi +4 -2
  106. reflex/components/radix/themes/layout/flex.py +5 -2
  107. reflex/components/radix/themes/layout/flex.pyi +4 -2
  108. reflex/components/radix/themes/layout/grid.py +5 -2
  109. reflex/components/radix/themes/layout/grid.pyi +4 -2
  110. reflex/components/radix/themes/layout/list.py +14 -0
  111. reflex/components/radix/themes/layout/list.pyi +3 -0
  112. reflex/components/radix/themes/layout/section.py +7 -4
  113. reflex/components/radix/themes/layout/section.pyi +5 -3
  114. reflex/components/radix/themes/layout/spacer.py +3 -0
  115. reflex/components/radix/themes/layout/spacer.pyi +2 -0
  116. reflex/components/radix/themes/layout/stack.py +5 -0
  117. reflex/components/radix/themes/layout/stack.pyi +4 -0
  118. reflex/components/radix/themes/typography/__init__.py +11 -16
  119. reflex/components/radix/themes/typography/__init__.pyi +12 -0
  120. reflex/components/radix/themes/typography/blockquote.py +5 -2
  121. reflex/components/radix/themes/typography/blockquote.pyi +4 -2
  122. reflex/components/radix/themes/typography/code.py +5 -2
  123. reflex/components/radix/themes/typography/code.pyi +4 -2
  124. reflex/components/radix/themes/typography/heading.py +5 -2
  125. reflex/components/radix/themes/typography/heading.pyi +4 -2
  126. reflex/components/radix/themes/typography/link.py +3 -0
  127. reflex/components/radix/themes/typography/link.pyi +2 -0
  128. reflex/components/radix/themes/typography/text.py +6 -6
  129. reflex/components/radix/themes/typography/text.pyi +6 -6
  130. reflex/components/recharts/__init__.py +114 -104
  131. reflex/components/recharts/__init__.pyi +106 -0
  132. reflex/components/recharts/cartesian.py +17 -0
  133. reflex/components/recharts/cartesian.pyi +16 -0
  134. reflex/components/recharts/charts.py +12 -0
  135. reflex/components/recharts/charts.pyi +11 -0
  136. reflex/components/recharts/general.py +7 -0
  137. reflex/components/recharts/general.pyi +6 -0
  138. reflex/components/recharts/polar.py +11 -0
  139. reflex/components/recharts/polar.pyi +9 -0
  140. reflex/config.py +3 -0
  141. reflex/constants/__init__.py +0 -2
  142. reflex/constants/base.py +2 -0
  143. reflex/constants/base.pyi +5 -0
  144. reflex/constants/installer.py +2 -1
  145. reflex/experimental/__init__.py +2 -0
  146. reflex/experimental/assets.py +56 -0
  147. reflex/experimental/client_state.py +4 -2
  148. reflex/experimental/hooks.py +8 -6
  149. reflex/experimental/layout.py +3 -1
  150. reflex/state.py +54 -4
  151. reflex/utils/exec.py +8 -0
  152. reflex/utils/lazy_loader.py +33 -0
  153. reflex/utils/prerequisites.py +1 -14
  154. reflex/utils/pyi_generator.py +71 -20
  155. reflex/utils/serializers.py +3 -3
  156. reflex/vars.py +79 -5
  157. reflex/vars.pyi +16 -0
  158. {reflex-0.5.2a1.dist-info → reflex-0.5.3a1.dist-info}/METADATA +2 -1
  159. {reflex-0.5.2a1.dist-info → reflex-0.5.3a1.dist-info}/RECORD +162 -148
  160. reflex/config.pyi +0 -112
  161. {reflex-0.5.2a1.dist-info → reflex-0.5.3a1.dist-info}/LICENSE +0 -0
  162. {reflex-0.5.2a1.dist-info → reflex-0.5.3a1.dist-info}/WHEEL +0 -0
  163. {reflex-0.5.2a1.dist-info → reflex-0.5.3a1.dist-info}/entry_points.txt +0 -0
@@ -8,14 +8,14 @@ from reflex.vars import Var, BaseVar, ComputedVar
8
8
  from reflex.event import EventChain, EventHandler, EventSpec
9
9
  from reflex.style import Style
10
10
  from typing import Dict, Literal
11
- from reflex import el
11
+ from reflex.components.el import elements
12
12
  from reflex.vars import Var
13
13
  from ..base import LiteralAlign, LiteralJustify, LiteralSpacing, RadixThemesComponent
14
14
 
15
15
  LiteralFlexDirection = Literal["row", "column", "row-reverse", "column-reverse"]
16
16
  LiteralFlexWrap = Literal["nowrap", "wrap", "wrap-reverse"]
17
17
 
18
- class Flex(el.Div, RadixThemesComponent):
18
+ class Flex(elements.Div, RadixThemesComponent):
19
19
  @overload
20
20
  @classmethod
21
21
  def create( # type: ignore
@@ -186,3 +186,5 @@ class Flex(el.Div, RadixThemesComponent):
186
186
  A new component instance.
187
187
  """
188
188
  ...
189
+
190
+ flex = Flex.create
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  from typing import Dict, Literal
6
6
 
7
- from reflex import el
7
+ from reflex.components.el import elements
8
8
  from reflex.vars import Var
9
9
 
10
10
  from ..base import (
@@ -17,7 +17,7 @@ from ..base import (
17
17
  LiteralGridFlow = Literal["row", "column", "dense", "row-dense", "column-dense"]
18
18
 
19
19
 
20
- class Grid(el.Div, RadixThemesComponent):
20
+ class Grid(elements.Div, RadixThemesComponent):
21
21
  """Component for creating grid layouts."""
22
22
 
23
23
  tag = "Grid"
@@ -55,3 +55,6 @@ class Grid(el.Div, RadixThemesComponent):
55
55
  "spacing_x": "gap_x",
56
56
  "spacing_y": "gap_y",
57
57
  }
58
+
59
+
60
+ grid = Grid.create
@@ -8,13 +8,13 @@ from reflex.vars import Var, BaseVar, ComputedVar
8
8
  from reflex.event import EventChain, EventHandler, EventSpec
9
9
  from reflex.style import Style
10
10
  from typing import Dict, Literal
11
- from reflex import el
11
+ from reflex.components.el import elements
12
12
  from reflex.vars import Var
13
13
  from ..base import LiteralAlign, LiteralJustify, LiteralSpacing, RadixThemesComponent
14
14
 
15
15
  LiteralGridFlow = Literal["row", "column", "dense", "row-dense", "column-dense"]
16
16
 
17
- class Grid(el.Div, RadixThemesComponent):
17
+ class Grid(elements.Div, RadixThemesComponent):
18
18
  @overload
19
19
  @classmethod
20
20
  def create( # type: ignore
@@ -196,3 +196,5 @@ class Grid(el.Div, RadixThemesComponent):
196
196
  A new component instance.
197
197
  """
198
198
  ...
199
+
200
+ grid = Grid.create
@@ -184,3 +184,17 @@ class List(ComponentNamespace):
184
184
 
185
185
 
186
186
  list_ns = List()
187
+ list_item = list_ns.item
188
+ ordered_list = list_ns.ordered
189
+ unordered_list = list_ns.unordered
190
+
191
+
192
+ def __getattr__(name):
193
+ # special case for when accessing list to avoid shadowing
194
+ # python's built in list object.
195
+ if name == "list":
196
+ return list_ns
197
+ try:
198
+ return globals()[name]
199
+ except KeyError:
200
+ raise AttributeError(f"module '{__name__} has no attribute '{name}'") from None
@@ -702,3 +702,6 @@ class List(ComponentNamespace):
702
702
  ...
703
703
 
704
704
  list_ns = List()
705
+ list_item = list_ns.item
706
+ ordered_list = list_ns.ordered
707
+ unordered_list = list_ns.unordered
@@ -3,7 +3,7 @@ from __future__ import annotations
3
3
 
4
4
  from typing import Literal
5
5
 
6
- from reflex import el
6
+ from reflex.components.el import elements
7
7
  from reflex.vars import Var
8
8
 
9
9
  from ..base import RadixThemesComponent
@@ -11,10 +11,13 @@ from ..base import RadixThemesComponent
11
11
  LiteralSectionSize = Literal["1", "2", "3"]
12
12
 
13
13
 
14
- class Section(el.Section, RadixThemesComponent):
14
+ class Section(elements.Section, RadixThemesComponent):
15
15
  """Denotes a section of page content."""
16
16
 
17
17
  tag = "Section"
18
18
 
19
- # The size of the section: "1" - "3" (default "3")
20
- size: Var[LiteralSectionSize]
19
+ # The size of the section: "1" - "3" (default "2")
20
+ size: Var[LiteralSectionSize] = Var.create_safe("2")
21
+
22
+
23
+ section = Section.create
@@ -8,13 +8,13 @@ from reflex.vars import Var, BaseVar, ComputedVar
8
8
  from reflex.event import EventChain, EventHandler, EventSpec
9
9
  from reflex.style import Style
10
10
  from typing import Literal
11
- from reflex import el
11
+ from reflex.components.el import elements
12
12
  from reflex.vars import Var
13
13
  from ..base import RadixThemesComponent
14
14
 
15
15
  LiteralSectionSize = Literal["1", "2", "3"]
16
16
 
17
- class Section(el.Section, RadixThemesComponent):
17
+ class Section(elements.Section, RadixThemesComponent):
18
18
  @overload
19
19
  @classmethod
20
20
  def create( # type: ignore
@@ -123,7 +123,7 @@ class Section(el.Section, RadixThemesComponent):
123
123
 
124
124
  Args:
125
125
  *children: Child components.
126
- size: The size of the section: "1" - "3" (default "3")
126
+ size: The size of the section: "1" - "3" (default "2")
127
127
  access_key: Provides a hint for generating a keyboard shortcut for the current element.
128
128
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
129
129
  content_editable: Indicates whether the element's content is editable.
@@ -152,3 +152,5 @@ class Section(el.Section, RadixThemesComponent):
152
152
  A new component instance.
153
153
  """
154
154
  ...
155
+
156
+ section = Section.create
@@ -21,3 +21,6 @@ class Spacer(Flex):
21
21
  "justify_self": "stretch",
22
22
  "align_self": "stretch",
23
23
  }
24
+
25
+
26
+ spacer = Spacer.create
@@ -182,3 +182,5 @@ class Spacer(Flex):
182
182
  A new component instance.
183
183
  """
184
184
  ...
185
+
186
+ spacer = Spacer.create
@@ -57,3 +57,8 @@ class HStack(Stack):
57
57
 
58
58
  # The direction of the stack.
59
59
  direction: Var[LiteralFlexDirection] = "row" # type: ignore
60
+
61
+
62
+ stack = Stack.create
63
+ hstack = HStack.create
64
+ vstack = VStack.create
@@ -488,3 +488,7 @@ class HStack(Stack):
488
488
  The stack component.
489
489
  """
490
490
  ...
491
+
492
+ stack = Stack.create
493
+ hstack = HStack.create
494
+ vstack = VStack.create
@@ -1,20 +1,15 @@
1
1
  """Typographic components."""
2
+ from __future__ import annotations
2
3
 
3
- from .blockquote import Blockquote
4
- from .code import Code
5
- from .heading import Heading
6
- from .link import Link
7
- from .text import text
4
+ from reflex import RADIX_THEMES_TYPOGRAPHY_MAPPING
5
+ from reflex.utils import lazy_loader
8
6
 
9
- blockquote = Blockquote.create
10
- code = Code.create
11
- heading = Heading.create
12
- link = Link.create
7
+ _SUBMOD_ATTRS: dict[str, list[str]] = {
8
+ "".join(k.split("components.radix.themes.typography.")[-1]): v
9
+ for k, v in RADIX_THEMES_TYPOGRAPHY_MAPPING.items()
10
+ }
13
11
 
14
- __all__ = [
15
- "blockquote",
16
- "code",
17
- "heading",
18
- "link",
19
- "text",
20
- ]
12
+ __getattr__, __dir__, __all__ = lazy_loader.attach(
13
+ __name__,
14
+ submod_attrs=_SUBMOD_ATTRS,
15
+ )
@@ -0,0 +1,12 @@
1
+ """Stub file for reflex/components/radix/themes/typography/__init__.py"""
2
+ # ------------------- DO NOT EDIT ----------------------
3
+ # This file was generated by `reflex/utils/pyi_generator.py`!
4
+ # ------------------------------------------------------
5
+
6
+ from .blockquote import blockquote as blockquote
7
+ from .code import code as code
8
+ from .heading import heading as heading
9
+ from .link import link as link
10
+ from .text import text as text
11
+ from reflex import RADIX_THEMES_TYPOGRAPHY_MAPPING
12
+ from reflex.utils import lazy_loader
@@ -4,7 +4,7 @@ https://www.radix-ui.com/themes/docs/theme/typography
4
4
  """
5
5
  from __future__ import annotations
6
6
 
7
- from reflex import el
7
+ from reflex.components.el import elements
8
8
  from reflex.vars import Var
9
9
 
10
10
  from ..base import (
@@ -17,7 +17,7 @@ from .base import (
17
17
  )
18
18
 
19
19
 
20
- class Blockquote(el.Blockquote, RadixThemesComponent):
20
+ class Blockquote(elements.Blockquote, RadixThemesComponent):
21
21
  """A block level extended quotation."""
22
22
 
23
23
  tag = "Blockquote"
@@ -33,3 +33,6 @@ class Blockquote(el.Blockquote, RadixThemesComponent):
33
33
 
34
34
  # Whether to render the text with higher contrast color
35
35
  high_contrast: Var[bool]
36
+
37
+
38
+ blockquote = Blockquote.create
@@ -7,12 +7,12 @@ from typing import Any, Dict, Literal, Optional, Union, overload
7
7
  from reflex.vars import Var, BaseVar, ComputedVar
8
8
  from reflex.event import EventChain, EventHandler, EventSpec
9
9
  from reflex.style import Style
10
- from reflex import el
10
+ from reflex.components.el import elements
11
11
  from reflex.vars import Var
12
12
  from ..base import LiteralAccentColor, RadixThemesComponent
13
13
  from .base import LiteralTextSize, LiteralTextWeight
14
14
 
15
- class Blockquote(el.Blockquote, RadixThemesComponent):
15
+ class Blockquote(elements.Blockquote, RadixThemesComponent):
16
16
  @overload
17
17
  @classmethod
18
18
  def create( # type: ignore
@@ -227,3 +227,5 @@ class Blockquote(el.Blockquote, RadixThemesComponent):
227
227
  A new component instance.
228
228
  """
229
229
  ...
230
+
231
+ blockquote = Blockquote.create
@@ -4,7 +4,7 @@ https://www.radix-ui.com/themes/docs/theme/typography
4
4
  """
5
5
  from __future__ import annotations
6
6
 
7
- from reflex import el
7
+ from reflex.components.el import elements
8
8
  from reflex.vars import Var
9
9
 
10
10
  from ..base import (
@@ -18,7 +18,7 @@ from .base import (
18
18
  )
19
19
 
20
20
 
21
- class Code(el.Code, RadixThemesComponent):
21
+ class Code(elements.Code, RadixThemesComponent):
22
22
  """A block level extended quotation."""
23
23
 
24
24
  tag = "Code"
@@ -37,3 +37,6 @@ class Code(el.Code, RadixThemesComponent):
37
37
 
38
38
  # Whether to render the text with higher contrast color
39
39
  high_contrast: Var[bool]
40
+
41
+
42
+ code = Code.create
@@ -7,12 +7,12 @@ from typing import Any, Dict, Literal, Optional, Union, overload
7
7
  from reflex.vars import Var, BaseVar, ComputedVar
8
8
  from reflex.event import EventChain, EventHandler, EventSpec
9
9
  from reflex.style import Style
10
- from reflex import el
10
+ from reflex.components.el import elements
11
11
  from reflex.vars import Var
12
12
  from ..base import LiteralAccentColor, LiteralVariant, RadixThemesComponent
13
13
  from .base import LiteralTextSize, LiteralTextWeight
14
14
 
15
- class Code(el.Code, RadixThemesComponent):
15
+ class Code(elements.Code, RadixThemesComponent):
16
16
  @overload
17
17
  @classmethod
18
18
  def create( # type: ignore
@@ -232,3 +232,5 @@ class Code(el.Code, RadixThemesComponent):
232
232
  A new component instance.
233
233
  """
234
234
  ...
235
+
236
+ code = Code.create
@@ -4,7 +4,7 @@ https://www.radix-ui.com/themes/docs/theme/typography
4
4
  """
5
5
  from __future__ import annotations
6
6
 
7
- from reflex import el
7
+ from reflex.components.el import elements
8
8
  from reflex.vars import Var
9
9
 
10
10
  from ..base import (
@@ -19,7 +19,7 @@ from .base import (
19
19
  )
20
20
 
21
21
 
22
- class Heading(el.H1, RadixThemesComponent):
22
+ class Heading(elements.H1, RadixThemesComponent):
23
23
  """A foundational text primitive based on the <span> element."""
24
24
 
25
25
  tag = "Heading"
@@ -47,3 +47,6 @@ class Heading(el.H1, RadixThemesComponent):
47
47
 
48
48
  # Whether to render the text with higher contrast color
49
49
  high_contrast: Var[bool]
50
+
51
+
52
+ heading = Heading.create
@@ -7,12 +7,12 @@ from typing import Any, Dict, Literal, Optional, Union, overload
7
7
  from reflex.vars import Var, BaseVar, ComputedVar
8
8
  from reflex.event import EventChain, EventHandler, EventSpec
9
9
  from reflex.style import Style
10
- from reflex import el
10
+ from reflex.components.el import elements
11
11
  from reflex.vars import Var
12
12
  from ..base import LiteralAccentColor, RadixThemesComponent
13
13
  from .base import LiteralTextAlign, LiteralTextSize, LiteralTextTrim, LiteralTextWeight
14
14
 
15
- class Heading(el.H1, RadixThemesComponent):
15
+ class Heading(elements.H1, RadixThemesComponent):
16
16
  @overload
17
17
  @classmethod
18
18
  def create( # type: ignore
@@ -243,3 +243,5 @@ class Heading(el.H1, RadixThemesComponent):
243
243
  A new component instance.
244
244
  """
245
245
  ...
246
+
247
+ heading = Heading.create
@@ -102,3 +102,6 @@ class Link(RadixThemesComponent, A, MemoizationLeaf):
102
102
  **props,
103
103
  )
104
104
  return super().create(*children, **props)
105
+
106
+
107
+ link = Link.create
@@ -282,3 +282,5 @@ class Link(RadixThemesComponent, A, MemoizationLeaf):
282
282
  Component: The link component
283
283
  """
284
284
  ...
285
+
286
+ link = Link.create
@@ -7,8 +7,8 @@ from __future__ import annotations
7
7
 
8
8
  from typing import Literal
9
9
 
10
- from reflex import el
11
10
  from reflex.components.component import ComponentNamespace
11
+ from reflex.components.el import elements
12
12
  from reflex.vars import Var
13
13
 
14
14
  from ..base import (
@@ -44,7 +44,7 @@ LiteralType = Literal[
44
44
  ]
45
45
 
46
46
 
47
- class Text(el.Span, RadixThemesComponent):
47
+ class Text(elements.Span, RadixThemesComponent):
48
48
  """A foundational text primitive based on the <span> element."""
49
49
 
50
50
  tag = "Text"
@@ -80,13 +80,13 @@ class Span(Text):
80
80
  as_: Var[LiteralType] = "span" # type: ignore
81
81
 
82
82
 
83
- class Em(el.Em, RadixThemesComponent):
83
+ class Em(elements.Em, RadixThemesComponent):
84
84
  """Marks text to stress emphasis."""
85
85
 
86
86
  tag = "Em"
87
87
 
88
88
 
89
- class Kbd(el.Kbd, RadixThemesComponent):
89
+ class Kbd(elements.Kbd, RadixThemesComponent):
90
90
  """Represents keyboard input or a hotkey."""
91
91
 
92
92
  tag = "Kbd"
@@ -95,13 +95,13 @@ class Kbd(el.Kbd, RadixThemesComponent):
95
95
  size: Var[LiteralTextSize]
96
96
 
97
97
 
98
- class Quote(el.Q, RadixThemesComponent):
98
+ class Quote(elements.Q, RadixThemesComponent):
99
99
  """A short inline quotation."""
100
100
 
101
101
  tag = "Quote"
102
102
 
103
103
 
104
- class Strong(el.Strong, RadixThemesComponent):
104
+ class Strong(elements.Strong, RadixThemesComponent):
105
105
  """Marks text to signify strong importance."""
106
106
 
107
107
  tag = "Strong"
@@ -8,8 +8,8 @@ from reflex.vars import Var, BaseVar, ComputedVar
8
8
  from reflex.event import EventChain, EventHandler, EventSpec
9
9
  from reflex.style import Style
10
10
  from typing import Literal
11
- from reflex import el
12
11
  from reflex.components.component import ComponentNamespace
12
+ from reflex.components.el import elements
13
13
  from reflex.vars import Var
14
14
  from ..base import LiteralAccentColor, RadixThemesComponent
15
15
  from .base import LiteralTextAlign, LiteralTextSize, LiteralTextTrim, LiteralTextWeight
@@ -35,7 +35,7 @@ LiteralType = Literal[
35
35
  "sup",
36
36
  ]
37
37
 
38
- class Text(el.Span, RadixThemesComponent):
38
+ class Text(elements.Span, RadixThemesComponent):
39
39
  @overload
40
40
  @classmethod
41
41
  def create( # type: ignore
@@ -589,7 +589,7 @@ class Span(Text):
589
589
  """
590
590
  ...
591
591
 
592
- class Em(el.Em, RadixThemesComponent):
592
+ class Em(elements.Em, RadixThemesComponent):
593
593
  @overload
594
594
  @classmethod
595
595
  def create( # type: ignore
@@ -724,7 +724,7 @@ class Em(el.Em, RadixThemesComponent):
724
724
  """
725
725
  ...
726
726
 
727
- class Kbd(el.Kbd, RadixThemesComponent):
727
+ class Kbd(elements.Kbd, RadixThemesComponent):
728
728
  @overload
729
729
  @classmethod
730
730
  def create( # type: ignore
@@ -866,7 +866,7 @@ class Kbd(el.Kbd, RadixThemesComponent):
866
866
  """
867
867
  ...
868
868
 
869
- class Quote(el.Q, RadixThemesComponent):
869
+ class Quote(elements.Q, RadixThemesComponent):
870
870
  @overload
871
871
  @classmethod
872
872
  def create( # type: ignore
@@ -1003,7 +1003,7 @@ class Quote(el.Q, RadixThemesComponent):
1003
1003
  """
1004
1004
  ...
1005
1005
 
1006
- class Strong(el.Strong, RadixThemesComponent):
1006
+ class Strong(elements.Strong, RadixThemesComponent):
1007
1007
  @overload
1008
1008
  @classmethod
1009
1009
  def create( # type: ignore