reflex 0.8.15a2__py3-none-any.whl → 0.8.16a1__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/app.py +40 -46
  2. reflex/app_mixins/lifespan.py +12 -5
  3. reflex/base.py +1 -0
  4. reflex/compiler/compiler.py +4 -6
  5. reflex/compiler/templates.py +25 -31
  6. reflex/compiler/utils.py +6 -5
  7. reflex/components/base/body.pyi +1 -195
  8. reflex/components/base/link.pyi +1 -407
  9. reflex/components/base/meta.pyi +1 -405
  10. reflex/components/base/script.pyi +1 -237
  11. reflex/components/component.py +41 -46
  12. reflex/components/core/auto_scroll.pyi +1 -195
  13. reflex/components/core/banner.pyi +1 -391
  14. reflex/components/core/breakpoints.py +14 -18
  15. reflex/components/core/html.pyi +1 -197
  16. reflex/components/core/match.py +2 -2
  17. reflex/components/core/sticky.py +11 -15
  18. reflex/components/core/sticky.pyi +0 -788
  19. reflex/components/core/upload.py +1 -3
  20. reflex/components/datadisplay/code.pyi +1 -0
  21. reflex/components/datadisplay/dataeditor.py +4 -6
  22. reflex/components/datadisplay/shiki_code_block.py +106 -110
  23. reflex/components/dynamic.py +4 -6
  24. reflex/components/el/elements/__init__.py +5 -7
  25. reflex/components/el/elements/__init__.pyi +5 -7
  26. reflex/components/el/elements/base.py +1 -1
  27. reflex/components/el/elements/base.pyi +1 -195
  28. reflex/components/el/elements/forms.py +7 -9
  29. reflex/components/el/elements/forms.pyi +12 -3112
  30. reflex/components/el/elements/inline.pyi +0 -5481
  31. reflex/components/el/elements/media.pyi +0 -10280
  32. reflex/components/el/elements/metadata.pyi +1 -835
  33. reflex/components/el/elements/other.pyi +1 -1365
  34. reflex/components/el/elements/scripts.pyi +1 -625
  35. reflex/components/el/elements/sectioning.pyi +1 -2911
  36. reflex/components/el/elements/tables.pyi +1 -1973
  37. reflex/components/el/elements/typography.pyi +1 -3125
  38. reflex/components/lucide/icon.py +4 -4
  39. reflex/components/lucide/icon.pyi +0 -4
  40. reflex/components/markdown/markdown.py +15 -19
  41. reflex/components/markdown/markdown.pyi +1 -0
  42. reflex/components/moment/moment.pyi +0 -49
  43. reflex/components/props.py +3 -3
  44. reflex/components/radix/primitives/accordion.py +4 -6
  45. reflex/components/radix/primitives/accordion.pyi +0 -14
  46. reflex/components/radix/primitives/base.pyi +0 -5
  47. reflex/components/radix/primitives/dialog.py +2 -0
  48. reflex/components/radix/primitives/dialog.pyi +1 -233
  49. reflex/components/radix/primitives/drawer.pyi +0 -18
  50. reflex/components/radix/primitives/form.pyi +30 -632
  51. reflex/components/radix/primitives/progress.pyi +0 -10
  52. reflex/components/radix/primitives/slider.pyi +0 -10
  53. reflex/components/radix/themes/color_mode.pyi +1 -284
  54. reflex/components/radix/themes/components/alert_dialog.pyi +0 -207
  55. reflex/components/radix/themes/components/aspect_ratio.pyi +0 -2
  56. reflex/components/radix/themes/components/avatar.pyi +0 -80
  57. reflex/components/radix/themes/components/badge.pyi +1 -270
  58. reflex/components/radix/themes/components/button.pyi +1 -274
  59. reflex/components/radix/themes/components/callout.pyi +0 -1197
  60. reflex/components/radix/themes/components/card.pyi +1 -209
  61. reflex/components/radix/themes/components/checkbox.pyi +0 -261
  62. reflex/components/radix/themes/components/checkbox_cards.pyi +1 -96
  63. reflex/components/radix/themes/components/checkbox_group.pyi +1 -80
  64. reflex/components/radix/themes/components/context_menu.pyi +13 -321
  65. reflex/components/radix/themes/components/data_list.pyi +1 -107
  66. reflex/components/radix/themes/components/dialog.pyi +1 -210
  67. reflex/components/radix/themes/components/dropdown_menu.pyi +0 -209
  68. reflex/components/radix/themes/components/hover_card.pyi +1 -246
  69. reflex/components/radix/themes/components/icon_button.pyi +1 -195
  70. reflex/components/radix/themes/components/inset.pyi +0 -252
  71. reflex/components/radix/themes/components/popover.pyi +1 -234
  72. reflex/components/radix/themes/components/progress.pyi +1 -84
  73. reflex/components/radix/themes/components/radio.pyi +1 -72
  74. reflex/components/radix/themes/components/radio_cards.pyi +1 -123
  75. reflex/components/radix/themes/components/scroll_area.pyi +1 -11
  76. reflex/components/radix/themes/components/select.pyi +1 -376
  77. reflex/components/radix/themes/components/separator.pyi +0 -77
  78. reflex/components/radix/themes/components/skeleton.pyi +0 -30
  79. reflex/components/radix/themes/components/slider.py +3 -5
  80. reflex/components/radix/themes/components/spinner.pyi +0 -5
  81. reflex/components/radix/themes/components/switch.pyi +0 -89
  82. reflex/components/radix/themes/components/table.pyi +0 -1453
  83. reflex/components/radix/themes/components/text_area.pyi +7 -282
  84. reflex/components/radix/themes/components/text_field.pyi +6 -392
  85. reflex/components/radix/themes/components/tooltip.pyi +0 -42
  86. reflex/components/radix/themes/layout/box.pyi +1 -195
  87. reflex/components/radix/themes/layout/center.pyi +0 -194
  88. reflex/components/radix/themes/layout/container.pyi +0 -178
  89. reflex/components/radix/themes/layout/flex.pyi +0 -194
  90. reflex/components/radix/themes/layout/grid.pyi +0 -194
  91. reflex/components/radix/themes/layout/list.pyi +0 -978
  92. reflex/components/radix/themes/layout/section.pyi +0 -194
  93. reflex/components/radix/themes/layout/spacer.pyi +0 -194
  94. reflex/components/radix/themes/layout/stack.pyi +0 -582
  95. reflex/components/radix/themes/typography/blockquote.pyi +0 -196
  96. reflex/components/radix/themes/typography/code.pyi +0 -194
  97. reflex/components/radix/themes/typography/heading.pyi +0 -194
  98. reflex/components/radix/themes/typography/link.pyi +0 -237
  99. reflex/components/radix/themes/typography/text.pyi +0 -1360
  100. reflex/components/react_router/dom.pyi +0 -237
  101. reflex/components/recharts/cartesian.py +12 -18
  102. reflex/components/recharts/general.py +12 -18
  103. reflex/constants/installer.py +5 -5
  104. reflex/custom_components/custom_components.py +6 -5
  105. reflex/environment.py +30 -7
  106. reflex/event.py +14 -12
  107. reflex/experimental/client_state.py +11 -12
  108. reflex/istate/data.py +8 -10
  109. reflex/istate/manager/__init__.py +3 -0
  110. reflex/istate/manager/disk.py +151 -5
  111. reflex/model.py +1 -1
  112. reflex/plugins/_screenshot.py +2 -2
  113. reflex/plugins/shared_tailwind.py +9 -14
  114. reflex/reflex.py +7 -9
  115. reflex/state.py +30 -37
  116. reflex/style.py +6 -6
  117. reflex/testing.py +54 -30
  118. reflex/utils/codespaces.py +1 -1
  119. reflex/utils/compat.py +1 -0
  120. reflex/utils/decorator.py +3 -3
  121. reflex/utils/format.py +18 -22
  122. reflex/utils/prerequisites.py +1 -1
  123. reflex/utils/pyi_generator.py +51 -57
  124. reflex/utils/serializers.py +1 -1
  125. reflex/utils/telemetry.py +1 -1
  126. reflex/utils/templates.py +4 -4
  127. reflex/utils/types.py +3 -3
  128. reflex/vars/base.py +26 -29
  129. reflex/vars/color.py +6 -8
  130. reflex/vars/dep_tracking.py +5 -3
  131. reflex/vars/function.py +3 -3
  132. reflex/vars/object.py +9 -13
  133. reflex/vars/sequence.py +18 -24
  134. {reflex-0.8.15a2.dist-info → reflex-0.8.16a1.dist-info}/METADATA +1 -1
  135. {reflex-0.8.15a2.dist-info → reflex-0.8.16a1.dist-info}/RECORD +138 -138
  136. {reflex-0.8.15a2.dist-info → reflex-0.8.16a1.dist-info}/WHEEL +0 -0
  137. {reflex-0.8.15a2.dist-info → reflex-0.8.16a1.dist-info}/entry_points.txt +0 -0
  138. {reflex-0.8.15a2.dist-info → reflex-0.8.16a1.dist-info}/licenses/LICENSE +0 -0
