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
@@ -17,7 +17,6 @@ class ProgressComponent(RadixPrimitiveComponentWithClassName):
17
17
  def create(
18
18
  cls,
19
19
  *children,
20
- as_child: Var[bool] | bool | None = None,
21
20
  style: Sequence[Mapping[str, Any]]
22
21
  | Mapping[str, Any]
23
22
  | Var[Mapping[str, Any]]
@@ -50,7 +49,6 @@ class ProgressComponent(RadixPrimitiveComponentWithClassName):
50
49
 
51
50
  Args:
52
51
  *children: The children of the component.
53
- as_child: Change the default rendered element for the one passed as a child.
54
52
  style: The style of the component.
55
53
  key: A unique key for the component.
56
54
  id: The id for the component.
@@ -72,7 +70,6 @@ class ProgressRoot(ProgressComponent):
72
70
  radius: Literal["full", "large", "medium", "none", "small"]
73
71
  | Var[Literal["full", "large", "medium", "none", "small"]]
74
72
  | None = None,
75
- as_child: Var[bool] | bool | None = None,
76
73
  style: Sequence[Mapping[str, Any]]
77
74
  | Mapping[str, Any]
78
75
  | Var[Mapping[str, Any]]
@@ -106,7 +103,6 @@ class ProgressRoot(ProgressComponent):
106
103
  Args:
107
104
  *children: The children of the component.
108
105
  radius: Override theme radius for progress bar: "none" | "small" | "medium" | "large" | "full"
109
- as_child: Change the default rendered element for the one passed as a child.
110
106
  style: The style of the component.
111
107
  key: A unique key for the component.
112
108
  id: The id for the component.
@@ -186,7 +182,6 @@ class ProgressIndicator(ProgressComponent):
186
182
  ]
187
183
  ]
188
184
  | None = None,
189
- as_child: Var[bool] | bool | None = None,
190
185
  style: Sequence[Mapping[str, Any]]
191
186
  | Mapping[str, Any]
192
187
  | Var[Mapping[str, Any]]
@@ -222,7 +217,6 @@ class ProgressIndicator(ProgressComponent):
222
217
  value: The current progress value.
223
218
  max: The maximum progress value.
224
219
  color_scheme: The color scheme of the progress indicator.
225
- as_child: Change the default rendered element for the one passed as a child.
226
220
  style: The style of the component.
227
221
  key: A unique key for the component.
228
222
  id: The id for the component.
@@ -304,7 +298,6 @@ class Progress(ProgressRoot):
304
298
  radius: Literal["full", "large", "medium", "none", "small"]
305
299
  | Var[Literal["full", "large", "medium", "none", "small"]]
306
300
  | None = None,
307
- as_child: Var[bool] | bool | None = None,
308
301
  style: Sequence[Mapping[str, Any]]
309
302
  | Mapping[str, Any]
310
303
  | Var[Mapping[str, Any]]
@@ -340,7 +333,6 @@ class Progress(ProgressRoot):
340
333
  value: The current progress value.
341
334
  max: The maximum progress value.
342
335
  radius: Override theme radius for progress bar: "none" | "small" | "medium" | "large" | "full"
343
- as_child: Change the default rendered element for the one passed as a child.
344
336
  style: The style of the component.
345
337
  key: A unique key for the component.
346
338
  id: The id for the component.
@@ -424,7 +416,6 @@ class ProgressNamespace(ComponentNamespace):
424
416
  radius: Literal["full", "large", "medium", "none", "small"]
425
417
  | Var[Literal["full", "large", "medium", "none", "small"]]
426
418
  | None = None,
427
- as_child: Var[bool] | bool | None = None,
428
419
  style: Sequence[Mapping[str, Any]]
429
420
  | Mapping[str, Any]
430
421
  | Var[Mapping[str, Any]]
@@ -460,7 +451,6 @@ class ProgressNamespace(ComponentNamespace):
460
451
  value: The current progress value.
461
452
  max: The maximum progress value.
462
453
  radius: Override theme radius for progress bar: "none" | "small" | "medium" | "large" | "full"
463
- as_child: Change the default rendered element for the one passed as a child.
464
454
  style: The style of the component.
465
455
  key: A unique key for the component.
466
456
  id: The id for the component.
