[REF-1738] Remove radix-specific layout/margin props (#2442)
This commit is contained in:
parent
833507b73a
commit
e12b15f1fe
@ -4,12 +4,12 @@ from typing import Any, Dict, Literal
|
|||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import CommonMarginProps, LiteralSize, RadixThemesComponent
|
from ..base import LiteralSize, RadixThemesComponent
|
||||||
|
|
||||||
LiteralSwitchSize = Literal["1", "2", "3", "4"]
|
LiteralSwitchSize = Literal["1", "2", "3", "4"]
|
||||||
|
|
||||||
|
|
||||||
class AlertDialogRoot(CommonMarginProps, RadixThemesComponent):
|
class AlertDialogRoot(RadixThemesComponent):
|
||||||
"""Contains all the parts of the dialog."""
|
"""Contains all the parts of the dialog."""
|
||||||
|
|
||||||
tag = "AlertDialog.Root"
|
tag = "AlertDialog.Root"
|
||||||
@ -29,13 +29,13 @@ class AlertDialogRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class AlertDialogTrigger(CommonMarginProps, RadixThemesComponent):
|
class AlertDialogTrigger(RadixThemesComponent):
|
||||||
"""Wraps the control that will open the dialog."""
|
"""Wraps the control that will open the dialog."""
|
||||||
|
|
||||||
tag = "AlertDialog.Trigger"
|
tag = "AlertDialog.Trigger"
|
||||||
|
|
||||||
|
|
||||||
class AlertDialogContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
class AlertDialogContent(el.Div, RadixThemesComponent):
|
||||||
"""Contains the content of the dialog. This component is based on the div element."""
|
"""Contains the content of the dialog. This component is based on the div element."""
|
||||||
|
|
||||||
tag = "AlertDialog.Content"
|
tag = "AlertDialog.Content"
|
||||||
@ -60,7 +60,7 @@ class AlertDialogContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class AlertDialogTitle(CommonMarginProps, RadixThemesComponent):
|
class AlertDialogTitle(RadixThemesComponent):
|
||||||
"""An accessible title that is announced when the dialog is opened.
|
"""An accessible title that is announced when the dialog is opened.
|
||||||
This part is based on the Heading component with a pre-defined font size and
|
This part is based on the Heading component with a pre-defined font size and
|
||||||
leading trim on top.
|
leading trim on top.
|
||||||
@ -69,7 +69,7 @@ class AlertDialogTitle(CommonMarginProps, RadixThemesComponent):
|
|||||||
tag = "AlertDialog.Title"
|
tag = "AlertDialog.Title"
|
||||||
|
|
||||||
|
|
||||||
class AlertDialogDescription(CommonMarginProps, RadixThemesComponent):
|
class AlertDialogDescription(RadixThemesComponent):
|
||||||
"""An optional accessible description that is announced when the dialog is opened.
|
"""An optional accessible description that is announced when the dialog is opened.
|
||||||
This part is based on the Text component with a pre-defined font size.
|
This part is based on the Text component with a pre-defined font size.
|
||||||
"""
|
"""
|
||||||
@ -77,7 +77,7 @@ class AlertDialogDescription(CommonMarginProps, RadixThemesComponent):
|
|||||||
tag = "AlertDialog.Description"
|
tag = "AlertDialog.Description"
|
||||||
|
|
||||||
|
|
||||||
class AlertDialogAction(CommonMarginProps, RadixThemesComponent):
|
class AlertDialogAction(RadixThemesComponent):
|
||||||
"""Wraps the control that will close the dialog. This should be distinguished
|
"""Wraps the control that will close the dialog. This should be distinguished
|
||||||
visually from the Cancel control.
|
visually from the Cancel control.
|
||||||
"""
|
"""
|
||||||
@ -85,7 +85,7 @@ class AlertDialogAction(CommonMarginProps, RadixThemesComponent):
|
|||||||
tag = "AlertDialog.Action"
|
tag = "AlertDialog.Action"
|
||||||
|
|
||||||
|
|
||||||
class AlertDialogCancel(CommonMarginProps, RadixThemesComponent):
|
class AlertDialogCancel(RadixThemesComponent):
|
||||||
"""Wraps the control that will close the dialog. This should be distinguished
|
"""Wraps the control that will close the dialog. This should be distinguished
|
||||||
visually from the Action control.
|
visually from the Action control.
|
||||||
"""
|
"""
|
||||||
|
@ -10,11 +10,11 @@ from reflex.style import Style
|
|||||||
from typing import Any, Dict, Literal
|
from typing import Any, Dict, Literal
|
||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, LiteralSize, RadixThemesComponent
|
from ..base import LiteralSize, RadixThemesComponent
|
||||||
|
|
||||||
LiteralSwitchSize = Literal["1", "2", "3", "4"]
|
LiteralSwitchSize = Literal["1", "2", "3", "4"]
|
||||||
|
|
||||||
class AlertDialogRoot(CommonMarginProps, RadixThemesComponent):
|
class AlertDialogRoot(RadixThemesComponent):
|
||||||
def get_event_triggers(self) -> Dict[str, Any]: ...
|
def get_event_triggers(self) -> Dict[str, Any]: ...
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -85,48 +85,6 @@ class AlertDialogRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
open: Optional[Union[Var[bool], bool]] = None,
|
open: Optional[Union[Var[bool], bool]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -193,13 +151,6 @@ class AlertDialogRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
open: The controlled open state of the dialog.
|
open: The controlled open state of the dialog.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -213,7 +164,7 @@ class AlertDialogRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class AlertDialogTrigger(CommonMarginProps, RadixThemesComponent):
|
class AlertDialogTrigger(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -282,48 +233,6 @@ class AlertDialogTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -386,13 +295,6 @@ class AlertDialogTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -406,7 +308,7 @@ class AlertDialogTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class AlertDialogContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
class AlertDialogContent(el.Div, RadixThemesComponent):
|
||||||
def get_event_triggers(self) -> Dict[str, Any]: ...
|
def get_event_triggers(self) -> Dict[str, Any]: ...
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -526,48 +428,6 @@ class AlertDialogContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -658,13 +518,6 @@ class AlertDialogContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -678,7 +531,7 @@ class AlertDialogContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class AlertDialogTitle(CommonMarginProps, RadixThemesComponent):
|
class AlertDialogTitle(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -747,48 +600,6 @@ class AlertDialogTitle(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -851,13 +662,6 @@ class AlertDialogTitle(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -871,7 +675,7 @@ class AlertDialogTitle(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class AlertDialogDescription(CommonMarginProps, RadixThemesComponent):
|
class AlertDialogDescription(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -940,48 +744,6 @@ class AlertDialogDescription(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1044,13 +806,6 @@ class AlertDialogDescription(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -1064,7 +819,7 @@ class AlertDialogDescription(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class AlertDialogAction(CommonMarginProps, RadixThemesComponent):
|
class AlertDialogAction(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -1133,48 +888,6 @@ class AlertDialogAction(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1237,13 +950,6 @@ class AlertDialogAction(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -1257,7 +963,7 @@ class AlertDialogAction(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class AlertDialogCancel(CommonMarginProps, RadixThemesComponent):
|
class AlertDialogCancel(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -1326,48 +1032,6 @@ class AlertDialogCancel(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1430,13 +1094,6 @@ class AlertDialogCancel(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -3,13 +3,10 @@ from typing import Union
|
|||||||
|
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import RadixThemesComponent
|
||||||
CommonMarginProps,
|
|
||||||
RadixThemesComponent,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class AspectRatio(CommonMarginProps, RadixThemesComponent):
|
class AspectRatio(RadixThemesComponent):
|
||||||
"""Displays content with a desired ratio."""
|
"""Displays content with a desired ratio."""
|
||||||
|
|
||||||
tag = "AspectRatio"
|
tag = "AspectRatio"
|
||||||
|
@ -9,9 +9,9 @@ from reflex.event import EventChain, EventHandler, EventSpec
|
|||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from typing import Union
|
from typing import Union
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, RadixThemesComponent
|
from ..base import RadixThemesComponent
|
||||||
|
|
||||||
class AspectRatio(CommonMarginProps, RadixThemesComponent):
|
class AspectRatio(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -81,48 +81,6 @@ class AspectRatio(CommonMarginProps, RadixThemesComponent):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
ratio: Optional[Union[Var[Union[float, int]], Union[float, int]]] = None,
|
ratio: Optional[Union[Var[Union[float, int]], Union[float, int]]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -186,13 +144,6 @@ class AspectRatio(CommonMarginProps, RadixThemesComponent):
|
|||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
ratio: The ratio of the width to the height of the element
|
ratio: The ratio of the width to the height of the element
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -4,7 +4,6 @@ from typing import Literal
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
LiteralRadius,
|
LiteralRadius,
|
||||||
LiteralSize,
|
LiteralSize,
|
||||||
@ -12,7 +11,7 @@ from ..base import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class Avatar(CommonMarginProps, RadixThemesComponent):
|
class Avatar(RadixThemesComponent):
|
||||||
"""An image element with a fallback for representing the user."""
|
"""An image element with a fallback for representing the user."""
|
||||||
|
|
||||||
tag = "Avatar"
|
tag = "Avatar"
|
||||||
|
@ -9,15 +9,9 @@ from reflex.event import EventChain, EventHandler, EventSpec
|
|||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from typing import Literal
|
from typing import Literal
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import (
|
from ..base import LiteralAccentColor, LiteralRadius, LiteralSize, RadixThemesComponent
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
|
||||||
LiteralRadius,
|
|
||||||
LiteralSize,
|
|
||||||
RadixThemesComponent,
|
|
||||||
)
|
|
||||||
|
|
||||||
class Avatar(CommonMarginProps, RadixThemesComponent):
|
class Avatar(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -104,48 +98,6 @@ class Avatar(CommonMarginProps, RadixThemesComponent):
|
|||||||
] = None,
|
] = None,
|
||||||
src: Optional[Union[Var[str], str]] = None,
|
src: Optional[Union[Var[str], str]] = None,
|
||||||
fallback: Optional[Union[Var[str], str]] = None,
|
fallback: Optional[Union[Var[str], str]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -214,13 +166,6 @@ class Avatar(CommonMarginProps, RadixThemesComponent):
|
|||||||
radius: Override theme radius for avatar: "none" | "small" | "medium" | "large" | "full"
|
radius: Override theme radius for avatar: "none" | "small" | "medium" | "large" | "full"
|
||||||
src: The src of the avatar image
|
src: The src of the avatar image
|
||||||
fallback: The rendered fallback text
|
fallback: The rendered fallback text
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -5,14 +5,13 @@ from reflex import el
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
LiteralRadius,
|
LiteralRadius,
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class Badge(el.Span, CommonMarginProps, RadixThemesComponent):
|
class Badge(el.Span, RadixThemesComponent):
|
||||||
"""A stylized badge element."""
|
"""A stylized badge element."""
|
||||||
|
|
||||||
tag = "Badge"
|
tag = "Badge"
|
||||||
|
@ -10,14 +10,9 @@ from reflex.style import Style
|
|||||||
from typing import Literal
|
from typing import Literal
|
||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import (
|
from ..base import LiteralAccentColor, LiteralRadius, RadixThemesComponent
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
|
||||||
LiteralRadius,
|
|
||||||
RadixThemesComponent,
|
|
||||||
)
|
|
||||||
|
|
||||||
class Badge(el.Span, CommonMarginProps, RadixThemesComponent):
|
class Badge(el.Span, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -143,48 +138,6 @@ class Badge(el.Span, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -268,13 +221,6 @@ class Badge(el.Span, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -5,7 +5,6 @@ from reflex import el
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
LiteralRadius,
|
LiteralRadius,
|
||||||
LiteralVariant,
|
LiteralVariant,
|
||||||
@ -15,7 +14,7 @@ from ..base import (
|
|||||||
LiteralButtonSize = Literal["1", "2", "3", "4"]
|
LiteralButtonSize = Literal["1", "2", "3", "4"]
|
||||||
|
|
||||||
|
|
||||||
class Button(el.Button, CommonMarginProps, RadixThemesComponent):
|
class Button(el.Button, RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Button"
|
tag = "Button"
|
||||||
|
@ -11,7 +11,6 @@ from typing import Literal
|
|||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
LiteralRadius,
|
LiteralRadius,
|
||||||
LiteralVariant,
|
LiteralVariant,
|
||||||
@ -20,7 +19,7 @@ from ..base import (
|
|||||||
|
|
||||||
LiteralButtonSize = Literal["1", "2", "3", "4"]
|
LiteralButtonSize = Literal["1", "2", "3", "4"]
|
||||||
|
|
||||||
class Button(el.Button, CommonMarginProps, RadixThemesComponent):
|
class Button(el.Button, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -176,48 +175,6 @@ class Button(el.Button, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -313,13 +270,6 @@ class Button(el.Button, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -8,7 +8,6 @@ from reflex.components.radix.themes.components.icons import Icon
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
@ -16,7 +15,7 @@ from ..base import (
|
|||||||
CalloutVariant = Literal["soft", "surface", "outline"]
|
CalloutVariant = Literal["soft", "surface", "outline"]
|
||||||
|
|
||||||
|
|
||||||
class CalloutRoot(el.Div, CommonMarginProps, RadixThemesComponent):
|
class CalloutRoot(el.Div, RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Callout.Root"
|
tag = "Callout.Root"
|
||||||
@ -37,13 +36,13 @@ class CalloutRoot(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
high_contrast: Var[bool]
|
high_contrast: Var[bool]
|
||||||
|
|
||||||
|
|
||||||
class CalloutIcon(el.Div, CommonMarginProps, RadixThemesComponent):
|
class CalloutIcon(el.Div, RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Callout.Icon"
|
tag = "Callout.Icon"
|
||||||
|
|
||||||
|
|
||||||
class CalloutText(el.P, CommonMarginProps, RadixThemesComponent):
|
class CalloutText(el.P, RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Callout.Text"
|
tag = "Callout.Text"
|
||||||
|
@ -13,11 +13,11 @@ from reflex import el
|
|||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.components.radix.themes.components.icons import Icon
|
from reflex.components.radix.themes.components.icons import Icon
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent
|
from ..base import LiteralAccentColor, RadixThemesComponent
|
||||||
|
|
||||||
CalloutVariant = Literal["soft", "surface", "outline"]
|
CalloutVariant = Literal["soft", "surface", "outline"]
|
||||||
|
|
||||||
class CalloutRoot(el.Div, CommonMarginProps, RadixThemesComponent):
|
class CalloutRoot(el.Div, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -140,48 +140,6 @@ class CalloutRoot(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -265,13 +223,6 @@ class CalloutRoot(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -285,7 +236,7 @@ class CalloutRoot(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class CalloutIcon(el.Div, CommonMarginProps, RadixThemesComponent):
|
class CalloutIcon(el.Div, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -397,48 +348,6 @@ class CalloutIcon(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -518,13 +427,6 @@ class CalloutIcon(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -538,7 +440,7 @@ class CalloutIcon(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class CalloutText(el.P, CommonMarginProps, RadixThemesComponent):
|
class CalloutText(el.P, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -650,48 +552,6 @@ class CalloutText(el.P, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -771,13 +631,6 @@ class CalloutText(el.P, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -915,48 +768,6 @@ class Callout(CalloutRoot):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1038,13 +849,6 @@ class Callout(CalloutRoot):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -5,12 +5,11 @@ from reflex import el
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class Card(el.Div, CommonMarginProps, RadixThemesComponent):
|
class Card(el.Div, RadixThemesComponent):
|
||||||
"""Container that groups related content and actions."""
|
"""Container that groups related content and actions."""
|
||||||
|
|
||||||
tag = "Card"
|
tag = "Card"
|
||||||
|
@ -10,9 +10,9 @@ from reflex.style import Style
|
|||||||
from typing import Literal
|
from typing import Literal
|
||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, RadixThemesComponent
|
from ..base import RadixThemesComponent
|
||||||
|
|
||||||
class Card(el.Div, CommonMarginProps, RadixThemesComponent):
|
class Card(el.Div, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -136,48 +136,6 @@ class Card(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -260,13 +218,6 @@ class Card(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -7,7 +7,6 @@ from reflex.components.radix.themes.typography.text import Text
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
LiteralSize,
|
LiteralSize,
|
||||||
LiteralVariant,
|
LiteralVariant,
|
||||||
@ -17,7 +16,7 @@ from ..base import (
|
|||||||
LiteralCheckboxSize = Literal["1", "2", "3"]
|
LiteralCheckboxSize = Literal["1", "2", "3"]
|
||||||
|
|
||||||
|
|
||||||
class Checkbox(CommonMarginProps, RadixThemesComponent):
|
class Checkbox(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Checkbox"
|
tag = "Checkbox"
|
||||||
|
@ -12,17 +12,11 @@ from reflex.components.component import Component
|
|||||||
from reflex.components.radix.themes.layout.flex import Flex
|
from reflex.components.radix.themes.layout.flex import Flex
|
||||||
from reflex.components.radix.themes.typography.text import Text
|
from reflex.components.radix.themes.typography.text import Text
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import (
|
from ..base import LiteralAccentColor, LiteralSize, LiteralVariant, RadixThemesComponent
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
|
||||||
LiteralSize,
|
|
||||||
LiteralVariant,
|
|
||||||
RadixThemesComponent,
|
|
||||||
)
|
|
||||||
|
|
||||||
LiteralCheckboxSize = Literal["1", "2", "3"]
|
LiteralCheckboxSize = Literal["1", "2", "3"]
|
||||||
|
|
||||||
class Checkbox(CommonMarginProps, RadixThemesComponent):
|
class Checkbox(RadixThemesComponent):
|
||||||
def get_event_triggers(self) -> Dict[str, Any]: ...
|
def get_event_triggers(self) -> Dict[str, Any]: ...
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -109,48 +103,6 @@ class Checkbox(CommonMarginProps, RadixThemesComponent):
|
|||||||
required: Optional[Union[Var[bool], bool]] = None,
|
required: Optional[Union[Var[bool], bool]] = None,
|
||||||
name: Optional[Union[Var[str], str]] = None,
|
name: Optional[Union[Var[str], str]] = None,
|
||||||
value: Optional[Union[Var[str], str]] = None,
|
value: Optional[Union[Var[str], str]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -226,13 +178,6 @@ class Checkbox(CommonMarginProps, RadixThemesComponent):
|
|||||||
required: Whether the checkbox is required
|
required: Whether the checkbox is required
|
||||||
name: The name of the checkbox control when submitting the form.
|
name: The name of the checkbox control when submitting the form.
|
||||||
value: The value of the checkbox control when submitting the form.
|
value: The value of the checkbox control when submitting the form.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -338,48 +283,6 @@ class HighLevelCheckbox(Checkbox):
|
|||||||
required: Optional[Union[Var[bool], bool]] = None,
|
required: Optional[Union[Var[bool], bool]] = None,
|
||||||
name: Optional[Union[Var[str], str]] = None,
|
name: Optional[Union[Var[str], str]] = None,
|
||||||
value: Optional[Union[Var[str], str]] = None,
|
value: Optional[Union[Var[str], str]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -453,13 +356,6 @@ class HighLevelCheckbox(Checkbox):
|
|||||||
required: Whether the checkbox is required
|
required: Whether the checkbox is required
|
||||||
name: The name of the checkbox control when submitting the form.
|
name: The name of the checkbox control when submitting the form.
|
||||||
value: The value of the checkbox control when submitting the form.
|
value: The value of the checkbox control when submitting the form.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -4,13 +4,12 @@ from typing import Any, Dict, Literal
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class ContextMenuRoot(CommonMarginProps, RadixThemesComponent):
|
class ContextMenuRoot(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "ContextMenu.Root"
|
tag = "ContextMenu.Root"
|
||||||
@ -30,7 +29,7 @@ class ContextMenuRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class ContextMenuTrigger(CommonMarginProps, RadixThemesComponent):
|
class ContextMenuTrigger(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "ContextMenu.Trigger"
|
tag = "ContextMenu.Trigger"
|
||||||
@ -39,7 +38,7 @@ class ContextMenuTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
disabled: Var[bool]
|
disabled: Var[bool]
|
||||||
|
|
||||||
|
|
||||||
class ContextMenuContent(CommonMarginProps, RadixThemesComponent):
|
class ContextMenuContent(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "ContextMenu.Content"
|
tag = "ContextMenu.Content"
|
||||||
@ -78,13 +77,13 @@ class ContextMenuContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class ContextMenuSub(CommonMarginProps, RadixThemesComponent):
|
class ContextMenuSub(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "ContextMenu.Sub"
|
tag = "ContextMenu.Sub"
|
||||||
|
|
||||||
|
|
||||||
class ContextMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
|
class ContextMenuSubTrigger(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "ContextMenu.SubTrigger"
|
tag = "ContextMenu.SubTrigger"
|
||||||
@ -93,7 +92,7 @@ class ContextMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
disabled: Var[bool]
|
disabled: Var[bool]
|
||||||
|
|
||||||
|
|
||||||
class ContextMenuSubContent(CommonMarginProps, RadixThemesComponent):
|
class ContextMenuSubContent(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "ContextMenu.SubContent"
|
tag = "ContextMenu.SubContent"
|
||||||
@ -116,7 +115,7 @@ class ContextMenuSubContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class ContextMenuItem(CommonMarginProps, RadixThemesComponent):
|
class ContextMenuItem(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "ContextMenu.Item"
|
tag = "ContextMenu.Item"
|
||||||
@ -128,7 +127,7 @@ class ContextMenuItem(CommonMarginProps, RadixThemesComponent):
|
|||||||
shortcut: Var[str]
|
shortcut: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class ContextMenuSeparator(CommonMarginProps, RadixThemesComponent):
|
class ContextMenuSeparator(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "ContextMenu.Separator"
|
tag = "ContextMenu.Separator"
|
||||||
|
@ -9,9 +9,9 @@ from reflex.event import EventChain, EventHandler, EventSpec
|
|||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from typing import Any, Dict, Literal
|
from typing import Any, Dict, Literal
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent
|
from ..base import LiteralAccentColor, RadixThemesComponent
|
||||||
|
|
||||||
class ContextMenuRoot(CommonMarginProps, RadixThemesComponent):
|
class ContextMenuRoot(RadixThemesComponent):
|
||||||
def get_event_triggers(self) -> Dict[str, Any]: ...
|
def get_event_triggers(self) -> Dict[str, Any]: ...
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -82,48 +82,6 @@ class ContextMenuRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
modal: Optional[Union[Var[bool], bool]] = None,
|
modal: Optional[Union[Var[bool], bool]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -190,13 +148,6 @@ class ContextMenuRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
modal: The modality of the context menu. When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers.
|
modal: The modality of the context menu. When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -210,7 +161,7 @@ class ContextMenuRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class ContextMenuTrigger(CommonMarginProps, RadixThemesComponent):
|
class ContextMenuTrigger(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -280,48 +231,6 @@ class ContextMenuTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
disabled: Optional[Union[Var[bool], bool]] = None,
|
disabled: Optional[Union[Var[bool], bool]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -385,13 +294,6 @@ class ContextMenuTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
disabled: Whether the trigger is disabled
|
disabled: Whether the trigger is disabled
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -405,7 +307,7 @@ class ContextMenuTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class ContextMenuContent(CommonMarginProps, RadixThemesComponent):
|
class ContextMenuContent(RadixThemesComponent):
|
||||||
def get_event_triggers(self) -> Dict[str, Any]: ...
|
def get_event_triggers(self) -> Dict[str, Any]: ...
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -482,48 +384,6 @@ class ContextMenuContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
||||||
align_offset: Optional[Union[Var[int], int]] = None,
|
align_offset: Optional[Union[Var[int], int]] = None,
|
||||||
avoid_collisions: Optional[Union[Var[bool], bool]] = None,
|
avoid_collisions: Optional[Union[Var[bool], bool]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -606,13 +466,6 @@ class ContextMenuContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
high_contrast: Whether to render the button with higher contrast color against background
|
high_contrast: Whether to render the button with higher contrast color against background
|
||||||
align_offset: The vertical distance in pixels from the anchor.
|
align_offset: The vertical distance in pixels from the anchor.
|
||||||
avoid_collisions: When true, overrides the side andalign preferences to prevent collisions with boundary edges.
|
avoid_collisions: When true, overrides the side andalign preferences to prevent collisions with boundary edges.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -626,7 +479,7 @@ class ContextMenuContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class ContextMenuSub(CommonMarginProps, RadixThemesComponent):
|
class ContextMenuSub(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -695,48 +548,6 @@ class ContextMenuSub(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -799,13 +610,6 @@ class ContextMenuSub(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -819,7 +623,7 @@ class ContextMenuSub(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class ContextMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
|
class ContextMenuSubTrigger(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -889,48 +693,6 @@ class ContextMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
disabled: Optional[Union[Var[bool], bool]] = None,
|
disabled: Optional[Union[Var[bool], bool]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -994,13 +756,6 @@ class ContextMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
disabled: Whether the trigger is disabled
|
disabled: Whether the trigger is disabled
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -1014,7 +769,7 @@ class ContextMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class ContextMenuSubContent(CommonMarginProps, RadixThemesComponent):
|
class ContextMenuSubContent(RadixThemesComponent):
|
||||||
def get_event_triggers(self) -> Dict[str, Any]: ...
|
def get_event_triggers(self) -> Dict[str, Any]: ...
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -1085,48 +840,6 @@ class ContextMenuSubContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
loop: Optional[Union[Var[bool], bool]] = None,
|
loop: Optional[Union[Var[bool], bool]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1202,13 +915,6 @@ class ContextMenuSubContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
loop: When true, keyboard navigation will loop from last item to first, and vice versa.
|
loop: When true, keyboard navigation will loop from last item to first, and vice versa.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -1222,7 +928,7 @@ class ContextMenuSubContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class ContextMenuItem(CommonMarginProps, RadixThemesComponent):
|
class ContextMenuItem(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -1292,48 +998,6 @@ class ContextMenuItem(CommonMarginProps, RadixThemesComponent):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
shortcut: Optional[Union[Var[str], str]] = None,
|
shortcut: Optional[Union[Var[str], str]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1397,13 +1061,6 @@ class ContextMenuItem(CommonMarginProps, RadixThemesComponent):
|
|||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
shortcut: Shortcut to render a menu item as a link
|
shortcut: Shortcut to render a menu item as a link
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -1417,7 +1074,7 @@ class ContextMenuItem(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class ContextMenuSeparator(CommonMarginProps, RadixThemesComponent):
|
class ContextMenuSeparator(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -1486,48 +1143,6 @@ class ContextMenuSeparator(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1590,13 +1205,6 @@ class ContextMenuSeparator(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -5,12 +5,11 @@ from reflex import el
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class DialogRoot(CommonMarginProps, RadixThemesComponent):
|
class DialogRoot(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Dialog.Root"
|
tag = "Dialog.Root"
|
||||||
@ -30,19 +29,19 @@ class DialogRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class DialogTrigger(CommonMarginProps, RadixThemesComponent):
|
class DialogTrigger(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Dialog.Trigger"
|
tag = "Dialog.Trigger"
|
||||||
|
|
||||||
|
|
||||||
class DialogTitle(CommonMarginProps, RadixThemesComponent):
|
class DialogTitle(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Dialog.Title"
|
tag = "Dialog.Title"
|
||||||
|
|
||||||
|
|
||||||
class DialogContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
class DialogContent(el.Div, RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Dialog.Content"
|
tag = "Dialog.Content"
|
||||||
@ -66,13 +65,13 @@ class DialogContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class DialogDescription(CommonMarginProps, RadixThemesComponent):
|
class DialogDescription(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Dialog.Description"
|
tag = "Dialog.Description"
|
||||||
|
|
||||||
|
|
||||||
class DialogClose(CommonMarginProps, RadixThemesComponent):
|
class DialogClose(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Dialog.Close"
|
tag = "Dialog.Close"
|
||||||
|
@ -10,9 +10,9 @@ from reflex.style import Style
|
|||||||
from typing import Any, Dict, Literal
|
from typing import Any, Dict, Literal
|
||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, RadixThemesComponent
|
from ..base import RadixThemesComponent
|
||||||
|
|
||||||
class DialogRoot(CommonMarginProps, RadixThemesComponent):
|
class DialogRoot(RadixThemesComponent):
|
||||||
def get_event_triggers(self) -> Dict[str, Any]: ...
|
def get_event_triggers(self) -> Dict[str, Any]: ...
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -83,48 +83,6 @@ class DialogRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
open: Optional[Union[Var[bool], bool]] = None,
|
open: Optional[Union[Var[bool], bool]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -191,13 +149,6 @@ class DialogRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
open: The controlled open state of the dialog.
|
open: The controlled open state of the dialog.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -211,7 +162,7 @@ class DialogRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class DialogTrigger(CommonMarginProps, RadixThemesComponent):
|
class DialogTrigger(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -280,48 +231,6 @@ class DialogTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -384,13 +293,6 @@ class DialogTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -404,7 +306,7 @@ class DialogTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class DialogTitle(CommonMarginProps, RadixThemesComponent):
|
class DialogTitle(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -473,48 +375,6 @@ class DialogTitle(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -577,13 +437,6 @@ class DialogTitle(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -597,7 +450,7 @@ class DialogTitle(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class DialogContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
class DialogContent(el.Div, RadixThemesComponent):
|
||||||
def get_event_triggers(self) -> Dict[str, Any]: ...
|
def get_event_triggers(self) -> Dict[str, Any]: ...
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -711,48 +564,6 @@ class DialogContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -848,13 +659,6 @@ class DialogContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -868,7 +672,7 @@ class DialogContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class DialogDescription(CommonMarginProps, RadixThemesComponent):
|
class DialogDescription(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -937,48 +741,6 @@ class DialogDescription(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1041,13 +803,6 @@ class DialogDescription(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -1061,7 +816,7 @@ class DialogDescription(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class DialogClose(CommonMarginProps, RadixThemesComponent):
|
class DialogClose(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -1130,48 +885,6 @@ class DialogClose(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1234,13 +947,6 @@ class DialogClose(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -4,13 +4,12 @@ from typing import Any, Dict, Literal
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class DropdownMenuRoot(CommonMarginProps, RadixThemesComponent):
|
class DropdownMenuRoot(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "DropdownMenu.Root"
|
tag = "DropdownMenu.Root"
|
||||||
@ -33,13 +32,13 @@ class DropdownMenuRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class DropdownMenuTrigger(CommonMarginProps, RadixThemesComponent):
|
class DropdownMenuTrigger(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "DropdownMenu.Trigger"
|
tag = "DropdownMenu.Trigger"
|
||||||
|
|
||||||
|
|
||||||
class DropdownMenuContent(CommonMarginProps, RadixThemesComponent):
|
class DropdownMenuContent(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "DropdownMenu.Content"
|
tag = "DropdownMenu.Content"
|
||||||
@ -59,19 +58,19 @@ class DropdownMenuContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class DropdownMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
|
class DropdownMenuSubTrigger(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "DropdownMenu.SubTrigger"
|
tag = "DropdownMenu.SubTrigger"
|
||||||
|
|
||||||
|
|
||||||
class DropdownMenuSub(CommonMarginProps, RadixThemesComponent):
|
class DropdownMenuSub(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "DropdownMenu.Sub"
|
tag = "DropdownMenu.Sub"
|
||||||
|
|
||||||
|
|
||||||
class DropdownMenuSubContent(CommonMarginProps, RadixThemesComponent):
|
class DropdownMenuSubContent(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "DropdownMenu.SubContent"
|
tag = "DropdownMenu.SubContent"
|
||||||
@ -89,7 +88,7 @@ class DropdownMenuSubContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
high_contrast: Var[bool]
|
high_contrast: Var[bool]
|
||||||
|
|
||||||
|
|
||||||
class DropdownMenuItem(CommonMarginProps, RadixThemesComponent):
|
class DropdownMenuItem(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "DropdownMenu.Item"
|
tag = "DropdownMenu.Item"
|
||||||
@ -101,7 +100,7 @@ class DropdownMenuItem(CommonMarginProps, RadixThemesComponent):
|
|||||||
shortcut: Var[str]
|
shortcut: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class DropdownMenuSeparator(CommonMarginProps, RadixThemesComponent):
|
class DropdownMenuSeparator(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "DropdownMenu.Separator"
|
tag = "DropdownMenu.Separator"
|
||||||
|
@ -9,9 +9,9 @@ from reflex.event import EventChain, EventHandler, EventSpec
|
|||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from typing import Any, Dict, Literal
|
from typing import Any, Dict, Literal
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent
|
from ..base import LiteralAccentColor, RadixThemesComponent
|
||||||
|
|
||||||
class DropdownMenuRoot(CommonMarginProps, RadixThemesComponent):
|
class DropdownMenuRoot(RadixThemesComponent):
|
||||||
def get_event_triggers(self) -> Dict[str, Any]: ...
|
def get_event_triggers(self) -> Dict[str, Any]: ...
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -83,48 +83,6 @@ class DropdownMenuRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
] = None,
|
] = None,
|
||||||
open: Optional[Union[Var[bool], bool]] = None,
|
open: Optional[Union[Var[bool], bool]] = None,
|
||||||
modal: Optional[Union[Var[bool], bool]] = None,
|
modal: Optional[Union[Var[bool], bool]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -192,13 +150,6 @@ class DropdownMenuRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
open: The controlled open state of the dropdown menu. Must be used in conjunction with onOpenChange.
|
open: The controlled open state of the dropdown menu. Must be used in conjunction with onOpenChange.
|
||||||
modal: The modality of the dropdown menu. When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers.
|
modal: The modality of the dropdown menu. When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -212,7 +163,7 @@ class DropdownMenuRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class DropdownMenuTrigger(CommonMarginProps, RadixThemesComponent):
|
class DropdownMenuTrigger(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -281,48 +232,6 @@ class DropdownMenuTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -385,13 +294,6 @@ class DropdownMenuTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -405,7 +307,7 @@ class DropdownMenuTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class DropdownMenuContent(CommonMarginProps, RadixThemesComponent):
|
class DropdownMenuContent(RadixThemesComponent):
|
||||||
def get_event_triggers(self) -> Dict[str, Any]: ...
|
def get_event_triggers(self) -> Dict[str, Any]: ...
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -475,48 +377,6 @@ class DropdownMenuContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -591,13 +451,6 @@ class DropdownMenuContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -611,7 +464,7 @@ class DropdownMenuContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class DropdownMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
|
class DropdownMenuSubTrigger(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -680,48 +533,6 @@ class DropdownMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -784,13 +595,6 @@ class DropdownMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -804,7 +608,7 @@ class DropdownMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class DropdownMenuSub(CommonMarginProps, RadixThemesComponent):
|
class DropdownMenuSub(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -873,48 +677,6 @@ class DropdownMenuSub(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -977,13 +739,6 @@ class DropdownMenuSub(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -997,7 +752,7 @@ class DropdownMenuSub(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class DropdownMenuSubContent(CommonMarginProps, RadixThemesComponent):
|
class DropdownMenuSubContent(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -1071,48 +826,6 @@ class DropdownMenuSubContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
Union[Var[Literal["solid", "soft"]], Literal["solid", "soft"]]
|
Union[Var[Literal["solid", "soft"]], Literal["solid", "soft"]]
|
||||||
] = None,
|
] = None,
|
||||||
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1178,13 +891,6 @@ class DropdownMenuSubContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
size: Button size "1" - "4"
|
size: Button size "1" - "4"
|
||||||
variant: Variant of button: "solid" | "soft" | "outline" | "ghost"
|
variant: Variant of button: "solid" | "soft" | "outline" | "ghost"
|
||||||
high_contrast: Whether to render the button with higher contrast color against background
|
high_contrast: Whether to render the button with higher contrast color against background
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -1198,7 +904,7 @@ class DropdownMenuSubContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class DropdownMenuItem(CommonMarginProps, RadixThemesComponent):
|
class DropdownMenuItem(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -1268,48 +974,6 @@ class DropdownMenuItem(CommonMarginProps, RadixThemesComponent):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
shortcut: Optional[Union[Var[str], str]] = None,
|
shortcut: Optional[Union[Var[str], str]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1373,13 +1037,6 @@ class DropdownMenuItem(CommonMarginProps, RadixThemesComponent):
|
|||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
shortcut: Shortcut to render a menu item as a link
|
shortcut: Shortcut to render a menu item as a link
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -1393,7 +1050,7 @@ class DropdownMenuItem(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class DropdownMenuSeparator(CommonMarginProps, RadixThemesComponent):
|
class DropdownMenuSeparator(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -1462,48 +1119,6 @@ class DropdownMenuSeparator(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1566,13 +1181,6 @@ class DropdownMenuSeparator(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -5,12 +5,11 @@ from reflex import el
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class HoverCardRoot(CommonMarginProps, RadixThemesComponent):
|
class HoverCardRoot(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "HoverCard.Root"
|
tag = "HoverCard.Root"
|
||||||
@ -39,13 +38,13 @@ class HoverCardRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class HoverCardTrigger(CommonMarginProps, RadixThemesComponent):
|
class HoverCardTrigger(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "HoverCard.Trigger"
|
tag = "HoverCard.Trigger"
|
||||||
|
|
||||||
|
|
||||||
class HoverCardContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
class HoverCardContent(el.Div, RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "HoverCard.Content"
|
tag = "HoverCard.Content"
|
||||||
|
@ -10,9 +10,9 @@ from reflex.style import Style
|
|||||||
from typing import Any, Dict, Literal
|
from typing import Any, Dict, Literal
|
||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, RadixThemesComponent
|
from ..base import RadixThemesComponent
|
||||||
|
|
||||||
class HoverCardRoot(CommonMarginProps, RadixThemesComponent):
|
class HoverCardRoot(RadixThemesComponent):
|
||||||
def get_event_triggers(self) -> Dict[str, Any]: ...
|
def get_event_triggers(self) -> Dict[str, Any]: ...
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -86,48 +86,6 @@ class HoverCardRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
open: Optional[Union[Var[bool], bool]] = None,
|
open: Optional[Union[Var[bool], bool]] = None,
|
||||||
open_delay: Optional[Union[Var[int], int]] = None,
|
open_delay: Optional[Union[Var[int], int]] = None,
|
||||||
close_delay: Optional[Union[Var[int], int]] = None,
|
close_delay: Optional[Union[Var[int], int]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -197,13 +155,6 @@ class HoverCardRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
open: The controlled open state of the hover card. Must be used in conjunction with onOpenChange.
|
open: The controlled open state of the hover card. Must be used in conjunction with onOpenChange.
|
||||||
open_delay: The duration from when the mouse enters the trigger until the hover card opens.
|
open_delay: The duration from when the mouse enters the trigger until the hover card opens.
|
||||||
close_delay: The duration from when the mouse leaves the trigger until the hover card closes.
|
close_delay: The duration from when the mouse leaves the trigger until the hover card closes.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -217,7 +168,7 @@ class HoverCardRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class HoverCardTrigger(CommonMarginProps, RadixThemesComponent):
|
class HoverCardTrigger(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -286,48 +237,6 @@ class HoverCardTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -390,13 +299,6 @@ class HoverCardTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -410,7 +312,7 @@ class HoverCardTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class HoverCardContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
class HoverCardContent(el.Div, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -536,48 +438,6 @@ class HoverCardContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -661,13 +521,6 @@ class HoverCardContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -5,7 +5,6 @@ from reflex import el
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
LiteralRadius,
|
LiteralRadius,
|
||||||
LiteralVariant,
|
LiteralVariant,
|
||||||
@ -15,7 +14,7 @@ from ..base import (
|
|||||||
LiteralButtonSize = Literal["1", "2", "3", "4"]
|
LiteralButtonSize = Literal["1", "2", "3", "4"]
|
||||||
|
|
||||||
|
|
||||||
class IconButton(el.Button, CommonMarginProps, RadixThemesComponent):
|
class IconButton(el.Button, RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Button"
|
tag = "Button"
|
||||||
|
@ -11,7 +11,6 @@ from typing import Literal
|
|||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
LiteralRadius,
|
LiteralRadius,
|
||||||
LiteralVariant,
|
LiteralVariant,
|
||||||
@ -20,7 +19,7 @@ from ..base import (
|
|||||||
|
|
||||||
LiteralButtonSize = Literal["1", "2", "3", "4"]
|
LiteralButtonSize = Literal["1", "2", "3", "4"]
|
||||||
|
|
||||||
class IconButton(el.Button, CommonMarginProps, RadixThemesComponent):
|
class IconButton(el.Button, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -176,48 +175,6 @@ class IconButton(el.Button, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -313,13 +270,6 @@ class IconButton(el.Button, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -5,14 +5,13 @@ from reflex import el
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
|
|
||||||
LiteralButtonSize = Literal["1", "2", "3", "4"]
|
LiteralButtonSize = Literal["1", "2", "3", "4"]
|
||||||
|
|
||||||
|
|
||||||
class Inset(el.Div, CommonMarginProps, RadixThemesComponent):
|
class Inset(el.Div, RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Inset"
|
tag = "Inset"
|
||||||
|
@ -10,11 +10,11 @@ from reflex.style import Style
|
|||||||
from typing import Literal, Union
|
from typing import Literal, Union
|
||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, RadixThemesComponent
|
from ..base import RadixThemesComponent
|
||||||
|
|
||||||
LiteralButtonSize = Literal["1", "2", "3", "4"]
|
LiteralButtonSize = Literal["1", "2", "3", "4"]
|
||||||
|
|
||||||
class Inset(el.Div, CommonMarginProps, RadixThemesComponent):
|
class Inset(el.Div, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -145,48 +145,6 @@ class Inset(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -275,13 +233,6 @@ class Inset(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -5,12 +5,11 @@ from reflex import el
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class PopoverRoot(CommonMarginProps, RadixThemesComponent):
|
class PopoverRoot(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Popover.Root"
|
tag = "Popover.Root"
|
||||||
@ -33,13 +32,13 @@ class PopoverRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class PopoverTrigger(CommonMarginProps, RadixThemesComponent):
|
class PopoverTrigger(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Popover.Trigger"
|
tag = "Popover.Trigger"
|
||||||
|
|
||||||
|
|
||||||
class PopoverContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
class PopoverContent(el.Div, RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Popover.Content"
|
tag = "Popover.Content"
|
||||||
@ -79,7 +78,7 @@ class PopoverContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class PopoverClose(CommonMarginProps, RadixThemesComponent):
|
class PopoverClose(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Popover.Close"
|
tag = "Popover.Close"
|
||||||
|
@ -10,9 +10,9 @@ from reflex.style import Style
|
|||||||
from typing import Any, Dict, Literal
|
from typing import Any, Dict, Literal
|
||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, RadixThemesComponent
|
from ..base import RadixThemesComponent
|
||||||
|
|
||||||
class PopoverRoot(CommonMarginProps, RadixThemesComponent):
|
class PopoverRoot(RadixThemesComponent):
|
||||||
def get_event_triggers(self) -> Dict[str, Any]: ...
|
def get_event_triggers(self) -> Dict[str, Any]: ...
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -84,48 +84,6 @@ class PopoverRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
] = None,
|
] = None,
|
||||||
open: Optional[Union[Var[bool], bool]] = None,
|
open: Optional[Union[Var[bool], bool]] = None,
|
||||||
modal: Optional[Union[Var[bool], bool]] = None,
|
modal: Optional[Union[Var[bool], bool]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -193,13 +151,6 @@ class PopoverRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
open: The controlled open state of the popover.
|
open: The controlled open state of the popover.
|
||||||
modal: The modality of the popover. When set to true, interaction with outside elements will be disabled and only popover content will be visible to screen readers.
|
modal: The modality of the popover. When set to true, interaction with outside elements will be disabled and only popover content will be visible to screen readers.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -213,7 +164,7 @@ class PopoverRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class PopoverTrigger(CommonMarginProps, RadixThemesComponent):
|
class PopoverTrigger(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -282,48 +233,6 @@ class PopoverTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -386,13 +295,6 @@ class PopoverTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -406,7 +308,7 @@ class PopoverTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class PopoverContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
class PopoverContent(el.Div, RadixThemesComponent):
|
||||||
def get_event_triggers(self) -> Dict[str, Any]: ...
|
def get_event_triggers(self) -> Dict[str, Any]: ...
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -535,48 +437,6 @@ class PopoverContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -680,13 +540,6 @@ class PopoverContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -700,7 +553,7 @@ class PopoverContent(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class PopoverClose(CommonMarginProps, RadixThemesComponent):
|
class PopoverClose(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -769,48 +622,6 @@ class PopoverClose(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -873,13 +684,6 @@ class PopoverClose(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -8,7 +8,6 @@ from reflex.components.radix.themes.typography.text import Text
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
LiteralSize,
|
LiteralSize,
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
@ -17,7 +16,7 @@ from ..base import (
|
|||||||
LiteralFlexDirection = Literal["row", "column", "row-reverse", "column-reverse"]
|
LiteralFlexDirection = Literal["row", "column", "row-reverse", "column-reverse"]
|
||||||
|
|
||||||
|
|
||||||
class RadioGroupRoot(CommonMarginProps, RadixThemesComponent):
|
class RadioGroupRoot(RadixThemesComponent):
|
||||||
"""A set of interactive radio buttons where only one can be selected at a time."""
|
"""A set of interactive radio buttons where only one can be selected at a time."""
|
||||||
|
|
||||||
tag = "RadioGroup.Root"
|
tag = "RadioGroup.Root"
|
||||||
@ -67,7 +66,7 @@ class RadioGroupRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class RadioGroupItem(CommonMarginProps, RadixThemesComponent):
|
class RadioGroupItem(RadixThemesComponent):
|
||||||
"""An item in the group that can be checked."""
|
"""An item in the group that can be checked."""
|
||||||
|
|
||||||
tag = "RadioGroup.Item"
|
tag = "RadioGroup.Item"
|
||||||
|
@ -13,16 +13,11 @@ from reflex.components.component import Component
|
|||||||
from reflex.components.radix.themes.layout.flex import Flex
|
from reflex.components.radix.themes.layout.flex import Flex
|
||||||
from reflex.components.radix.themes.typography.text import Text
|
from reflex.components.radix.themes.typography.text import Text
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import (
|
from ..base import LiteralAccentColor, LiteralSize, RadixThemesComponent
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
|
||||||
LiteralSize,
|
|
||||||
RadixThemesComponent,
|
|
||||||
)
|
|
||||||
|
|
||||||
LiteralFlexDirection = Literal["row", "column", "row-reverse", "column-reverse"]
|
LiteralFlexDirection = Literal["row", "column", "row-reverse", "column-reverse"]
|
||||||
|
|
||||||
class RadioGroupRoot(CommonMarginProps, RadixThemesComponent):
|
class RadioGroupRoot(RadixThemesComponent):
|
||||||
def get_event_triggers(self) -> Dict[str, Any]: ...
|
def get_event_triggers(self) -> Dict[str, Any]: ...
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -114,48 +109,6 @@ class RadioGroupRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
loop: Optional[Union[Var[bool], bool]] = None,
|
loop: Optional[Union[Var[bool], bool]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -231,13 +184,6 @@ class RadioGroupRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
required: Whether the radio group is required
|
required: Whether the radio group is required
|
||||||
orientation: The orientation of the component.
|
orientation: The orientation of the component.
|
||||||
loop: When true, keyboard navigation will loop from last item to first, and vice versa.
|
loop: When true, keyboard navigation will loop from last item to first, and vice versa.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -251,7 +197,7 @@ class RadioGroupRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class RadioGroupItem(CommonMarginProps, RadixThemesComponent):
|
class RadioGroupItem(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -323,48 +269,6 @@ class RadioGroupItem(CommonMarginProps, RadixThemesComponent):
|
|||||||
value: Optional[Union[Var[str], str]] = None,
|
value: Optional[Union[Var[str], str]] = None,
|
||||||
disabled: Optional[Union[Var[bool], bool]] = None,
|
disabled: Optional[Union[Var[bool], bool]] = None,
|
||||||
required: Optional[Union[Var[bool], bool]] = None,
|
required: Optional[Union[Var[bool], bool]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -430,13 +334,6 @@ class RadioGroupItem(CommonMarginProps, RadixThemesComponent):
|
|||||||
value: The value of the radio item to check. Should be used in conjunction with on_value_change.
|
value: The value of the radio item to check. Should be used in conjunction with on_value_change.
|
||||||
disabled: When true, prevents the user from interacting with the radio item.
|
disabled: When true, prevents the user from interacting with the radio item.
|
||||||
required: When true, indicates that the user must check the radio item before the owning form can be submitted.
|
required: When true, indicates that the user must check the radio item before the owning form can be submitted.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -553,48 +450,6 @@ class HighLevelRadioGroup(RadioGroupRoot):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
loop: Optional[Union[Var[bool], bool]] = None,
|
loop: Optional[Union[Var[bool], bool]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -669,13 +524,6 @@ class HighLevelRadioGroup(RadioGroupRoot):
|
|||||||
required: Whether the radio group is required
|
required: Whether the radio group is required
|
||||||
orientation: The orientation of the component.
|
orientation: The orientation of the component.
|
||||||
loop: When true, keyboard navigation will loop from last item to first, and vice versa.
|
loop: When true, keyboard navigation will loop from last item to first, and vice versa.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -4,13 +4,12 @@ from typing import Literal
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralRadius,
|
LiteralRadius,
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class ScrollArea(CommonMarginProps, RadixThemesComponent):
|
class ScrollArea(RadixThemesComponent):
|
||||||
"""Custom styled, cross-browser scrollable area using native functionality."""
|
"""Custom styled, cross-browser scrollable area using native functionality."""
|
||||||
|
|
||||||
tag = "ScrollArea"
|
tag = "ScrollArea"
|
||||||
|
@ -9,9 +9,9 @@ from reflex.event import EventChain, EventHandler, EventSpec
|
|||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from typing import Literal
|
from typing import Literal
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, LiteralRadius, RadixThemesComponent
|
from ..base import LiteralRadius, RadixThemesComponent
|
||||||
|
|
||||||
class ScrollArea(CommonMarginProps, RadixThemesComponent):
|
class ScrollArea(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -100,48 +100,6 @@ class ScrollArea(CommonMarginProps, RadixThemesComponent):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
scroll_hide_delay: Optional[Union[Var[int], int]] = None,
|
scroll_hide_delay: Optional[Union[Var[int], int]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -209,13 +167,6 @@ class ScrollArea(CommonMarginProps, RadixThemesComponent):
|
|||||||
scrollbars: The alignment of the scroll area
|
scrollbars: The alignment of the scroll area
|
||||||
type_: Describes the nature of scrollbar visibility, similar to how the scrollbar preferences in MacOS control visibility of native scrollbars. "auto" | "always" | "scroll" | "hover"
|
type_: Describes the nature of scrollbar visibility, similar to how the scrollbar preferences in MacOS control visibility of native scrollbars. "auto" | "always" | "scroll" | "hover"
|
||||||
scroll_hide_delay: If type is set to either "scroll" or "hover", this prop determines the length of time, in milliseconds, before the scrollbars are hidden after the user stops interacting with scrollbars.
|
scroll_hide_delay: If type is set to either "scroll" or "hover", this prop determines the length of time, in milliseconds, before the scrollbars are hidden after the user stops interacting with scrollbars.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -6,7 +6,6 @@ from reflex.components.component import Component
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
LiteralRadius,
|
LiteralRadius,
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
@ -15,7 +14,7 @@ from ..base import (
|
|||||||
LiteralButtonSize = Literal[1, 2, 3, 4]
|
LiteralButtonSize = Literal[1, 2, 3, 4]
|
||||||
|
|
||||||
|
|
||||||
class SelectRoot(CommonMarginProps, RadixThemesComponent):
|
class SelectRoot(RadixThemesComponent):
|
||||||
"""Displays a list of options for the user to pick from, triggered by a button."""
|
"""Displays a list of options for the user to pick from, triggered by a button."""
|
||||||
|
|
||||||
tag = "Select.Root"
|
tag = "Select.Root"
|
||||||
@ -57,7 +56,7 @@ class SelectRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class SelectTrigger(CommonMarginProps, RadixThemesComponent):
|
class SelectTrigger(RadixThemesComponent):
|
||||||
"""The button that toggles the select."""
|
"""The button that toggles the select."""
|
||||||
|
|
||||||
tag = "Select.Trigger"
|
tag = "Select.Trigger"
|
||||||
@ -75,7 +74,7 @@ class SelectTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
placeholder: Var[str]
|
placeholder: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class SelectContent(CommonMarginProps, RadixThemesComponent):
|
class SelectContent(RadixThemesComponent):
|
||||||
"""The component that pops out when the select is open."""
|
"""The component that pops out when the select is open."""
|
||||||
|
|
||||||
tag = "Select.Content"
|
tag = "Select.Content"
|
||||||
@ -118,13 +117,13 @@ class SelectContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class SelectGroup(CommonMarginProps, RadixThemesComponent):
|
class SelectGroup(RadixThemesComponent):
|
||||||
"""Used to group multiple items."""
|
"""Used to group multiple items."""
|
||||||
|
|
||||||
tag = "Select.Group"
|
tag = "Select.Group"
|
||||||
|
|
||||||
|
|
||||||
class SelectItem(CommonMarginProps, RadixThemesComponent):
|
class SelectItem(RadixThemesComponent):
|
||||||
"""The component that contains the select items."""
|
"""The component that contains the select items."""
|
||||||
|
|
||||||
tag = "Select.Item"
|
tag = "Select.Item"
|
||||||
@ -136,13 +135,13 @@ class SelectItem(CommonMarginProps, RadixThemesComponent):
|
|||||||
disabled: Var[bool]
|
disabled: Var[bool]
|
||||||
|
|
||||||
|
|
||||||
class SelectLabel(CommonMarginProps, RadixThemesComponent):
|
class SelectLabel(RadixThemesComponent):
|
||||||
"""Used to render the label of a group, it isn't focusable using arrow keys."""
|
"""Used to render the label of a group, it isn't focusable using arrow keys."""
|
||||||
|
|
||||||
tag = "Select.Label"
|
tag = "Select.Label"
|
||||||
|
|
||||||
|
|
||||||
class SelectSeparator(CommonMarginProps, RadixThemesComponent):
|
class SelectSeparator(RadixThemesComponent):
|
||||||
"""Used to visually separate items in the Select."""
|
"""Used to visually separate items in the Select."""
|
||||||
|
|
||||||
tag = "Select.Separator"
|
tag = "Select.Separator"
|
||||||
|
@ -11,16 +11,11 @@ from typing import Any, Dict, List, Literal, Union
|
|||||||
import reflex as rx
|
import reflex as rx
|
||||||
from reflex.components.component import Component
|
from reflex.components.component import Component
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import (
|
from ..base import LiteralAccentColor, LiteralRadius, RadixThemesComponent
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
|
||||||
LiteralRadius,
|
|
||||||
RadixThemesComponent,
|
|
||||||
)
|
|
||||||
|
|
||||||
LiteralButtonSize = Literal[1, 2, 3, 4]
|
LiteralButtonSize = Literal[1, 2, 3, 4]
|
||||||
|
|
||||||
class SelectRoot(CommonMarginProps, RadixThemesComponent):
|
class SelectRoot(RadixThemesComponent):
|
||||||
def get_event_triggers(self) -> Dict[str, Any]: ...
|
def get_event_triggers(self) -> Dict[str, Any]: ...
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -100,48 +95,6 @@ class SelectRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
name: Optional[Union[Var[str], str]] = None,
|
name: Optional[Union[Var[str], str]] = None,
|
||||||
disabled: Optional[Union[Var[bool], bool]] = None,
|
disabled: Optional[Union[Var[bool], bool]] = None,
|
||||||
required: Optional[Union[Var[bool], bool]] = None,
|
required: Optional[Union[Var[bool], bool]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -218,13 +171,6 @@ class SelectRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
name: The name of the select control when submitting the form.
|
name: The name of the select control when submitting the form.
|
||||||
disabled: When True, prevents the user from interacting with select.
|
disabled: When True, prevents the user from interacting with select.
|
||||||
required: When True, indicates that the user must select a value before the owning form can be submitted.
|
required: When True, indicates that the user must select a value before the owning form can be submitted.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -238,7 +184,7 @@ class SelectRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class SelectTrigger(CommonMarginProps, RadixThemesComponent):
|
class SelectTrigger(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -320,48 +266,6 @@ class SelectTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
placeholder: Optional[Union[Var[str], str]] = None,
|
placeholder: Optional[Union[Var[str], str]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -427,13 +331,6 @@ class SelectTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
variant: Variant of the select trigger
|
variant: Variant of the select trigger
|
||||||
radius: The radius of the select trigger
|
radius: The radius of the select trigger
|
||||||
placeholder: The placeholder of the select trigger
|
placeholder: The placeholder of the select trigger
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -447,7 +344,7 @@ class SelectTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class SelectContent(CommonMarginProps, RadixThemesComponent):
|
class SelectContent(RadixThemesComponent):
|
||||||
def get_event_triggers(self) -> Dict[str, Any]: ...
|
def get_event_triggers(self) -> Dict[str, Any]: ...
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -541,48 +438,6 @@ class SelectContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
align_offset: Optional[Union[Var[int], int]] = None,
|
align_offset: Optional[Union[Var[int], int]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -661,13 +516,6 @@ class SelectContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
side_offset: The distance in pixels from the anchor. Only available when position is set to popper.
|
side_offset: The distance in pixels from the anchor. Only available when position is set to popper.
|
||||||
align: The preferred alignment against the anchor. May change when collisions occur. Only available when position is set to popper.
|
align: The preferred alignment against the anchor. May change when collisions occur. Only available when position is set to popper.
|
||||||
align_offset: The vertical distance in pixels from the anchor. Only available when position is set to popper.
|
align_offset: The vertical distance in pixels from the anchor. Only available when position is set to popper.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -681,7 +529,7 @@ class SelectContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class SelectGroup(CommonMarginProps, RadixThemesComponent):
|
class SelectGroup(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -750,48 +598,6 @@ class SelectGroup(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -854,13 +660,6 @@ class SelectGroup(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -874,7 +673,7 @@ class SelectGroup(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class SelectItem(CommonMarginProps, RadixThemesComponent):
|
class SelectItem(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -945,48 +744,6 @@ class SelectItem(CommonMarginProps, RadixThemesComponent):
|
|||||||
] = None,
|
] = None,
|
||||||
value: Optional[Union[Var[str], str]] = None,
|
value: Optional[Union[Var[str], str]] = None,
|
||||||
disabled: Optional[Union[Var[bool], bool]] = None,
|
disabled: Optional[Union[Var[bool], bool]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1051,13 +808,6 @@ class SelectItem(CommonMarginProps, RadixThemesComponent):
|
|||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
value: The value given as data when submitting a form with a name.
|
value: The value given as data when submitting a form with a name.
|
||||||
disabled: Whether the select item is disabled
|
disabled: Whether the select item is disabled
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -1071,7 +821,7 @@ class SelectItem(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class SelectLabel(CommonMarginProps, RadixThemesComponent):
|
class SelectLabel(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -1140,48 +890,6 @@ class SelectLabel(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1244,13 +952,6 @@ class SelectLabel(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -1264,7 +965,7 @@ class SelectLabel(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class SelectSeparator(CommonMarginProps, RadixThemesComponent):
|
class SelectSeparator(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -1333,48 +1034,6 @@ class SelectSeparator(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1437,13 +1096,6 @@ class SelectSeparator(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -1552,48 +1204,6 @@ class HighLevelSelect(SelectRoot):
|
|||||||
name: Optional[Union[Var[str], str]] = None,
|
name: Optional[Union[Var[str], str]] = None,
|
||||||
disabled: Optional[Union[Var[bool], bool]] = None,
|
disabled: Optional[Union[Var[bool], bool]] = None,
|
||||||
required: Optional[Union[Var[bool], bool]] = None,
|
required: Optional[Union[Var[bool], bool]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1673,13 +1283,6 @@ class HighLevelSelect(SelectRoot):
|
|||||||
name: The name of the select control when submitting the form.
|
name: The name of the select control when submitting the form.
|
||||||
disabled: When True, prevents the user from interacting with select.
|
disabled: When True, prevents the user from interacting with select.
|
||||||
required: When True, indicates that the user must select a value before the owning form can be submitted.
|
required: When True, indicates that the user must select a value before the owning form can be submitted.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -4,7 +4,6 @@ from typing import Literal
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
@ -12,7 +11,7 @@ from ..base import (
|
|||||||
LiteralSeperatorSize = Literal["1", "2", "3", "4"]
|
LiteralSeperatorSize = Literal["1", "2", "3", "4"]
|
||||||
|
|
||||||
|
|
||||||
class Separator(CommonMarginProps, RadixThemesComponent):
|
class Separator(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Separator"
|
tag = "Separator"
|
||||||
|
@ -9,11 +9,11 @@ from reflex.event import EventChain, EventHandler, EventSpec
|
|||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from typing import Literal
|
from typing import Literal
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent
|
from ..base import LiteralAccentColor, RadixThemesComponent
|
||||||
|
|
||||||
LiteralSeperatorSize = Literal["1", "2", "3", "4"]
|
LiteralSeperatorSize = Literal["1", "2", "3", "4"]
|
||||||
|
|
||||||
class Separator(CommonMarginProps, RadixThemesComponent):
|
class Separator(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -92,48 +92,6 @@ class Separator(CommonMarginProps, RadixThemesComponent):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
decorative: Optional[Union[Var[bool], bool]] = None,
|
decorative: Optional[Union[Var[bool], bool]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -199,13 +157,6 @@ class Separator(CommonMarginProps, RadixThemesComponent):
|
|||||||
size: The size of the select: "1" | "2" | "3" | "4"
|
size: The size of the select: "1" | "2" | "3" | "4"
|
||||||
orientation: The orientation of the separator.
|
orientation: The orientation of the separator.
|
||||||
decorative: When true, signifies that it is purely visual, carries no semantic meaning, and ensures it is not present in the accessibility tree.
|
decorative: When true, signifies that it is purely visual, carries no semantic meaning, and ensures it is not present in the accessibility tree.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -4,14 +4,13 @@ from typing import Any, Dict, List, Literal, Union
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
LiteralRadius,
|
LiteralRadius,
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class Slider(CommonMarginProps, RadixThemesComponent):
|
class Slider(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Slider"
|
tag = "Slider"
|
||||||
|
@ -9,14 +9,9 @@ from reflex.event import EventChain, EventHandler, EventSpec
|
|||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from typing import Any, Dict, List, Literal, Union
|
from typing import Any, Dict, List, Literal, Union
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import (
|
from ..base import LiteralAccentColor, LiteralRadius, RadixThemesComponent
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
|
||||||
LiteralRadius,
|
|
||||||
RadixThemesComponent,
|
|
||||||
)
|
|
||||||
|
|
||||||
class Slider(CommonMarginProps, RadixThemesComponent):
|
class Slider(RadixThemesComponent):
|
||||||
def get_event_triggers(self) -> Dict[str, Any]: ...
|
def get_event_triggers(self) -> Dict[str, Any]: ...
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -120,48 +115,6 @@ class Slider(CommonMarginProps, RadixThemesComponent):
|
|||||||
Literal["horizontal", "vertical"],
|
Literal["horizontal", "vertical"],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -243,13 +196,6 @@ class Slider(CommonMarginProps, RadixThemesComponent):
|
|||||||
step: The step value of the slider.
|
step: The step value of the slider.
|
||||||
disabled: Whether the slider is disabled
|
disabled: Whether the slider is disabled
|
||||||
orientation: The orientation of the slider.
|
orientation: The orientation of the slider.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -5,7 +5,6 @@ from reflex.constants import EventTriggers
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
LiteralRadius,
|
LiteralRadius,
|
||||||
LiteralVariant,
|
LiteralVariant,
|
||||||
@ -15,7 +14,7 @@ from ..base import (
|
|||||||
LiteralSwitchSize = Literal["1", "2", "3", "4"]
|
LiteralSwitchSize = Literal["1", "2", "3", "4"]
|
||||||
|
|
||||||
|
|
||||||
class Switch(CommonMarginProps, RadixThemesComponent):
|
class Switch(RadixThemesComponent):
|
||||||
"""A toggle switch alternative to the checkbox."""
|
"""A toggle switch alternative to the checkbox."""
|
||||||
|
|
||||||
tag = "Switch"
|
tag = "Switch"
|
||||||
|
@ -11,7 +11,6 @@ from typing import Any, Dict, Literal
|
|||||||
from reflex.constants import EventTriggers
|
from reflex.constants import EventTriggers
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
LiteralRadius,
|
LiteralRadius,
|
||||||
LiteralVariant,
|
LiteralVariant,
|
||||||
@ -20,7 +19,7 @@ from ..base import (
|
|||||||
|
|
||||||
LiteralSwitchSize = Literal["1", "2", "3", "4"]
|
LiteralSwitchSize = Literal["1", "2", "3", "4"]
|
||||||
|
|
||||||
class Switch(CommonMarginProps, RadixThemesComponent):
|
class Switch(RadixThemesComponent):
|
||||||
def get_event_triggers(self) -> Dict[str, Any]: ...
|
def get_event_triggers(self) -> Dict[str, Any]: ...
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -113,48 +112,6 @@ class Switch(CommonMarginProps, RadixThemesComponent):
|
|||||||
Literal["none", "small", "medium", "large", "full"],
|
Literal["none", "small", "medium", "large", "full"],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -231,13 +188,6 @@ class Switch(CommonMarginProps, RadixThemesComponent):
|
|||||||
variant: Variant of switch: "solid" | "soft" | "outline" | "ghost"
|
variant: Variant of switch: "solid" | "soft" | "outline" | "ghost"
|
||||||
high_contrast: Whether to render the switch with higher contrast color against background
|
high_contrast: Whether to render the switch with higher contrast color against background
|
||||||
radius: Override theme radius for switch: "none" | "small" | "medium" | "large" | "full"
|
radius: Override theme radius for switch: "none" | "small" | "medium" | "large" | "full"
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -5,12 +5,11 @@ from reflex import el
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class TableRoot(el.Table, CommonMarginProps, RadixThemesComponent):
|
class TableRoot(el.Table, RadixThemesComponent):
|
||||||
"""A semantic table for presenting tabular data."""
|
"""A semantic table for presenting tabular data."""
|
||||||
|
|
||||||
tag = "Table.Root"
|
tag = "Table.Root"
|
||||||
@ -22,13 +21,13 @@ class TableRoot(el.Table, CommonMarginProps, RadixThemesComponent):
|
|||||||
variant: Var[Literal["surface", "ghost"]]
|
variant: Var[Literal["surface", "ghost"]]
|
||||||
|
|
||||||
|
|
||||||
class TableHeader(el.Thead, CommonMarginProps, RadixThemesComponent):
|
class TableHeader(el.Thead, RadixThemesComponent):
|
||||||
"""The header of the table defines column names and other non-data elements."""
|
"""The header of the table defines column names and other non-data elements."""
|
||||||
|
|
||||||
tag = "Table.Header"
|
tag = "Table.Header"
|
||||||
|
|
||||||
|
|
||||||
class TableRow(el.Tr, CommonMarginProps, RadixThemesComponent):
|
class TableRow(el.Tr, RadixThemesComponent):
|
||||||
"""A row containing table cells."""
|
"""A row containing table cells."""
|
||||||
|
|
||||||
tag = "Table.Row"
|
tag = "Table.Row"
|
||||||
@ -37,7 +36,7 @@ class TableRow(el.Tr, CommonMarginProps, RadixThemesComponent):
|
|||||||
align: Var[Literal["start", "center", "end", "baseline"]]
|
align: Var[Literal["start", "center", "end", "baseline"]]
|
||||||
|
|
||||||
|
|
||||||
class TableColumnHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
|
class TableColumnHeaderCell(el.Th, RadixThemesComponent):
|
||||||
"""A table cell that is semantically treated as a column header."""
|
"""A table cell that is semantically treated as a column header."""
|
||||||
|
|
||||||
tag = "Table.ColumnHeaderCell"
|
tag = "Table.ColumnHeaderCell"
|
||||||
@ -49,13 +48,13 @@ class TableColumnHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
|
|||||||
width: Var[Union[str, int]]
|
width: Var[Union[str, int]]
|
||||||
|
|
||||||
|
|
||||||
class TableBody(el.Tbody, CommonMarginProps, RadixThemesComponent):
|
class TableBody(el.Tbody, RadixThemesComponent):
|
||||||
"""The body of the table contains the data rows."""
|
"""The body of the table contains the data rows."""
|
||||||
|
|
||||||
tag = "Table.Body"
|
tag = "Table.Body"
|
||||||
|
|
||||||
|
|
||||||
class TableCell(el.Td, CommonMarginProps, RadixThemesComponent):
|
class TableCell(el.Td, RadixThemesComponent):
|
||||||
"""A cell containing data."""
|
"""A cell containing data."""
|
||||||
|
|
||||||
tag = "Table.Cell"
|
tag = "Table.Cell"
|
||||||
@ -67,7 +66,7 @@ class TableCell(el.Td, CommonMarginProps, RadixThemesComponent):
|
|||||||
width: Var[Union[str, int]]
|
width: Var[Union[str, int]]
|
||||||
|
|
||||||
|
|
||||||
class TableRowHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
|
class TableRowHeaderCell(el.Th, RadixThemesComponent):
|
||||||
"""A table cell that is semantically treated as a row header."""
|
"""A table cell that is semantically treated as a row header."""
|
||||||
|
|
||||||
tag = "Table.RowHeaderCell"
|
tag = "Table.RowHeaderCell"
|
||||||
|
@ -10,9 +10,9 @@ from reflex.style import Style
|
|||||||
from typing import Literal, Union
|
from typing import Literal, Union
|
||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, RadixThemesComponent
|
from ..base import RadixThemesComponent
|
||||||
|
|
||||||
class TableRoot(el.Table, CommonMarginProps, RadixThemesComponent):
|
class TableRoot(el.Table, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -145,48 +145,6 @@ class TableRoot(el.Table, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -273,13 +231,6 @@ class TableRoot(el.Table, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -293,7 +244,7 @@ class TableRoot(el.Table, CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class TableHeader(el.Thead, CommonMarginProps, RadixThemesComponent):
|
class TableHeader(el.Thead, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -408,48 +359,6 @@ class TableHeader(el.Thead, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -530,13 +439,6 @@ class TableHeader(el.Thead, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -550,7 +452,7 @@ class TableHeader(el.Thead, CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class TableRow(el.Tr, CommonMarginProps, RadixThemesComponent):
|
class TableRow(el.Tr, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -671,48 +573,6 @@ class TableRow(el.Tr, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -794,13 +654,6 @@ class TableRow(el.Tr, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -814,7 +667,7 @@ class TableRow(el.Tr, CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class TableColumnHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
|
class TableColumnHeaderCell(el.Th, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -954,48 +807,6 @@ class TableColumnHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1084,13 +895,6 @@ class TableColumnHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -1104,7 +908,7 @@ class TableColumnHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class TableBody(el.Tbody, CommonMarginProps, RadixThemesComponent):
|
class TableBody(el.Tbody, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -1222,48 +1026,6 @@ class TableBody(el.Tbody, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1345,13 +1107,6 @@ class TableBody(el.Tbody, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -1365,7 +1120,7 @@ class TableBody(el.Tbody, CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class TableCell(el.Td, CommonMarginProps, RadixThemesComponent):
|
class TableCell(el.Td, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -1502,48 +1257,6 @@ class TableCell(el.Td, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1631,13 +1344,6 @@ class TableCell(el.Td, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -1651,7 +1357,7 @@ class TableCell(el.Td, CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class TableRowHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
|
class TableRowHeaderCell(el.Th, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -1791,48 +1497,6 @@ class TableRowHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1921,13 +1585,6 @@ class TableRowHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -4,12 +4,11 @@ from typing import Any, Dict, Literal
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class TabsRoot(CommonMarginProps, RadixThemesComponent):
|
class TabsRoot(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Tabs.Root"
|
tag = "Tabs.Root"
|
||||||
@ -38,13 +37,13 @@ class TabsRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class TabsList(CommonMarginProps, RadixThemesComponent):
|
class TabsList(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Tabs.List"
|
tag = "Tabs.List"
|
||||||
|
|
||||||
|
|
||||||
class TabsTrigger(CommonMarginProps, RadixThemesComponent):
|
class TabsTrigger(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Tabs.Trigger"
|
tag = "Tabs.Trigger"
|
||||||
@ -56,7 +55,7 @@ class TabsTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
disabled: Var[bool]
|
disabled: Var[bool]
|
||||||
|
|
||||||
|
|
||||||
class TabsContent(CommonMarginProps, RadixThemesComponent):
|
class TabsContent(RadixThemesComponent):
|
||||||
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
||||||
|
|
||||||
tag = "Tabs.Content"
|
tag = "Tabs.Content"
|
||||||
|
@ -9,9 +9,9 @@ from reflex.event import EventChain, EventHandler, EventSpec
|
|||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from typing import Any, Dict, Literal
|
from typing import Any, Dict, Literal
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, RadixThemesComponent
|
from ..base import RadixThemesComponent
|
||||||
|
|
||||||
class TabsRoot(CommonMarginProps, RadixThemesComponent):
|
class TabsRoot(RadixThemesComponent):
|
||||||
def get_event_triggers(self) -> Dict[str, Any]: ...
|
def get_event_triggers(self) -> Dict[str, Any]: ...
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -92,48 +92,6 @@ class TabsRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
Literal["horizontal", "vertical"],
|
Literal["horizontal", "vertical"],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -203,13 +161,6 @@ class TabsRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
default_value: The value of the tab that should be active when initially rendered. Use when you do not need to control the state of the tabs.
|
default_value: The value of the tab that should be active when initially rendered. Use when you do not need to control the state of the tabs.
|
||||||
value: The controlled value of the tab that should be active. Use when you need to control the state of the tabs.
|
value: The controlled value of the tab that should be active. Use when you need to control the state of the tabs.
|
||||||
orientation: The orientation of the tabs.
|
orientation: The orientation of the tabs.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -223,7 +174,7 @@ class TabsRoot(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class TabsList(CommonMarginProps, RadixThemesComponent):
|
class TabsList(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -292,48 +243,6 @@ class TabsList(CommonMarginProps, RadixThemesComponent):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -396,13 +305,6 @@ class TabsList(CommonMarginProps, RadixThemesComponent):
|
|||||||
*children: Child components.
|
*children: Child components.
|
||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -416,7 +318,7 @@ class TabsList(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class TabsTrigger(CommonMarginProps, RadixThemesComponent):
|
class TabsTrigger(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -487,48 +389,6 @@ class TabsTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
] = None,
|
] = None,
|
||||||
value: Optional[Union[Var[str], str]] = None,
|
value: Optional[Union[Var[str], str]] = None,
|
||||||
disabled: Optional[Union[Var[bool], bool]] = None,
|
disabled: Optional[Union[Var[bool], bool]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -593,13 +453,6 @@ class TabsTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
value: The value of the tab. Must be unique for each tab.
|
value: The value of the tab. Must be unique for each tab.
|
||||||
disabled: Whether the tab is disabled
|
disabled: Whether the tab is disabled
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -613,7 +466,7 @@ class TabsTrigger(CommonMarginProps, RadixThemesComponent):
|
|||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
class TabsContent(CommonMarginProps, RadixThemesComponent):
|
class TabsContent(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -683,48 +536,6 @@ class TabsContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
value: Optional[Union[Var[str], str]] = None,
|
value: Optional[Union[Var[str], str]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -788,13 +599,6 @@ class TabsContent(CommonMarginProps, RadixThemesComponent):
|
|||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
value: The value of the tab. Must be unique for each tab.
|
value: The value of the tab. Must be unique for each tab.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -8,7 +8,6 @@ from reflex.constants import EventTriggers
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
@ -16,7 +15,7 @@ from ..base import (
|
|||||||
LiteralTextAreaSize = Literal["1", "2", "3"]
|
LiteralTextAreaSize = Literal["1", "2", "3"]
|
||||||
|
|
||||||
|
|
||||||
class TextArea(CommonMarginProps, RadixThemesComponent, el.Textarea):
|
class TextArea(RadixThemesComponent, el.Textarea):
|
||||||
"""The input part of a TextArea, may be used by itself."""
|
"""The input part of a TextArea, may be used by itself."""
|
||||||
|
|
||||||
tag = "TextArea"
|
tag = "TextArea"
|
||||||
|
@ -13,11 +13,11 @@ from reflex.components.component import Component
|
|||||||
from reflex.components.core.debounce import DebounceInput
|
from reflex.components.core.debounce import DebounceInput
|
||||||
from reflex.constants import EventTriggers
|
from reflex.constants import EventTriggers
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent
|
from ..base import LiteralAccentColor, RadixThemesComponent
|
||||||
|
|
||||||
LiteralTextAreaSize = Literal["1", "2", "3"]
|
LiteralTextAreaSize = Literal["1", "2", "3"]
|
||||||
|
|
||||||
class TextArea(CommonMarginProps, RadixThemesComponent, el.Textarea):
|
class TextArea(RadixThemesComponent, el.Textarea):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -94,48 +94,6 @@ class TextArea(CommonMarginProps, RadixThemesComponent, el.Textarea):
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
auto_complete: Optional[
|
auto_complete: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
@ -283,13 +241,6 @@ class TextArea(CommonMarginProps, RadixThemesComponent, el.Textarea):
|
|||||||
size: The size of the text area: "1" | "2" | "3"
|
size: The size of the text area: "1" | "2" | "3"
|
||||||
variant: The variant of the text area
|
variant: The variant of the text area
|
||||||
color_scheme: The color of the text area
|
color_scheme: The color of the text area
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
auto_complete: Whether the form control should have autocomplete enabled
|
auto_complete: Whether the form control should have autocomplete enabled
|
||||||
auto_focus: Automatically focuses the textarea when the page loads
|
auto_focus: Automatically focuses the textarea when the page loads
|
||||||
cols: Visible width of the text control, in average character widths
|
cols: Visible width of the text control, in average character widths
|
||||||
|
@ -10,7 +10,6 @@ from reflex.constants import EventTriggers
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
LiteralRadius,
|
LiteralRadius,
|
||||||
LiteralSize,
|
LiteralSize,
|
||||||
@ -21,7 +20,7 @@ LiteralTextFieldSize = Literal["1", "2", "3"]
|
|||||||
LiteralTextFieldVariant = Literal["classic", "surface", "soft"]
|
LiteralTextFieldVariant = Literal["classic", "surface", "soft"]
|
||||||
|
|
||||||
|
|
||||||
class TextFieldRoot(el.Div, CommonMarginProps, RadixThemesComponent):
|
class TextFieldRoot(el.Div, RadixThemesComponent):
|
||||||
"""Captures user input with an optional slot for buttons and icons."""
|
"""Captures user input with an optional slot for buttons and icons."""
|
||||||
|
|
||||||
tag = "TextField.Root"
|
tag = "TextField.Root"
|
||||||
|
@ -15,18 +15,12 @@ from reflex.components.core.debounce import DebounceInput
|
|||||||
from reflex.components.radix.themes.components.icons import Icon
|
from reflex.components.radix.themes.components.icons import Icon
|
||||||
from reflex.constants import EventTriggers
|
from reflex.constants import EventTriggers
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import (
|
from ..base import LiteralAccentColor, LiteralRadius, LiteralSize, RadixThemesComponent
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
|
||||||
LiteralRadius,
|
|
||||||
LiteralSize,
|
|
||||||
RadixThemesComponent,
|
|
||||||
)
|
|
||||||
|
|
||||||
LiteralTextFieldSize = Literal["1", "2", "3"]
|
LiteralTextFieldSize = Literal["1", "2", "3"]
|
||||||
LiteralTextFieldVariant = Literal["classic", "surface", "soft"]
|
LiteralTextFieldVariant = Literal["classic", "surface", "soft"]
|
||||||
|
|
||||||
class TextFieldRoot(el.Div, CommonMarginProps, RadixThemesComponent):
|
class TextFieldRoot(el.Div, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -153,48 +147,6 @@ class TextFieldRoot(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -277,13 +229,6 @@ class TextFieldRoot(el.Div, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -499,48 +444,6 @@ class TextFieldInput(el.Input, TextFieldRoot):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -660,13 +563,6 @@ class TextFieldInput(el.Input, TextFieldRoot):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -2,12 +2,11 @@
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class Tooltip(CommonMarginProps, RadixThemesComponent):
|
class Tooltip(RadixThemesComponent):
|
||||||
"""Floating element that provides a control with contextual information via pointer or focus."""
|
"""Floating element that provides a control with contextual information via pointer or focus."""
|
||||||
|
|
||||||
tag = "Tooltip"
|
tag = "Tooltip"
|
||||||
|
@ -8,9 +8,9 @@ from reflex.vars import Var, BaseVar, ComputedVar
|
|||||||
from reflex.event import EventChain, EventHandler, EventSpec
|
from reflex.event import EventChain, EventHandler, EventSpec
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, RadixThemesComponent
|
from ..base import RadixThemesComponent
|
||||||
|
|
||||||
class Tooltip(CommonMarginProps, RadixThemesComponent):
|
class Tooltip(RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -80,48 +80,6 @@ class Tooltip(CommonMarginProps, RadixThemesComponent):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
content: Optional[Union[Var[str], str]] = None,
|
content: Optional[Union[Var[str], str]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -185,13 +143,6 @@ class Tooltip(CommonMarginProps, RadixThemesComponent):
|
|||||||
color: map to CSS default color property.
|
color: map to CSS default color property.
|
||||||
color_scheme: map to radix color property.
|
color_scheme: map to radix color property.
|
||||||
content: The content of the tooltip.
|
content: The content of the tooltip.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -3,10 +3,10 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from reflex import el
|
from reflex import el
|
||||||
|
|
||||||
from .base import LayoutComponent
|
from ..base import RadixThemesComponent
|
||||||
|
|
||||||
|
|
||||||
class Box(el.Div, LayoutComponent):
|
class Box(el.Div, RadixThemesComponent):
|
||||||
"""A fundamental layout building block, based on `div` element."""
|
"""A fundamental layout building block, based on `div` element."""
|
||||||
|
|
||||||
tag = "Box"
|
tag = "Box"
|
||||||
|
@ -8,9 +8,9 @@ from reflex.vars import Var, BaseVar, ComputedVar
|
|||||||
from reflex.event import EventChain, EventHandler, EventSpec
|
from reflex.event import EventChain, EventHandler, EventSpec
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex import el
|
from reflex import el
|
||||||
from .base import LayoutComponent
|
from ..base import RadixThemesComponent
|
||||||
|
|
||||||
class Box(el.Div, LayoutComponent):
|
class Box(el.Div, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -122,92 +122,6 @@ class Box(el.Div, LayoutComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
p: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
px: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
py: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pl: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
shrink: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
||||||
grow: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -287,22 +201,6 @@ class Box(el.Div, LayoutComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
p: Padding: "0" - "9"
|
|
||||||
px: Padding horizontal: "0" - "9"
|
|
||||||
py: Padding vertical: "0" - "9"
|
|
||||||
pt: Padding top: "0" - "9"
|
|
||||||
pr: Padding right: "0" - "9"
|
|
||||||
pb: Padding bottom: "0" - "9"
|
|
||||||
pl: Padding left: "0" - "9"
|
|
||||||
shrink: Whether the element will take up the smallest possible space: "0" | "1"
|
|
||||||
grow: Whether the element will take up the largest possible space: "0" | "1"
|
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -159,92 +159,6 @@ class Center(Flex):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
p: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
px: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
py: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pl: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
shrink: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
||||||
grow: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -331,22 +245,6 @@ class Center(Flex):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
p: Padding: "0" - "9"
|
|
||||||
px: Padding horizontal: "0" - "9"
|
|
||||||
py: Padding vertical: "0" - "9"
|
|
||||||
pt: Padding top: "0" - "9"
|
|
||||||
pr: Padding right: "0" - "9"
|
|
||||||
pb: Padding bottom: "0" - "9"
|
|
||||||
pl: Padding left: "0" - "9"
|
|
||||||
shrink: Whether the element will take up the smallest possible space: "0" | "1"
|
|
||||||
grow: Whether the element will take up the largest possible space: "0" | "1"
|
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -6,12 +6,12 @@ from typing import Literal
|
|||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from .base import LayoutComponent
|
from ..base import RadixThemesComponent
|
||||||
|
|
||||||
LiteralContainerSize = Literal["1", "2", "3", "4"]
|
LiteralContainerSize = Literal["1", "2", "3", "4"]
|
||||||
|
|
||||||
|
|
||||||
class Container(el.Div, LayoutComponent):
|
class Container(el.Div, RadixThemesComponent):
|
||||||
"""Constrains the maximum width of page content.
|
"""Constrains the maximum width of page content.
|
||||||
|
|
||||||
See https://www.radix-ui.com/themes/docs/components/container
|
See https://www.radix-ui.com/themes/docs/components/container
|
||||||
|
@ -10,11 +10,11 @@ from reflex.style import Style
|
|||||||
from typing import Literal
|
from typing import Literal
|
||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from .base import LayoutComponent
|
from ..base import RadixThemesComponent
|
||||||
|
|
||||||
LiteralContainerSize = Literal["1", "2", "3", "4"]
|
LiteralContainerSize = Literal["1", "2", "3", "4"]
|
||||||
|
|
||||||
class Container(el.Div, LayoutComponent):
|
class Container(el.Div, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -129,92 +129,6 @@ class Container(el.Div, LayoutComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
p: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
px: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
py: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pl: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
shrink: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
||||||
grow: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -295,22 +209,6 @@ class Container(el.Div, LayoutComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
p: Padding: "0" - "9"
|
|
||||||
px: Padding horizontal: "0" - "9"
|
|
||||||
py: Padding vertical: "0" - "9"
|
|
||||||
pt: Padding top: "0" - "9"
|
|
||||||
pr: Padding right: "0" - "9"
|
|
||||||
pb: Padding bottom: "0" - "9"
|
|
||||||
pl: Padding left: "0" - "9"
|
|
||||||
shrink: Whether the element will take up the smallest possible space: "0" | "1"
|
|
||||||
grow: Whether the element will take up the largest possible space: "0" | "1"
|
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -10,15 +10,15 @@ from ..base import (
|
|||||||
LiteralAlign,
|
LiteralAlign,
|
||||||
LiteralJustify,
|
LiteralJustify,
|
||||||
LiteralSize,
|
LiteralSize,
|
||||||
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
from .base import LayoutComponent
|
|
||||||
|
|
||||||
LiteralFlexDirection = Literal["row", "column", "row-reverse", "column-reverse"]
|
LiteralFlexDirection = Literal["row", "column", "row-reverse", "column-reverse"]
|
||||||
LiteralFlexDisplay = Literal["none", "inline-flex", "flex"]
|
LiteralFlexDisplay = Literal["none", "inline-flex", "flex"]
|
||||||
LiteralFlexWrap = Literal["nowrap", "wrap", "wrap-reverse"]
|
LiteralFlexWrap = Literal["nowrap", "wrap", "wrap-reverse"]
|
||||||
|
|
||||||
|
|
||||||
class Flex(el.Div, LayoutComponent):
|
class Flex(el.Div, RadixThemesComponent):
|
||||||
"""Component for creating flex layouts."""
|
"""Component for creating flex layouts."""
|
||||||
|
|
||||||
tag = "Flex"
|
tag = "Flex"
|
||||||
|
@ -10,14 +10,13 @@ from reflex.style import Style
|
|||||||
from typing import Literal
|
from typing import Literal
|
||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import LiteralAlign, LiteralJustify, LiteralSize
|
from ..base import LiteralAlign, LiteralJustify, LiteralSize, RadixThemesComponent
|
||||||
from .base import LayoutComponent
|
|
||||||
|
|
||||||
LiteralFlexDirection = Literal["row", "column", "row-reverse", "column-reverse"]
|
LiteralFlexDirection = Literal["row", "column", "row-reverse", "column-reverse"]
|
||||||
LiteralFlexDisplay = Literal["none", "inline-flex", "flex"]
|
LiteralFlexDisplay = Literal["none", "inline-flex", "flex"]
|
||||||
LiteralFlexWrap = Literal["nowrap", "wrap", "wrap-reverse"]
|
LiteralFlexWrap = Literal["nowrap", "wrap", "wrap-reverse"]
|
||||||
|
|
||||||
class Flex(el.Div, LayoutComponent):
|
class Flex(el.Div, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -166,92 +165,6 @@ class Flex(el.Div, LayoutComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
p: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
px: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
py: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pl: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
shrink: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
||||||
grow: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -338,22 +251,6 @@ class Flex(el.Div, LayoutComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
p: Padding: "0" - "9"
|
|
||||||
px: Padding horizontal: "0" - "9"
|
|
||||||
py: Padding vertical: "0" - "9"
|
|
||||||
pt: Padding top: "0" - "9"
|
|
||||||
pr: Padding right: "0" - "9"
|
|
||||||
pb: Padding bottom: "0" - "9"
|
|
||||||
pl: Padding left: "0" - "9"
|
|
||||||
shrink: Whether the element will take up the smallest possible space: "0" | "1"
|
|
||||||
grow: Whether the element will take up the largest possible space: "0" | "1"
|
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -6,12 +6,12 @@ from typing import Literal
|
|||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from .base import LayoutComponent
|
from ..base import RadixThemesComponent
|
||||||
|
|
||||||
LiteralSectionSize = Literal["1", "2", "3"]
|
LiteralSectionSize = Literal["1", "2", "3"]
|
||||||
|
|
||||||
|
|
||||||
class Section(el.Section, LayoutComponent):
|
class Section(el.Section, RadixThemesComponent):
|
||||||
"""Denotes a section of page content."""
|
"""Denotes a section of page content."""
|
||||||
|
|
||||||
tag = "Section"
|
tag = "Section"
|
||||||
|
@ -10,11 +10,11 @@ from reflex.style import Style
|
|||||||
from typing import Literal
|
from typing import Literal
|
||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from .base import LayoutComponent
|
from ..base import RadixThemesComponent
|
||||||
|
|
||||||
LiteralSectionSize = Literal["1", "2", "3"]
|
LiteralSectionSize = Literal["1", "2", "3"]
|
||||||
|
|
||||||
class Section(el.Section, LayoutComponent):
|
class Section(el.Section, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -129,92 +129,6 @@ class Section(el.Section, LayoutComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
p: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
px: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
py: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pl: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
shrink: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
||||||
grow: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -295,22 +209,6 @@ class Section(el.Section, LayoutComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
p: Padding: "0" - "9"
|
|
||||||
px: Padding horizontal: "0" - "9"
|
|
||||||
py: Padding vertical: "0" - "9"
|
|
||||||
pt: Padding top: "0" - "9"
|
|
||||||
pr: Padding right: "0" - "9"
|
|
||||||
pb: Padding bottom: "0" - "9"
|
|
||||||
pl: Padding left: "0" - "9"
|
|
||||||
shrink: Whether the element will take up the smallest possible space: "0" | "1"
|
|
||||||
grow: Whether the element will take up the largest possible space: "0" | "1"
|
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -159,92 +159,6 @@ class Spacer(Flex):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
p: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
px: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
py: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pl: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
shrink: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
||||||
grow: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -331,22 +245,6 @@ class Spacer(Flex):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
p: Padding: "0" - "9"
|
|
||||||
px: Padding horizontal: "0" - "9"
|
|
||||||
py: Padding vertical: "0" - "9"
|
|
||||||
pt: Padding top: "0" - "9"
|
|
||||||
pr: Padding right: "0" - "9"
|
|
||||||
pb: Padding bottom: "0" - "9"
|
|
||||||
pl: Padding left: "0" - "9"
|
|
||||||
shrink: Whether the element will take up the smallest possible space: "0" | "1"
|
|
||||||
grow: Whether the element will take up the largest possible space: "0" | "1"
|
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -91,92 +91,6 @@ class Stack(Flex):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
p: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
px: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
py: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pl: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
shrink: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
||||||
grow: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -259,22 +173,6 @@ class Stack(Flex):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
p: Padding: "0" - "9"
|
|
||||||
px: Padding horizontal: "0" - "9"
|
|
||||||
py: Padding vertical: "0" - "9"
|
|
||||||
pt: Padding top: "0" - "9"
|
|
||||||
pr: Padding right: "0" - "9"
|
|
||||||
pb: Padding bottom: "0" - "9"
|
|
||||||
pl: Padding left: "0" - "9"
|
|
||||||
shrink: Whether the element will take up the smallest possible space: "0" | "1"
|
|
||||||
grow: Whether the element will take up the largest possible space: "0" | "1"
|
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -365,92 +263,6 @@ class VStack(Stack):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
p: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
px: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
py: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pl: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
shrink: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
||||||
grow: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -533,22 +345,6 @@ class VStack(Stack):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
p: Padding: "0" - "9"
|
|
||||||
px: Padding horizontal: "0" - "9"
|
|
||||||
py: Padding vertical: "0" - "9"
|
|
||||||
pt: Padding top: "0" - "9"
|
|
||||||
pr: Padding right: "0" - "9"
|
|
||||||
pb: Padding bottom: "0" - "9"
|
|
||||||
pl: Padding left: "0" - "9"
|
|
||||||
shrink: Whether the element will take up the smallest possible space: "0" | "1"
|
|
||||||
grow: Whether the element will take up the largest possible space: "0" | "1"
|
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -639,92 +435,6 @@ class HStack(Stack):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
p: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
px: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
py: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
pl: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
shrink: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
||||||
grow: Optional[Union[Var[Literal["0", "1"]], Literal["0", "1"]]] = None,
|
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -807,22 +517,6 @@ class HStack(Stack):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
p: Padding: "0" - "9"
|
|
||||||
px: Padding horizontal: "0" - "9"
|
|
||||||
py: Padding vertical: "0" - "9"
|
|
||||||
pt: Padding top: "0" - "9"
|
|
||||||
pr: Padding right: "0" - "9"
|
|
||||||
pb: Padding bottom: "0" - "9"
|
|
||||||
pl: Padding left: "0" - "9"
|
|
||||||
shrink: Whether the element will take up the smallest possible space: "0" | "1"
|
|
||||||
grow: Whether the element will take up the largest possible space: "0" | "1"
|
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -9,7 +9,6 @@ from typing import Literal
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from .base import (
|
from .base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
LiteralVariant,
|
LiteralVariant,
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
@ -21,7 +20,7 @@ LiteralTextSize = Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
|
|||||||
LiteralTextTrim = Literal["normal", "start", "end", "both"]
|
LiteralTextTrim = Literal["normal", "start", "end", "both"]
|
||||||
|
|
||||||
|
|
||||||
class Text(CommonMarginProps, RadixThemesComponent):
|
class Text(RadixThemesComponent):
|
||||||
"""A foundational text primitive based on the <span> element."""
|
"""A foundational text primitive based on the <span> element."""
|
||||||
|
|
||||||
tag = "Text"
|
tag = "Text"
|
||||||
@ -57,7 +56,7 @@ class Heading(Text):
|
|||||||
tag = "Heading"
|
tag = "Heading"
|
||||||
|
|
||||||
|
|
||||||
class Blockquote(CommonMarginProps, RadixThemesComponent):
|
class Blockquote(RadixThemesComponent):
|
||||||
"""A block level extended quotation."""
|
"""A block level extended quotation."""
|
||||||
|
|
||||||
tag = "Blockquote"
|
tag = "Blockquote"
|
||||||
@ -84,13 +83,13 @@ class Code(Blockquote):
|
|||||||
variant: Var[LiteralVariant]
|
variant: Var[LiteralVariant]
|
||||||
|
|
||||||
|
|
||||||
class Em(CommonMarginProps, RadixThemesComponent):
|
class Em(RadixThemesComponent):
|
||||||
"""Marks text to stress emphasis."""
|
"""Marks text to stress emphasis."""
|
||||||
|
|
||||||
tag = "Em"
|
tag = "Em"
|
||||||
|
|
||||||
|
|
||||||
class Kbd(CommonMarginProps, RadixThemesComponent):
|
class Kbd(RadixThemesComponent):
|
||||||
"""Represents keyboard input or a hotkey."""
|
"""Represents keyboard input or a hotkey."""
|
||||||
|
|
||||||
tag = "Kbd"
|
tag = "Kbd"
|
||||||
@ -102,7 +101,7 @@ class Kbd(CommonMarginProps, RadixThemesComponent):
|
|||||||
LiteralLinkUnderline = Literal["auto", "hover", "always"]
|
LiteralLinkUnderline = Literal["auto", "hover", "always"]
|
||||||
|
|
||||||
|
|
||||||
class Link(CommonMarginProps, RadixThemesComponent):
|
class Link(RadixThemesComponent):
|
||||||
"""A semantic element for navigation between pages."""
|
"""A semantic element for navigation between pages."""
|
||||||
|
|
||||||
tag = "Link"
|
tag = "Link"
|
||||||
@ -129,13 +128,13 @@ class Link(CommonMarginProps, RadixThemesComponent):
|
|||||||
high_contrast: Var[bool]
|
high_contrast: Var[bool]
|
||||||
|
|
||||||
|
|
||||||
class Quote(CommonMarginProps, RadixThemesComponent):
|
class Quote(RadixThemesComponent):
|
||||||
"""A short inline quotation."""
|
"""A short inline quotation."""
|
||||||
|
|
||||||
tag = "Quote"
|
tag = "Quote"
|
||||||
|
|
||||||
|
|
||||||
class Strong(CommonMarginProps, RadixThemesComponent):
|
class Strong(RadixThemesComponent):
|
||||||
"""Marks text to signify strong importance."""
|
"""Marks text to signify strong importance."""
|
||||||
|
|
||||||
tag = "Strong"
|
tag = "Strong"
|
||||||
|
@ -8,7 +8,6 @@ from reflex import el
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
@ -18,7 +17,7 @@ from .base import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class Blockquote(el.Blockquote, CommonMarginProps, RadixThemesComponent):
|
class Blockquote(el.Blockquote, RadixThemesComponent):
|
||||||
"""A block level extended quotation."""
|
"""A block level extended quotation."""
|
||||||
|
|
||||||
tag = "Blockquote"
|
tag = "Blockquote"
|
||||||
|
@ -9,10 +9,10 @@ from reflex.event import EventChain, EventHandler, EventSpec
|
|||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent
|
from ..base import LiteralAccentColor, RadixThemesComponent
|
||||||
from .base import LiteralTextSize, LiteralTextWeight
|
from .base import LiteralTextSize, LiteralTextWeight
|
||||||
|
|
||||||
class Blockquote(el.Blockquote, CommonMarginProps, RadixThemesComponent):
|
class Blockquote(el.Blockquote, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -138,48 +138,6 @@ class Blockquote(el.Blockquote, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -263,13 +221,6 @@ class Blockquote(el.Blockquote, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -8,7 +8,6 @@ from reflex import el
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
LiteralVariant,
|
LiteralVariant,
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
@ -19,7 +18,7 @@ from .base import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class Code(el.Code, CommonMarginProps, RadixThemesComponent):
|
class Code(el.Code, RadixThemesComponent):
|
||||||
"""A block level extended quotation."""
|
"""A block level extended quotation."""
|
||||||
|
|
||||||
tag = "Code"
|
tag = "Code"
|
||||||
|
@ -9,15 +9,10 @@ from reflex.event import EventChain, EventHandler, EventSpec
|
|||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import (
|
from ..base import LiteralAccentColor, LiteralVariant, RadixThemesComponent
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
|
||||||
LiteralVariant,
|
|
||||||
RadixThemesComponent,
|
|
||||||
)
|
|
||||||
from .base import LiteralTextSize, LiteralTextWeight
|
from .base import LiteralTextSize, LiteralTextWeight
|
||||||
|
|
||||||
class Code(el.Code, CommonMarginProps, RadixThemesComponent):
|
class Code(el.Code, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -148,48 +143,6 @@ class Code(el.Code, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -273,13 +226,6 @@ class Code(el.Code, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -7,12 +7,11 @@ from __future__ import annotations
|
|||||||
from reflex import el
|
from reflex import el
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class Em(el.Em, CommonMarginProps, RadixThemesComponent):
|
class Em(el.Em, RadixThemesComponent):
|
||||||
"""Marks text to stress emphasis."""
|
"""Marks text to stress emphasis."""
|
||||||
|
|
||||||
tag = "Em"
|
tag = "Em"
|
||||||
|
@ -8,9 +8,9 @@ from reflex.vars import Var, BaseVar, ComputedVar
|
|||||||
from reflex.event import EventChain, EventHandler, EventSpec
|
from reflex.event import EventChain, EventHandler, EventSpec
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex import el
|
from reflex import el
|
||||||
from ..base import CommonMarginProps, RadixThemesComponent
|
from ..base import RadixThemesComponent
|
||||||
|
|
||||||
class Em(el.Em, CommonMarginProps, RadixThemesComponent):
|
class Em(el.Em, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -122,48 +122,6 @@ class Em(el.Em, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -243,13 +201,6 @@ class Em(el.Em, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -8,7 +8,6 @@ from reflex import el
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
@ -20,7 +19,7 @@ from .base import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class Heading(el.H1, CommonMarginProps, RadixThemesComponent):
|
class Heading(el.H1, RadixThemesComponent):
|
||||||
"""A foundational text primitive based on the <span> element."""
|
"""A foundational text primitive based on the <span> element."""
|
||||||
|
|
||||||
tag = "Heading"
|
tag = "Heading"
|
||||||
|
@ -9,10 +9,10 @@ from reflex.event import EventChain, EventHandler, EventSpec
|
|||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent
|
from ..base import LiteralAccentColor, RadixThemesComponent
|
||||||
from .base import LiteralTextAlign, LiteralTextSize, LiteralTextTrim, LiteralTextWeight
|
from .base import LiteralTextAlign, LiteralTextSize, LiteralTextTrim, LiteralTextWeight
|
||||||
|
|
||||||
class Heading(el.H1, CommonMarginProps, RadixThemesComponent):
|
class Heading(el.H1, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -151,48 +151,6 @@ class Heading(el.H1, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -279,13 +237,6 @@ class Heading(el.H1, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -8,7 +8,6 @@ from reflex import el
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
from .base import (
|
from .base import (
|
||||||
@ -16,7 +15,7 @@ from .base import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class Kbd(el.Kbd, CommonMarginProps, RadixThemesComponent):
|
class Kbd(el.Kbd, RadixThemesComponent):
|
||||||
"""Represents keyboard input or a hotkey."""
|
"""Represents keyboard input or a hotkey."""
|
||||||
|
|
||||||
tag = "Kbd"
|
tag = "Kbd"
|
||||||
|
@ -9,10 +9,10 @@ from reflex.event import EventChain, EventHandler, EventSpec
|
|||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, RadixThemesComponent
|
from ..base import RadixThemesComponent
|
||||||
from .base import LiteralTextSize
|
from .base import LiteralTextSize
|
||||||
|
|
||||||
class Kbd(el.Kbd, CommonMarginProps, RadixThemesComponent):
|
class Kbd(el.Kbd, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -130,48 +130,6 @@ class Kbd(el.Kbd, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -252,13 +210,6 @@ class Kbd(el.Kbd, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -13,7 +13,6 @@ from reflex.utils import imports
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
@ -28,7 +27,7 @@ LiteralLinkUnderline = Literal["auto", "hover", "always"]
|
|||||||
next_link = NextLink.create()
|
next_link = NextLink.create()
|
||||||
|
|
||||||
|
|
||||||
class Link(CommonMarginProps, RadixThemesComponent, A):
|
class Link(RadixThemesComponent, A):
|
||||||
"""A semantic element for navigation between pages."""
|
"""A semantic element for navigation between pages."""
|
||||||
|
|
||||||
tag = "Link"
|
tag = "Link"
|
||||||
|
@ -13,13 +13,13 @@ from reflex.components.el.elements.inline import A
|
|||||||
from reflex.components.next.link import NextLink
|
from reflex.components.next.link import NextLink
|
||||||
from reflex.utils import imports
|
from reflex.utils import imports
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent
|
from ..base import LiteralAccentColor, RadixThemesComponent
|
||||||
from .base import LiteralTextSize, LiteralTextTrim, LiteralTextWeight
|
from .base import LiteralTextSize, LiteralTextTrim, LiteralTextWeight
|
||||||
|
|
||||||
LiteralLinkUnderline = Literal["auto", "hover", "always"]
|
LiteralLinkUnderline = Literal["auto", "hover", "always"]
|
||||||
next_link = NextLink.create()
|
next_link = NextLink.create()
|
||||||
|
|
||||||
class Link(CommonMarginProps, RadixThemesComponent, A):
|
class Link(RadixThemesComponent, A):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -113,48 +113,6 @@ class Link(CommonMarginProps, RadixThemesComponent, A):
|
|||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
download: Optional[
|
download: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
@ -283,13 +241,6 @@ class Link(CommonMarginProps, RadixThemesComponent, A):
|
|||||||
underline: Sets the visibility of the underline affordance: "auto" | "hover" | "always"
|
underline: Sets the visibility of the underline affordance: "auto" | "hover" | "always"
|
||||||
color_scheme: Overrides the accent color inherited from the Theme.
|
color_scheme: Overrides the accent color inherited from the Theme.
|
||||||
high_contrast: Whether to render the text with higher contrast color
|
high_contrast: Whether to render the text with higher contrast color
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
download: Specifies that the target (the file specified in the href attribute) will be downloaded when a user clicks on the hyperlink.
|
download: Specifies that the target (the file specified in the href attribute) will be downloaded when a user clicks on the hyperlink.
|
||||||
href: Specifies the URL of the page the link goes to
|
href: Specifies the URL of the page the link goes to
|
||||||
href_lang: Specifies the language of the linked document
|
href_lang: Specifies the language of the linked document
|
||||||
|
@ -7,12 +7,11 @@ from __future__ import annotations
|
|||||||
from reflex import el
|
from reflex import el
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class Quote(el.Q, CommonMarginProps, RadixThemesComponent):
|
class Quote(el.Q, RadixThemesComponent):
|
||||||
"""A short inline quotation."""
|
"""A short inline quotation."""
|
||||||
|
|
||||||
tag = "Quote"
|
tag = "Quote"
|
||||||
|
@ -8,9 +8,9 @@ from reflex.vars import Var, BaseVar, ComputedVar
|
|||||||
from reflex.event import EventChain, EventHandler, EventSpec
|
from reflex.event import EventChain, EventHandler, EventSpec
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex import el
|
from reflex import el
|
||||||
from ..base import CommonMarginProps, RadixThemesComponent
|
from ..base import RadixThemesComponent
|
||||||
|
|
||||||
class Quote(el.Q, CommonMarginProps, RadixThemesComponent):
|
class Quote(el.Q, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -123,48 +123,6 @@ class Quote(el.Q, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -245,13 +203,6 @@ class Quote(el.Q, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -7,12 +7,11 @@ from __future__ import annotations
|
|||||||
from reflex import el
|
from reflex import el
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class Strong(el.Strong, CommonMarginProps, RadixThemesComponent):
|
class Strong(el.Strong, RadixThemesComponent):
|
||||||
"""Marks text to signify strong importance."""
|
"""Marks text to signify strong importance."""
|
||||||
|
|
||||||
tag = "Strong"
|
tag = "Strong"
|
||||||
|
@ -8,9 +8,9 @@ from reflex.vars import Var, BaseVar, ComputedVar
|
|||||||
from reflex.event import EventChain, EventHandler, EventSpec
|
from reflex.event import EventChain, EventHandler, EventSpec
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex import el
|
from reflex import el
|
||||||
from ..base import CommonMarginProps, RadixThemesComponent
|
from ..base import RadixThemesComponent
|
||||||
|
|
||||||
class Strong(el.Strong, CommonMarginProps, RadixThemesComponent):
|
class Strong(el.Strong, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -122,48 +122,6 @@ class Strong(el.Strong, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -243,13 +201,6 @@ class Strong(el.Strong, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -8,7 +8,6 @@ from reflex import el
|
|||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
from ..base import (
|
from ..base import (
|
||||||
CommonMarginProps,
|
|
||||||
LiteralAccentColor,
|
LiteralAccentColor,
|
||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
@ -20,7 +19,7 @@ from .base import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class Text(el.Span, CommonMarginProps, RadixThemesComponent):
|
class Text(el.Span, RadixThemesComponent):
|
||||||
"""A foundational text primitive based on the <span> element."""
|
"""A foundational text primitive based on the <span> element."""
|
||||||
|
|
||||||
tag = "Text"
|
tag = "Text"
|
||||||
|
@ -9,10 +9,10 @@ from reflex.event import EventChain, EventHandler, EventSpec
|
|||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex import el
|
from reflex import el
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent
|
from ..base import LiteralAccentColor, RadixThemesComponent
|
||||||
from .base import LiteralTextAlign, LiteralTextSize, LiteralTextTrim, LiteralTextWeight
|
from .base import LiteralTextAlign, LiteralTextSize, LiteralTextTrim, LiteralTextWeight
|
||||||
|
|
||||||
class Text(el.Span, CommonMarginProps, RadixThemesComponent):
|
class Text(el.Span, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
@ -151,48 +151,6 @@ class Text(el.Span, CommonMarginProps, RadixThemesComponent):
|
|||||||
translate: Optional[
|
translate: Optional[
|
||||||
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
|
||||||
] = None,
|
] = None,
|
||||||
m: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mx: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
my: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mt: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mr: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
mb: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
ml: Optional[
|
|
||||||
Union[
|
|
||||||
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
||||||
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
||||||
]
|
|
||||||
] = None,
|
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -279,13 +237,6 @@ class Text(el.Span, CommonMarginProps, RadixThemesComponent):
|
|||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
translate: Specifies whether the content of an element should be translated or not.
|
translate: Specifies whether the content of an element should be translated or not.
|
||||||
m: Margin: "0" - "9"
|
|
||||||
mx: Margin horizontal: "0" - "9"
|
|
||||||
my: Margin vertical: "0" - "9"
|
|
||||||
mt: Margin top: "0" - "9"
|
|
||||||
mr: Margin right: "0" - "9"
|
|
||||||
mb: Margin bottom: "0" - "9"
|
|
||||||
ml: Margin left: "0" - "9"
|
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
Loading…
Reference in New Issue
Block a user