reflex 0.3.6__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 (136) hide show
  1. reflex/.templates/jinja/web/pages/base_page.js.jinja2 +2 -0
  2. reflex/__init__.py +29 -6
  3. reflex/__init__.pyi +2 -0
  4. reflex/app.py +3 -0
  5. reflex/components/__init__.py +2 -0
  6. reflex/components/chakra/__init__.py +23 -0
  7. reflex/components/{media → chakra/media}/image.py +1 -28
  8. reflex/components/chakra/media/image.pyi +120 -0
  9. reflex/components/component.py +27 -2
  10. reflex/components/datadisplay/datatable.py +1 -37
  11. reflex/components/datadisplay/datatable.pyi +1 -11
  12. reflex/components/el/elements/forms.py +43 -1
  13. reflex/components/el/elements/forms.pyi +26 -1
  14. reflex/components/graphing/plotly.py +0 -22
  15. reflex/components/graphing/plotly.pyi +0 -12
  16. reflex/components/media/__init__.py +0 -1
  17. reflex/components/media/image.pyi +0 -9
  18. reflex/components/next/__init__.py +8 -0
  19. reflex/components/next/base.py +8 -0
  20. reflex/components/next/base.pyi +91 -0
  21. reflex/components/next/image.py +114 -0
  22. reflex/components/next/image.pyi +122 -0
  23. reflex/components/next/video.py +33 -0
  24. reflex/components/next/video.pyi +92 -0
  25. reflex/components/radix/primitives/__init__.py +3 -0
  26. reflex/components/radix/primitives/accordion.py +279 -0
  27. reflex/components/radix/primitives/accordion.pyi +619 -0
  28. reflex/components/radix/themes/__init__.py +4 -73
  29. reflex/components/radix/themes/base.py +7 -7
  30. reflex/components/radix/themes/base.pyi +21 -21
  31. reflex/components/radix/themes/components/__init__.py +193 -0
  32. reflex/components/radix/themes/components/alertdialog.py +72 -0
  33. reflex/components/radix/themes/components/alertdialog.pyi +733 -0
  34. reflex/components/radix/themes/components/aspectratio.py +20 -0
  35. reflex/components/radix/themes/components/aspectratio.pyi +144 -0
  36. reflex/components/radix/themes/components/avatar.py +38 -0
  37. reflex/components/radix/themes/components/avatar.pyi +233 -0
  38. reflex/components/radix/themes/components/badge.py +38 -0
  39. reflex/components/radix/themes/components/badge.pyi +291 -0
  40. reflex/components/radix/themes/components/button.py +39 -0
  41. reflex/components/radix/themes/components/button.pyi +330 -0
  42. reflex/components/radix/themes/components/callout.py +49 -0
  43. reflex/components/radix/themes/components/callout.pyi +668 -0
  44. reflex/components/radix/themes/components/card.py +25 -0
  45. reflex/components/radix/themes/components/card.pyi +214 -0
  46. reflex/components/radix/themes/components/checkbox.py +67 -0
  47. reflex/components/radix/themes/components/checkbox.pyi +249 -0
  48. reflex/components/radix/themes/components/contextmenu.py +134 -0
  49. reflex/components/radix/themes/{typography.pyi → components/contextmenu.pyi} +182 -602
  50. reflex/components/radix/themes/components/dialog.py +75 -0
  51. reflex/components/radix/themes/components/dialog.pyi +739 -0
  52. reflex/components/radix/themes/components/dropdownmenu.py +101 -0
  53. reflex/components/radix/themes/components/dropdownmenu.pyi +1065 -0
  54. reflex/components/radix/themes/components/hovercard.py +63 -0
  55. reflex/components/radix/themes/components/hovercard.pyi +487 -0
  56. reflex/components/radix/themes/components/iconbutton.py +39 -0
  57. reflex/components/radix/themes/components/iconbutton.pyi +332 -0
  58. reflex/components/radix/themes/components/icons.py +400 -0
  59. reflex/components/radix/themes/components/icons.pyi +185 -0
  60. reflex/components/radix/themes/components/inset.py +44 -0
  61. reflex/components/radix/themes/components/inset.pyi +230 -0
  62. reflex/components/radix/themes/components/popover.py +85 -0
  63. reflex/components/radix/themes/components/popover.pyi +634 -0
  64. reflex/components/radix/themes/components/radiogroup.py +72 -0
  65. reflex/components/radix/themes/components/radiogroup.pyi +369 -0
  66. reflex/components/radix/themes/components/scrollarea.py +31 -0
  67. reflex/components/radix/themes/components/scrollarea.pyi +165 -0
  68. reflex/components/radix/themes/components/select.py +137 -0
  69. reflex/components/radix/themes/{layout.pyi → components/select.pyi} +422 -418
  70. reflex/components/radix/themes/components/separator.py +30 -0
  71. reflex/components/radix/themes/components/separator.pyi +218 -0
  72. reflex/components/radix/themes/components/slider.py +68 -0
  73. reflex/components/radix/themes/components/slider.pyi +254 -0
  74. reflex/components/radix/themes/components/switch.py +68 -0
  75. reflex/components/radix/themes/components/switch.pyi +250 -0
  76. reflex/components/radix/themes/components/table.py +79 -0
  77. reflex/components/radix/themes/components/table.pyi +1485 -0
  78. reflex/components/radix/themes/components/tabs.py +65 -0
  79. reflex/components/radix/themes/components/tabs.pyi +549 -0
  80. reflex/components/radix/themes/components/textarea.py +68 -0
  81. reflex/components/radix/themes/components/textarea.pyi +333 -0
  82. reflex/components/radix/themes/{components.py → components/textfield.py} +3 -87
  83. reflex/components/radix/themes/{components.pyi → components/textfield.pyi} +202 -591
  84. reflex/components/radix/themes/layout/__init__.py +13 -0
  85. reflex/components/radix/themes/layout/base.py +48 -0
  86. reflex/components/radix/themes/layout/base.pyi +195 -0
  87. reflex/components/radix/themes/layout/box.py +12 -0
  88. reflex/components/radix/themes/layout/box.pyi +252 -0
  89. reflex/components/radix/themes/layout/container.py +23 -0
  90. reflex/components/radix/themes/layout/container.pyi +260 -0
  91. reflex/components/radix/themes/layout/flex.py +45 -0
  92. reflex/components/radix/themes/layout/flex.pyi +303 -0
  93. reflex/components/radix/themes/layout/grid.py +53 -0
  94. reflex/components/radix/themes/layout/grid.pyi +203 -0
  95. reflex/components/radix/themes/layout/section.py +20 -0
  96. reflex/components/radix/themes/layout/section.pyi +260 -0
  97. reflex/components/radix/themes/typography/__init__.py +21 -0
  98. reflex/components/radix/themes/typography/base.py +12 -0
  99. reflex/components/radix/themes/typography/blockquote.py +36 -0
  100. reflex/components/radix/themes/typography/blockquote.pyi +282 -0
  101. reflex/components/radix/themes/typography/code.py +40 -0
  102. reflex/components/radix/themes/typography/code.pyi +292 -0
  103. reflex/components/radix/themes/typography/em.py +18 -0
  104. reflex/components/radix/themes/typography/em.pyi +199 -0
  105. reflex/components/radix/themes/typography/heading.py +50 -0
  106. reflex/components/radix/themes/typography/heading.pyi +298 -0
  107. reflex/components/radix/themes/typography/kbd.py +25 -0
  108. reflex/components/radix/themes/typography/kbd.pyi +208 -0
  109. reflex/components/radix/themes/typography/link.py +49 -0
  110. reflex/components/radix/themes/typography/link.pyi +238 -0
  111. reflex/components/radix/themes/typography/quote.py +18 -0
  112. reflex/components/radix/themes/typography/quote.pyi +200 -0
  113. reflex/components/radix/themes/typography/strong.py +18 -0
  114. reflex/components/radix/themes/typography/strong.pyi +199 -0
  115. reflex/components/radix/themes/typography/text.py +50 -0
  116. reflex/components/radix/themes/typography/text.pyi +298 -0
  117. reflex/constants/__init__.py +1 -0
  118. reflex/constants/base.py +7 -0
  119. reflex/constants/config.py +1 -1
  120. reflex/model.py +2 -1
  121. reflex/reflex.py +5 -0
  122. reflex/state.py +11 -0
  123. reflex/style.py +120 -10
  124. reflex/testing.py +4 -4
  125. reflex/utils/format.py +9 -5
  126. reflex/utils/prerequisites.py +49 -6
  127. reflex/utils/processes.py +8 -1
  128. reflex/utils/serializers.py +83 -0
  129. reflex/utils/types.py +22 -1
  130. reflex/vars.py +24 -1
  131. {reflex-0.3.6.dist-info → reflex-0.3.7.dist-info}/METADATA +3 -2
  132. {reflex-0.3.6.dist-info → reflex-0.3.7.dist-info}/RECORD +135 -42
  133. reflex/components/radix/themes/layout.py +0 -155
  134. {reflex-0.3.6.dist-info → reflex-0.3.7.dist-info}/LICENSE +0 -0
  135. {reflex-0.3.6.dist-info → reflex-0.3.7.dist-info}/WHEEL +0 -0
  136. {reflex-0.3.6.dist-info → reflex-0.3.7.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,400 @@
1
+ """Radix Icons."""
2
+
3
+
4
+ from typing import List
5
+
6
+ from reflex.components.component import Component
7
+ from reflex.utils import format
8
+
9
+
10
+ class RadixIconComponent(Component):
11
+ """A component used as basis for Radix icons."""
12
+
13
+ library = "@radix-ui/react-icons"
14
+
15
+
16
+ class Icon(RadixIconComponent):
17
+ """An image Icon."""
18
+
19
+ tag = "None"
20
+
21
+ @classmethod
22
+ def create(cls, *children, **props) -> Component:
23
+ """Initialize the Icon component.
24
+
25
+ Run some additional checks on Icon component.
26
+
27
+ Args:
28
+ *children: The positional arguments
29
+ **props: The keyword arguments
30
+
31
+ Raises:
32
+ AttributeError: The errors tied to bad usage of the Icon component.
33
+ ValueError: If the icon tag is invalid.
34
+
35
+ Returns:
36
+ The created component.
37
+ """
38
+ if children:
39
+ raise AttributeError(
40
+ f"Passing children to Icon component is not allowed: remove positional arguments {children} to fix"
41
+ )
42
+ if "tag" not in props.keys():
43
+ raise AttributeError("Missing 'tag' keyword-argument for Icon")
44
+ if type(props["tag"]) != str or props["tag"].lower() not in ICON_LIST:
45
+ raise ValueError(
46
+ f"Invalid icon tag: {props['tag']}. Please use one of the following: {ICON_LIST}"
47
+ )
48
+ props["tag"] = format.to_title_case(props["tag"]) + "Icon"
49
+ return super().create(*children, **props)
50
+
51
+
52
+ ICON_ABSTRACT: List[str] = [
53
+ "hamburger_menu",
54
+ "cross_1",
55
+ "dots_vertical",
56
+ "dots_horizontal",
57
+ "plus",
58
+ "minus",
59
+ "check",
60
+ "cross_2",
61
+ "check_circled",
62
+ "cross_circled",
63
+ "plus_circled",
64
+ "minus_circled",
65
+ "question_mark",
66
+ "question_mark_circled",
67
+ "info_circled",
68
+ "accessibility",
69
+ "exclamation_triangle",
70
+ "share_1",
71
+ "share_2",
72
+ "external_link",
73
+ "open_in_new_window",
74
+ "enter",
75
+ "exit",
76
+ "download",
77
+ "upload",
78
+ "reset",
79
+ "reload",
80
+ "update",
81
+ "enter_full_screen",
82
+ "exit_full_screen",
83
+ "drag_handle_vertical",
84
+ "drag_handle_horizontal",
85
+ "drag_handle_dots_1",
86
+ "drag_handle_dots_2",
87
+ "dot",
88
+ "dot_filled",
89
+ "commit",
90
+ "slash",
91
+ "circle",
92
+ "circle_backslash",
93
+ "half_1",
94
+ "half_2",
95
+ "view_none",
96
+ "view_horizontal",
97
+ "view_vertical",
98
+ "view_grid",
99
+ "copy",
100
+ "square",
101
+ ]
102
+ ICON_ALIGNS: List[str] = [
103
+ "align_top",
104
+ "align_center_vertically",
105
+ "align_bottom",
106
+ "stretch_vertically",
107
+ "align_left",
108
+ "align_center_horizontally",
109
+ "align_right",
110
+ "stretch_horizontally",
111
+ "space_between_horizontally",
112
+ "space_evenly_horizontally",
113
+ "space_between_vertically",
114
+ "space_evenly_vertically",
115
+ "pin_left",
116
+ "pin_right",
117
+ "pin_top",
118
+ "pin_bottom",
119
+ ]
120
+ ICON_ARROWS: List[str] = [
121
+ "arrow_left",
122
+ "arrow_right",
123
+ "arrow_up",
124
+ "arrow_down",
125
+ "arrow_top_left",
126
+ "arrow_top_right",
127
+ "arrow_bottom_left",
128
+ "arrow_bottom_right",
129
+ "chevron_left",
130
+ "chevron_right",
131
+ "chevron_up",
132
+ "chevron_down",
133
+ "double_arrow_down",
134
+ "double_arrow_right",
135
+ "double_arrow_left",
136
+ "double_arrow_up",
137
+ "thick_arrow_up",
138
+ "thick_arrow_down",
139
+ "thick_arrow_right",
140
+ "thick_arrow_left",
141
+ "triangle_right",
142
+ "triangle_left",
143
+ "triangle_down",
144
+ "triangle_up",
145
+ "caret_down",
146
+ "caret_up",
147
+ "caret_left",
148
+ "caret_right",
149
+ "caret_sort",
150
+ "width",
151
+ "height",
152
+ "size",
153
+ "move",
154
+ "all_sides",
155
+ ]
156
+ ICON_BORDERS: List[str] = [
157
+ "border_all",
158
+ "border_split",
159
+ "border_none",
160
+ "border_left",
161
+ "border_right",
162
+ "border_top",
163
+ "border_bottom",
164
+ "border_width",
165
+ "corners",
166
+ "corner_top_left",
167
+ "corner_top_right",
168
+ "corner_bottom_right",
169
+ "corner_bottom_left",
170
+ "border_style",
171
+ "border_solid",
172
+ "border_dashed",
173
+ "border_dotted",
174
+ ]
175
+ ICON_COMPONENTS: List[str] = [
176
+ "box",
177
+ "aspect_ratio",
178
+ "container",
179
+ "section",
180
+ "layout",
181
+ "grid",
182
+ "table",
183
+ "image",
184
+ "switch",
185
+ "checkbox",
186
+ "radiobutton",
187
+ "avatar",
188
+ "button",
189
+ "badge",
190
+ "input",
191
+ "slider",
192
+ "quote",
193
+ "code",
194
+ "list_bullet",
195
+ "dropdown_menu",
196
+ "video",
197
+ "pie_chart",
198
+ "calendar",
199
+ "dashboard",
200
+ "activity_log",
201
+ "bar_chart",
202
+ "divider_horizontal",
203
+ "divider_vertical",
204
+ ]
205
+ ICON_DESIGN: List[str] = [
206
+ "frame",
207
+ "crop",
208
+ "layers",
209
+ "stack",
210
+ "tokens",
211
+ "component_1",
212
+ "component_2",
213
+ "component_instance",
214
+ "component_none",
215
+ "component_boolean",
216
+ "component_placeholder",
217
+ "opacity",
218
+ "blending_mode",
219
+ "mask_on",
220
+ "mask_off",
221
+ "color_wheel",
222
+ "shadow",
223
+ "shadow_none",
224
+ "shadow_inner",
225
+ "shadow_outer",
226
+ "value",
227
+ "value_none",
228
+ "zoom_in",
229
+ "zoom_out",
230
+ "transparency_grid",
231
+ "group",
232
+ "dimensions",
233
+ "rotate_counter_clockwise",
234
+ "columns",
235
+ "rows",
236
+ "transform",
237
+ "box_model",
238
+ "padding",
239
+ "margin",
240
+ "angle",
241
+ "cursor_arrow",
242
+ "cursor_text",
243
+ "column_spacing",
244
+ "row_spacing",
245
+ ]
246
+ ICON_LOGOS: List[str] = [
247
+ "modulz_logo",
248
+ "stitches_logo",
249
+ "figma_logo",
250
+ "framer_logo",
251
+ "sketch_logo",
252
+ "twitter_logo",
253
+ "icon_jar_logo",
254
+ "git_hub_logo",
255
+ "code_sandbox_logo",
256
+ "notion_logo",
257
+ "discord_logo",
258
+ "instagram_logo",
259
+ "linked_in_logo",
260
+ ]
261
+ ICON_MUSIC: List[str] = [
262
+ "play",
263
+ "resume",
264
+ "pause",
265
+ "stop",
266
+ "track_previous",
267
+ "track_next",
268
+ "loop",
269
+ "shuffle",
270
+ "speaker_loud",
271
+ "speaker_moderate",
272
+ "speaker_quiet",
273
+ "speaker_off",
274
+ ]
275
+ ICON_OBJECTS: List[str] = [
276
+ "magnifying_glass",
277
+ "gear",
278
+ "bell",
279
+ "home",
280
+ "lock_closed",
281
+ "lock_open_1",
282
+ "lock_open_2",
283
+ "backpack",
284
+ "camera",
285
+ "paper_plane",
286
+ "rocket",
287
+ "envelope_closed",
288
+ "envelope_open",
289
+ "chat_bubble",
290
+ "link_1",
291
+ "link_2",
292
+ "link_break_1",
293
+ "link_break_2",
294
+ "link_none_1",
295
+ "link_none_2",
296
+ "trash",
297
+ "pencil_1",
298
+ "pencil_2",
299
+ "bookmark",
300
+ "bookmark_filled",
301
+ "drawing_pin",
302
+ "drawing_pin_filled",
303
+ "sewing_pin",
304
+ "sewing_pin_filled",
305
+ "cube",
306
+ "archive",
307
+ "crumpled_paper",
308
+ "mix",
309
+ "mixer_horizontal",
310
+ "mixer_vertical",
311
+ "file",
312
+ "file_minus",
313
+ "file_plus",
314
+ "file_text",
315
+ "reader",
316
+ "card_stack",
317
+ "card_stack_plus",
318
+ "card_stack_minus",
319
+ "id_card",
320
+ "crosshair_1",
321
+ "crosshair_2",
322
+ "target",
323
+ "globe",
324
+ "disc",
325
+ "sun",
326
+ "moon",
327
+ "clock",
328
+ "timer",
329
+ "counter_clockwise_clock",
330
+ "countdown_timer",
331
+ "stopwatch",
332
+ "lap_timer",
333
+ "lightning_bolt",
334
+ "magic_wand",
335
+ "face",
336
+ "person",
337
+ "eye_open",
338
+ "eye_none",
339
+ "eye_closed",
340
+ "hand",
341
+ "ruler_horizontal",
342
+ "ruler_square",
343
+ "clipboard",
344
+ "clipboard_copy",
345
+ "desktop",
346
+ "laptop",
347
+ "mobile",
348
+ "keyboard",
349
+ "star",
350
+ "star_filled",
351
+ "heart",
352
+ "heart_filled",
353
+ "scissors",
354
+ "hobby_knife",
355
+ "eraser",
356
+ "cookie",
357
+ ]
358
+ ICON_TYPOGRAPHY: List[str] = [
359
+ "font_style",
360
+ "font_italic",
361
+ "font_roman",
362
+ "font_bold",
363
+ "letter_case_lowercase",
364
+ "letter_case_capitalize",
365
+ "letter_case_uppercase",
366
+ "letter_case_toggle",
367
+ "letter_spacing",
368
+ "align_baseline",
369
+ "font_size",
370
+ "font_family",
371
+ "heading",
372
+ "text",
373
+ "text_none",
374
+ "line_height",
375
+ "underline",
376
+ "strikethrough",
377
+ "overline",
378
+ "pilcrow",
379
+ "text_align_left",
380
+ "text_align_center",
381
+ "text_align_right",
382
+ "text_align_justify",
383
+ "text_align_top",
384
+ "text_align_middle",
385
+ "text_align_bottom",
386
+ "dash",
387
+ ]
388
+
389
+ ICON_LIST: List[str] = [
390
+ *ICON_ABSTRACT,
391
+ *ICON_ALIGNS,
392
+ *ICON_ARROWS,
393
+ *ICON_BORDERS,
394
+ *ICON_COMPONENTS,
395
+ *ICON_DESIGN,
396
+ *ICON_LOGOS,
397
+ *ICON_MUSIC,
398
+ *ICON_OBJECTS,
399
+ *ICON_TYPOGRAPHY,
400
+ ]
@@ -0,0 +1,185 @@
1
+ """Stub file for reflex/components/radix/themes/components/icons.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 List
11
+ from reflex.components.component import Component
12
+ from reflex.utils import format
13
+
14
+ class RadixIconComponent(Component):
15
+ @overload
16
+ @classmethod
17
+ def create( # type: ignore
18
+ cls,
19
+ *children,
20
+ style: Optional[Style] = None,
21
+ key: Optional[Any] = None,
22
+ id: Optional[Any] = None,
23
+ class_name: Optional[Any] = None,
24
+ autofocus: Optional[bool] = None,
25
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
26
+ on_blur: Optional[
27
+ Union[EventHandler, EventSpec, list, function, BaseVar]
28
+ ] = None,
29
+ on_click: Optional[
30
+ Union[EventHandler, EventSpec, list, function, BaseVar]
31
+ ] = None,
32
+ on_context_menu: Optional[
33
+ Union[EventHandler, EventSpec, list, function, BaseVar]
34
+ ] = None,
35
+ on_double_click: Optional[
36
+ Union[EventHandler, EventSpec, list, function, BaseVar]
37
+ ] = None,
38
+ on_focus: Optional[
39
+ Union[EventHandler, EventSpec, list, function, BaseVar]
40
+ ] = None,
41
+ on_mount: Optional[
42
+ Union[EventHandler, EventSpec, list, function, BaseVar]
43
+ ] = None,
44
+ on_mouse_down: Optional[
45
+ Union[EventHandler, EventSpec, list, function, BaseVar]
46
+ ] = None,
47
+ on_mouse_enter: Optional[
48
+ Union[EventHandler, EventSpec, list, function, BaseVar]
49
+ ] = None,
50
+ on_mouse_leave: Optional[
51
+ Union[EventHandler, EventSpec, list, function, BaseVar]
52
+ ] = None,
53
+ on_mouse_move: Optional[
54
+ Union[EventHandler, EventSpec, list, function, BaseVar]
55
+ ] = None,
56
+ on_mouse_out: Optional[
57
+ Union[EventHandler, EventSpec, list, function, BaseVar]
58
+ ] = None,
59
+ on_mouse_over: Optional[
60
+ Union[EventHandler, EventSpec, list, function, BaseVar]
61
+ ] = None,
62
+ on_mouse_up: Optional[
63
+ Union[EventHandler, EventSpec, list, function, BaseVar]
64
+ ] = None,
65
+ on_scroll: Optional[
66
+ Union[EventHandler, EventSpec, list, function, BaseVar]
67
+ ] = None,
68
+ on_unmount: Optional[
69
+ Union[EventHandler, EventSpec, list, function, BaseVar]
70
+ ] = None,
71
+ **props
72
+ ) -> "RadixIconComponent":
73
+ """Create the component.
74
+
75
+ Args:
76
+ *children: The children of the component.
77
+ style: The style of the component.
78
+ key: A unique key for the component.
79
+ id: The id for the component.
80
+ class_name: The class name for the component.
81
+ autofocus: Whether the component should take the focus once the page is loaded
82
+ custom_attrs: custom attribute
83
+ **props: The props of the component.
84
+
85
+ Returns:
86
+ The component.
87
+
88
+ Raises:
89
+ TypeError: If an invalid child is passed.
90
+ """
91
+ ...
92
+
93
+ class Icon(RadixIconComponent):
94
+ @overload
95
+ @classmethod
96
+ def create( # type: ignore
97
+ cls,
98
+ *children,
99
+ style: Optional[Style] = None,
100
+ key: Optional[Any] = None,
101
+ id: Optional[Any] = None,
102
+ class_name: Optional[Any] = None,
103
+ autofocus: Optional[bool] = None,
104
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
105
+ on_blur: Optional[
106
+ Union[EventHandler, EventSpec, list, function, BaseVar]
107
+ ] = None,
108
+ on_click: Optional[
109
+ Union[EventHandler, EventSpec, list, function, BaseVar]
110
+ ] = None,
111
+ on_context_menu: Optional[
112
+ Union[EventHandler, EventSpec, list, function, BaseVar]
113
+ ] = None,
114
+ on_double_click: Optional[
115
+ Union[EventHandler, EventSpec, list, function, BaseVar]
116
+ ] = None,
117
+ on_focus: Optional[
118
+ Union[EventHandler, EventSpec, list, function, BaseVar]
119
+ ] = None,
120
+ on_mount: Optional[
121
+ Union[EventHandler, EventSpec, list, function, BaseVar]
122
+ ] = None,
123
+ on_mouse_down: Optional[
124
+ Union[EventHandler, EventSpec, list, function, BaseVar]
125
+ ] = None,
126
+ on_mouse_enter: Optional[
127
+ Union[EventHandler, EventSpec, list, function, BaseVar]
128
+ ] = None,
129
+ on_mouse_leave: Optional[
130
+ Union[EventHandler, EventSpec, list, function, BaseVar]
131
+ ] = None,
132
+ on_mouse_move: Optional[
133
+ Union[EventHandler, EventSpec, list, function, BaseVar]
134
+ ] = None,
135
+ on_mouse_out: Optional[
136
+ Union[EventHandler, EventSpec, list, function, BaseVar]
137
+ ] = None,
138
+ on_mouse_over: Optional[
139
+ Union[EventHandler, EventSpec, list, function, BaseVar]
140
+ ] = None,
141
+ on_mouse_up: Optional[
142
+ Union[EventHandler, EventSpec, list, function, BaseVar]
143
+ ] = None,
144
+ on_scroll: Optional[
145
+ Union[EventHandler, EventSpec, list, function, BaseVar]
146
+ ] = None,
147
+ on_unmount: Optional[
148
+ Union[EventHandler, EventSpec, list, function, BaseVar]
149
+ ] = None,
150
+ **props
151
+ ) -> "Icon":
152
+ """Initialize the Icon component.
153
+
154
+ Run some additional checks on Icon component.
155
+
156
+ Args:
157
+ *children: The positional arguments
158
+ style: The style of the component.
159
+ key: A unique key for the component.
160
+ id: The id for the component.
161
+ class_name: The class name for the component.
162
+ autofocus: Whether the component should take the focus once the page is loaded
163
+ custom_attrs: custom attribute
164
+ **props: The keyword arguments
165
+
166
+ Raises:
167
+ AttributeError: The errors tied to bad usage of the Icon component.
168
+ ValueError: If the icon tag is invalid.
169
+
170
+ Returns:
171
+ The created component.
172
+ """
173
+ ...
174
+
175
+ ICON_ABSTRACT: List[str]
176
+ ICON_ALIGNS: List[str]
177
+ ICON_ARROWS: List[str]
178
+ ICON_BORDERS: List[str]
179
+ ICON_COMPONENTS: List[str]
180
+ ICON_DESIGN: List[str]
181
+ ICON_LOGOS: List[str]
182
+ ICON_MUSIC: List[str]
183
+ ICON_OBJECTS: List[str]
184
+ ICON_TYPOGRAPHY: List[str]
185
+ ICON_LIST: List[str]
@@ -0,0 +1,44 @@
1
+ """Interactive components provided by @radix-ui/themes."""
2
+ from typing import Literal, Union
3
+
4
+ from reflex import el
5
+ from reflex.vars import Var
6
+
7
+ from ..base import (
8
+ CommonMarginProps,
9
+ RadixThemesComponent,
10
+ )
11
+
12
+ LiteralButtonSize = Literal["1", "2", "3", "4"]
13
+
14
+
15
+ class Inset(el.Div, CommonMarginProps, RadixThemesComponent):
16
+ """Trigger an action or event, such as submitting a form or displaying a dialog."""
17
+
18
+ tag = "Inset"
19
+
20
+ # The side
21
+ side: Var[Literal["x", "y", "top", "bottom", "right", "left"]]
22
+
23
+ clip: Var[Literal["border-box", "padding-box"]]
24
+
25
+ # Padding
26
+ p: Var[Union[int, str]]
27
+
28
+ # Padding on the x axis
29
+ px: Var[Union[int, str]]
30
+
31
+ # Padding on the y axis
32
+ py: Var[Union[int, str]]
33
+
34
+ # Padding on the top
35
+ pt: Var[Union[int, str]]
36
+
37
+ # Padding on the right
38
+ pr: Var[Union[int, str]]
39
+
40
+ # Padding on the bottom
41
+ pb: Var[Union[int, str]]
42
+
43
+ # Padding on the left
44
+ pl: Var[Union[int, str]]