@@ -5,7 +5,7 @@
5
5
  # ------------------------------------------------------
6
6
  from collections.abc import Mapping, Sequence
7
7
  from types import SimpleNamespace
8
- from typing import Any, Literal
8
+ from typing import Any
9
9
 
10
10
  from reflex.components.core.breakpoints import Breakpoints
11
11
  from reflex.components.radix.themes.base import RadixThemesComponent
@@ -17,75 +17,6 @@ class CheckboxGroupRoot(RadixThemesComponent):
17
17
  def create(
18
18
  cls,
19
19
  *children,
20
- size: Breakpoints[str, Literal["1", "2", "3"]]
21
- | Literal["1", "2", "3"]
22
- | Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
23
- | None = None,
24
- variant: Literal["classic", "soft", "surface"]
25
- | Var[Literal["classic", "soft", "surface"]]
26
- | None = None,
27
- color_scheme: Literal[
28
- "amber",
29
- "blue",
30
- "bronze",
31
- "brown",
32
- "crimson",
33
- "cyan",
34
- "gold",
35
- "grass",
36
- "gray",
37
- "green",
38
- "indigo",
39
- "iris",
40
- "jade",
41
- "lime",
42
- "mint",
43
- "orange",
44
- "pink",
45
- "plum",
46
- "purple",
47
- "red",
48
- "ruby",
49
- "sky",
50
- "teal",
51
- "tomato",
52
- "violet",
53
- "yellow",
54
- ]
55
- | Var[
56
- Literal[
57
- "amber",
58
- "blue",
59
- "bronze",
60
- "brown",
61
- "crimson",
62
- "cyan",
63
- "gold",
64
- "grass",
65
- "gray",
66
- "green",
67
- "indigo",
68
- "iris",
69
- "jade",
70
- "lime",
71
- "mint",
72
- "orange",
73
- "pink",
74
- "plum",
75
- "purple",
76
- "red",
77
- "ruby",
78
- "sky",
79
- "teal",
80
- "tomato",
81
- "violet",
82
- "yellow",
83
- ]
84
- ]
85
- | None = None,
86
- high_contrast: Var[bool] | bool | None = None,
87
- default_value: Sequence[str] | Var[Sequence[str]] | None = None,
88
- name: Var[str] | str | None = None,
89
20
  style: Sequence[Mapping[str, Any]]
90
21
  | Mapping[str, Any]
91
22
  | Var[Mapping[str, Any]]
@@ -121,12 +52,6 @@ class CheckboxGroupRoot(RadixThemesComponent):
121
52
 
122
53
  Args:
123
54
  *children: Child components.
124
- size: Use the size prop to control the checkbox size.
125
- variant: Variant of button: "classic" | "surface" | "soft"
126
- color_scheme: Override theme color for button
127
- high_contrast: Uses a higher contrast color for the component.
128
- default_value: determines which checkboxes, if any, are checked by default.
129
- name: used to assign a name to the entire group of checkboxes
130
55
  style: The style of the component.
131
56
  key: A unique key for the component.
132
57
  id: The id for the component.
@@ -144,8 +69,6 @@ class CheckboxGroupItem(RadixThemesComponent):
144
69
  def create(
145
70
  cls,
146
71
  *children,
147
- value: Var[str] | str | None = None,
148
- disabled: Var[bool] | bool | None = None,
149
72
  style: Sequence[Mapping[str, Any]]
150
73
  | Mapping[str, Any]
151
74
  | Var[Mapping[str, Any]]
@@ -181,8 +104,6 @@ class CheckboxGroupItem(RadixThemesComponent):
181
104
 
182
105
  Args:
183
106
  *children: Child components.
184
- value: specifies the value associated with a particular checkbox option.
185
- disabled: Use the native disabled attribute to create a disabled checkbox.
186
107
  style: The style of the component.
187
108
  key: A unique key for the component.
188
109
  id: The id for the component.
@@ -27,8 +27,6 @@ class ContextMenuRoot(RadixThemesComponent):
27
27
  def create(
28
28
  cls,
29
29
  *children,
30
- modal: Var[bool] | bool | None = None,
31
- dir: Literal["ltr", "rtl"] | Var[Literal["ltr", "rtl"]] | None = None,
32
30
  style: Sequence[Mapping[str, Any]]
33
31
  | Mapping[str, Any]
34
32
  | Var[Mapping[str, Any]]
@@ -65,9 +63,7 @@ class ContextMenuRoot(RadixThemesComponent):
65
63
 
66
64
  Args:
67
65
  *children: Child components.
68
- modal: The modality of the context menu. When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers.
69
66
  on_open_change: Fired when the open state changes.
70
- dir: The reading direction of submenus when applicable. If omitted, inherits globally from DirectionProvider or assumes LTR (left-to-right) reading mode.
71
67
  style: The style of the component.
72
68
  key: A unique key for the component.
73
69
  id: The id for the component.
@@ -85,7 +81,6 @@ class ContextMenuTrigger(RadixThemesComponent):
85
81
  def create(
86
82
  cls,
87
83
  *children,
88
- disabled: Var[bool] | bool | None = None,
89
84
  style: Sequence[Mapping[str, Any]]
90
85
  | Mapping[str, Any]
91
86
  | Var[Mapping[str, Any]]
@@ -121,7 +116,6 @@ class ContextMenuTrigger(RadixThemesComponent):
121
116
 
122
117
  Args:
123
118
  *children: Child components.
124
- disabled: Whether the trigger is disabled
125
119
  style: The style of the component.
126
120
  key: A unique key for the component.
127
121
  id: The id for the component.
@@ -139,92 +133,6 @@ class ContextMenuContent(RadixThemesComponent):
139
133
  def create(
140
134
  cls,
141
135
  *children,
142
- size: Breakpoints[str, Literal["1", "2"]]
143
- | Literal["1", "2"]
144
- | Var[Breakpoints[str, Literal["1", "2"]] | Literal["1", "2"]]
145
- | None = None,
146
- variant: Literal["soft", "solid"] | Var[Literal["soft", "solid"]] | None = None,
147
- color_scheme: Literal[
148
- "amber",
149
- "blue",
150
- "bronze",
151
- "brown",
152
- "crimson",
153
- "cyan",
154
- "gold",
155
- "grass",
156
- "gray",
157
- "green",
158
- "indigo",
159
- "iris",
160
- "jade",
161
- "lime",
162
- "mint",
163
- "orange",
164
- "pink",
165
- "plum",
166
- "purple",
167
- "red",
168
- "ruby",
169
- "sky",
170
- "teal",
171
- "tomato",
172
- "violet",
173
- "yellow",
174
- ]
175
- | Var[
176
- Literal[
177
- "amber",
178
- "blue",
179
- "bronze",
180
- "brown",
181
- "crimson",
182
- "cyan",
183
- "gold",
184
- "grass",
185
- "gray",
186
- "green",
187
- "indigo",
188
- "iris",
189
- "jade",
190
- "lime",
191
- "mint",
192
- "orange",
193
- "pink",
194
- "plum",
195
- "purple",
196
- "red",
197
- "ruby",
198
- "sky",
199
- "teal",
200
- "tomato",
201
- "violet",
202
- "yellow",
203
- ]
204
- ]
205
- | None = None,
206
- high_contrast: Var[bool] | bool | None = None,
207
- as_child: Var[bool] | bool | None = None,
208
- loop: Var[bool] | bool | None = None,
209
- force_mount: Var[bool] | bool | None = None,
210
- side: Literal["bottom", "left", "right", "top"]
211
- | Var[Literal["bottom", "left", "right", "top"]]
212
- | None = None,
213
- side_offset: Var[float | int] | float | int | None = None,
214
- align: Literal["center", "end", "start"]
215
- | Var[Literal["center", "end", "start"]]
216
- | None = None,
217
- align_offset: Var[float | int] | float | int | None = None,
218
- avoid_collisions: Var[bool] | bool | None = None,
219
- collision_padding: Var[dict[str, float | int] | float | int]
220
- | dict[str, float | int]
221
- | float
222
- | int
223
- | None = None,
224
- sticky: Literal["always", "partial"]
225
- | Var[Literal["always", "partial"]]
226
- | None = None,
227
- hide_when_detached: Var[bool] | bool | None = None,
228
136
  style: Sequence[Mapping[str, Any]]
229
137
  | Mapping[str, Any]
230
138
  | Var[Mapping[str, Any]]
@@ -265,21 +173,6 @@ class ContextMenuContent(RadixThemesComponent):
265
173
 
266
174
  Args:
267
175
  *children: Child components.
268
- size: Dropdown Menu Content size "1" - "2"
269
- variant: Variant of Dropdown Menu Content: "solid" | "soft"
270
- color_scheme: Override theme color for Dropdown Menu Content
271
- high_contrast: Renders the Dropdown Menu Content in higher contrast
272
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
273
- loop: When True, keyboard navigation will loop from last item to first, and vice versa. Defaults to False.
274
- force_mount: Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries.
275
- side: The preferred side of the trigger to render against when open. Will be reversed when collisions occur and `avoid_collisions` is enabled.The position of the tooltip. Defaults to "top".
276
- side_offset: The distance in pixels from the trigger. Defaults to 0.
277
- align: The preferred alignment against the trigger. May change when collisions occur. Defaults to "center".
278
- align_offset: An offset in pixels from the "start" or "end" alignment options.
279
- avoid_collisions: When true, overrides the side and align preferences to prevent collisions with boundary edges. Defaults to True.
280
- collision_padding: The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for all sides), or a partial padding object, for example: { "top": 20, "left": 20 }. Defaults to 0.
281
- sticky: The sticky behavior on the align axis. "partial" will keep the content in the boundary as long as the trigger is at least partially in the boundary whilst "always" will keep the content in the boundary regardless. Defaults to "partial".
282
- hide_when_detached: Whether to hide the content when the trigger becomes fully occluded. Defaults to False.
283
176
  on_close_auto_focus: Fired when focus moves back after closing.
284
177
  on_escape_key_down: Fired when the escape key is pressed.
285
178
  on_pointer_down_outside: Fired when a pointer down event happens outside the context menu.
@@ -302,8 +195,6 @@ class ContextMenuSub(RadixThemesComponent):
302
195
  def create(
303
196
  cls,
304
197
  *children,
305
- open: Var[bool] | bool | None = None,
306
- default_open: Var[bool] | bool | None = None,
307
198
  style: Sequence[Mapping[str, Any]]
308
199
  | Mapping[str, Any]
309
200
  | Var[Mapping[str, Any]]
@@ -340,8 +231,6 @@ class ContextMenuSub(RadixThemesComponent):
340
231
 
341
232
  Args:
342
233
  *children: Child components.
343
- open: The controlled open state of the submenu. Must be used in conjunction with `on_open_change`.
344
- default_open: The open state of the submenu when it is initially rendered. Use when you do not need to control its open state.
345
234
  on_open_change: Fired when the open state changes.
346
235
  style: The style of the component.
347
236
  key: A unique key for the component.
@@ -360,9 +249,6 @@ class ContextMenuSubTrigger(RadixThemesComponent):
360
249
  def create(
361
250
  cls,
362
251
  *children,
363
- as_child: Var[bool] | bool | None = None,
364
- disabled: Var[bool] | bool | None = None,
365
- text_value: Var[str] | str | None = None,
366
252
  style: Sequence[Mapping[str, Any]]
367
253
  | Mapping[str, Any]
368
254
  | Var[Mapping[str, Any]]
@@ -398,9 +284,6 @@ class ContextMenuSubTrigger(RadixThemesComponent):
398
284
 
399
285
  Args:
400
286
  *children: Child components.
401
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
402
- disabled: Whether the trigger is disabled
403
- text_value: Optional text used for typeahead purposes. By default the typeahead behavior will use the .textContent of the item. Use this when the content is complex, or you have non-textual content inside.
404
287
  style: The style of the component.
405
288
  key: A unique key for the component.
406
289
  id: The id for the component.
@@ -418,21 +301,6 @@ class ContextMenuSubContent(RadixThemesComponent):
418
301
  def create(
419
302
  cls,
420
303
  *children,
421
- as_child: Var[bool] | bool | None = None,
422
- loop: Var[bool] | bool | None = None,
423
- force_mount: Var[bool] | bool | None = None,
424
- side_offset: Var[float | int] | float | int | None = None,
425
- align_offset: Var[float | int] | float | int | None = None,
426
- avoid_collisions: Var[bool] | bool | None = None,
427
- collision_padding: Var[dict[str, float | int] | float | int]
428
- | dict[str, float | int]
429
- | float
430
- | int
431
- | None = None,
432
- sticky: Literal["always", "partial"]
433
- | Var[Literal["always", "partial"]]
434
- | None = None,
435
- hide_when_detached: Var[bool] | bool | None = None,
436
304
  style: Sequence[Mapping[str, Any]]
437
305
  | Mapping[str, Any]
438
306
  | Var[Mapping[str, Any]]
@@ -472,15 +340,6 @@ class ContextMenuSubContent(RadixThemesComponent):
472
340
 
473
341
  Args:
474
342
  *children: Child components.
475
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
476
- loop: When True, keyboard navigation will loop from last item to first, and vice versa. Defaults to False.
477
- force_mount: Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries.
478
- side_offset: The distance in pixels from the trigger. Defaults to 0.
479
- align_offset: An offset in pixels from the "start" or "end" alignment options.
480
- avoid_collisions: When true, overrides the side and align preferences to prevent collisions with boundary edges. Defaults to True.
481
- collision_padding: The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for all sides), or a partial padding object, for example: { "top": 20, "left": 20 }. Defaults to 0.
482
- sticky: The sticky behavior on the align axis. "partial" will keep the content in the boundary as long as the trigger is at least partially in the boundary whilst "always" will keep the content in the boundary regardless. Defaults to "partial".
483
- hide_when_detached: Whether to hide the content when the trigger becomes fully occluded. Defaults to False.
484
343
  on_escape_key_down: Fired when the escape key is pressed.
485
344
  on_pointer_down_outside: Fired when a pointer down event happens outside the context menu.
486
345
  on_focus_outside: Fired when focus moves outside the context menu.
@@ -502,69 +361,6 @@ class ContextMenuItem(RadixThemesComponent):
502
361
  def create(
503
362
  cls,
504
363
  *children,
505
- color_scheme: Literal[
506
- "amber",
507
- "blue",
508
- "bronze",
509
- "brown",
510
- "crimson",
511
- "cyan",
512
- "gold",
513
- "grass",
514
- "gray",
515
- "green",
516
- "indigo",
517
- "iris",
518
- "jade",
519
- "lime",
520
- "mint",
521
- "orange",
522
- "pink",
523
- "plum",
524
- "purple",
525
- "red",
526
- "ruby",
527
- "sky",
528
- "teal",
529
- "tomato",
530
- "violet",
531
- "yellow",
532
- ]
533
- | Var[
534
- Literal[
535
- "amber",
536
- "blue",
537
- "bronze",
538
- "brown",
539
- "crimson",
540
- "cyan",
541
- "gold",
542
- "grass",
543
- "gray",
544
- "green",
545
- "indigo",
546
- "iris",
547
- "jade",
548
- "lime",
549
- "mint",
550
- "orange",
551
- "pink",
552
- "plum",
553
- "purple",
554
- "red",
555
- "ruby",
556
- "sky",
557
- "teal",
558
- "tomato",
559
- "violet",
560
- "yellow",
561
- ]
562
- ]
563
- | None = None,
564
- shortcut: Var[str] | str | None = None,
565
- as_child: Var[bool] | bool | None = None,
566
- disabled: Var[bool] | bool | None = None,
567
- text_value: Var[str] | str | None = None,
568
364
  style: Sequence[Mapping[str, Any]]
569
365
  | Mapping[str, Any]
570
366
  | Var[Mapping[str, Any]]
@@ -601,11 +397,6 @@ class ContextMenuItem(RadixThemesComponent):
601
397
 
602
398
  Args:
603
399
  *children: Child components.
604
- color_scheme: Override theme color for button
605
- shortcut: Shortcut to render a menu item as a link
606
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
607
- disabled: When true, prevents the user from interacting with the item.
608
- text_value: Optional text used for typeahead purposes. By default the typeahead behavior will use the content of the item. Use this when the content is complex, or you have non-textual content inside.
609
400
  on_select: Fired when the item is selected.
610
401
  style: The style of the component.
611
402
  key: A unique key for the component.
@@ -676,81 +467,6 @@ class ContextMenuCheckbox(Checkbox):
676
467
  def create(
677
468
  cls,
678
469
  *children,
679
- shortcut: Var[str] | str | None = None,
680
- as_child: Var[bool] | bool | None = None,
681
- size: Breakpoints[str, Literal["1", "2", "3"]]
682
- | Literal["1", "2", "3"]
683
- | Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
684
- | None = None,
685
- variant: Literal["classic", "soft", "surface"]
686
- | Var[Literal["classic", "soft", "surface"]]
687
- | None = None,
688
- color_scheme: Literal[
689
- "amber",
690
- "blue",
691
- "bronze",
692
- "brown",
693
- "crimson",
694
- "cyan",
695
- "gold",
696
- "grass",
697
- "gray",
698
- "green",
699
- "indigo",
700
- "iris",
701
- "jade",
702
- "lime",
703
- "mint",
704
- "orange",
705
- "pink",
706
- "plum",
707
- "purple",
708
- "red",
709
- "ruby",
710
- "sky",
711
- "teal",
712
- "tomato",
713
- "violet",
714
- "yellow",
715
- ]
716
- | Var[
717
- Literal[
718
- "amber",
719
- "blue",
720
- "bronze",
721
- "brown",
722
- "crimson",
723
- "cyan",
724
- "gold",
725
- "grass",
726
- "gray",
727
- "green",
728
- "indigo",
729
- "iris",
730
- "jade",
731
- "lime",
732
- "mint",
733
- "orange",
734
- "pink",
735
- "plum",
736
- "purple",
737
- "red",
738
- "ruby",
739
- "sky",
740
- "teal",
741
- "tomato",
742
- "violet",
743
- "yellow",
744
- ]
745
- ]
746
- | None = None,
747
- high_contrast: Var[bool] | bool | None = None,
748
- default_checked: Var[bool] | bool | None = None,
749
- checked: Var[bool] | bool | None = None,
750
- disabled: Var[bool] | bool | None = None,
751
- required: Var[bool] | bool | None = None,
752
- name: Var[str] | str | None = None,
753
- value: Var[str] | str | None = None,
754
470
  style: Sequence[Mapping[str, Any]]
755
471
  | Mapping[str, Any]
756
472
  | Var[Mapping[str, Any]]
@@ -787,18 +503,6 @@ class ContextMenuCheckbox(Checkbox):
787
503
 
788
504
  Args:
789
505
  *children: Child components.
790
- shortcut: Text to render as shortcut.
791
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
792
- size: Checkbox size "1" - "3"
793
- variant: Variant of checkbox: "classic" | "surface" | "soft"
794
- color_scheme: Override theme color for checkbox
795
- high_contrast: Whether to render the checkbox with higher contrast color against background
796
- default_checked: Whether the checkbox is checked by default
797
- checked: Whether the checkbox is checked
798
- disabled: Whether the checkbox is disabled
799
- required: Whether the checkbox is required
800
- name: The name of the checkbox control when submitting the form.
801
- value: The value of the checkbox control when submitting the form.
802
506
  on_change: Fired when the checkbox is checked or unchecked.
803
507
  style: The style of the component.
804
508
  key: A unique key for the component.
@@ -817,7 +521,6 @@ class ContextMenuLabel(RadixThemesComponent):
817
521
  def create(
818
522
  cls,
819
523
  *children,
820
- as_child: Var[bool] | bool | None = None,
821
524
  style: Sequence[Mapping[str, Any]]
822
525
  | Mapping[str, Any]
823
526
  | Var[Mapping[str, Any]]
@@ -853,7 +556,6 @@ class ContextMenuLabel(RadixThemesComponent):
853
556
 
854
557
  Args:
855
558
  *children: Child components.
856
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
857
559
  style: The style of the component.
858
560
  key: A unique key for the component.
859
561
  id: The id for the component.
@@ -871,7 +573,6 @@ class ContextMenuGroup(RadixThemesComponent):
871
573
  def create(
872
574
  cls,
873
575
  *children,
874
- as_child: Var[bool] | bool | None = None,
875
576
  style: Sequence[Mapping[str, Any]]
876
577
  | Mapping[str, Any]
877
578
  | Var[Mapping[str, Any]]
@@ -907,7 +608,6 @@ class ContextMenuGroup(RadixThemesComponent):
907
608
 
908
609
  Args:
909
610
  *children: Child components.
910
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
911
611
  style: The style of the component.
912
612
  key: A unique key for the component.
913
613
  id: The id for the component.
@@ -925,8 +625,6 @@ class ContextMenuRadioGroup(RadixThemesComponent):
925
625
  def create(
926
626
  cls,
927
627
  *children,
928
- as_child: Var[bool] | bool | None = None,
929
- value: Var[str] | str | None = None,
930
628
  style: Sequence[Mapping[str, Any]]
931
629
  | Mapping[str, Any]
932
630
  | Var[Mapping[str, Any]]
@@ -963,8 +661,6 @@ class ContextMenuRadioGroup(RadixThemesComponent):
963
661
 
964
662
  Args:
965
663
  *children: Child components.
966
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
967
- value: The value of the selected item in the group.
968
664
  on_change: Fired when the value of the radio group changes.
969
665
  style: The style of the component.
970
666
  key: A unique key for the component.
@@ -983,6 +679,17 @@ class ContextMenuRadioItem(HighLevelRadioGroup):
983
679
  def create(
984
680
  cls,
985
681
  *children,
682
+ items: Sequence[str] | Var[Sequence[str]] | None = None,
683
+ direction: Literal["column", "column-reverse", "row", "row-reverse"]
684
+ | Var[Literal["column", "column-reverse", "row", "row-reverse"]]
685
+ | None = None,
686
+ spacing: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
687
+ | Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
688
+ | None = None,
689
+ size: Literal["1", "2", "3"] | Var[Literal["1", "2", "3"]] | None = None,
690
+ variant: Literal["classic", "soft", "surface"]
691
+ | Var[Literal["classic", "soft", "surface"]]
692
+ | None = None,
986
693
  color_scheme: Literal[
987
694
  "amber",
988
695
  "blue",
@@ -1042,23 +749,10 @@ class ContextMenuRadioItem(HighLevelRadioGroup):
1042
749
  ]
1043
750
  ]
1044
751
  | None = None,
1045
- as_child: Var[bool] | bool | None = None,
1046
- value: Var[str] | str | None = None,
1047
- disabled: Var[bool] | bool | None = None,
1048
- text_value: Var[str] | str | None = None,
1049
- items: Sequence[str] | Var[Sequence[str]] | None = None,
1050
- direction: Literal["column", "column-reverse", "row", "row-reverse"]
1051
- | Var[Literal["column", "column-reverse", "row", "row-reverse"]]
1052
- | None = None,
1053
- spacing: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
1054
- | Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
1055
- | None = None,
1056
- size: Literal["1", "2", "3"] | Var[Literal["1", "2", "3"]] | None = None,
1057
- variant: Literal["classic", "soft", "surface"]
1058
- | Var[Literal["classic", "soft", "surface"]]
1059
- | None = None,
1060
752
  high_contrast: Var[bool] | bool | None = None,
753
+ value: Var[str] | str | None = None,
1061
754
  default_value: Var[str] | str | None = None,
755
+ disabled: Var[bool] | bool | None = None,
1062
756
  name: Var[str] | str | None = None,
1063
757
  required: Var[bool] | bool | None = None,
1064
758
  style: Sequence[Mapping[str, Any]]
@@ -1095,11 +789,9 @@ class ContextMenuRadioItem(HighLevelRadioGroup):
1095
789
  Args:
1096
790
  items: The items of the radio group.
1097
791
  color_scheme: The color of the radio group
1098
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
1099
792
  value: The controlled value of the radio item to check. Should be used in conjunction with on_change.
1100
793
  disabled: Whether the radio group is disabled
1101
794
  on_select: Event handler called when the user selects an item (via mouse or keyboard). Calling event.preventDefault in this handler will prevent the context menu from closing when selecting that item.
1102
- text_value: Optional text used for typeahead purposes. By default the typeahead behavior will use the .textContent of the item. Use this when the content is complex, or you have non-textual content inside.
1103
795
  items: The items of the radio group.
1104
796
  direction: The direction of the radio group.
1105
797
  spacing: The gap between the items of the radio group.