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,72 @@
1
+ """Interactive components provided by @radix-ui/themes."""
2
+ from typing import Any, Dict, Literal
3
+
4
+ from reflex.vars import Var
5
+
6
+ from ..base import (
7
+ CommonMarginProps,
8
+ LiteralAccentColor,
9
+ RadixThemesComponent,
10
+ )
11
+
12
+
13
+ class RadioGroupRoot(CommonMarginProps, RadixThemesComponent):
14
+ """Trigger an action or event, such as submitting a form or displaying a dialog."""
15
+
16
+ tag = "RadioGroup.Root"
17
+
18
+ # The size of the radio group: "1" | "2" | "3"
19
+ size: Var[Literal[1, 2, 3]]
20
+
21
+ # The variant of the radio group
22
+ variant: Var[Literal["classic", "surface", "soft"]]
23
+
24
+ # The color of the radio group
25
+ color: Var[LiteralAccentColor]
26
+
27
+ # Whether to render the radio group with higher contrast color against background
28
+ high_contrast: Var[bool]
29
+
30
+ # The controlled value of the radio item to check. Should be used in conjunction with onValueChange.
31
+ value: Var[str]
32
+
33
+ # The initial value of checked radio item. Should be used in conjunction with onValueChange.
34
+ default_value: Var[str]
35
+
36
+ # Whether the radio group is disabled
37
+ disabled: Var[bool]
38
+
39
+ # Whether the radio group is required
40
+ required: Var[bool]
41
+
42
+ # The orientation of the component.
43
+ orientation: Var[Literal["horizontal", "vertical"]]
44
+
45
+ # When true, keyboard navigation will loop from last item to first, and vice versa.
46
+ loop: Var[bool]
47
+
48
+ def get_event_triggers(self) -> Dict[str, Any]:
49
+ """Get the events triggers signatures for the component.
50
+
51
+ Returns:
52
+ The signatures of the event triggers.
53
+ """
54
+ return {
55
+ **super().get_event_triggers(),
56
+ "on_value_change": lambda e0: [e0],
57
+ }
58
+
59
+
60
+ class RadioGroupItem(CommonMarginProps, RadixThemesComponent):
61
+ """Trigger an action or event, such as submitting a form or displaying a dialog."""
62
+
63
+ tag = "RadioGroup.Item"
64
+
65
+ # The value of the radio item to check. Should be used in conjunction with onCheckedChange.
66
+ value: Var[str]
67
+
68
+ # When true, prevents the user from interacting with the radio item.
69
+ disabled: Var[bool]
70
+
71
+ # When true, indicates that the user must check the radio item before the owning form can be submitted.
72
+ required: Var[bool]
@@ -0,0 +1,369 @@
1
+ """Stub file for reflex/components/radix/themes/components/radiogroup.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 Any, Dict, Literal
11
+ from reflex.vars import Var
12
+ from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent
13
+
14
+ class RadioGroupRoot(CommonMarginProps, RadixThemesComponent):
15
+ def get_event_triggers(self) -> Dict[str, Any]: ...
16
+ @overload
17
+ @classmethod
18
+ def create( # type: ignore
19
+ cls,
20
+ *children,
21
+ size: Optional[Union[Var[Literal[1, 2, 3]], Literal[1, 2, 3]]] = None,
22
+ variant: Optional[
23
+ Union[
24
+ Var[Literal["classic", "surface", "soft"]],
25
+ Literal["classic", "surface", "soft"],
26
+ ]
27
+ ] = None,
28
+ color: Optional[
29
+ Union[
30
+ Var[
31
+ Literal[
32
+ "tomato",
33
+ "red",
34
+ "ruby",
35
+ "crimson",
36
+ "pink",
37
+ "plum",
38
+ "purple",
39
+ "violet",
40
+ "iris",
41
+ "indigo",
42
+ "blue",
43
+ "cyan",
44
+ "teal",
45
+ "jade",
46
+ "green",
47
+ "grass",
48
+ "brown",
49
+ "orange",
50
+ "sky",
51
+ "mint",
52
+ "lime",
53
+ "yellow",
54
+ "amber",
55
+ "gold",
56
+ "bronze",
57
+ "gray",
58
+ ]
59
+ ],
60
+ Literal[
61
+ "tomato",
62
+ "red",
63
+ "ruby",
64
+ "crimson",
65
+ "pink",
66
+ "plum",
67
+ "purple",
68
+ "violet",
69
+ "iris",
70
+ "indigo",
71
+ "blue",
72
+ "cyan",
73
+ "teal",
74
+ "jade",
75
+ "green",
76
+ "grass",
77
+ "brown",
78
+ "orange",
79
+ "sky",
80
+ "mint",
81
+ "lime",
82
+ "yellow",
83
+ "amber",
84
+ "gold",
85
+ "bronze",
86
+ "gray",
87
+ ],
88
+ ]
89
+ ] = None,
90
+ high_contrast: Optional[Union[Var[bool], bool]] = None,
91
+ value: Optional[Union[Var[str], str]] = None,
92
+ default_value: Optional[Union[Var[str], str]] = None,
93
+ disabled: Optional[Union[Var[bool], bool]] = None,
94
+ required: Optional[Union[Var[bool], bool]] = None,
95
+ orientation: Optional[
96
+ Union[
97
+ Var[Literal["horizontal", "vertical"]],
98
+ Literal["horizontal", "vertical"],
99
+ ]
100
+ ] = None,
101
+ loop: Optional[Union[Var[bool], bool]] = None,
102
+ m: Optional[
103
+ Union[
104
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
105
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
106
+ ]
107
+ ] = None,
108
+ mx: Optional[
109
+ Union[
110
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
111
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
112
+ ]
113
+ ] = None,
114
+ my: Optional[
115
+ Union[
116
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
117
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
118
+ ]
119
+ ] = None,
120
+ mt: Optional[
121
+ Union[
122
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
123
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
124
+ ]
125
+ ] = None,
126
+ mr: Optional[
127
+ Union[
128
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
129
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
130
+ ]
131
+ ] = None,
132
+ mb: Optional[
133
+ Union[
134
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
135
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
136
+ ]
137
+ ] = None,
138
+ ml: Optional[
139
+ Union[
140
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
141
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
142
+ ]
143
+ ] = None,
144
+ style: Optional[Style] = None,
145
+ key: Optional[Any] = None,
146
+ id: Optional[Any] = None,
147
+ class_name: Optional[Any] = None,
148
+ autofocus: Optional[bool] = None,
149
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
150
+ on_blur: Optional[
151
+ Union[EventHandler, EventSpec, list, function, BaseVar]
152
+ ] = None,
153
+ on_click: Optional[
154
+ Union[EventHandler, EventSpec, list, function, BaseVar]
155
+ ] = None,
156
+ on_context_menu: Optional[
157
+ Union[EventHandler, EventSpec, list, function, BaseVar]
158
+ ] = None,
159
+ on_double_click: Optional[
160
+ Union[EventHandler, EventSpec, list, function, BaseVar]
161
+ ] = None,
162
+ on_focus: Optional[
163
+ Union[EventHandler, EventSpec, list, function, BaseVar]
164
+ ] = None,
165
+ on_mount: Optional[
166
+ Union[EventHandler, EventSpec, list, function, BaseVar]
167
+ ] = None,
168
+ on_mouse_down: Optional[
169
+ Union[EventHandler, EventSpec, list, function, BaseVar]
170
+ ] = None,
171
+ on_mouse_enter: Optional[
172
+ Union[EventHandler, EventSpec, list, function, BaseVar]
173
+ ] = None,
174
+ on_mouse_leave: Optional[
175
+ Union[EventHandler, EventSpec, list, function, BaseVar]
176
+ ] = None,
177
+ on_mouse_move: Optional[
178
+ Union[EventHandler, EventSpec, list, function, BaseVar]
179
+ ] = None,
180
+ on_mouse_out: Optional[
181
+ Union[EventHandler, EventSpec, list, function, BaseVar]
182
+ ] = None,
183
+ on_mouse_over: Optional[
184
+ Union[EventHandler, EventSpec, list, function, BaseVar]
185
+ ] = None,
186
+ on_mouse_up: Optional[
187
+ Union[EventHandler, EventSpec, list, function, BaseVar]
188
+ ] = None,
189
+ on_scroll: Optional[
190
+ Union[EventHandler, EventSpec, list, function, BaseVar]
191
+ ] = None,
192
+ on_unmount: Optional[
193
+ Union[EventHandler, EventSpec, list, function, BaseVar]
194
+ ] = None,
195
+ on_value_change: Optional[
196
+ Union[EventHandler, EventSpec, list, function, BaseVar]
197
+ ] = None,
198
+ **props
199
+ ) -> "RadioGroupRoot":
200
+ """Create a new component instance.
201
+
202
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
203
+ other UI libraries for common names, like Text and Button.
204
+
205
+ Args:
206
+ *children: Child components.
207
+ size: The size of the radio group: "1" | "2" | "3"
208
+ variant: The variant of the radio group
209
+ color: The color of the radio group
210
+ high_contrast: Whether to render the radio group with higher contrast color against background
211
+ value: The controlled value of the radio item to check. Should be used in conjunction with onValueChange.
212
+ default_value: The initial value of checked radio item. Should be used in conjunction with onValueChange.
213
+ disabled: Whether the radio group is disabled
214
+ required: Whether the radio group is required
215
+ orientation: The orientation of the component.
216
+ loop: When true, keyboard navigation will loop from last item to first, and vice versa.
217
+ m: Margin: "0" - "9"
218
+ mx: Margin horizontal: "0" - "9"
219
+ my: Margin vertical: "0" - "9"
220
+ mt: Margin top: "0" - "9"
221
+ mr: Margin right: "0" - "9"
222
+ mb: Margin bottom: "0" - "9"
223
+ ml: Margin left: "0" - "9"
224
+ style: The style of the component.
225
+ key: A unique key for the component.
226
+ id: The id for the component.
227
+ class_name: The class name for the component.
228
+ autofocus: Whether the component should take the focus once the page is loaded
229
+ custom_attrs: custom attribute
230
+ **props: Component properties.
231
+
232
+ Returns:
233
+ A new component instance.
234
+ """
235
+ ...
236
+
237
+ class RadioGroupItem(CommonMarginProps, RadixThemesComponent):
238
+ @overload
239
+ @classmethod
240
+ def create( # type: ignore
241
+ cls,
242
+ *children,
243
+ value: Optional[Union[Var[str], str]] = None,
244
+ disabled: Optional[Union[Var[bool], bool]] = None,
245
+ required: Optional[Union[Var[bool], bool]] = None,
246
+ m: Optional[
247
+ Union[
248
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
249
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
250
+ ]
251
+ ] = None,
252
+ mx: Optional[
253
+ Union[
254
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
255
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
256
+ ]
257
+ ] = None,
258
+ my: Optional[
259
+ Union[
260
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
261
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
262
+ ]
263
+ ] = None,
264
+ mt: Optional[
265
+ Union[
266
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
267
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
268
+ ]
269
+ ] = None,
270
+ mr: Optional[
271
+ Union[
272
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
273
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
274
+ ]
275
+ ] = None,
276
+ mb: Optional[
277
+ Union[
278
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
279
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
280
+ ]
281
+ ] = None,
282
+ ml: Optional[
283
+ Union[
284
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
285
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
286
+ ]
287
+ ] = None,
288
+ style: Optional[Style] = None,
289
+ key: Optional[Any] = None,
290
+ id: Optional[Any] = None,
291
+ class_name: Optional[Any] = None,
292
+ autofocus: Optional[bool] = None,
293
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
294
+ on_blur: Optional[
295
+ Union[EventHandler, EventSpec, list, function, BaseVar]
296
+ ] = None,
297
+ on_click: Optional[
298
+ Union[EventHandler, EventSpec, list, function, BaseVar]
299
+ ] = None,
300
+ on_context_menu: Optional[
301
+ Union[EventHandler, EventSpec, list, function, BaseVar]
302
+ ] = None,
303
+ on_double_click: Optional[
304
+ Union[EventHandler, EventSpec, list, function, BaseVar]
305
+ ] = None,
306
+ on_focus: Optional[
307
+ Union[EventHandler, EventSpec, list, function, BaseVar]
308
+ ] = None,
309
+ on_mount: Optional[
310
+ Union[EventHandler, EventSpec, list, function, BaseVar]
311
+ ] = None,
312
+ on_mouse_down: Optional[
313
+ Union[EventHandler, EventSpec, list, function, BaseVar]
314
+ ] = None,
315
+ on_mouse_enter: Optional[
316
+ Union[EventHandler, EventSpec, list, function, BaseVar]
317
+ ] = None,
318
+ on_mouse_leave: Optional[
319
+ Union[EventHandler, EventSpec, list, function, BaseVar]
320
+ ] = None,
321
+ on_mouse_move: Optional[
322
+ Union[EventHandler, EventSpec, list, function, BaseVar]
323
+ ] = None,
324
+ on_mouse_out: Optional[
325
+ Union[EventHandler, EventSpec, list, function, BaseVar]
326
+ ] = None,
327
+ on_mouse_over: Optional[
328
+ Union[EventHandler, EventSpec, list, function, BaseVar]
329
+ ] = None,
330
+ on_mouse_up: Optional[
331
+ Union[EventHandler, EventSpec, list, function, BaseVar]
332
+ ] = None,
333
+ on_scroll: Optional[
334
+ Union[EventHandler, EventSpec, list, function, BaseVar]
335
+ ] = None,
336
+ on_unmount: Optional[
337
+ Union[EventHandler, EventSpec, list, function, BaseVar]
338
+ ] = None,
339
+ **props
340
+ ) -> "RadioGroupItem":
341
+ """Create a new component instance.
342
+
343
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
344
+ other UI libraries for common names, like Text and Button.
345
+
346
+ Args:
347
+ *children: Child components.
348
+ value: The value of the radio item to check. Should be used in conjunction with onCheckedChange.
349
+ disabled: When true, prevents the user from interacting with the radio item.
350
+ required: When true, indicates that the user must check the radio item before the owning form can be submitted.
351
+ m: Margin: "0" - "9"
352
+ mx: Margin horizontal: "0" - "9"
353
+ my: Margin vertical: "0" - "9"
354
+ mt: Margin top: "0" - "9"
355
+ mr: Margin right: "0" - "9"
356
+ mb: Margin bottom: "0" - "9"
357
+ ml: Margin left: "0" - "9"
358
+ style: The style of the component.
359
+ key: A unique key for the component.
360
+ id: The id for the component.
361
+ class_name: The class name for the component.
362
+ autofocus: Whether the component should take the focus once the page is loaded
363
+ custom_attrs: custom attribute
364
+ **props: Component properties.
365
+
366
+ Returns:
367
+ A new component instance.
368
+ """
369
+ ...
@@ -0,0 +1,31 @@
1
+ """Interactive components provided by @radix-ui/themes."""
2
+ from typing import Literal
3
+
4
+ from reflex.vars import Var
5
+
6
+ from ..base import (
7
+ CommonMarginProps,
8
+ LiteralRadius,
9
+ RadixThemesComponent,
10
+ )
11
+
12
+
13
+ class ScrollArea(CommonMarginProps, RadixThemesComponent):
14
+ """Trigger an action or event, such as submitting a form or displaying a dialog."""
15
+
16
+ tag = "ScrollArea"
17
+
18
+ # The size of the radio group: "1" | "2" | "3"
19
+ size: Var[Literal[1, 2, 3]]
20
+
21
+ # The radius of the radio group
22
+ radius: Var[LiteralRadius]
23
+
24
+ # The alignment of the scroll area
25
+ scrollbars: Var[Literal["vertical", "horizontal", "both"]]
26
+
27
+ # Describes the nature of scrollbar visibility, similar to how the scrollbar preferences in MacOS control visibility of native scrollbars. "auto" | "always" | "scroll" | "hover"
28
+ type_: Var[Literal["auto", "always", "scroll", "hover"]]
29
+
30
+ # If type is set to either "scroll" or "hover", this prop determines the length of time, in milliseconds, before the scrollbars are hidden after the user stops interacting with scrollbars.
31
+ scroll_hide_delay: Var[int]
@@ -0,0 +1,165 @@
1
+ """Stub file for reflex/components/radix/themes/components/scrollarea.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, LiteralRadius, RadixThemesComponent
13
+
14
+ class ScrollArea(CommonMarginProps, RadixThemesComponent):
15
+ @overload
16
+ @classmethod
17
+ def create( # type: ignore
18
+ cls,
19
+ *children,
20
+ size: Optional[Union[Var[Literal[1, 2, 3]], Literal[1, 2, 3]]] = None,
21
+ radius: Optional[
22
+ Union[
23
+ Var[Literal["none", "small", "medium", "large", "full"]],
24
+ Literal["none", "small", "medium", "large", "full"],
25
+ ]
26
+ ] = None,
27
+ scrollbars: Optional[
28
+ Union[
29
+ Var[Literal["vertical", "horizontal", "both"]],
30
+ Literal["vertical", "horizontal", "both"],
31
+ ]
32
+ ] = None,
33
+ type_: Optional[
34
+ Union[
35
+ Var[Literal["auto", "always", "scroll", "hover"]],
36
+ Literal["auto", "always", "scroll", "hover"],
37
+ ]
38
+ ] = None,
39
+ scroll_hide_delay: Optional[Union[Var[int], int]] = None,
40
+ m: Optional[
41
+ Union[
42
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
43
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
44
+ ]
45
+ ] = None,
46
+ mx: Optional[
47
+ Union[
48
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
49
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
50
+ ]
51
+ ] = None,
52
+ my: Optional[
53
+ Union[
54
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
55
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
56
+ ]
57
+ ] = None,
58
+ mt: Optional[
59
+ Union[
60
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
61
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
62
+ ]
63
+ ] = None,
64
+ mr: Optional[
65
+ Union[
66
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
67
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
68
+ ]
69
+ ] = None,
70
+ mb: 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
+ ml: 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
+ style: Optional[Style] = None,
83
+ key: Optional[Any] = None,
84
+ id: Optional[Any] = None,
85
+ class_name: Optional[Any] = None,
86
+ autofocus: Optional[bool] = None,
87
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
88
+ on_blur: Optional[
89
+ Union[EventHandler, EventSpec, list, function, BaseVar]
90
+ ] = None,
91
+ on_click: Optional[
92
+ Union[EventHandler, EventSpec, list, function, BaseVar]
93
+ ] = None,
94
+ on_context_menu: Optional[
95
+ Union[EventHandler, EventSpec, list, function, BaseVar]
96
+ ] = None,
97
+ on_double_click: Optional[
98
+ Union[EventHandler, EventSpec, list, function, BaseVar]
99
+ ] = None,
100
+ on_focus: Optional[
101
+ Union[EventHandler, EventSpec, list, function, BaseVar]
102
+ ] = None,
103
+ on_mount: Optional[
104
+ Union[EventHandler, EventSpec, list, function, BaseVar]
105
+ ] = None,
106
+ on_mouse_down: Optional[
107
+ Union[EventHandler, EventSpec, list, function, BaseVar]
108
+ ] = None,
109
+ on_mouse_enter: Optional[
110
+ Union[EventHandler, EventSpec, list, function, BaseVar]
111
+ ] = None,
112
+ on_mouse_leave: Optional[
113
+ Union[EventHandler, EventSpec, list, function, BaseVar]
114
+ ] = None,
115
+ on_mouse_move: Optional[
116
+ Union[EventHandler, EventSpec, list, function, BaseVar]
117
+ ] = None,
118
+ on_mouse_out: Optional[
119
+ Union[EventHandler, EventSpec, list, function, BaseVar]
120
+ ] = None,
121
+ on_mouse_over: Optional[
122
+ Union[EventHandler, EventSpec, list, function, BaseVar]
123
+ ] = None,
124
+ on_mouse_up: Optional[
125
+ Union[EventHandler, EventSpec, list, function, BaseVar]
126
+ ] = None,
127
+ on_scroll: Optional[
128
+ Union[EventHandler, EventSpec, list, function, BaseVar]
129
+ ] = None,
130
+ on_unmount: Optional[
131
+ Union[EventHandler, EventSpec, list, function, BaseVar]
132
+ ] = None,
133
+ **props
134
+ ) -> "ScrollArea":
135
+ """Create a new component instance.
136
+
137
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
138
+ other UI libraries for common names, like Text and Button.
139
+
140
+ Args:
141
+ *children: Child components.
142
+ size: The size of the radio group: "1" | "2" | "3"
143
+ radius: The radius of the radio group
144
+ scrollbars: The alignment of the scroll area
145
+ type_: Describes the nature of scrollbar visibility, similar to how the scrollbar preferences in MacOS control visibility of native scrollbars. "auto" | "always" | "scroll" | "hover"
146
+ scroll_hide_delay: If type is set to either "scroll" or "hover", this prop determines the length of time, in milliseconds, before the scrollbars are hidden after the user stops interacting with scrollbars.
147
+ m: Margin: "0" - "9"
148
+ mx: Margin horizontal: "0" - "9"
149
+ my: Margin vertical: "0" - "9"
150
+ mt: Margin top: "0" - "9"
151
+ mr: Margin right: "0" - "9"
152
+ mb: Margin bottom: "0" - "9"
153
+ ml: Margin left: "0" - "9"
154
+ style: The style of the component.
155
+ key: A unique key for the component.
156
+ id: The id for the component.
157
+ class_name: The class name for the component.
158
+ autofocus: Whether the component should take the focus once the page is loaded
159
+ custom_attrs: custom attribute
160
+ **props: Component properties.
161
+
162
+ Returns:
163
+ A new component instance.
164
+ """
165
+ ...