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,208 @@
1
+ """Stub file for reflex/components/radix/themes/typography/kbd.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, RadixThemesComponent
13
+ from .base import LiteralTextSize
14
+
15
+ class Kbd(el.Kbd, 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
+ access_key: Optional[
28
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
29
+ ] = None,
30
+ auto_capitalize: Optional[
31
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
32
+ ] = None,
33
+ content_editable: Optional[
34
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
35
+ ] = None,
36
+ context_menu: Optional[
37
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
38
+ ] = None,
39
+ dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
40
+ draggable: Optional[
41
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
42
+ ] = None,
43
+ enter_key_hint: Optional[
44
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
45
+ ] = None,
46
+ hidden: Optional[
47
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
48
+ ] = None,
49
+ input_mode: Optional[
50
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
51
+ ] = None,
52
+ item_prop: Optional[
53
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
54
+ ] = None,
55
+ lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
56
+ role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
57
+ slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
58
+ spell_check: Optional[
59
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
60
+ ] = None,
61
+ tab_index: Optional[
62
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
63
+ ] = None,
64
+ title: Optional[
65
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
66
+ ] = None,
67
+ translate: Optional[
68
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
69
+ ] = None,
70
+ m: Optional[
71
+ Union[
72
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
73
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
74
+ ]
75
+ ] = None,
76
+ mx: Optional[
77
+ Union[
78
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
79
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
80
+ ]
81
+ ] = None,
82
+ my: Optional[
83
+ Union[
84
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
85
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
86
+ ]
87
+ ] = None,
88
+ mt: Optional[
89
+ Union[
90
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
91
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
92
+ ]
93
+ ] = None,
94
+ mr: Optional[
95
+ Union[
96
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
97
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
98
+ ]
99
+ ] = None,
100
+ mb: Optional[
101
+ Union[
102
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
103
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
104
+ ]
105
+ ] = None,
106
+ ml: Optional[
107
+ Union[
108
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
109
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
110
+ ]
111
+ ] = None,
112
+ style: Optional[Style] = None,
113
+ key: Optional[Any] = None,
114
+ id: Optional[Any] = None,
115
+ class_name: Optional[Any] = None,
116
+ autofocus: Optional[bool] = None,
117
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
118
+ on_blur: Optional[
119
+ Union[EventHandler, EventSpec, list, function, BaseVar]
120
+ ] = None,
121
+ on_click: Optional[
122
+ Union[EventHandler, EventSpec, list, function, BaseVar]
123
+ ] = None,
124
+ on_context_menu: Optional[
125
+ Union[EventHandler, EventSpec, list, function, BaseVar]
126
+ ] = None,
127
+ on_double_click: Optional[
128
+ Union[EventHandler, EventSpec, list, function, BaseVar]
129
+ ] = None,
130
+ on_focus: Optional[
131
+ Union[EventHandler, EventSpec, list, function, BaseVar]
132
+ ] = None,
133
+ on_mount: Optional[
134
+ Union[EventHandler, EventSpec, list, function, BaseVar]
135
+ ] = None,
136
+ on_mouse_down: Optional[
137
+ Union[EventHandler, EventSpec, list, function, BaseVar]
138
+ ] = None,
139
+ on_mouse_enter: Optional[
140
+ Union[EventHandler, EventSpec, list, function, BaseVar]
141
+ ] = None,
142
+ on_mouse_leave: Optional[
143
+ Union[EventHandler, EventSpec, list, function, BaseVar]
144
+ ] = None,
145
+ on_mouse_move: Optional[
146
+ Union[EventHandler, EventSpec, list, function, BaseVar]
147
+ ] = None,
148
+ on_mouse_out: Optional[
149
+ Union[EventHandler, EventSpec, list, function, BaseVar]
150
+ ] = None,
151
+ on_mouse_over: Optional[
152
+ Union[EventHandler, EventSpec, list, function, BaseVar]
153
+ ] = None,
154
+ on_mouse_up: Optional[
155
+ Union[EventHandler, EventSpec, list, function, BaseVar]
156
+ ] = None,
157
+ on_scroll: Optional[
158
+ Union[EventHandler, EventSpec, list, function, BaseVar]
159
+ ] = None,
160
+ on_unmount: Optional[
161
+ Union[EventHandler, EventSpec, list, function, BaseVar]
162
+ ] = None,
163
+ **props
164
+ ) -> "Kbd":
165
+ """Create a new component instance.
166
+
167
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
168
+ other UI libraries for common names, like Text and Button.
169
+
170
+ Args:
171
+ *children: Child components.
172
+ size: Text size: "1" - "9"
173
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
174
+ auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
175
+ content_editable: Indicates whether the element's content is editable.
176
+ context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
177
+ dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
178
+ draggable: Defines whether the element can be dragged.
179
+ enter_key_hint: Hints what media types the media element is able to play.
180
+ hidden: Defines whether the element is hidden.
181
+ input_mode: Defines the type of the element.
182
+ item_prop: Defines the name of the element for metadata purposes.
183
+ lang: Defines the language used in the element.
184
+ role: Defines the role of the element.
185
+ slot: Assigns a slot in a shadow DOM shadow tree to an element.
186
+ spell_check: Defines whether the element may be checked for spelling errors.
187
+ tab_index: Defines the position of the current element in the tabbing order.
188
+ title: Defines a tooltip for the element.
189
+ translate: Specifies whether the content of an element should be translated or not.
190
+ m: Margin: "0" - "9"
191
+ mx: Margin horizontal: "0" - "9"
192
+ my: Margin vertical: "0" - "9"
193
+ mt: Margin top: "0" - "9"
194
+ mr: Margin right: "0" - "9"
195
+ mb: Margin bottom: "0" - "9"
196
+ ml: Margin left: "0" - "9"
197
+ style: The style of the component.
198
+ key: A unique key for the component.
199
+ id: The id for the component.
200
+ class_name: The class name for the component.
201
+ autofocus: Whether the component should take the focus once the page is loaded
202
+ custom_attrs: custom attribute
203
+ **props: Component properties.
204
+
205
+ Returns:
206
+ A new component instance.
207
+ """
208
+ ...
@@ -0,0 +1,49 @@
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 typing import Literal
8
+
9
+ from reflex.vars import Var
10
+
11
+ from ..base import (
12
+ CommonMarginProps,
13
+ LiteralAccentColor,
14
+ RadixThemesComponent,
15
+ )
16
+ from .base import (
17
+ LiteralTextSize,
18
+ LiteralTextTrim,
19
+ LiteralTextWeight,
20
+ )
21
+
22
+ LiteralLinkUnderline = Literal["auto", "hover", "always"]
23
+
24
+
25
+ class Link(CommonMarginProps, RadixThemesComponent):
26
+ """A semantic element for navigation between pages."""
27
+
28
+ tag = "Link"
29
+
30
+ # Change the default rendered element for the one passed as a child, merging their props and behavior.
31
+ as_child: Var[bool]
32
+
33
+ # Text size: "1" - "9"
34
+ size: Var[LiteralTextSize]
35
+
36
+ # Thickness of text: "light" | "regular" | "medium" | "bold"
37
+ weight: Var[LiteralTextWeight]
38
+
39
+ # Removes the leading trim space: "normal" | "start" | "end" | "both"
40
+ trim: Var[LiteralTextTrim]
41
+
42
+ # Sets the visibility of the underline affordance: "auto" | "hover" | "always"
43
+ underline: Var[LiteralLinkUnderline]
44
+
45
+ # Overrides the accent color inherited from the Theme.
46
+ color: Var[LiteralAccentColor]
47
+
48
+ # Whether to render the text with higher contrast color
49
+ high_contrast: Var[bool]
@@ -0,0 +1,238 @@
1
+ """Stub file for reflex/components/radix/themes/typography/link.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 typing import Literal
11
+ from reflex.vars import Var
12
+ from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent
13
+ from .base import LiteralTextSize, LiteralTextTrim, LiteralTextWeight
14
+
15
+ LiteralLinkUnderline = Literal["auto", "hover", "always"]
16
+
17
+ class Link(CommonMarginProps, RadixThemesComponent):
18
+ @overload
19
+ @classmethod
20
+ def create( # type: ignore
21
+ cls,
22
+ *children,
23
+ as_child: Optional[Union[Var[bool], bool]] = None,
24
+ size: Optional[
25
+ Union[
26
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
27
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
28
+ ]
29
+ ] = None,
30
+ weight: Optional[
31
+ Union[
32
+ Var[Literal["light", "regular", "medium", "bold"]],
33
+ Literal["light", "regular", "medium", "bold"],
34
+ ]
35
+ ] = None,
36
+ trim: Optional[
37
+ Union[
38
+ Var[Literal["normal", "start", "end", "both"]],
39
+ Literal["normal", "start", "end", "both"],
40
+ ]
41
+ ] = None,
42
+ underline: Optional[
43
+ Union[
44
+ Var[Literal["auto", "hover", "always"]],
45
+ Literal["auto", "hover", "always"],
46
+ ]
47
+ ] = None,
48
+ color: Optional[
49
+ Union[
50
+ Var[
51
+ Literal[
52
+ "tomato",
53
+ "red",
54
+ "ruby",
55
+ "crimson",
56
+ "pink",
57
+ "plum",
58
+ "purple",
59
+ "violet",
60
+ "iris",
61
+ "indigo",
62
+ "blue",
63
+ "cyan",
64
+ "teal",
65
+ "jade",
66
+ "green",
67
+ "grass",
68
+ "brown",
69
+ "orange",
70
+ "sky",
71
+ "mint",
72
+ "lime",
73
+ "yellow",
74
+ "amber",
75
+ "gold",
76
+ "bronze",
77
+ "gray",
78
+ ]
79
+ ],
80
+ Literal[
81
+ "tomato",
82
+ "red",
83
+ "ruby",
84
+ "crimson",
85
+ "pink",
86
+ "plum",
87
+ "purple",
88
+ "violet",
89
+ "iris",
90
+ "indigo",
91
+ "blue",
92
+ "cyan",
93
+ "teal",
94
+ "jade",
95
+ "green",
96
+ "grass",
97
+ "brown",
98
+ "orange",
99
+ "sky",
100
+ "mint",
101
+ "lime",
102
+ "yellow",
103
+ "amber",
104
+ "gold",
105
+ "bronze",
106
+ "gray",
107
+ ],
108
+ ]
109
+ ] = None,
110
+ high_contrast: Optional[Union[Var[bool], bool]] = None,
111
+ m: Optional[
112
+ Union[
113
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
114
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
115
+ ]
116
+ ] = None,
117
+ mx: Optional[
118
+ Union[
119
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
120
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
121
+ ]
122
+ ] = None,
123
+ my: Optional[
124
+ Union[
125
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
126
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
127
+ ]
128
+ ] = None,
129
+ mt: Optional[
130
+ Union[
131
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
132
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
133
+ ]
134
+ ] = None,
135
+ mr: Optional[
136
+ Union[
137
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
138
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
139
+ ]
140
+ ] = None,
141
+ mb: Optional[
142
+ Union[
143
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
144
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
145
+ ]
146
+ ] = None,
147
+ ml: Optional[
148
+ Union[
149
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
150
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
151
+ ]
152
+ ] = None,
153
+ style: Optional[Style] = None,
154
+ key: Optional[Any] = None,
155
+ id: Optional[Any] = None,
156
+ class_name: Optional[Any] = None,
157
+ autofocus: Optional[bool] = None,
158
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
159
+ on_blur: Optional[
160
+ Union[EventHandler, EventSpec, list, function, BaseVar]
161
+ ] = None,
162
+ on_click: Optional[
163
+ Union[EventHandler, EventSpec, list, function, BaseVar]
164
+ ] = None,
165
+ on_context_menu: Optional[
166
+ Union[EventHandler, EventSpec, list, function, BaseVar]
167
+ ] = None,
168
+ on_double_click: Optional[
169
+ Union[EventHandler, EventSpec, list, function, BaseVar]
170
+ ] = None,
171
+ on_focus: Optional[
172
+ Union[EventHandler, EventSpec, list, function, BaseVar]
173
+ ] = None,
174
+ on_mount: Optional[
175
+ Union[EventHandler, EventSpec, list, function, BaseVar]
176
+ ] = None,
177
+ on_mouse_down: Optional[
178
+ Union[EventHandler, EventSpec, list, function, BaseVar]
179
+ ] = None,
180
+ on_mouse_enter: Optional[
181
+ Union[EventHandler, EventSpec, list, function, BaseVar]
182
+ ] = None,
183
+ on_mouse_leave: Optional[
184
+ Union[EventHandler, EventSpec, list, function, BaseVar]
185
+ ] = None,
186
+ on_mouse_move: Optional[
187
+ Union[EventHandler, EventSpec, list, function, BaseVar]
188
+ ] = None,
189
+ on_mouse_out: Optional[
190
+ Union[EventHandler, EventSpec, list, function, BaseVar]
191
+ ] = None,
192
+ on_mouse_over: Optional[
193
+ Union[EventHandler, EventSpec, list, function, BaseVar]
194
+ ] = None,
195
+ on_mouse_up: Optional[
196
+ Union[EventHandler, EventSpec, list, function, BaseVar]
197
+ ] = None,
198
+ on_scroll: Optional[
199
+ Union[EventHandler, EventSpec, list, function, BaseVar]
200
+ ] = None,
201
+ on_unmount: Optional[
202
+ Union[EventHandler, EventSpec, list, function, BaseVar]
203
+ ] = None,
204
+ **props
205
+ ) -> "Link":
206
+ """Create a new component instance.
207
+
208
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
209
+ other UI libraries for common names, like Text and Button.
210
+
211
+ Args:
212
+ *children: Child components.
213
+ as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
214
+ size: Text size: "1" - "9"
215
+ weight: Thickness of text: "light" | "regular" | "medium" | "bold"
216
+ trim: Removes the leading trim space: "normal" | "start" | "end" | "both"
217
+ underline: Sets the visibility of the underline affordance: "auto" | "hover" | "always"
218
+ color: Overrides the accent color inherited from the Theme.
219
+ high_contrast: Whether to render the text with higher contrast color
220
+ m: Margin: "0" - "9"
221
+ mx: Margin horizontal: "0" - "9"
222
+ my: Margin vertical: "0" - "9"
223
+ mt: Margin top: "0" - "9"
224
+ mr: Margin right: "0" - "9"
225
+ mb: Margin bottom: "0" - "9"
226
+ ml: Margin left: "0" - "9"
227
+ style: The style of the component.
228
+ key: A unique key for the component.
229
+ id: The id for the component.
230
+ class_name: The class name for the component.
231
+ autofocus: Whether the component should take the focus once the page is loaded
232
+ custom_attrs: custom attribute
233
+ **props: Component properties.
234
+
235
+ Returns:
236
+ A new component instance.
237
+ """
238
+ ...
@@ -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 Quote(el.Q, CommonMarginProps, RadixThemesComponent):
16
+ """A short inline quotation."""
17
+
18
+ tag = "Quote"