reflex 0.7.13a1__py3-none-any.whl → 0.7.14a1__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.
- reflex/.templates/apps/blank/code/blank.py +0 -2
- reflex/app.py +79 -72
- reflex/app_mixins/lifespan.py +2 -3
- reflex/app_mixins/middleware.py +1 -0
- reflex/app_mixins/mixin.py +0 -1
- reflex/assets.py +6 -3
- reflex/base.py +3 -2
- reflex/compiler/compiler.py +77 -64
- reflex/compiler/utils.py +8 -6
- reflex/components/base/app_wrap.pyi +0 -1
- reflex/components/base/bare.py +5 -7
- reflex/components/base/body.pyi +0 -1
- reflex/components/base/document.pyi +0 -5
- reflex/components/base/error_boundary.pyi +0 -1
- reflex/components/base/fragment.pyi +0 -1
- reflex/components/base/head.pyi +0 -2
- reflex/components/base/link.pyi +0 -2
- reflex/components/base/meta.py +2 -1
- reflex/components/base/meta.pyi +0 -4
- reflex/components/base/script.py +2 -1
- reflex/components/base/script.pyi +0 -1
- reflex/components/base/strict_mode.pyi +0 -1
- reflex/components/component.py +38 -40
- reflex/components/core/auto_scroll.pyi +0 -1
- reflex/components/core/banner.pyi +0 -6
- reflex/components/core/breakpoints.py +9 -11
- reflex/components/core/client_side_routing.pyi +0 -2
- reflex/components/core/clipboard.pyi +0 -1
- reflex/components/core/colors.py +10 -7
- reflex/components/core/cond.py +4 -2
- reflex/components/core/debounce.py +5 -3
- reflex/components/core/debounce.pyi +0 -1
- reflex/components/core/foreach.py +8 -6
- reflex/components/core/html.py +3 -3
- reflex/components/core/html.pyi +0 -1
- reflex/components/core/match.py +19 -17
- reflex/components/core/sticky.pyi +0 -4
- reflex/components/core/upload.pyi +0 -5
- reflex/components/datadisplay/code.py +1 -2
- reflex/components/datadisplay/code.pyi +0 -2
- reflex/components/datadisplay/dataeditor.py +7 -10
- reflex/components/datadisplay/dataeditor.pyi +0 -1
- reflex/components/datadisplay/logo.py +3 -4
- reflex/components/datadisplay/shiki_code_block.py +8 -11
- reflex/components/datadisplay/shiki_code_block.pyi +0 -3
- reflex/components/dynamic.py +2 -3
- reflex/components/el/__init__.pyi +2 -0
- reflex/components/el/element.pyi +0 -1
- reflex/components/el/elements/__init__.py +1 -0
- reflex/components/el/elements/__init__.pyi +3 -0
- reflex/components/el/elements/base.pyi +0 -1
- reflex/components/el/elements/forms.py +3 -4
- reflex/components/el/elements/forms.pyi +1 -18
- reflex/components/el/elements/inline.pyi +0 -28
- reflex/components/el/elements/media.py +26 -0
- reflex/components/el/elements/media.pyi +259 -25
- reflex/components/el/elements/metadata.py +0 -1
- reflex/components/el/elements/metadata.pyi +0 -6
- reflex/components/el/elements/other.pyi +0 -7
- reflex/components/el/elements/scripts.pyi +0 -3
- reflex/components/el/elements/sectioning.pyi +0 -15
- reflex/components/el/elements/tables.pyi +0 -10
- reflex/components/el/elements/typography.pyi +0 -15
- reflex/components/gridjs/datatable.py +10 -13
- reflex/components/gridjs/datatable.pyi +0 -2
- reflex/components/lucide/icon.py +10 -9
- reflex/components/lucide/icon.pyi +0 -3
- reflex/components/markdown/markdown.py +6 -8
- reflex/components/markdown/markdown.pyi +0 -1
- reflex/components/moment/moment.pyi +0 -1
- reflex/components/next/base.py +0 -2
- reflex/components/next/base.pyi +0 -3
- reflex/components/next/image.pyi +0 -1
- reflex/components/next/link.pyi +0 -1
- reflex/components/next/video.pyi +0 -1
- reflex/components/plotly/plotly.pyi +0 -9
- reflex/components/props.py +4 -3
- reflex/components/radix/primitives/accordion.py +1 -1
- reflex/components/radix/primitives/accordion.pyi +0 -7
- reflex/components/radix/primitives/base.py +1 -3
- reflex/components/radix/primitives/base.pyi +0 -2
- reflex/components/radix/primitives/drawer.py +1 -1
- reflex/components/radix/primitives/drawer.pyi +0 -11
- reflex/components/radix/primitives/form.py +5 -9
- reflex/components/radix/primitives/form.pyi +0 -12
- reflex/components/radix/primitives/progress.py +1 -1
- reflex/components/radix/primitives/progress.pyi +0 -5
- reflex/components/radix/primitives/slider.py +1 -1
- reflex/components/radix/primitives/slider.pyi +0 -5
- reflex/components/radix/themes/base.pyi +0 -8
- reflex/components/radix/themes/color_mode.pyi +0 -3
- reflex/components/radix/themes/components/alert_dialog.py +4 -2
- reflex/components/radix/themes/components/alert_dialog.pyi +4 -9
- reflex/components/radix/themes/components/aspect_ratio.py +1 -2
- reflex/components/radix/themes/components/aspect_ratio.pyi +1 -3
- reflex/components/radix/themes/components/avatar.py +5 -2
- reflex/components/radix/themes/components/avatar.pyi +1 -3
- reflex/components/radix/themes/components/badge.py +5 -2
- reflex/components/radix/themes/components/badge.pyi +1 -3
- reflex/components/radix/themes/components/button.py +2 -3
- reflex/components/radix/themes/components/button.pyi +1 -3
- reflex/components/radix/themes/components/callout.py +1 -2
- reflex/components/radix/themes/components/callout.pyi +1 -7
- reflex/components/radix/themes/components/card.py +1 -2
- reflex/components/radix/themes/components/card.pyi +1 -3
- reflex/components/radix/themes/components/checkbox.py +7 -4
- reflex/components/radix/themes/components/checkbox.pyi +1 -5
- reflex/components/radix/themes/components/checkbox_cards.py +1 -2
- reflex/components/radix/themes/components/checkbox_cards.pyi +1 -4
- reflex/components/radix/themes/components/checkbox_group.py +1 -2
- reflex/components/radix/themes/components/checkbox_group.pyi +1 -4
- reflex/components/radix/themes/components/context_menu.py +1 -1
- reflex/components/radix/themes/components/context_menu.pyi +1 -14
- reflex/components/radix/themes/components/data_list.py +1 -2
- reflex/components/radix/themes/components/data_list.pyi +1 -6
- reflex/components/radix/themes/components/dialog.py +4 -2
- reflex/components/radix/themes/components/dialog.pyi +4 -9
- reflex/components/radix/themes/components/dropdown_menu.py +5 -2
- reflex/components/radix/themes/components/dropdown_menu.pyi +4 -10
- reflex/components/radix/themes/components/hover_card.py +4 -2
- reflex/components/radix/themes/components/hover_card.pyi +4 -6
- reflex/components/radix/themes/components/icon_button.py +7 -8
- reflex/components/radix/themes/components/icon_button.pyi +1 -3
- reflex/components/radix/themes/components/inset.py +1 -2
- reflex/components/radix/themes/components/inset.pyi +1 -3
- reflex/components/radix/themes/components/popover.py +4 -2
- reflex/components/radix/themes/components/popover.pyi +4 -6
- reflex/components/radix/themes/components/progress.py +1 -2
- reflex/components/radix/themes/components/progress.pyi +1 -3
- reflex/components/radix/themes/components/radio.py +1 -2
- reflex/components/radix/themes/components/radio.pyi +1 -3
- reflex/components/radix/themes/components/radio_cards.py +1 -2
- reflex/components/radix/themes/components/radio_cards.pyi +1 -4
- reflex/components/radix/themes/components/radio_group.py +7 -5
- reflex/components/radix/themes/components/radio_group.pyi +1 -6
- reflex/components/radix/themes/components/scroll_area.py +1 -2
- reflex/components/radix/themes/components/scroll_area.pyi +1 -3
- reflex/components/radix/themes/components/segmented_control.py +1 -2
- reflex/components/radix/themes/components/segmented_control.pyi +1 -4
- reflex/components/radix/themes/components/select.py +5 -2
- reflex/components/radix/themes/components/select.pyi +1 -11
- reflex/components/radix/themes/components/separator.py +1 -2
- reflex/components/radix/themes/components/separator.pyi +1 -3
- reflex/components/radix/themes/components/skeleton.py +1 -2
- reflex/components/radix/themes/components/skeleton.pyi +1 -3
- reflex/components/radix/themes/components/slider.py +1 -2
- reflex/components/radix/themes/components/slider.pyi +1 -3
- reflex/components/radix/themes/components/spinner.py +1 -2
- reflex/components/radix/themes/components/spinner.pyi +1 -3
- reflex/components/radix/themes/components/switch.py +1 -2
- reflex/components/radix/themes/components/switch.pyi +1 -3
- reflex/components/radix/themes/components/table.py +1 -2
- reflex/components/radix/themes/components/table.pyi +1 -9
- reflex/components/radix/themes/components/tabs.py +1 -2
- reflex/components/radix/themes/components/tabs.pyi +1 -7
- reflex/components/radix/themes/components/text_area.py +5 -2
- reflex/components/radix/themes/components/text_area.pyi +1 -3
- reflex/components/radix/themes/components/text_field.py +5 -2
- reflex/components/radix/themes/components/text_field.pyi +1 -5
- reflex/components/radix/themes/components/tooltip.py +1 -2
- reflex/components/radix/themes/components/tooltip.pyi +1 -3
- reflex/components/radix/themes/layout/base.py +5 -2
- reflex/components/radix/themes/layout/base.pyi +5 -3
- reflex/components/radix/themes/layout/box.py +1 -2
- reflex/components/radix/themes/layout/box.pyi +1 -3
- reflex/components/radix/themes/layout/center.pyi +0 -1
- reflex/components/radix/themes/layout/container.py +1 -2
- reflex/components/radix/themes/layout/container.pyi +1 -3
- reflex/components/radix/themes/layout/flex.py +6 -2
- reflex/components/radix/themes/layout/flex.pyi +1 -3
- reflex/components/radix/themes/layout/grid.py +6 -2
- reflex/components/radix/themes/layout/grid.pyi +1 -3
- reflex/components/radix/themes/layout/list.py +2 -1
- reflex/components/radix/themes/layout/list.pyi +0 -5
- reflex/components/radix/themes/layout/section.py +1 -2
- reflex/components/radix/themes/layout/section.pyi +1 -3
- reflex/components/radix/themes/layout/spacer.pyi +0 -1
- reflex/components/radix/themes/layout/stack.py +1 -1
- reflex/components/radix/themes/layout/stack.pyi +0 -3
- reflex/components/radix/themes/typography/blockquote.py +1 -1
- reflex/components/radix/themes/typography/blockquote.pyi +1 -3
- reflex/components/radix/themes/typography/code.py +5 -1
- reflex/components/radix/themes/typography/code.pyi +1 -3
- reflex/components/radix/themes/typography/heading.py +1 -1
- reflex/components/radix/themes/typography/heading.pyi +1 -3
- reflex/components/radix/themes/typography/link.py +3 -2
- reflex/components/radix/themes/typography/link.pyi +1 -3
- reflex/components/radix/themes/typography/text.py +1 -1
- reflex/components/radix/themes/typography/text.pyi +1 -9
- reflex/components/react_player/audio.py +0 -2
- reflex/components/react_player/audio.pyi +0 -3
- reflex/components/react_player/react_player.pyi +0 -1
- reflex/components/react_player/video.py +0 -2
- reflex/components/react_player/video.pyi +0 -3
- reflex/components/recharts/__init__.py +1 -1
- reflex/components/recharts/__init__.pyi +1 -1
- reflex/components/recharts/cartesian.py +20 -25
- reflex/components/recharts/cartesian.pyi +20 -37
- reflex/components/recharts/charts.py +2 -1
- reflex/components/recharts/charts.pyi +0 -12
- reflex/components/recharts/general.pyi +0 -6
- reflex/components/recharts/polar.py +5 -4
- reflex/components/recharts/polar.pyi +4 -10
- reflex/components/recharts/recharts.py +12 -10
- reflex/components/recharts/recharts.pyi +10 -11
- reflex/components/sonner/toast.py +2 -2
- reflex/components/sonner/toast.pyi +0 -2
- reflex/components/suneditor/editor.py +2 -1
- reflex/components/suneditor/editor.pyi +0 -1
- reflex/components/tags/iter_tag.py +4 -2
- reflex/config.py +47 -35
- reflex/constants/base.py +3 -3
- reflex/constants/compiler.py +8 -6
- reflex/constants/installer.py +24 -15
- reflex/custom_components/custom_components.py +1 -2
- reflex/event.py +58 -60
- reflex/experimental/__init__.py +2 -2
- reflex/experimental/client_state.py +9 -4
- reflex/experimental/layout.pyi +0 -5
- reflex/istate/manager.py +15 -19
- reflex/istate/proxy.py +19 -12
- reflex/model.py +6 -4
- reflex/plugins/base.py +8 -0
- reflex/plugins/tailwind_v3.py +8 -0
- reflex/plugins/tailwind_v4.py +9 -0
- reflex/reflex.py +9 -11
- reflex/route.py +7 -9
- reflex/state.py +66 -70
- reflex/style.py +3 -1
- reflex/testing.py +46 -29
- reflex/utils/build.py +2 -1
- reflex/utils/console.py +9 -17
- reflex/utils/exec.py +9 -11
- reflex/utils/format.py +21 -24
- reflex/utils/imports.py +4 -3
- reflex/utils/lazy_loader.py +3 -3
- reflex/utils/misc.py +2 -1
- reflex/utils/net.py +2 -2
- reflex/utils/path_ops.py +2 -1
- reflex/utils/prerequisites.py +67 -38
- reflex/utils/processes.py +4 -6
- reflex/utils/pyi_generator.py +46 -41
- reflex/utils/redir.py +1 -1
- reflex/utils/serializers.py +4 -4
- reflex/utils/telemetry.py +42 -4
- reflex/utils/types.py +16 -13
- reflex/vars/base.py +96 -109
- reflex/vars/datetime.py +2 -1
- reflex/vars/dep_tracking.py +19 -28
- reflex/vars/number.py +6 -7
- reflex/vars/object.py +5 -6
- reflex/vars/sequence.py +11 -11
- {reflex-0.7.13a1.dist-info → reflex-0.7.14a1.dist-info}/METADATA +1 -1
- reflex-0.7.14a1.dist-info/RECORD +407 -0
- reflex-0.7.13a1.dist-info/RECORD +0 -407
- {reflex-0.7.13a1.dist-info → reflex-0.7.14a1.dist-info}/WHEEL +0 -0
- {reflex-0.7.13a1.dist-info → reflex-0.7.14a1.dist-info}/entry_points.txt +0 -0
- {reflex-0.7.13a1.dist-info → reflex-0.7.14a1.dist-info}/licenses/LICENSE +0 -0
|
@@ -64,7 +64,6 @@ class DrawerComponent(RadixPrimitiveComponent):
|
|
|
64
64
|
Returns:
|
|
65
65
|
The component.
|
|
66
66
|
"""
|
|
67
|
-
...
|
|
68
67
|
|
|
69
68
|
LiteralDirectionType = Literal["top", "bottom", "left", "right"]
|
|
70
69
|
|
|
@@ -150,7 +149,6 @@ class DrawerRoot(DrawerComponent):
|
|
|
150
149
|
Returns:
|
|
151
150
|
The component.
|
|
152
151
|
"""
|
|
153
|
-
...
|
|
154
152
|
|
|
155
153
|
class DrawerTrigger(DrawerComponent):
|
|
156
154
|
@overload
|
|
@@ -204,7 +202,6 @@ class DrawerTrigger(DrawerComponent):
|
|
|
204
202
|
Returns:
|
|
205
203
|
The new DrawerTrigger instance.
|
|
206
204
|
"""
|
|
207
|
-
...
|
|
208
205
|
|
|
209
206
|
class DrawerPortal(DrawerComponent):
|
|
210
207
|
@overload
|
|
@@ -258,7 +255,6 @@ class DrawerPortal(DrawerComponent):
|
|
|
258
255
|
Returns:
|
|
259
256
|
The component.
|
|
260
257
|
"""
|
|
261
|
-
...
|
|
262
258
|
|
|
263
259
|
class DrawerContent(DrawerComponent):
|
|
264
260
|
@overload
|
|
@@ -321,7 +317,6 @@ class DrawerContent(DrawerComponent):
|
|
|
321
317
|
Returns:
|
|
322
318
|
The drawer content.
|
|
323
319
|
"""
|
|
324
|
-
...
|
|
325
320
|
|
|
326
321
|
class DrawerOverlay(DrawerComponent):
|
|
327
322
|
@overload
|
|
@@ -375,7 +370,6 @@ class DrawerOverlay(DrawerComponent):
|
|
|
375
370
|
Returns:
|
|
376
371
|
The component.
|
|
377
372
|
"""
|
|
378
|
-
...
|
|
379
373
|
|
|
380
374
|
class DrawerClose(DrawerTrigger):
|
|
381
375
|
@overload
|
|
@@ -429,7 +423,6 @@ class DrawerClose(DrawerTrigger):
|
|
|
429
423
|
Returns:
|
|
430
424
|
The new DrawerTrigger instance.
|
|
431
425
|
"""
|
|
432
|
-
...
|
|
433
426
|
|
|
434
427
|
class DrawerTitle(DrawerComponent):
|
|
435
428
|
@overload
|
|
@@ -483,7 +476,6 @@ class DrawerTitle(DrawerComponent):
|
|
|
483
476
|
Returns:
|
|
484
477
|
The component.
|
|
485
478
|
"""
|
|
486
|
-
...
|
|
487
479
|
|
|
488
480
|
class DrawerDescription(DrawerComponent):
|
|
489
481
|
@overload
|
|
@@ -537,7 +529,6 @@ class DrawerDescription(DrawerComponent):
|
|
|
537
529
|
Returns:
|
|
538
530
|
The component.
|
|
539
531
|
"""
|
|
540
|
-
...
|
|
541
532
|
|
|
542
533
|
class DrawerHandle(DrawerComponent):
|
|
543
534
|
@overload
|
|
@@ -591,7 +582,6 @@ class DrawerHandle(DrawerComponent):
|
|
|
591
582
|
Returns:
|
|
592
583
|
The component.
|
|
593
584
|
"""
|
|
594
|
-
...
|
|
595
585
|
|
|
596
586
|
class Drawer(ComponentNamespace):
|
|
597
587
|
root = staticmethod(DrawerRoot.create)
|
|
@@ -683,6 +673,5 @@ class Drawer(ComponentNamespace):
|
|
|
683
673
|
Returns:
|
|
684
674
|
The component.
|
|
685
675
|
"""
|
|
686
|
-
...
|
|
687
676
|
|
|
688
677
|
drawer = Drawer()
|
|
@@ -17,7 +17,7 @@ from .base import RadixPrimitiveComponentWithClassName
|
|
|
17
17
|
class FormComponent(RadixPrimitiveComponentWithClassName):
|
|
18
18
|
"""Base class for all @radix-ui/react-form components."""
|
|
19
19
|
|
|
20
|
-
library = "@radix-ui/react-form@0.1.
|
|
20
|
+
library = "@radix-ui/react-form@0.1.7"
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
class FormRoot(FormComponent, HTMLForm):
|
|
@@ -100,14 +100,12 @@ class FormControl(FormComponent):
|
|
|
100
100
|
The form control component.
|
|
101
101
|
"""
|
|
102
102
|
if len(children) > 1:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
)
|
|
103
|
+
msg = f"FormControl can only have at most one child, got {len(children)} children"
|
|
104
|
+
raise ValueError(msg)
|
|
106
105
|
for child in children:
|
|
107
106
|
if not isinstance(child, (TextFieldRoot, DebounceInput)):
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
)
|
|
107
|
+
msg = "Only Radix TextFieldRoot and DebounceInput are allowed as children of FormControl"
|
|
108
|
+
raise TypeError(msg)
|
|
111
109
|
return super().create(*children, **props)
|
|
112
110
|
|
|
113
111
|
|
|
@@ -168,8 +166,6 @@ class FormSubmit(FormComponent):
|
|
|
168
166
|
class Form(FormRoot):
|
|
169
167
|
"""The Form component."""
|
|
170
168
|
|
|
171
|
-
pass
|
|
172
|
-
|
|
173
169
|
|
|
174
170
|
class FormNamespace(ComponentNamespace):
|
|
175
171
|
"""Form components."""
|
|
@@ -66,7 +66,6 @@ class FormComponent(RadixPrimitiveComponentWithClassName):
|
|
|
66
66
|
Returns:
|
|
67
67
|
The component.
|
|
68
68
|
"""
|
|
69
|
-
...
|
|
70
69
|
|
|
71
70
|
class FormRoot(FormComponent, HTMLForm):
|
|
72
71
|
def add_style(self) -> dict[str, Any] | None: ...
|
|
@@ -341,7 +340,6 @@ class FormRoot(FormComponent, HTMLForm):
|
|
|
341
340
|
Returns:
|
|
342
341
|
The form component.
|
|
343
342
|
"""
|
|
344
|
-
...
|
|
345
343
|
|
|
346
344
|
class FormField(FormComponent):
|
|
347
345
|
def add_style(self) -> dict[str, Any] | None: ...
|
|
@@ -400,7 +398,6 @@ class FormField(FormComponent):
|
|
|
400
398
|
Returns:
|
|
401
399
|
The component.
|
|
402
400
|
"""
|
|
403
|
-
...
|
|
404
401
|
|
|
405
402
|
class FormLabel(FormComponent):
|
|
406
403
|
def add_style(self) -> dict[str, Any] | None: ...
|
|
@@ -455,7 +452,6 @@ class FormLabel(FormComponent):
|
|
|
455
452
|
Returns:
|
|
456
453
|
The component.
|
|
457
454
|
"""
|
|
458
|
-
...
|
|
459
455
|
|
|
460
456
|
class FormControl(FormComponent):
|
|
461
457
|
@overload
|
|
@@ -513,7 +509,6 @@ class FormControl(FormComponent):
|
|
|
513
509
|
Returns:
|
|
514
510
|
The form control component.
|
|
515
511
|
"""
|
|
516
|
-
...
|
|
517
512
|
|
|
518
513
|
LiteralMatcher = Literal[
|
|
519
514
|
"badInput",
|
|
@@ -613,7 +608,6 @@ class FormMessage(FormComponent):
|
|
|
613
608
|
Returns:
|
|
614
609
|
The component.
|
|
615
610
|
"""
|
|
616
|
-
...
|
|
617
611
|
|
|
618
612
|
class FormValidityState(FormComponent):
|
|
619
613
|
@overload
|
|
@@ -667,7 +661,6 @@ class FormValidityState(FormComponent):
|
|
|
667
661
|
Returns:
|
|
668
662
|
The component.
|
|
669
663
|
"""
|
|
670
|
-
...
|
|
671
664
|
|
|
672
665
|
class FormSubmit(FormComponent):
|
|
673
666
|
@overload
|
|
@@ -721,11 +714,8 @@ class FormSubmit(FormComponent):
|
|
|
721
714
|
Returns:
|
|
722
715
|
The component.
|
|
723
716
|
"""
|
|
724
|
-
...
|
|
725
717
|
|
|
726
718
|
class Form(FormRoot):
|
|
727
|
-
pass
|
|
728
|
-
|
|
729
719
|
@overload
|
|
730
720
|
@classmethod
|
|
731
721
|
def create( # type: ignore
|
|
@@ -997,7 +987,6 @@ class Form(FormRoot):
|
|
|
997
987
|
Returns:
|
|
998
988
|
The form component.
|
|
999
989
|
"""
|
|
1000
|
-
...
|
|
1001
990
|
|
|
1002
991
|
class FormNamespace(ComponentNamespace):
|
|
1003
992
|
root = staticmethod(FormRoot.create)
|
|
@@ -1277,6 +1266,5 @@ class FormNamespace(ComponentNamespace):
|
|
|
1277
1266
|
Returns:
|
|
1278
1267
|
The form component.
|
|
1279
1268
|
"""
|
|
1280
|
-
...
|
|
1281
1269
|
|
|
1282
1270
|
form = FormNamespace()
|
|
@@ -15,7 +15,7 @@ from reflex.vars.base import Var
|
|
|
15
15
|
class ProgressComponent(RadixPrimitiveComponentWithClassName):
|
|
16
16
|
"""A Progress component."""
|
|
17
17
|
|
|
18
|
-
library = "@radix-ui/react-progress@1.1.
|
|
18
|
+
library = "@radix-ui/react-progress@1.1.7"
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class ProgressRoot(ProgressComponent):
|
|
@@ -64,7 +64,6 @@ class ProgressComponent(RadixPrimitiveComponentWithClassName):
|
|
|
64
64
|
Returns:
|
|
65
65
|
The component.
|
|
66
66
|
"""
|
|
67
|
-
...
|
|
68
67
|
|
|
69
68
|
class ProgressRoot(ProgressComponent):
|
|
70
69
|
def add_style(self) -> dict[str, Any] | None: ...
|
|
@@ -123,7 +122,6 @@ class ProgressRoot(ProgressComponent):
|
|
|
123
122
|
Returns:
|
|
124
123
|
The component.
|
|
125
124
|
"""
|
|
126
|
-
...
|
|
127
125
|
|
|
128
126
|
class ProgressIndicator(ProgressComponent):
|
|
129
127
|
def add_style(self) -> dict[str, Any] | None: ...
|
|
@@ -242,7 +240,6 @@ class ProgressIndicator(ProgressComponent):
|
|
|
242
240
|
Returns:
|
|
243
241
|
The component.
|
|
244
242
|
"""
|
|
245
|
-
...
|
|
246
243
|
|
|
247
244
|
class Progress(ProgressRoot):
|
|
248
245
|
@overload
|
|
@@ -363,7 +360,6 @@ class Progress(ProgressRoot):
|
|
|
363
360
|
Returns:
|
|
364
361
|
The progress bar.
|
|
365
362
|
"""
|
|
366
|
-
...
|
|
367
363
|
|
|
368
364
|
class ProgressNamespace(ComponentNamespace):
|
|
369
365
|
root = staticmethod(ProgressRoot.create)
|
|
@@ -485,6 +481,5 @@ class ProgressNamespace(ComponentNamespace):
|
|
|
485
481
|
Returns:
|
|
486
482
|
The progress bar.
|
|
487
483
|
"""
|
|
488
|
-
...
|
|
489
484
|
|
|
490
485
|
progress = ProgressNamespace()
|
|
@@ -17,7 +17,7 @@ LiteralSliderDir = Literal["ltr", "rtl"]
|
|
|
17
17
|
class SliderComponent(RadixPrimitiveComponentWithClassName):
|
|
18
18
|
"""Base class for all @radix-ui/react-slider components."""
|
|
19
19
|
|
|
20
|
-
library = "@radix-ui/react-slider@1.3.
|
|
20
|
+
library = "@radix-ui/react-slider@1.3.5"
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
def on_value_event_spec(
|
|
@@ -67,7 +67,6 @@ class SliderComponent(RadixPrimitiveComponentWithClassName):
|
|
|
67
67
|
Returns:
|
|
68
68
|
The component.
|
|
69
69
|
"""
|
|
70
|
-
...
|
|
71
70
|
|
|
72
71
|
def on_value_event_spec(value: Var[list[int]]) -> tuple[Var[list[int]]]: ...
|
|
73
72
|
|
|
@@ -141,7 +140,6 @@ class SliderRoot(SliderComponent):
|
|
|
141
140
|
Returns:
|
|
142
141
|
The component.
|
|
143
142
|
"""
|
|
144
|
-
...
|
|
145
143
|
|
|
146
144
|
class SliderTrack(SliderComponent):
|
|
147
145
|
def add_style(self) -> dict[str, Any] | None: ...
|
|
@@ -196,7 +194,6 @@ class SliderTrack(SliderComponent):
|
|
|
196
194
|
Returns:
|
|
197
195
|
The component.
|
|
198
196
|
"""
|
|
199
|
-
...
|
|
200
197
|
|
|
201
198
|
class SliderRange(SliderComponent):
|
|
202
199
|
def add_style(self) -> dict[str, Any] | None: ...
|
|
@@ -251,7 +248,6 @@ class SliderRange(SliderComponent):
|
|
|
251
248
|
Returns:
|
|
252
249
|
The component.
|
|
253
250
|
"""
|
|
254
|
-
...
|
|
255
251
|
|
|
256
252
|
class SliderThumb(SliderComponent):
|
|
257
253
|
def add_style(self) -> dict[str, Any] | None: ...
|
|
@@ -306,7 +302,6 @@ class SliderThumb(SliderComponent):
|
|
|
306
302
|
Returns:
|
|
307
303
|
The component.
|
|
308
304
|
"""
|
|
309
|
-
...
|
|
310
305
|
|
|
311
306
|
class Slider(ComponentNamespace):
|
|
312
307
|
root = staticmethod(SliderRoot.create)
|
|
@@ -128,7 +128,6 @@ class CommonMarginProps(Component):
|
|
|
128
128
|
Returns:
|
|
129
129
|
The component.
|
|
130
130
|
"""
|
|
131
|
-
...
|
|
132
131
|
|
|
133
132
|
class CommonPaddingProps(Component):
|
|
134
133
|
@overload
|
|
@@ -236,7 +235,6 @@ class CommonPaddingProps(Component):
|
|
|
236
235
|
Returns:
|
|
237
236
|
The component.
|
|
238
237
|
"""
|
|
239
|
-
...
|
|
240
238
|
|
|
241
239
|
class RadixLoadingProp(Component):
|
|
242
240
|
@overload
|
|
@@ -290,7 +288,6 @@ class RadixLoadingProp(Component):
|
|
|
290
288
|
Returns:
|
|
291
289
|
The component.
|
|
292
290
|
"""
|
|
293
|
-
...
|
|
294
291
|
|
|
295
292
|
class RadixThemesComponent(Component):
|
|
296
293
|
@overload
|
|
@@ -345,7 +342,6 @@ class RadixThemesComponent(Component):
|
|
|
345
342
|
Returns:
|
|
346
343
|
A new component instance.
|
|
347
344
|
"""
|
|
348
|
-
...
|
|
349
345
|
|
|
350
346
|
class RadixThemesTriggerComponent(RadixThemesComponent):
|
|
351
347
|
@overload
|
|
@@ -390,7 +386,6 @@ class RadixThemesTriggerComponent(RadixThemesComponent):
|
|
|
390
386
|
Returns:
|
|
391
387
|
The new RadixThemesTriggerComponent instance.
|
|
392
388
|
"""
|
|
393
|
-
...
|
|
394
389
|
|
|
395
390
|
class Theme(RadixThemesComponent):
|
|
396
391
|
@overload
|
|
@@ -528,7 +523,6 @@ class Theme(RadixThemesComponent):
|
|
|
528
523
|
Returns:
|
|
529
524
|
A new component instance.
|
|
530
525
|
"""
|
|
531
|
-
...
|
|
532
526
|
|
|
533
527
|
def add_imports(self) -> ImportDict | list[ImportDict]: ...
|
|
534
528
|
|
|
@@ -588,7 +582,6 @@ class ThemePanel(RadixThemesComponent):
|
|
|
588
582
|
Returns:
|
|
589
583
|
A new component instance.
|
|
590
584
|
"""
|
|
591
|
-
...
|
|
592
585
|
|
|
593
586
|
class RadixThemesColorModeProvider(Component):
|
|
594
587
|
@overload
|
|
@@ -640,7 +633,6 @@ class RadixThemesColorModeProvider(Component):
|
|
|
640
633
|
Returns:
|
|
641
634
|
The component.
|
|
642
635
|
"""
|
|
643
|
-
...
|
|
644
636
|
|
|
645
637
|
theme = Theme.create
|
|
646
638
|
theme_panel = ThemePanel.create
|
|
@@ -63,7 +63,6 @@ class ColorModeIcon(Cond):
|
|
|
63
63
|
Returns:
|
|
64
64
|
The conditionally rendered component
|
|
65
65
|
"""
|
|
66
|
-
...
|
|
67
66
|
|
|
68
67
|
LiteralPosition = Literal["top-left", "top-right", "bottom-left", "bottom-right"]
|
|
69
68
|
position_values: list[str]
|
|
@@ -424,7 +423,6 @@ class ColorModeIconButton(IconButton):
|
|
|
424
423
|
Returns:
|
|
425
424
|
The button component.
|
|
426
425
|
"""
|
|
427
|
-
...
|
|
428
426
|
|
|
429
427
|
class ColorModeSwitch(Switch):
|
|
430
428
|
@overload
|
|
@@ -567,7 +565,6 @@ class ColorModeSwitch(Switch):
|
|
|
567
565
|
Returns:
|
|
568
566
|
The switch component.
|
|
569
567
|
"""
|
|
570
|
-
...
|
|
571
568
|
|
|
572
569
|
class ColorModeNamespace(Var):
|
|
573
570
|
icon = staticmethod(ColorModeIcon.create)
|
|
@@ -5,12 +5,14 @@ from typing import Literal
|
|
|
5
5
|
from reflex.components.component import ComponentNamespace
|
|
6
6
|
from reflex.components.core.breakpoints import Responsive
|
|
7
7
|
from reflex.components.el import elements
|
|
8
|
+
from reflex.components.radix.themes.base import (
|
|
9
|
+
RadixThemesComponent,
|
|
10
|
+
RadixThemesTriggerComponent,
|
|
11
|
+
)
|
|
8
12
|
from reflex.constants.compiler import MemoizationMode
|
|
9
13
|
from reflex.event import EventHandler, no_args_event_spec, passthrough_event_spec
|
|
10
14
|
from reflex.vars.base import Var
|
|
11
15
|
|
|
12
|
-
from ..base import RadixThemesComponent, RadixThemesTriggerComponent
|
|
13
|
-
|
|
14
16
|
LiteralContentSize = Literal["1", "2", "3", "4"]
|
|
15
17
|
|
|
16
18
|
|
|
@@ -9,11 +9,13 @@ from typing import Any, Literal, overload
|
|
|
9
9
|
from reflex.components.component import ComponentNamespace
|
|
10
10
|
from reflex.components.core.breakpoints import Breakpoints
|
|
11
11
|
from reflex.components.el import elements
|
|
12
|
+
from reflex.components.radix.themes.base import (
|
|
13
|
+
RadixThemesComponent,
|
|
14
|
+
RadixThemesTriggerComponent,
|
|
15
|
+
)
|
|
12
16
|
from reflex.event import EventType
|
|
13
17
|
from reflex.vars.base import Var
|
|
14
18
|
|
|
15
|
-
from ..base import RadixThemesComponent, RadixThemesTriggerComponent
|
|
16
|
-
|
|
17
19
|
LiteralContentSize = Literal["1", "2", "3", "4"]
|
|
18
20
|
|
|
19
21
|
class AlertDialogRoot(RadixThemesComponent):
|
|
@@ -75,7 +77,6 @@ class AlertDialogRoot(RadixThemesComponent):
|
|
|
75
77
|
Returns:
|
|
76
78
|
A new component instance.
|
|
77
79
|
"""
|
|
78
|
-
...
|
|
79
80
|
|
|
80
81
|
class AlertDialogTrigger(RadixThemesTriggerComponent):
|
|
81
82
|
@overload
|
|
@@ -120,7 +121,6 @@ class AlertDialogTrigger(RadixThemesTriggerComponent):
|
|
|
120
121
|
Returns:
|
|
121
122
|
The new RadixThemesTriggerComponent instance.
|
|
122
123
|
"""
|
|
123
|
-
...
|
|
124
124
|
|
|
125
125
|
class AlertDialogContent(elements.Div, RadixThemesComponent):
|
|
126
126
|
@overload
|
|
@@ -384,7 +384,6 @@ class AlertDialogContent(elements.Div, RadixThemesComponent):
|
|
|
384
384
|
Returns:
|
|
385
385
|
A new component instance.
|
|
386
386
|
"""
|
|
387
|
-
...
|
|
388
387
|
|
|
389
388
|
class AlertDialogTitle(RadixThemesComponent):
|
|
390
389
|
@overload
|
|
@@ -439,7 +438,6 @@ class AlertDialogTitle(RadixThemesComponent):
|
|
|
439
438
|
Returns:
|
|
440
439
|
A new component instance.
|
|
441
440
|
"""
|
|
442
|
-
...
|
|
443
441
|
|
|
444
442
|
class AlertDialogDescription(RadixThemesComponent):
|
|
445
443
|
@overload
|
|
@@ -494,7 +492,6 @@ class AlertDialogDescription(RadixThemesComponent):
|
|
|
494
492
|
Returns:
|
|
495
493
|
A new component instance.
|
|
496
494
|
"""
|
|
497
|
-
...
|
|
498
495
|
|
|
499
496
|
class AlertDialogAction(RadixThemesTriggerComponent):
|
|
500
497
|
@overload
|
|
@@ -539,7 +536,6 @@ class AlertDialogAction(RadixThemesTriggerComponent):
|
|
|
539
536
|
Returns:
|
|
540
537
|
The new RadixThemesTriggerComponent instance.
|
|
541
538
|
"""
|
|
542
|
-
...
|
|
543
539
|
|
|
544
540
|
class AlertDialogCancel(RadixThemesTriggerComponent):
|
|
545
541
|
@overload
|
|
@@ -584,7 +580,6 @@ class AlertDialogCancel(RadixThemesTriggerComponent):
|
|
|
584
580
|
Returns:
|
|
585
581
|
The new RadixThemesTriggerComponent instance.
|
|
586
582
|
"""
|
|
587
|
-
...
|
|
588
583
|
|
|
589
584
|
class AlertDialog(ComponentNamespace):
|
|
590
585
|
root = staticmethod(AlertDialogRoot.create)
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"""Interactive components provided by @radix-ui/themes."""
|
|
2
2
|
|
|
3
|
+
from reflex.components.radix.themes.base import RadixThemesComponent
|
|
3
4
|
from reflex.vars.base import Var
|
|
4
5
|
|
|
5
|
-
from ..base import RadixThemesComponent
|
|
6
|
-
|
|
7
6
|
|
|
8
7
|
class AspectRatio(RadixThemesComponent):
|
|
9
8
|
"""Displays content with a desired ratio."""
|
|
@@ -7,11 +7,10 @@ from collections.abc import Mapping, Sequence
|
|
|
7
7
|
from typing import Any, overload
|
|
8
8
|
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
|
+
from reflex.components.radix.themes.base import RadixThemesComponent
|
|
10
11
|
from reflex.event import EventType
|
|
11
12
|
from reflex.vars.base import Var
|
|
12
13
|
|
|
13
|
-
from ..base import RadixThemesComponent
|
|
14
|
-
|
|
15
14
|
class AspectRatio(RadixThemesComponent):
|
|
16
15
|
@overload
|
|
17
16
|
@classmethod
|
|
@@ -67,6 +66,5 @@ class AspectRatio(RadixThemesComponent):
|
|
|
67
66
|
Returns:
|
|
68
67
|
A new component instance.
|
|
69
68
|
"""
|
|
70
|
-
...
|
|
71
69
|
|
|
72
70
|
aspect_ratio = AspectRatio.create
|
|
@@ -3,10 +3,13 @@
|
|
|
3
3
|
from typing import Literal
|
|
4
4
|
|
|
5
5
|
from reflex.components.core.breakpoints import Responsive
|
|
6
|
+
from reflex.components.radix.themes.base import (
|
|
7
|
+
LiteralAccentColor,
|
|
8
|
+
LiteralRadius,
|
|
9
|
+
RadixThemesComponent,
|
|
10
|
+
)
|
|
6
11
|
from reflex.vars.base import Var
|
|
7
12
|
|
|
8
|
-
from ..base import LiteralAccentColor, LiteralRadius, RadixThemesComponent
|
|
9
|
-
|
|
10
13
|
LiteralSize = Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
|
|
11
14
|
|
|
12
15
|
|
|
@@ -7,11 +7,10 @@ from collections.abc import Mapping, Sequence
|
|
|
7
7
|
from typing import Any, Literal, overload
|
|
8
8
|
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
|
+
from reflex.components.radix.themes.base import RadixThemesComponent
|
|
10
11
|
from reflex.event import EventType
|
|
11
12
|
from reflex.vars.base import Var
|
|
12
13
|
|
|
13
|
-
from ..base import RadixThemesComponent
|
|
14
|
-
|
|
15
14
|
LiteralSize = Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
|
|
16
15
|
|
|
17
16
|
class Avatar(RadixThemesComponent):
|
|
@@ -147,6 +146,5 @@ class Avatar(RadixThemesComponent):
|
|
|
147
146
|
Returns:
|
|
148
147
|
A new component instance.
|
|
149
148
|
"""
|
|
150
|
-
...
|
|
151
149
|
|
|
152
150
|
avatar = Avatar.create
|
|
@@ -4,10 +4,13 @@ from typing import Literal
|
|
|
4
4
|
|
|
5
5
|
from reflex.components.core.breakpoints import Responsive
|
|
6
6
|
from reflex.components.el import elements
|
|
7
|
+
from reflex.components.radix.themes.base import (
|
|
8
|
+
LiteralAccentColor,
|
|
9
|
+
LiteralRadius,
|
|
10
|
+
RadixThemesComponent,
|
|
11
|
+
)
|
|
7
12
|
from reflex.vars.base import Var
|
|
8
13
|
|
|
9
|
-
from ..base import LiteralAccentColor, LiteralRadius, RadixThemesComponent
|
|
10
|
-
|
|
11
14
|
|
|
12
15
|
class Badge(elements.Span, RadixThemesComponent):
|
|
13
16
|
"""A stylized badge element."""
|
|
@@ -8,11 +8,10 @@ from typing import Any, Literal, overload
|
|
|
8
8
|
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
10
|
from reflex.components.el import elements
|
|
11
|
+
from reflex.components.radix.themes.base import RadixThemesComponent
|
|
11
12
|
from reflex.event import EventType
|
|
12
13
|
from reflex.vars.base import Var
|
|
13
14
|
|
|
14
|
-
from ..base import RadixThemesComponent
|
|
15
|
-
|
|
16
15
|
class Badge(elements.Span, RadixThemesComponent):
|
|
17
16
|
@overload
|
|
18
17
|
@classmethod
|
|
@@ -335,6 +334,5 @@ class Badge(elements.Span, RadixThemesComponent):
|
|
|
335
334
|
Returns:
|
|
336
335
|
A new component instance.
|
|
337
336
|
"""
|
|
338
|
-
...
|
|
339
337
|
|
|
340
338
|
badge = Badge.create
|
|
@@ -4,15 +4,14 @@ from typing import Literal
|
|
|
4
4
|
|
|
5
5
|
from reflex.components.core.breakpoints import Responsive
|
|
6
6
|
from reflex.components.el import elements
|
|
7
|
-
from reflex.
|
|
8
|
-
|
|
9
|
-
from ..base import (
|
|
7
|
+
from reflex.components.radix.themes.base import (
|
|
10
8
|
LiteralAccentColor,
|
|
11
9
|
LiteralRadius,
|
|
12
10
|
LiteralVariant,
|
|
13
11
|
RadixLoadingProp,
|
|
14
12
|
RadixThemesComponent,
|
|
15
13
|
)
|
|
14
|
+
from reflex.vars.base import Var
|
|
16
15
|
|
|
17
16
|
LiteralButtonSize = Literal["1", "2", "3", "4"]
|
|
18
17
|
|
|
@@ -8,11 +8,10 @@ from typing import Any, Literal, overload
|
|
|
8
8
|
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
10
|
from reflex.components.el import elements
|
|
11
|
+
from reflex.components.radix.themes.base import RadixLoadingProp, RadixThemesComponent
|
|
11
12
|
from reflex.event import EventType
|
|
12
13
|
from reflex.vars.base import Var
|
|
13
14
|
|
|
14
|
-
from ..base import RadixLoadingProp, RadixThemesComponent
|
|
15
|
-
|
|
16
15
|
LiteralButtonSize = Literal["1", "2", "3", "4"]
|
|
17
16
|
|
|
18
17
|
class Button(elements.Button, RadixLoadingProp, RadixThemesComponent):
|
|
@@ -367,6 +366,5 @@ class Button(elements.Button, RadixLoadingProp, RadixThemesComponent):
|
|
|
367
366
|
Returns:
|
|
368
367
|
A new component instance.
|
|
369
368
|
"""
|
|
370
|
-
...
|
|
371
369
|
|
|
372
370
|
button = Button.create
|
|
@@ -7,10 +7,9 @@ from reflex.components.component import Component, ComponentNamespace
|
|
|
7
7
|
from reflex.components.core.breakpoints import Responsive
|
|
8
8
|
from reflex.components.el import elements
|
|
9
9
|
from reflex.components.lucide.icon import Icon
|
|
10
|
+
from reflex.components.radix.themes.base import LiteralAccentColor, RadixThemesComponent
|
|
10
11
|
from reflex.vars.base import Var
|
|
11
12
|
|
|
12
|
-
from ..base import LiteralAccentColor, RadixThemesComponent
|
|
13
|
-
|
|
14
13
|
CalloutVariant = Literal["soft", "surface", "outline"]
|
|
15
14
|
|
|
16
15
|
|
|
@@ -9,11 +9,10 @@ from typing import Any, Literal, overload
|
|
|
9
9
|
from reflex.components.component import ComponentNamespace
|
|
10
10
|
from reflex.components.core.breakpoints import Breakpoints
|
|
11
11
|
from reflex.components.el import elements
|
|
12
|
+
from reflex.components.radix.themes.base import RadixThemesComponent
|
|
12
13
|
from reflex.event import EventType
|
|
13
14
|
from reflex.vars.base import Var
|
|
14
15
|
|
|
15
|
-
from ..base import RadixThemesComponent
|
|
16
|
-
|
|
17
16
|
CalloutVariant = Literal["soft", "surface", "outline"]
|
|
18
17
|
|
|
19
18
|
class CalloutRoot(elements.Div, RadixThemesComponent):
|
|
@@ -336,7 +335,6 @@ class CalloutRoot(elements.Div, RadixThemesComponent):
|
|
|
336
335
|
Returns:
|
|
337
336
|
A new component instance.
|
|
338
337
|
"""
|
|
339
|
-
...
|
|
340
338
|
|
|
341
339
|
class CalloutIcon(elements.Div, RadixThemesComponent):
|
|
342
340
|
@overload
|
|
@@ -585,7 +583,6 @@ class CalloutIcon(elements.Div, RadixThemesComponent):
|
|
|
585
583
|
Returns:
|
|
586
584
|
A new component instance.
|
|
587
585
|
"""
|
|
588
|
-
...
|
|
589
586
|
|
|
590
587
|
class CalloutText(elements.P, RadixThemesComponent):
|
|
591
588
|
@overload
|
|
@@ -834,7 +831,6 @@ class CalloutText(elements.P, RadixThemesComponent):
|
|
|
834
831
|
Returns:
|
|
835
832
|
A new component instance.
|
|
836
833
|
"""
|
|
837
|
-
...
|
|
838
834
|
|
|
839
835
|
class Callout(CalloutRoot):
|
|
840
836
|
@overload
|
|
@@ -1157,7 +1153,6 @@ class Callout(CalloutRoot):
|
|
|
1157
1153
|
Returns:
|
|
1158
1154
|
The callout component.
|
|
1159
1155
|
"""
|
|
1160
|
-
...
|
|
1161
1156
|
|
|
1162
1157
|
class CalloutNamespace(ComponentNamespace):
|
|
1163
1158
|
root = staticmethod(CalloutRoot.create)
|
|
@@ -1482,6 +1477,5 @@ class CalloutNamespace(ComponentNamespace):
|
|
|
1482
1477
|
Returns:
|
|
1483
1478
|
The callout component.
|
|
1484
1479
|
"""
|
|
1485
|
-
...
|
|
1486
1480
|
|
|
1487
1481
|
callout = CalloutNamespace()
|