33from types import SimpleNamespace
44
55from reflex .components .datadisplay .shiki_code_block import code_block as code_block
6- from reflex .components .props import PropsBase
7- from reflex .components .radix .themes .components .progress import progress as progress
8- from reflex .components .sonner .toast import toast as toast
96from reflex .utils .console import warn
107from reflex .utils .misc import run_in_thread
118
129from . import hooks as hooks
1310from .client_state import ClientStateVar as ClientStateVar
14- from .layout import layout as layout
1511
1612
1713class ExperimentalNamespace (SimpleNamespace ):
@@ -32,30 +28,6 @@ def __getattribute__(self, item: str):
3228 )
3329 return super ().__getattribute__ (item )
3430
35- @property
36- def toast (self ):
37- """Temporary property returning the toast namespace.
38-
39- Remove this property when toast is fully promoted.
40-
41- Returns:
42- The toast namespace.
43- """
44- self .register_component_warning ("toast" )
45- return toast
46-
47- @property
48- def progress (self ):
49- """Temporary property returning the progress component.
50-
51- Remove this property when progress is fully promoted.
52-
53- Returns:
54- The progress component.
55- """
56- self .register_component_warning ("progress" )
57- return progress
58-
5931 @property
6032 def run_in_thread (self ):
6133 """Temporary property returning the run_in_thread helper function.
@@ -85,7 +57,5 @@ def register_component_warning(component_name: str):
8557_x = ExperimentalNamespace (
8658 client_state = ClientStateVar .create ,
8759 hooks = hooks ,
88- layout = layout ,
89- PropsBase = PropsBase ,
9060 code_block = code_block ,
9161)
0 commit comments