|
@@ -12,7 +12,7 @@ from reflex import el
|
|
|
from reflex.components.component import ComponentNamespace
|
|
|
from reflex.constants import EventTriggers
|
|
|
from reflex.vars import Var
|
|
|
-from ..base import RadixThemesComponent
|
|
|
+from ..base import RadixThemesComponent, RadixThemesTriggerComponent
|
|
|
|
|
|
LiteralContentSize = Literal["1", "2", "3", "4"]
|
|
|
|
|
@@ -101,7 +101,7 @@ class AlertDialogRoot(RadixThemesComponent):
|
|
|
"""
|
|
|
...
|
|
|
|
|
|
-class AlertDialogTrigger(RadixThemesComponent):
|
|
|
+class AlertDialogTrigger(RadixThemesTriggerComponent):
|
|
|
@overload
|
|
|
@classmethod
|
|
|
def create( # type: ignore
|
|
@@ -160,23 +160,14 @@ class AlertDialogTrigger(RadixThemesComponent):
|
|
|
] = None,
|
|
|
**props
|
|
|
) -> "AlertDialogTrigger":
|
|
|
- """Create a new component instance.
|
|
|
-
|
|
|
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
|
|
|
- other UI libraries for common names, like Text and Button.
|
|
|
+ """Create a new RadixThemesTriggerComponent instance.
|
|
|
|
|
|
Args:
|
|
|
- *children: Child components.
|
|
|
- style: The style of the component.
|
|
|
- key: A unique key for the component.
|
|
|
- id: The id for the component.
|
|
|
- class_name: The class name for the component.
|
|
|
- autofocus: Whether the component should take the focus once the page is loaded
|
|
|
- custom_attrs: custom attribute
|
|
|
- **props: Component properties.
|
|
|
+ children: The children of the component.
|
|
|
+ props: The properties of the component.
|
|
|
|
|
|
Returns:
|
|
|
- A new component instance.
|
|
|
+ The new RadixThemesTriggerComponent instance.
|
|
|
"""
|
|
|
...
|
|
|
|
|
@@ -489,7 +480,7 @@ class AlertDialogDescription(RadixThemesComponent):
|
|
|
"""
|
|
|
...
|
|
|
|
|
|
-class AlertDialogAction(RadixThemesComponent):
|
|
|
+class AlertDialogAction(RadixThemesTriggerComponent):
|
|
|
@overload
|
|
|
@classmethod
|
|
|
def create( # type: ignore
|
|
@@ -548,27 +539,18 @@ class AlertDialogAction(RadixThemesComponent):
|
|
|
] = None,
|
|
|
**props
|
|
|
) -> "AlertDialogAction":
|
|
|
- """Create a new component instance.
|
|
|
-
|
|
|
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
|
|
|
- other UI libraries for common names, like Text and Button.
|
|
|
+ """Create a new RadixThemesTriggerComponent instance.
|
|
|
|
|
|
Args:
|
|
|
- *children: Child components.
|
|
|
- style: The style of the component.
|
|
|
- key: A unique key for the component.
|
|
|
- id: The id for the component.
|
|
|
- class_name: The class name for the component.
|
|
|
- autofocus: Whether the component should take the focus once the page is loaded
|
|
|
- custom_attrs: custom attribute
|
|
|
- **props: Component properties.
|
|
|
+ children: The children of the component.
|
|
|
+ props: The properties of the component.
|
|
|
|
|
|
Returns:
|
|
|
- A new component instance.
|
|
|
+ The new RadixThemesTriggerComponent instance.
|
|
|
"""
|
|
|
...
|
|
|
|
|
|
-class AlertDialogCancel(RadixThemesComponent):
|
|
|
+class AlertDialogCancel(RadixThemesTriggerComponent):
|
|
|
@overload
|
|
|
@classmethod
|
|
|
def create( # type: ignore
|
|
@@ -627,23 +609,14 @@ class AlertDialogCancel(RadixThemesComponent):
|
|
|
] = None,
|
|
|
**props
|
|
|
) -> "AlertDialogCancel":
|
|
|
- """Create a new component instance.
|
|
|
-
|
|
|
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
|
|
|
- other UI libraries for common names, like Text and Button.
|
|
|
+ """Create a new RadixThemesTriggerComponent instance.
|
|
|
|
|
|
Args:
|
|
|
- *children: Child components.
|
|
|
- style: The style of the component.
|
|
|
- key: A unique key for the component.
|
|
|
- id: The id for the component.
|
|
|
- class_name: The class name for the component.
|
|
|
- autofocus: Whether the component should take the focus once the page is loaded
|
|
|
- custom_attrs: custom attribute
|
|
|
- **props: Component properties.
|
|
|
+ children: The children of the component.
|
|
|
+ props: The properties of the component.
|
|
|
|
|
|
Returns:
|
|
|
- A new component instance.
|
|
|
+ The new RadixThemesTriggerComponent instance.
|
|
|
"""
|
|
|
...
|
|
|
|