@@ -20,7 +20,6 @@ class SliderComponent(RadixPrimitiveComponentWithClassName):
20
20
  def create(
21
21
  cls,
22
22
  *children,
23
- as_child: Var[bool] | bool | None = None,
24
23
  style: Sequence[Mapping[str, Any]]
25
24
  | Mapping[str, Any]
26
25
  | Var[Mapping[str, Any]]
@@ -53,7 +52,6 @@ class SliderComponent(RadixPrimitiveComponentWithClassName):
53
52
 
54
53
  Args:
55
54
  *children: The children of the component.
56
- as_child: Change the default rendered element for the one passed as a child.
57
55
  style: The style of the component.
58
56
  key: A unique key for the component.
59
57
  id: The id for the component.
@@ -85,7 +83,6 @@ class SliderRoot(SliderComponent):
85
83
  max: Var[int] | int | None = None,
86
84
  step: Var[int] | int | None = None,
87
85
  min_steps_between_thumbs: Var[int] | int | None = None,
88
- as_child: Var[bool] | bool | None = None,
89
86
  style: Sequence[Mapping[str, Any]]
90
87
  | Mapping[str, Any]
91
88
  | Var[Mapping[str, Any]]
@@ -122,7 +119,6 @@ class SliderRoot(SliderComponent):
122
119
  *children: The children of the component.
123
120
  on_value_change: Fired when the value of a thumb changes.
124
121
  on_value_commit: Fired when a thumb is released.
125
- as_child: Change the default rendered element for the one passed as a child.
126
122
  style: The style of the component.
127
123
  key: A unique key for the component.
128
124
  id: The id for the component.
@@ -141,7 +137,6 @@ class SliderTrack(SliderComponent):
141
137
  def create(
142
138
  cls,
143
139
  *children,
144
- as_child: Var[bool] | bool | None = None,
145
140
  style: Sequence[Mapping[str, Any]]
146
141
  | Mapping[str, Any]
147
142
  | Var[Mapping[str, Any]]
@@ -174,7 +169,6 @@ class SliderTrack(SliderComponent):
174
169
 
175
170
  Args:
176
171
  *children: The children of the component.
177
- as_child: Change the default rendered element for the one passed as a child.
178
172
  style: The style of the component.
179
173
  key: A unique key for the component.
180
174
  id: The id for the component.
@@ -193,7 +187,6 @@ class SliderRange(SliderComponent):
193
187
  def create(
194
188
  cls,
195
189
  *children,
196
- as_child: Var[bool] | bool | None = None,
197
190
  style: Sequence[Mapping[str, Any]]
198
191
  | Mapping[str, Any]
199
192
  | Var[Mapping[str, Any]]
@@ -226,7 +219,6 @@ class SliderRange(SliderComponent):
226
219
 
227
220
  Args:
228
221
  *children: The children of the component.
229
- as_child: Change the default rendered element for the one passed as a child.
230
222
  style: The style of the component.
231
223
  key: A unique key for the component.
232
224
  id: The id for the component.
@@ -245,7 +237,6 @@ class SliderThumb(SliderComponent):
245
237
  def create(
246
238
  cls,
247
239
  *children,
248
- as_child: Var[bool] | bool | None = None,
249
240
  style: Sequence[Mapping[str, Any]]
250
241
  | Mapping[str, Any]
251
242
  | Var[Mapping[str, Any]]
@@ -278,7 +269,6 @@ class SliderThumb(SliderComponent):
278
269
 
279
270
  Args:
280
271
  *children: The children of the component.
281
- as_child: Change the default rendered element for the one passed as a child.
282
272
  style: The style of the component.
283
273
  key: A unique key for the component.
284
274
  id: The id for the component.
@@ -163,185 +163,6 @@ class ColorModeIconButton(IconButton):
163
163
  | Var[Literal["button", "reset", "submit"]]
164
164
  | None = None,
165
165
  value: Var[float | int | str] | float | int | str | None = None,
166
- access_key: Var[str] | str | None = None,
167
- auto_capitalize: Literal[
168
- "characters", "none", "off", "on", "sentences", "words"
169
- ]
170
- | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
171
- | None = None,
172
- content_editable: Literal["inherit", "plaintext-only", False, True]
173
- | Var[Literal["inherit", "plaintext-only", False, True]]
174
- | None = None,
175
- context_menu: Var[str] | str | None = None,
176
- dir: Var[str] | str | None = None,
177
- draggable: Var[bool] | bool | None = None,
178
- enter_key_hint: Literal[
179
- "done", "enter", "go", "next", "previous", "search", "send"
180
- ]
181
- | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
182
- | None = None,
183
- hidden: Var[bool] | bool | None = None,
184
- input_mode: Literal[
185
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
186
- ]
187
- | Var[
188
- Literal[
189
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
190
- ]
191
- ]
192
- | None = None,
193
- item_prop: Var[str] | str | None = None,
194
- lang: Var[str] | str | None = None,
195
- role: Literal[
196
- "alert",
197
- "alertdialog",
198
- "application",
199
- "article",
200
- "banner",
201
- "button",
202
- "cell",
203
- "checkbox",
204
- "columnheader",
205
- "combobox",
206
- "complementary",
207
- "contentinfo",
208
- "definition",
209
- "dialog",
210
- "directory",
211
- "document",
212
- "feed",
213
- "figure",
214
- "form",
215
- "grid",
216
- "gridcell",
217
- "group",
218
- "heading",
219
- "img",
220
- "link",
221
- "list",
222
- "listbox",
223
- "listitem",
224
- "log",
225
- "main",
226
- "marquee",
227
- "math",
228
- "menu",
229
- "menubar",
230
- "menuitem",
231
- "menuitemcheckbox",
232
- "menuitemradio",
233
- "navigation",
234
- "none",
235
- "note",
236
- "option",
237
- "presentation",
238
- "progressbar",
239
- "radio",
240
- "radiogroup",
241
- "region",
242
- "row",
243
- "rowgroup",
244
- "rowheader",
245
- "scrollbar",
246
- "search",
247
- "searchbox",
248
- "separator",
249
- "slider",
250
- "spinbutton",
251
- "status",
252
- "switch",
253
- "tab",
254
- "table",
255
- "tablist",
256
- "tabpanel",
257
- "term",
258
- "textbox",
259
- "timer",
260
- "toolbar",
261
- "tooltip",
262
- "tree",
263
- "treegrid",
264
- "treeitem",
265
- ]
266
- | Var[
267
- Literal[
268
- "alert",
269
- "alertdialog",
270
- "application",
271
- "article",
272
- "banner",
273
- "button",
274
- "cell",
275
- "checkbox",
276
- "columnheader",
277
- "combobox",
278
- "complementary",
279
- "contentinfo",
280
- "definition",
281
- "dialog",
282
- "directory",
283
- "document",
284
- "feed",
285
- "figure",
286
- "form",
287
- "grid",
288
- "gridcell",
289
- "group",
290
- "heading",
291
- "img",
292
- "link",
293
- "list",
294
- "listbox",
295
- "listitem",
296
- "log",
297
- "main",
298
- "marquee",
299
- "math",
300
- "menu",
301
- "menubar",
302
- "menuitem",
303
- "menuitemcheckbox",
304
- "menuitemradio",
305
- "navigation",
306
- "none",
307
- "note",
308
- "option",
309
- "presentation",
310
- "progressbar",
311
- "radio",
312
- "radiogroup",
313
- "region",
314
- "row",
315
- "rowgroup",
316
- "rowheader",
317
- "scrollbar",
318
- "search",
319
- "searchbox",
320
- "separator",
321
- "slider",
322
- "spinbutton",
323
- "status",
324
- "switch",
325
- "tab",
326
- "table",
327
- "tablist",
328
- "tabpanel",
329
- "term",
330
- "textbox",
331
- "timer",
332
- "toolbar",
333
- "tooltip",
334
- "tree",
335
- "treegrid",
336
- "treeitem",
337
- ]
338
- ]
339
- | None = None,
340
- slot: Var[str] | str | None = None,
341
- spell_check: Var[bool] | bool | None = None,
342
- tab_index: Var[int] | int | None = None,
343
- title: Var[str] | str | None = None,
344
- loading: Var[bool] | bool | None = None,
345
166
  style: Sequence[Mapping[str, Any]]
346
167
  | Mapping[str, Any]
347
168
  | Var[Mapping[str, Any]]
@@ -352,6 +173,7 @@ class ColorModeIconButton(IconButton):
352
173
  ref: Var | None = None,
353
174
  class_name: Any | None = None,
354
175
  custom_attrs: dict[str, Var | Any] | None = None,
176
+ loading: Var[bool] | bool | None = None,
355
177
  on_blur: EventType[()] | None = None,
356
178
  on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
357
179
  on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
@@ -392,22 +214,6 @@ class ColorModeIconButton(IconButton):
392
214
  name: Name of the button, used when sending form data
393
215
  type: Type of the button (submit, reset, or button)
394
216
  value: Value of the button, used when sending form data
395
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
396
- auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
397
- content_editable: Indicates whether the element's content is editable.
398
- context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
399
- dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
400
- draggable: Defines whether the element can be dragged.
401
- enter_key_hint: Hints what media types the media element is able to play.
402
- hidden: Defines whether the element is hidden.
403
- input_mode: Defines the type of the element.
404
- item_prop: Defines the name of the element for metadata purposes.
405
- lang: Defines the language used in the element.
406
- role: Defines the role of the element.
407
- slot: Assigns a slot in a shadow DOM shadow tree to an element.
408
- spell_check: Defines whether the element may be checked for spelling errors.
409
- tab_index: Defines the position of the current element in the tabbing order.
410
- title: Defines a tooltip for the element.
411
217
  loading: If set, show an rx.spinner instead of the component children.
412
218
  style: The style of the component.
413
219
  key: A unique key for the component.
@@ -426,83 +232,6 @@ class ColorModeSwitch(Switch):
426
232
  def create(
427
233
  cls,
428
234
  *children,
429
- as_child: Var[bool] | bool | None = None,
430
- default_checked: Var[bool] | bool | None = None,
431
- checked: Var[bool] | bool | None = None,
432
- disabled: Var[bool] | bool | None = None,
433
- required: Var[bool] | bool | None = None,
434
- name: Var[str] | str | None = None,
435
- value: Var[str] | str | None = None,
436
- size: Breakpoints[str, Literal["1", "2", "3"]]
437
- | Literal["1", "2", "3"]
438
- | Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
439
- | None = None,
440
- variant: Literal["classic", "soft", "surface"]
441
- | Var[Literal["classic", "soft", "surface"]]
442
- | None = None,
443
- color_scheme: Literal[
444
- "amber",
445
- "blue",
446
- "bronze",
447
- "brown",
448
- "crimson",
449
- "cyan",
450
- "gold",
451
- "grass",
452
- "gray",
453
- "green",
454
- "indigo",
455
- "iris",
456
- "jade",
457
- "lime",
458
- "mint",
459
- "orange",
460
- "pink",
461
- "plum",
462
- "purple",
463
- "red",
464
- "ruby",
465
- "sky",
466
- "teal",
467
- "tomato",
468
- "violet",
469
- "yellow",
470
- ]
471
- | Var[
472
- Literal[
473
- "amber",
474
- "blue",
475
- "bronze",
476
- "brown",
477
- "crimson",
478
- "cyan",
479
- "gold",
480
- "grass",
481
- "gray",
482
- "green",
483
- "indigo",
484
- "iris",
485
- "jade",
486
- "lime",
487
- "mint",
488
- "orange",
489
- "pink",
490
- "plum",
491
- "purple",
492
- "red",
493
- "ruby",
494
- "sky",
495
- "teal",
496
- "tomato",
497
- "violet",
498
- "yellow",
499
- ]
500
- ]
501
- | None = None,
502
- high_contrast: Var[bool] | bool | None = None,
503
- radius: Literal["full", "none", "small"]
504
- | Var[Literal["full", "none", "small"]]
505
- | None = None,
506
235
  style: Sequence[Mapping[str, Any]]
507
236
  | Mapping[str, Any]
508
237
  | Var[Mapping[str, Any]]
@@ -536,18 +265,6 @@ class ColorModeSwitch(Switch):
536
265
 
537
266
  Args:
538
267
  *children: The children of the component.
539
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
540
- default_checked: Whether the switch is checked by default
541
- checked: Whether the switch is checked
542
- disabled: If true, prevent the user from interacting with the switch
543
- required: If true, the user must interact with the switch to submit the form
544
- name: The name of the switch (when submitting a form)
545
- value: The value associated with the "on" position
546
- size: Switch size "1" - "4"
547
- variant: Variant of switch: "classic" | "surface" | "soft"
548
- color_scheme: Override theme color for switch
549
- high_contrast: Whether to render the switch with higher contrast color against background
550
- radius: Override theme radius for switch: "none" | "small" | "full"
551
268
  on_change: Fired when the value of the switch changes
552
269
  style: The style of the component.
553
270
  key: A unique key for the component.