reflex 0.8.15a1__py3-none-any.whl → 0.8.16__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 (140) hide show
  1. reflex/.templates/web/utils/state.js +68 -8
  2. reflex/app.py +45 -51
  3. reflex/app_mixins/lifespan.py +12 -5
  4. reflex/base.py +1 -0
  5. reflex/compiler/compiler.py +4 -6
  6. reflex/compiler/templates.py +25 -31
  7. reflex/compiler/utils.py +6 -5
  8. reflex/components/base/body.pyi +1 -195
  9. reflex/components/base/link.pyi +1 -407
  10. reflex/components/base/meta.pyi +1 -405
  11. reflex/components/base/script.pyi +1 -237
  12. reflex/components/component.py +41 -46
  13. reflex/components/core/auto_scroll.pyi +1 -195
  14. reflex/components/core/banner.pyi +1 -391
  15. reflex/components/core/breakpoints.py +14 -18
  16. reflex/components/core/html.pyi +1 -197
  17. reflex/components/core/match.py +2 -2
  18. reflex/components/core/sticky.py +11 -15
  19. reflex/components/core/sticky.pyi +0 -788
  20. reflex/components/core/upload.py +1 -3
  21. reflex/components/core/window_events.pyi +6 -5
  22. reflex/components/datadisplay/code.pyi +1 -0
  23. reflex/components/datadisplay/dataeditor.py +4 -6
  24. reflex/components/datadisplay/shiki_code_block.py +106 -110
  25. reflex/components/dynamic.py +4 -6
  26. reflex/components/el/elements/__init__.py +5 -7
  27. reflex/components/el/elements/__init__.pyi +5 -7
  28. reflex/components/el/elements/base.py +1 -1
  29. reflex/components/el/elements/base.pyi +1 -195
  30. reflex/components/el/elements/forms.py +7 -9
  31. reflex/components/el/elements/forms.pyi +12 -3112
  32. reflex/components/el/elements/inline.pyi +0 -5481
  33. reflex/components/el/elements/media.pyi +0 -10280
  34. reflex/components/el/elements/metadata.pyi +1 -835
  35. reflex/components/el/elements/other.pyi +1 -1365
  36. reflex/components/el/elements/scripts.pyi +1 -625
  37. reflex/components/el/elements/sectioning.pyi +1 -2911
  38. reflex/components/el/elements/tables.pyi +1 -1973
  39. reflex/components/el/elements/typography.pyi +1 -3125
  40. reflex/components/lucide/icon.py +4 -4
  41. reflex/components/lucide/icon.pyi +0 -4
  42. reflex/components/markdown/markdown.py +15 -19
  43. reflex/components/markdown/markdown.pyi +1 -0
  44. reflex/components/moment/moment.pyi +0 -49
  45. reflex/components/props.py +3 -3
  46. reflex/components/radix/primitives/accordion.py +4 -6
  47. reflex/components/radix/primitives/accordion.pyi +0 -14
  48. reflex/components/radix/primitives/base.pyi +0 -5
  49. reflex/components/radix/primitives/dialog.py +2 -0
  50. reflex/components/radix/primitives/dialog.pyi +1 -233
  51. reflex/components/radix/primitives/drawer.pyi +0 -18
  52. reflex/components/radix/primitives/form.pyi +30 -632
  53. reflex/components/radix/primitives/progress.pyi +0 -10
  54. reflex/components/radix/primitives/slider.pyi +0 -10
  55. reflex/components/radix/themes/color_mode.pyi +1 -284
  56. reflex/components/radix/themes/components/alert_dialog.pyi +0 -207
  57. reflex/components/radix/themes/components/aspect_ratio.pyi +0 -2
  58. reflex/components/radix/themes/components/avatar.pyi +0 -80
  59. reflex/components/radix/themes/components/badge.pyi +1 -270
  60. reflex/components/radix/themes/components/button.pyi +1 -274
  61. reflex/components/radix/themes/components/callout.pyi +0 -1197
  62. reflex/components/radix/themes/components/card.pyi +1 -209
  63. reflex/components/radix/themes/components/checkbox.pyi +0 -261
  64. reflex/components/radix/themes/components/checkbox_cards.pyi +1 -96
  65. reflex/components/radix/themes/components/checkbox_group.pyi +1 -80
  66. reflex/components/radix/themes/components/context_menu.pyi +13 -321
  67. reflex/components/radix/themes/components/data_list.pyi +1 -107
  68. reflex/components/radix/themes/components/dialog.pyi +1 -210
  69. reflex/components/radix/themes/components/dropdown_menu.pyi +0 -209
  70. reflex/components/radix/themes/components/hover_card.pyi +1 -246
  71. reflex/components/radix/themes/components/icon_button.pyi +1 -195
  72. reflex/components/radix/themes/components/inset.pyi +0 -252
  73. reflex/components/radix/themes/components/popover.pyi +1 -234
  74. reflex/components/radix/themes/components/progress.pyi +1 -84
  75. reflex/components/radix/themes/components/radio.pyi +1 -72
  76. reflex/components/radix/themes/components/radio_cards.pyi +1 -123
  77. reflex/components/radix/themes/components/scroll_area.pyi +1 -11
  78. reflex/components/radix/themes/components/select.pyi +1 -376
  79. reflex/components/radix/themes/components/separator.pyi +0 -77
  80. reflex/components/radix/themes/components/skeleton.pyi +0 -30
  81. reflex/components/radix/themes/components/slider.py +3 -5
  82. reflex/components/radix/themes/components/spinner.pyi +0 -5
  83. reflex/components/radix/themes/components/switch.pyi +0 -89
  84. reflex/components/radix/themes/components/table.pyi +0 -1453
  85. reflex/components/radix/themes/components/text_area.pyi +7 -282
  86. reflex/components/radix/themes/components/text_field.pyi +6 -392
  87. reflex/components/radix/themes/components/tooltip.pyi +0 -42
  88. reflex/components/radix/themes/layout/box.pyi +1 -195
  89. reflex/components/radix/themes/layout/center.pyi +0 -194
  90. reflex/components/radix/themes/layout/container.pyi +0 -178
  91. reflex/components/radix/themes/layout/flex.pyi +0 -194
  92. reflex/components/radix/themes/layout/grid.pyi +0 -194
  93. reflex/components/radix/themes/layout/list.pyi +0 -978
  94. reflex/components/radix/themes/layout/section.pyi +0 -194
  95. reflex/components/radix/themes/layout/spacer.pyi +0 -194
  96. reflex/components/radix/themes/layout/stack.pyi +0 -582
  97. reflex/components/radix/themes/typography/blockquote.pyi +0 -196
  98. reflex/components/radix/themes/typography/code.pyi +0 -194
  99. reflex/components/radix/themes/typography/heading.pyi +0 -194
  100. reflex/components/radix/themes/typography/link.pyi +0 -237
  101. reflex/components/radix/themes/typography/text.pyi +0 -1360
  102. reflex/components/react_router/dom.pyi +0 -237
  103. reflex/components/recharts/cartesian.py +12 -18
  104. reflex/components/recharts/general.py +12 -18
  105. reflex/constants/installer.py +5 -5
  106. reflex/custom_components/custom_components.py +6 -5
  107. reflex/environment.py +30 -7
  108. reflex/event.py +14 -12
  109. reflex/experimental/client_state.py +11 -12
  110. reflex/istate/data.py +8 -10
  111. reflex/istate/manager/__init__.py +3 -0
  112. reflex/istate/manager/disk.py +151 -5
  113. reflex/model.py +1 -1
  114. reflex/plugins/_screenshot.py +2 -2
  115. reflex/plugins/shared_tailwind.py +9 -14
  116. reflex/reflex.py +7 -9
  117. reflex/state.py +30 -37
  118. reflex/style.py +6 -6
  119. reflex/testing.py +54 -30
  120. reflex/utils/codespaces.py +31 -2
  121. reflex/utils/compat.py +1 -0
  122. reflex/utils/decorator.py +3 -3
  123. reflex/utils/format.py +18 -22
  124. reflex/utils/prerequisites.py +1 -1
  125. reflex/utils/pyi_generator.py +51 -57
  126. reflex/utils/serializers.py +1 -1
  127. reflex/utils/telemetry.py +1 -1
  128. reflex/utils/templates.py +4 -4
  129. reflex/utils/types.py +11 -4
  130. reflex/vars/base.py +26 -29
  131. reflex/vars/color.py +6 -8
  132. reflex/vars/dep_tracking.py +5 -3
  133. reflex/vars/function.py +3 -3
  134. reflex/vars/object.py +9 -13
  135. reflex/vars/sequence.py +18 -24
  136. {reflex-0.8.15a1.dist-info → reflex-0.8.16.dist-info}/METADATA +1 -1
  137. {reflex-0.8.15a1.dist-info → reflex-0.8.16.dist-info}/RECORD +140 -140
  138. {reflex-0.8.15a1.dist-info → reflex-0.8.16.dist-info}/WHEEL +0 -0
  139. {reflex-0.8.15a1.dist-info → reflex-0.8.16.dist-info}/entry_points.txt +0 -0
  140. {reflex-0.8.15a1.dist-info → reflex-0.8.16.dist-info}/licenses/LICENSE +0 -0
