reflex 0.3.5a4__py3-none-any.whl → 0.3.7__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 (138) hide show
  1. reflex/.templates/jinja/web/pages/base_page.js.jinja2 +2 -0
  2. reflex/.templates/web/utils/state.js +1 -1
  3. reflex/__init__.py +29 -6
  4. reflex/__init__.pyi +2 -0
  5. reflex/app.py +3 -0
  6. reflex/components/__init__.py +2 -0
  7. reflex/components/chakra/__init__.py +23 -0
  8. reflex/components/{media → chakra/media}/image.py +1 -28
  9. reflex/components/chakra/media/image.pyi +120 -0
  10. reflex/components/component.py +32 -4
  11. reflex/components/datadisplay/datatable.py +1 -37
  12. reflex/components/datadisplay/datatable.pyi +1 -11
  13. reflex/components/el/elements/forms.py +43 -1
  14. reflex/components/el/elements/forms.pyi +26 -1
  15. reflex/components/graphing/plotly.py +0 -22
  16. reflex/components/graphing/plotly.pyi +0 -12
  17. reflex/components/media/__init__.py +0 -1
  18. reflex/components/media/image.pyi +0 -9
  19. reflex/components/next/__init__.py +8 -0
  20. reflex/components/next/base.py +8 -0
  21. reflex/components/next/base.pyi +91 -0
  22. reflex/components/next/image.py +114 -0
  23. reflex/components/next/image.pyi +122 -0
  24. reflex/components/next/video.py +33 -0
  25. reflex/components/next/video.pyi +92 -0
  26. reflex/components/radix/primitives/__init__.py +3 -0
  27. reflex/components/radix/primitives/accordion.py +279 -0
  28. reflex/components/radix/primitives/accordion.pyi +619 -0
  29. reflex/components/radix/themes/__init__.py +4 -73
  30. reflex/components/radix/themes/base.py +7 -7
  31. reflex/components/radix/themes/base.pyi +21 -21
  32. reflex/components/radix/themes/components/__init__.py +193 -0
  33. reflex/components/radix/themes/components/alertdialog.py +72 -0
  34. reflex/components/radix/themes/components/alertdialog.pyi +733 -0
  35. reflex/components/radix/themes/components/aspectratio.py +20 -0
  36. reflex/components/radix/themes/components/aspectratio.pyi +144 -0
  37. reflex/components/radix/themes/components/avatar.py +38 -0
  38. reflex/components/radix/themes/components/avatar.pyi +233 -0
  39. reflex/components/radix/themes/components/badge.py +38 -0
  40. reflex/components/radix/themes/components/badge.pyi +291 -0
  41. reflex/components/radix/themes/components/button.py +39 -0
  42. reflex/components/radix/themes/components/button.pyi +330 -0
  43. reflex/components/radix/themes/components/callout.py +49 -0
  44. reflex/components/radix/themes/components/callout.pyi +668 -0
  45. reflex/components/radix/themes/components/card.py +25 -0
  46. reflex/components/radix/themes/components/card.pyi +214 -0
  47. reflex/components/radix/themes/components/checkbox.py +67 -0
  48. reflex/components/radix/themes/components/checkbox.pyi +249 -0
  49. reflex/components/radix/themes/components/contextmenu.py +134 -0
  50. reflex/components/radix/themes/{typography.pyi → components/contextmenu.pyi} +182 -602
  51. reflex/components/radix/themes/components/dialog.py +75 -0
  52. reflex/components/radix/themes/components/dialog.pyi +739 -0
  53. reflex/components/radix/themes/components/dropdownmenu.py +101 -0
  54. reflex/components/radix/themes/components/dropdownmenu.pyi +1065 -0
  55. reflex/components/radix/themes/components/hovercard.py +63 -0
  56. reflex/components/radix/themes/components/hovercard.pyi +487 -0
  57. reflex/components/radix/themes/components/iconbutton.py +39 -0
  58. reflex/components/radix/themes/components/iconbutton.pyi +332 -0
  59. reflex/components/radix/themes/components/icons.py +400 -0
  60. reflex/components/radix/themes/components/icons.pyi +185 -0
  61. reflex/components/radix/themes/components/inset.py +44 -0
  62. reflex/components/radix/themes/components/inset.pyi +230 -0
  63. reflex/components/radix/themes/components/popover.py +85 -0
  64. reflex/components/radix/themes/components/popover.pyi +634 -0
  65. reflex/components/radix/themes/components/radiogroup.py +72 -0
  66. reflex/components/radix/themes/components/radiogroup.pyi +369 -0
  67. reflex/components/radix/themes/components/scrollarea.py +31 -0
  68. reflex/components/radix/themes/components/scrollarea.pyi +165 -0
  69. reflex/components/radix/themes/components/select.py +137 -0
  70. reflex/components/radix/themes/{layout.pyi → components/select.pyi} +422 -418
  71. reflex/components/radix/themes/components/separator.py +30 -0
  72. reflex/components/radix/themes/components/separator.pyi +218 -0
  73. reflex/components/radix/themes/components/slider.py +68 -0
  74. reflex/components/radix/themes/components/slider.pyi +254 -0
  75. reflex/components/radix/themes/components/switch.py +68 -0
  76. reflex/components/radix/themes/components/switch.pyi +250 -0
  77. reflex/components/radix/themes/components/table.py +79 -0
  78. reflex/components/radix/themes/components/table.pyi +1485 -0
  79. reflex/components/radix/themes/components/tabs.py +65 -0
  80. reflex/components/radix/themes/components/tabs.pyi +549 -0
  81. reflex/components/radix/themes/components/textarea.py +68 -0
  82. reflex/components/radix/themes/components/textarea.pyi +333 -0
  83. reflex/components/radix/themes/{components.py → components/textfield.py} +3 -87
  84. reflex/components/radix/themes/{components.pyi → components/textfield.pyi} +202 -591
  85. reflex/components/radix/themes/layout/__init__.py +13 -0
  86. reflex/components/radix/themes/layout/base.py +48 -0
  87. reflex/components/radix/themes/layout/base.pyi +195 -0
  88. reflex/components/radix/themes/layout/box.py +12 -0
  89. reflex/components/radix/themes/layout/box.pyi +252 -0
  90. reflex/components/radix/themes/layout/container.py +23 -0
  91. reflex/components/radix/themes/layout/container.pyi +260 -0
  92. reflex/components/radix/themes/layout/flex.py +45 -0
  93. reflex/components/radix/themes/layout/flex.pyi +303 -0
  94. reflex/components/radix/themes/layout/grid.py +53 -0
  95. reflex/components/radix/themes/layout/grid.pyi +203 -0
  96. reflex/components/radix/themes/layout/section.py +20 -0
  97. reflex/components/radix/themes/layout/section.pyi +260 -0
  98. reflex/components/radix/themes/typography/__init__.py +21 -0
  99. reflex/components/radix/themes/typography/base.py +12 -0
  100. reflex/components/radix/themes/typography/blockquote.py +36 -0
  101. reflex/components/radix/themes/typography/blockquote.pyi +282 -0
  102. reflex/components/radix/themes/typography/code.py +40 -0
  103. reflex/components/radix/themes/typography/code.pyi +292 -0
  104. reflex/components/radix/themes/typography/em.py +18 -0
  105. reflex/components/radix/themes/typography/em.pyi +199 -0
  106. reflex/components/radix/themes/typography/heading.py +50 -0
  107. reflex/components/radix/themes/typography/heading.pyi +298 -0
  108. reflex/components/radix/themes/typography/kbd.py +25 -0
  109. reflex/components/radix/themes/typography/kbd.pyi +208 -0
  110. reflex/components/radix/themes/typography/link.py +49 -0
  111. reflex/components/radix/themes/typography/link.pyi +238 -0
  112. reflex/components/radix/themes/typography/quote.py +18 -0
  113. reflex/components/radix/themes/typography/quote.pyi +200 -0
  114. reflex/components/radix/themes/typography/strong.py +18 -0
  115. reflex/components/radix/themes/typography/strong.pyi +199 -0
  116. reflex/components/radix/themes/typography/text.py +50 -0
  117. reflex/components/radix/themes/typography/text.pyi +298 -0
  118. reflex/components/radix/themes/typography.py +1 -1
  119. reflex/constants/__init__.py +1 -0
  120. reflex/constants/base.py +7 -0
  121. reflex/constants/config.py +1 -1
  122. reflex/model.py +2 -1
  123. reflex/reflex.py +8 -1
  124. reflex/state.py +11 -0
  125. reflex/style.py +120 -10
  126. reflex/testing.py +4 -4
  127. reflex/utils/format.py +9 -5
  128. reflex/utils/prerequisites.py +49 -6
  129. reflex/utils/processes.py +8 -1
  130. reflex/utils/serializers.py +83 -0
  131. reflex/utils/types.py +22 -1
  132. reflex/vars.py +24 -1
  133. {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/METADATA +3 -2
  134. {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/RECORD +137 -44
  135. reflex/components/radix/themes/layout.py +0 -155
  136. {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/LICENSE +0 -0
  137. {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/WHEEL +0 -0
  138. {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,282 @@
1
+ """Stub file for reflex/components/radix/themes/typography/blockquote.py"""
2
+ # ------------------- DO NOT EDIT ----------------------
3
+ # This file was generated by `scripts/pyi_generator.py`!
4
+ # ------------------------------------------------------
5
+
6
+ from typing import Any, Dict, Literal, Optional, Union, overload
7
+ from reflex.vars import Var, BaseVar, ComputedVar
8
+ from reflex.event import EventChain, EventHandler, EventSpec
9
+ from reflex.style import Style
10
+ from reflex import el
11
+ from reflex.vars import Var
12
+ from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent
13
+ from .base import LiteralTextSize, LiteralTextWeight
14
+
15
+ class Blockquote(el.Blockquote, CommonMarginProps, RadixThemesComponent):
16
+ @overload
17
+ @classmethod
18
+ def create( # type: ignore
19
+ cls,
20
+ *children,
21
+ size: Optional[
22
+ Union[
23
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
24
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
25
+ ]
26
+ ] = None,
27
+ weight: Optional[
28
+ Union[
29
+ Var[Literal["light", "regular", "medium", "bold"]],
30
+ Literal["light", "regular", "medium", "bold"],
31
+ ]
32
+ ] = None,
33
+ color: Optional[
34
+ Union[
35
+ Var[
36
+ Literal[
37
+ "tomato",
38
+ "red",
39
+ "ruby",
40
+ "crimson",
41
+ "pink",
42
+ "plum",
43
+ "purple",
44
+ "violet",
45
+ "iris",
46
+ "indigo",
47
+ "blue",
48
+ "cyan",
49
+ "teal",
50
+ "jade",
51
+ "green",
52
+ "grass",
53
+ "brown",
54
+ "orange",
55
+ "sky",
56
+ "mint",
57
+ "lime",
58
+ "yellow",
59
+ "amber",
60
+ "gold",
61
+ "bronze",
62
+ "gray",
63
+ ]
64
+ ],
65
+ Literal[
66
+ "tomato",
67
+ "red",
68
+ "ruby",
69
+ "crimson",
70
+ "pink",
71
+ "plum",
72
+ "purple",
73
+ "violet",
74
+ "iris",
75
+ "indigo",
76
+ "blue",
77
+ "cyan",
78
+ "teal",
79
+ "jade",
80
+ "green",
81
+ "grass",
82
+ "brown",
83
+ "orange",
84
+ "sky",
85
+ "mint",
86
+ "lime",
87
+ "yellow",
88
+ "amber",
89
+ "gold",
90
+ "bronze",
91
+ "gray",
92
+ ],
93
+ ]
94
+ ] = None,
95
+ high_contrast: Optional[Union[Var[bool], bool]] = None,
96
+ cite: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
97
+ access_key: Optional[
98
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
99
+ ] = None,
100
+ auto_capitalize: Optional[
101
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
102
+ ] = None,
103
+ content_editable: Optional[
104
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
105
+ ] = None,
106
+ context_menu: Optional[
107
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
108
+ ] = None,
109
+ dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
110
+ draggable: Optional[
111
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
112
+ ] = None,
113
+ enter_key_hint: Optional[
114
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
115
+ ] = None,
116
+ hidden: Optional[
117
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
118
+ ] = None,
119
+ input_mode: Optional[
120
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
121
+ ] = None,
122
+ item_prop: Optional[
123
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
124
+ ] = None,
125
+ lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
126
+ role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
127
+ slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
128
+ spell_check: Optional[
129
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
130
+ ] = None,
131
+ tab_index: Optional[
132
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
133
+ ] = None,
134
+ title: Optional[
135
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
136
+ ] = None,
137
+ translate: Optional[
138
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
139
+ ] = None,
140
+ m: Optional[
141
+ Union[
142
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
143
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
144
+ ]
145
+ ] = None,
146
+ mx: Optional[
147
+ Union[
148
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
149
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
150
+ ]
151
+ ] = None,
152
+ my: Optional[
153
+ Union[
154
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
155
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
156
+ ]
157
+ ] = None,
158
+ mt: Optional[
159
+ Union[
160
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
161
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
162
+ ]
163
+ ] = None,
164
+ mr: Optional[
165
+ Union[
166
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
167
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
168
+ ]
169
+ ] = None,
170
+ mb: Optional[
171
+ Union[
172
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
173
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
174
+ ]
175
+ ] = None,
176
+ ml: Optional[
177
+ Union[
178
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
179
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
180
+ ]
181
+ ] = None,
182
+ style: Optional[Style] = None,
183
+ key: Optional[Any] = None,
184
+ id: Optional[Any] = None,
185
+ class_name: Optional[Any] = None,
186
+ autofocus: Optional[bool] = None,
187
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
188
+ on_blur: Optional[
189
+ Union[EventHandler, EventSpec, list, function, BaseVar]
190
+ ] = None,
191
+ on_click: Optional[
192
+ Union[EventHandler, EventSpec, list, function, BaseVar]
193
+ ] = None,
194
+ on_context_menu: Optional[
195
+ Union[EventHandler, EventSpec, list, function, BaseVar]
196
+ ] = None,
197
+ on_double_click: Optional[
198
+ Union[EventHandler, EventSpec, list, function, BaseVar]
199
+ ] = None,
200
+ on_focus: Optional[
201
+ Union[EventHandler, EventSpec, list, function, BaseVar]
202
+ ] = None,
203
+ on_mount: Optional[
204
+ Union[EventHandler, EventSpec, list, function, BaseVar]
205
+ ] = None,
206
+ on_mouse_down: Optional[
207
+ Union[EventHandler, EventSpec, list, function, BaseVar]
208
+ ] = None,
209
+ on_mouse_enter: Optional[
210
+ Union[EventHandler, EventSpec, list, function, BaseVar]
211
+ ] = None,
212
+ on_mouse_leave: Optional[
213
+ Union[EventHandler, EventSpec, list, function, BaseVar]
214
+ ] = None,
215
+ on_mouse_move: Optional[
216
+ Union[EventHandler, EventSpec, list, function, BaseVar]
217
+ ] = None,
218
+ on_mouse_out: Optional[
219
+ Union[EventHandler, EventSpec, list, function, BaseVar]
220
+ ] = None,
221
+ on_mouse_over: Optional[
222
+ Union[EventHandler, EventSpec, list, function, BaseVar]
223
+ ] = None,
224
+ on_mouse_up: Optional[
225
+ Union[EventHandler, EventSpec, list, function, BaseVar]
226
+ ] = None,
227
+ on_scroll: Optional[
228
+ Union[EventHandler, EventSpec, list, function, BaseVar]
229
+ ] = None,
230
+ on_unmount: Optional[
231
+ Union[EventHandler, EventSpec, list, function, BaseVar]
232
+ ] = None,
233
+ **props
234
+ ) -> "Blockquote":
235
+ """Create a new component instance.
236
+
237
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
238
+ other UI libraries for common names, like Text and Button.
239
+
240
+ Args:
241
+ *children: Child components.
242
+ size: Text size: "1" - "9"
243
+ weight: Thickness of text: "light" | "regular" | "medium" | "bold"
244
+ color: Overrides the accent color inherited from the Theme.
245
+ high_contrast: Whether to render the text with higher contrast color
246
+ cite: Define the title of a work.
247
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
248
+ auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
249
+ content_editable: Indicates whether the element's content is editable.
250
+ context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
251
+ dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
252
+ draggable: Defines whether the element can be dragged.
253
+ enter_key_hint: Hints what media types the media element is able to play.
254
+ hidden: Defines whether the element is hidden.
255
+ input_mode: Defines the type of the element.
256
+ item_prop: Defines the name of the element for metadata purposes.
257
+ lang: Defines the language used in the element.
258
+ role: Defines the role of the element.
259
+ slot: Assigns a slot in a shadow DOM shadow tree to an element.
260
+ spell_check: Defines whether the element may be checked for spelling errors.
261
+ tab_index: Defines the position of the current element in the tabbing order.
262
+ title: Defines a tooltip for the element.
263
+ translate: Specifies whether the content of an element should be translated or not.
264
+ m: Margin: "0" - "9"
265
+ mx: Margin horizontal: "0" - "9"
266
+ my: Margin vertical: "0" - "9"
267
+ mt: Margin top: "0" - "9"
268
+ mr: Margin right: "0" - "9"
269
+ mb: Margin bottom: "0" - "9"
270
+ ml: Margin left: "0" - "9"
271
+ style: The style of the component.
272
+ key: A unique key for the component.
273
+ id: The id for the component.
274
+ class_name: The class name for the component.
275
+ autofocus: Whether the component should take the focus once the page is loaded
276
+ custom_attrs: custom attribute
277
+ **props: Component properties.
278
+
279
+ Returns:
280
+ A new component instance.
281
+ """
282
+ ...
@@ -0,0 +1,40 @@
1
+ """Components for rendering heading.
2
+
3
+ https://www.radix-ui.com/themes/docs/theme/typography
4
+ """
5
+ from __future__ import annotations
6
+
7
+ from reflex import el
8
+ from reflex.vars import Var
9
+
10
+ from ..base import (
11
+ CommonMarginProps,
12
+ LiteralAccentColor,
13
+ LiteralVariant,
14
+ RadixThemesComponent,
15
+ )
16
+ from .base import (
17
+ LiteralTextSize,
18
+ LiteralTextWeight,
19
+ )
20
+
21
+
22
+ class Code(el.Code, CommonMarginProps, RadixThemesComponent):
23
+ """A block level extended quotation."""
24
+
25
+ tag = "Code"
26
+
27
+ # The visual variant to apply: "solid" | "soft" | "outline" | "ghost"
28
+ variant: Var[LiteralVariant]
29
+
30
+ # Text size: "1" - "9"
31
+ size: Var[LiteralTextSize]
32
+
33
+ # Thickness of text: "light" | "regular" | "medium" | "bold"
34
+ weight: Var[LiteralTextWeight]
35
+
36
+ # Overrides the accent color inherited from the Theme.
37
+ color: Var[LiteralAccentColor]
38
+
39
+ # Whether to render the text with higher contrast color
40
+ high_contrast: Var[bool]
@@ -0,0 +1,292 @@
1
+ """Stub file for reflex/components/radix/themes/typography/code.py"""
2
+ # ------------------- DO NOT EDIT ----------------------
3
+ # This file was generated by `scripts/pyi_generator.py`!
4
+ # ------------------------------------------------------
5
+
6
+ from typing import Any, Dict, Literal, Optional, Union, overload
7
+ from reflex.vars import Var, BaseVar, ComputedVar
8
+ from reflex.event import EventChain, EventHandler, EventSpec
9
+ from reflex.style import Style
10
+ from reflex import el
11
+ from reflex.vars import Var
12
+ from ..base import (
13
+ CommonMarginProps,
14
+ LiteralAccentColor,
15
+ LiteralVariant,
16
+ RadixThemesComponent,
17
+ )
18
+ from .base import LiteralTextSize, LiteralTextWeight
19
+
20
+ class Code(el.Code, CommonMarginProps, RadixThemesComponent):
21
+ @overload
22
+ @classmethod
23
+ def create( # type: ignore
24
+ cls,
25
+ *children,
26
+ variant: Optional[
27
+ Union[
28
+ Var[Literal["classic", "solid", "soft", "surface", "outline", "ghost"]],
29
+ Literal["classic", "solid", "soft", "surface", "outline", "ghost"],
30
+ ]
31
+ ] = None,
32
+ size: Optional[
33
+ Union[
34
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
35
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
36
+ ]
37
+ ] = None,
38
+ weight: Optional[
39
+ Union[
40
+ Var[Literal["light", "regular", "medium", "bold"]],
41
+ Literal["light", "regular", "medium", "bold"],
42
+ ]
43
+ ] = None,
44
+ color: Optional[
45
+ Union[
46
+ Var[
47
+ Literal[
48
+ "tomato",
49
+ "red",
50
+ "ruby",
51
+ "crimson",
52
+ "pink",
53
+ "plum",
54
+ "purple",
55
+ "violet",
56
+ "iris",
57
+ "indigo",
58
+ "blue",
59
+ "cyan",
60
+ "teal",
61
+ "jade",
62
+ "green",
63
+ "grass",
64
+ "brown",
65
+ "orange",
66
+ "sky",
67
+ "mint",
68
+ "lime",
69
+ "yellow",
70
+ "amber",
71
+ "gold",
72
+ "bronze",
73
+ "gray",
74
+ ]
75
+ ],
76
+ Literal[
77
+ "tomato",
78
+ "red",
79
+ "ruby",
80
+ "crimson",
81
+ "pink",
82
+ "plum",
83
+ "purple",
84
+ "violet",
85
+ "iris",
86
+ "indigo",
87
+ "blue",
88
+ "cyan",
89
+ "teal",
90
+ "jade",
91
+ "green",
92
+ "grass",
93
+ "brown",
94
+ "orange",
95
+ "sky",
96
+ "mint",
97
+ "lime",
98
+ "yellow",
99
+ "amber",
100
+ "gold",
101
+ "bronze",
102
+ "gray",
103
+ ],
104
+ ]
105
+ ] = None,
106
+ high_contrast: Optional[Union[Var[bool], bool]] = None,
107
+ access_key: Optional[
108
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
109
+ ] = None,
110
+ auto_capitalize: Optional[
111
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
112
+ ] = None,
113
+ content_editable: Optional[
114
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
115
+ ] = None,
116
+ context_menu: Optional[
117
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
118
+ ] = None,
119
+ dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
120
+ draggable: Optional[
121
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
122
+ ] = None,
123
+ enter_key_hint: Optional[
124
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
125
+ ] = None,
126
+ hidden: Optional[
127
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
128
+ ] = None,
129
+ input_mode: Optional[
130
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
131
+ ] = None,
132
+ item_prop: Optional[
133
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
134
+ ] = None,
135
+ lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
136
+ role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
137
+ slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
138
+ spell_check: Optional[
139
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
140
+ ] = None,
141
+ tab_index: Optional[
142
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
143
+ ] = None,
144
+ title: Optional[
145
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
146
+ ] = None,
147
+ translate: Optional[
148
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
149
+ ] = None,
150
+ m: Optional[
151
+ Union[
152
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
153
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
154
+ ]
155
+ ] = None,
156
+ mx: Optional[
157
+ Union[
158
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
159
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
160
+ ]
161
+ ] = None,
162
+ my: Optional[
163
+ Union[
164
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
165
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
166
+ ]
167
+ ] = None,
168
+ mt: Optional[
169
+ Union[
170
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
171
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
172
+ ]
173
+ ] = None,
174
+ mr: Optional[
175
+ Union[
176
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
177
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
178
+ ]
179
+ ] = None,
180
+ mb: Optional[
181
+ Union[
182
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
183
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
184
+ ]
185
+ ] = None,
186
+ ml: Optional[
187
+ Union[
188
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
189
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
190
+ ]
191
+ ] = None,
192
+ style: Optional[Style] = None,
193
+ key: Optional[Any] = None,
194
+ id: Optional[Any] = None,
195
+ class_name: Optional[Any] = None,
196
+ autofocus: Optional[bool] = None,
197
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
198
+ on_blur: Optional[
199
+ Union[EventHandler, EventSpec, list, function, BaseVar]
200
+ ] = None,
201
+ on_click: Optional[
202
+ Union[EventHandler, EventSpec, list, function, BaseVar]
203
+ ] = None,
204
+ on_context_menu: Optional[
205
+ Union[EventHandler, EventSpec, list, function, BaseVar]
206
+ ] = None,
207
+ on_double_click: Optional[
208
+ Union[EventHandler, EventSpec, list, function, BaseVar]
209
+ ] = None,
210
+ on_focus: Optional[
211
+ Union[EventHandler, EventSpec, list, function, BaseVar]
212
+ ] = None,
213
+ on_mount: Optional[
214
+ Union[EventHandler, EventSpec, list, function, BaseVar]
215
+ ] = None,
216
+ on_mouse_down: Optional[
217
+ Union[EventHandler, EventSpec, list, function, BaseVar]
218
+ ] = None,
219
+ on_mouse_enter: Optional[
220
+ Union[EventHandler, EventSpec, list, function, BaseVar]
221
+ ] = None,
222
+ on_mouse_leave: Optional[
223
+ Union[EventHandler, EventSpec, list, function, BaseVar]
224
+ ] = None,
225
+ on_mouse_move: Optional[
226
+ Union[EventHandler, EventSpec, list, function, BaseVar]
227
+ ] = None,
228
+ on_mouse_out: Optional[
229
+ Union[EventHandler, EventSpec, list, function, BaseVar]
230
+ ] = None,
231
+ on_mouse_over: Optional[
232
+ Union[EventHandler, EventSpec, list, function, BaseVar]
233
+ ] = None,
234
+ on_mouse_up: Optional[
235
+ Union[EventHandler, EventSpec, list, function, BaseVar]
236
+ ] = None,
237
+ on_scroll: Optional[
238
+ Union[EventHandler, EventSpec, list, function, BaseVar]
239
+ ] = None,
240
+ on_unmount: Optional[
241
+ Union[EventHandler, EventSpec, list, function, BaseVar]
242
+ ] = None,
243
+ **props
244
+ ) -> "Code":
245
+ """Create a new component instance.
246
+
247
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
248
+ other UI libraries for common names, like Text and Button.
249
+
250
+ Args:
251
+ *children: Child components.
252
+ variant: The visual variant to apply: "solid" | "soft" | "outline" | "ghost"
253
+ size: Text size: "1" - "9"
254
+ weight: Thickness of text: "light" | "regular" | "medium" | "bold"
255
+ color: Overrides the accent color inherited from the Theme.
256
+ high_contrast: Whether to render the text with higher contrast color
257
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
258
+ auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
259
+ content_editable: Indicates whether the element's content is editable.
260
+ context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
261
+ dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
262
+ draggable: Defines whether the element can be dragged.
263
+ enter_key_hint: Hints what media types the media element is able to play.
264
+ hidden: Defines whether the element is hidden.
265
+ input_mode: Defines the type of the element.
266
+ item_prop: Defines the name of the element for metadata purposes.
267
+ lang: Defines the language used in the element.
268
+ role: Defines the role of the element.
269
+ slot: Assigns a slot in a shadow DOM shadow tree to an element.
270
+ spell_check: Defines whether the element may be checked for spelling errors.
271
+ tab_index: Defines the position of the current element in the tabbing order.
272
+ title: Defines a tooltip for the element.
273
+ translate: Specifies whether the content of an element should be translated or not.
274
+ m: Margin: "0" - "9"
275
+ mx: Margin horizontal: "0" - "9"
276
+ my: Margin vertical: "0" - "9"
277
+ mt: Margin top: "0" - "9"
278
+ mr: Margin right: "0" - "9"
279
+ mb: Margin bottom: "0" - "9"
280
+ ml: Margin left: "0" - "9"
281
+ style: The style of the component.
282
+ key: A unique key for the component.
283
+ id: The id for the component.
284
+ class_name: The class name for the component.
285
+ autofocus: Whether the component should take the focus once the page is loaded
286
+ custom_attrs: custom attribute
287
+ **props: Component properties.
288
+
289
+ Returns:
290
+ A new component instance.
291
+ """
292
+ ...
@@ -0,0 +1,18 @@
1
+ """Components for rendering heading.
2
+
3
+ https://www.radix-ui.com/themes/docs/theme/typography
4
+ """
5
+ from __future__ import annotations
6
+
7
+ from reflex import el
8
+
9
+ from ..base import (
10
+ CommonMarginProps,
11
+ RadixThemesComponent,
12
+ )
13
+
14
+
15
+ class Em(el.Em, CommonMarginProps, RadixThemesComponent):
16
+ """Marks text to stress emphasis."""
17
+
18
+ tag = "Em"