@@ -4,7 +4,7 @@
4
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
5
5
  # ------------------------------------------------------
6
6
  from collections.abc import Mapping, Sequence
7
- from typing import Any, Literal
7
+ from typing import Any
8
8
 
9
9
  from reflex.components.core.breakpoints import Breakpoints
10
10
  from reflex.components.el import elements
@@ -17,195 +17,6 @@ class Card(elements.Div, RadixThemesComponent):
17
17
  def create(
18
18
  cls,
19
19
  *children,
20
- as_child: Var[bool] | bool | None = None,
21
- size: Breakpoints[str, Literal["1", "2", "3", "4", "5"]]
22
- | Literal["1", "2", "3", "4", "5"]
23
- | Var[
24
- Breakpoints[str, Literal["1", "2", "3", "4", "5"]]
25
- | Literal["1", "2", "3", "4", "5"]
26
- ]
27
- | None = None,
28
- variant: Literal["classic", "ghost", "surface"]
29
- | Var[Literal["classic", "ghost", "surface"]]
30
- | None = None,
31
- access_key: Var[str] | str | None = None,
32
- auto_capitalize: Literal[
33
- "characters", "none", "off", "on", "sentences", "words"
34
- ]
35
- | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
36
- | None = None,
37
- content_editable: Literal["inherit", "plaintext-only", False, True]
38
- | Var[Literal["inherit", "plaintext-only", False, True]]
39
- | None = None,
40
- context_menu: Var[str] | str | None = None,
41
- dir: Var[str] | str | None = None,
42
- draggable: Var[bool] | bool | None = None,
43
- enter_key_hint: Literal[
44
- "done", "enter", "go", "next", "previous", "search", "send"
45
- ]
46
- | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
47
- | None = None,
48
- hidden: Var[bool] | bool | None = None,
49
- input_mode: Literal[
50
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
51
- ]
52
- | Var[
53
- Literal[
54
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
55
- ]
56
- ]
57
- | None = None,
58
- item_prop: Var[str] | str | None = None,
59
- lang: Var[str] | str | None = None,
60
- role: Literal[
61
- "alert",
62
- "alertdialog",
63
- "application",
64
- "article",
65
- "banner",
66
- "button",
67
- "cell",
68
- "checkbox",
69
- "columnheader",
70
- "combobox",
71
- "complementary",
72
- "contentinfo",
73
- "definition",
74
- "dialog",
75
- "directory",
76
- "document",
77
- "feed",
78
- "figure",
79
- "form",
80
- "grid",
81
- "gridcell",
82
- "group",
83
- "heading",
84
- "img",
85
- "link",
86
- "list",
87
- "listbox",
88
- "listitem",
89
- "log",
90
- "main",
91
- "marquee",
92
- "math",
93
- "menu",
94
- "menubar",
95
- "menuitem",
96
- "menuitemcheckbox",
97
- "menuitemradio",
98
- "navigation",
99
- "none",
100
- "note",
101
- "option",
102
- "presentation",
103
- "progressbar",
104
- "radio",
105
- "radiogroup",
106
- "region",
107
- "row",
108
- "rowgroup",
109
- "rowheader",
110
- "scrollbar",
111
- "search",
112
- "searchbox",
113
- "separator",
114
- "slider",
115
- "spinbutton",
116
- "status",
117
- "switch",
118
- "tab",
119
- "table",
120
- "tablist",
121
- "tabpanel",
122
- "term",
123
- "textbox",
124
- "timer",
125
- "toolbar",
126
- "tooltip",
127
- "tree",
128
- "treegrid",
129
- "treeitem",
130
- ]
131
- | Var[
132
- Literal[
133
- "alert",
134
- "alertdialog",
135
- "application",
136
- "article",
137
- "banner",
138
- "button",
139
- "cell",
140
- "checkbox",
141
- "columnheader",
142
- "combobox",
143
- "complementary",
144
- "contentinfo",
145
- "definition",
146
- "dialog",
147
- "directory",
148
- "document",
149
- "feed",
150
- "figure",
151
- "form",
152
- "grid",
153
- "gridcell",
154
- "group",
155
- "heading",
156
- "img",
157
- "link",
158
- "list",
159
- "listbox",
160
- "listitem",
161
- "log",
162
- "main",
163
- "marquee",
164
- "math",
165
- "menu",
166
- "menubar",
167
- "menuitem",
168
- "menuitemcheckbox",
169
- "menuitemradio",
170
- "navigation",
171
- "none",
172
- "note",
173
- "option",
174
- "presentation",
175
- "progressbar",
176
- "radio",
177
- "radiogroup",
178
- "region",
179
- "row",
180
- "rowgroup",
181
- "rowheader",
182
- "scrollbar",
183
- "search",
184
- "searchbox",
185
- "separator",
186
- "slider",
187
- "spinbutton",
188
- "status",
189
- "switch",
190
- "tab",
191
- "table",
192
- "tablist",
193
- "tabpanel",
194
- "term",
195
- "textbox",
196
- "timer",
197
- "toolbar",
198
- "tooltip",
199
- "tree",
200
- "treegrid",
201
- "treeitem",
202
- ]
203
- ]
204
- | None = None,
205
- slot: Var[str] | str | None = None,
206
- spell_check: Var[bool] | bool | None = None,
207
- tab_index: Var[int] | int | None = None,
208
- title: Var[str] | str | None = None,
209
20
  style: Sequence[Mapping[str, Any]]
210
21
  | Mapping[str, Any]
211
22
  | Var[Mapping[str, Any]]
@@ -241,25 +52,6 @@ class Card(elements.Div, RadixThemesComponent):
241
52
 
242
53
  Args:
243
54
  *children: Child components.
244
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
245
- size: Card size: "1" - "5"
246
- variant: Variant of Card: "surface" | "classic" | "ghost"
247
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
248
- auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
249
- content_editable: Indicates whether the element's content is editable.
250
- context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
251
- dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
252
- draggable: Defines whether the element can be dragged.
253
- enter_key_hint: Hints what media types the media element is able to play.
254
- hidden: Defines whether the element is hidden.
255
- input_mode: Defines the type of the element.
256
- item_prop: Defines the name of the element for metadata purposes.
257
- lang: Defines the language used in the element.
258
- role: Defines the role of the element.
259
- slot: Assigns a slot in a shadow DOM shadow tree to an element.
260
- spell_check: Defines whether the element may be checked for spelling errors.
261
- tab_index: Defines the position of the current element in the tabbing order.
262
- title: Defines a tooltip for the element.
263
55
  style: The style of the component.
264
56
  key: A unique key for the component.
265
57
  id: The id for the component.
@@ -20,80 +20,6 @@ class Checkbox(RadixThemesComponent):
20
20
  def create(
21
21
  cls,
22
22
  *children,
23
- as_child: Var[bool] | bool | None = None,
24
- size: Breakpoints[str, Literal["1", "2", "3"]]
25
- | Literal["1", "2", "3"]
26
- | Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
27
- | None = None,
28
- variant: Literal["classic", "soft", "surface"]
29
- | Var[Literal["classic", "soft", "surface"]]
30
- | None = None,
31
- color_scheme: Literal[
32
- "amber",
33
- "blue",
34
- "bronze",
35
- "brown",
36
- "crimson",
37
- "cyan",
38
- "gold",
39
- "grass",
40
- "gray",
41
- "green",
42
- "indigo",
43
- "iris",
44
- "jade",
45
- "lime",
46
- "mint",
47
- "orange",
48
- "pink",
49
- "plum",
50
- "purple",
51
- "red",
52
- "ruby",
53
- "sky",
54
- "teal",
55
- "tomato",
56
- "violet",
57
- "yellow",
58
- ]
59
- | Var[
60
- Literal[
61
- "amber",
62
- "blue",
63
- "bronze",
64
- "brown",
65
- "crimson",
66
- "cyan",
67
- "gold",
68
- "grass",
69
- "gray",
70
- "green",
71
- "indigo",
72
- "iris",
73
- "jade",
74
- "lime",
75
- "mint",
76
- "orange",
77
- "pink",
78
- "plum",
79
- "purple",
80
- "red",
81
- "ruby",
82
- "sky",
83
- "teal",
84
- "tomato",
85
- "violet",
86
- "yellow",
87
- ]
88
- ]
89
- | None = None,
90
- high_contrast: Var[bool] | bool | None = None,
91
- default_checked: Var[bool] | bool | None = None,
92
- checked: Var[bool] | bool | None = None,
93
- disabled: Var[bool] | bool | None = None,
94
- required: Var[bool] | bool | None = None,
95
- name: Var[str] | str | None = None,
96
- value: Var[str] | str | None = None,
97
23
  style: Sequence[Mapping[str, Any]]
98
24
  | Mapping[str, Any]
99
25
  | Var[Mapping[str, Any]]
@@ -130,17 +56,6 @@ class Checkbox(RadixThemesComponent):
130
56
 
131
57
  Args:
132
58
  *children: Child components.
133
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
134
- size: Checkbox size "1" - "3"
135
- variant: Variant of checkbox: "classic" | "surface" | "soft"
136
- color_scheme: Override theme color for checkbox
137
- high_contrast: Whether to render the checkbox with higher contrast color against background
138
- default_checked: Whether the checkbox is checked by default
139
- checked: Whether the checkbox is checked
140
- disabled: Whether the checkbox is disabled
141
- required: Whether the checkbox is required
142
- name: The name of the checkbox control when submitting the form.
143
- value: The value of the checkbox control when submitting the form.
144
59
  on_change: Fired when the checkbox is checked or unchecked.
145
60
  style: The style of the component.
146
61
  key: A unique key for the component.
@@ -159,81 +74,6 @@ class HighLevelCheckbox(RadixThemesComponent):
159
74
  def create(
160
75
  cls,
161
76
  *children,
162
- text: Var[str] | str | None = None,
163
- spacing: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
164
- | Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
165
- | None = None,
166
- size: Literal["1", "2", "3"] | Var[Literal["1", "2", "3"]] | None = None,
167
- as_child: Var[bool] | bool | None = None,
168
- variant: Literal["classic", "soft", "surface"]
169
- | Var[Literal["classic", "soft", "surface"]]
170
- | None = None,
171
- color_scheme: Literal[
172
- "amber",
173
- "blue",
174
- "bronze",
175
- "brown",
176
- "crimson",
177
- "cyan",
178
- "gold",
179
- "grass",
180
- "gray",
181
- "green",
182
- "indigo",
183
- "iris",
184
- "jade",
185
- "lime",
186
- "mint",
187
- "orange",
188
- "pink",
189
- "plum",
190
- "purple",
191
- "red",
192
- "ruby",
193
- "sky",
194
- "teal",
195
- "tomato",
196
- "violet",
197
- "yellow",
198
- ]
199
- | Var[
200
- Literal[
201
- "amber",
202
- "blue",
203
- "bronze",
204
- "brown",
205
- "crimson",
206
- "cyan",
207
- "gold",
208
- "grass",
209
- "gray",
210
- "green",
211
- "indigo",
212
- "iris",
213
- "jade",
214
- "lime",
215
- "mint",
216
- "orange",
217
- "pink",
218
- "plum",
219
- "purple",
220
- "red",
221
- "ruby",
222
- "sky",
223
- "teal",
224
- "tomato",
225
- "violet",
226
- "yellow",
227
- ]
228
- ]
229
- | None = None,
230
- high_contrast: Var[bool] | bool | None = None,
231
- default_checked: Var[bool] | bool | None = None,
232
- checked: Var[bool] | bool | None = None,
233
- disabled: Var[bool] | bool | None = None,
234
- required: Var[bool] | bool | None = None,
235
- name: Var[str] | str | None = None,
236
- value: Var[str] | str | None = None,
237
77
  style: Sequence[Mapping[str, Any]]
238
78
  | Mapping[str, Any]
239
79
  | Var[Mapping[str, Any]]
@@ -267,19 +107,6 @@ class HighLevelCheckbox(RadixThemesComponent):
267
107
 
268
108
  Args:
269
109
  text: The text of the label.
270
- text: The text label for the checkbox.
271
- spacing: The gap between the checkbox and the label.
272
- size: The size of the checkbox "1" - "3".
273
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
274
- variant: Variant of checkbox: "classic" | "surface" | "soft"
275
- color_scheme: Override theme color for checkbox
276
- high_contrast: Whether to render the checkbox with higher contrast color against background
277
- default_checked: Whether the checkbox is checked by default
278
- checked: Whether the checkbox is checked
279
- disabled: Whether the checkbox is disabled
280
- required: Whether the checkbox is required
281
- name: The name of the checkbox control when submitting the form.
282
- value: The value of the checkbox control when submitting the form.
283
110
  on_change: Fired when the checkbox is checked or unchecked.
284
111
  style: The style of the component.
285
112
  key: A unique key for the component.
@@ -297,81 +124,6 @@ class CheckboxNamespace(ComponentNamespace):
297
124
  @staticmethod
298
125
  def __call__(
299
126
  *children,
300
- text: Var[str] | str | None = None,
301
- spacing: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
302
- | Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
303
- | None = None,
304
- size: Literal["1", "2", "3"] | Var[Literal["1", "2", "3"]] | None = None,
305
- as_child: Var[bool] | bool | None = None,
306
- variant: Literal["classic", "soft", "surface"]
307
- | Var[Literal["classic", "soft", "surface"]]
308
- | None = None,
309
- color_scheme: Literal[
310
- "amber",
311
- "blue",
312
- "bronze",
313
- "brown",
314
- "crimson",
315
- "cyan",
316
- "gold",
317
- "grass",
318
- "gray",
319
- "green",
320
- "indigo",
321
- "iris",
322
- "jade",
323
- "lime",
324
- "mint",
325
- "orange",
326
- "pink",
327
- "plum",
328
- "purple",
329
- "red",
330
- "ruby",
331
- "sky",
332
- "teal",
333
- "tomato",
334
- "violet",
335
- "yellow",
336
- ]
337
- | Var[
338
- Literal[
339
- "amber",
340
- "blue",
341
- "bronze",
342
- "brown",
343
- "crimson",
344
- "cyan",
345
- "gold",
346
- "grass",
347
- "gray",
348
- "green",
349
- "indigo",
350
- "iris",
351
- "jade",
352
- "lime",
353
- "mint",
354
- "orange",
355
- "pink",
356
- "plum",
357
- "purple",
358
- "red",
359
- "ruby",
360
- "sky",
361
- "teal",
362
- "tomato",
363
- "violet",
364
- "yellow",
365
- ]
366
- ]
367
- | None = None,
368
- high_contrast: Var[bool] | bool | None = None,
369
- default_checked: Var[bool] | bool | None = None,
370
- checked: Var[bool] | bool | None = None,
371
- disabled: Var[bool] | bool | None = None,
372
- required: Var[bool] | bool | None = None,
373
- name: Var[str] | str | None = None,
374
- value: Var[str] | str | None = None,
375
127
  style: Sequence[Mapping[str, Any]]
376
128
  | Mapping[str, Any]
377
129
  | Var[Mapping[str, Any]]
@@ -405,19 +157,6 @@ class CheckboxNamespace(ComponentNamespace):
405
157
 
406
158
  Args:
407
159
  text: The text of the label.
408
- text: The text label for the checkbox.
409
- spacing: The gap between the checkbox and the label.
410
- size: The size of the checkbox "1" - "3".
411
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
412
- variant: Variant of checkbox: "classic" | "surface" | "soft"
413
- color_scheme: Override theme color for checkbox
414
- high_contrast: Whether to render the checkbox with higher contrast color against background
415
- default_checked: Whether the checkbox is checked by default
416
- checked: Whether the checkbox is checked
417
- disabled: Whether the checkbox is disabled
418
- required: Whether the checkbox is required
419
- name: The name of the checkbox control when submitting the form.
420
- value: The value of the checkbox control when submitting the form.
421
160
  on_change: Fired when the checkbox is checked or unchecked.
422
161
  style: The style of the component.
423
162
  key: A unique key for the component.
@@ -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,95 +17,6 @@ class CheckboxCardsRoot(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", "surface"]
25
- | Var[Literal["classic", "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
- columns: Breakpoints[
88
- str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"] | str
89
- ]
90
- | Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
91
- | Var[
92
- Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"] | str]
93
- | Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
94
- | str
95
- ]
96
- | str
97
- | None = None,
98
- gap: Breakpoints[
99
- str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"] | str
100
- ]
101
- | Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
102
- | Var[
103
- Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"] | str]
104
- | Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
105
- | str
106
- ]
107
- | str
108
- | None = None,
109
20
  style: Sequence[Mapping[str, Any]]
110
21
  | Mapping[str, Any]
111
22
  | Var[Mapping[str, Any]]
@@ -141,12 +52,6 @@ class CheckboxCardsRoot(RadixThemesComponent):
141
52
 
142
53
  Args:
143
54
  *children: Child components.
144
- size: The size of the checkbox cards: "1" | "2" | "3"
145
- variant: Variant of button: "classic" | "surface" | "soft"
146
- color_scheme: Override theme color for button
147
- high_contrast: Uses a higher contrast color for the component.
148
- columns: The number of columns:
149
- gap: The gap between the checkbox cards:
150
55
  style: The style of the component.
151
56
  key: A unique key for the component.
152
57
  id: The id for the component.