Reformat code and import block
This commit is contained in:
parent
81496e846a
commit
4865bd23a2
@ -2,14 +2,13 @@
|
||||
|
||||
from typing import Dict, List, Literal, Union
|
||||
|
||||
from reflex.components.component import ComponentNamespace
|
||||
from reflex.components.component import Component, ComponentNamespace
|
||||
from reflex.components.core.breakpoints import Responsive
|
||||
from reflex.event import EventHandler, no_args_event_spec, passthrough_event_spec
|
||||
from reflex.vars.base import LiteralVar, Var
|
||||
from reflex.components.component import Component
|
||||
from .checkbox import HighLevelCheckbox
|
||||
|
||||
from ..base import LiteralAccentColor, RadixThemesComponent
|
||||
from .checkbox import HighLevelCheckbox
|
||||
|
||||
LiteralDirType = Literal["ltr", "rtl"]
|
||||
|
||||
@ -30,6 +29,7 @@ LiteralCheckboxSize = Literal["1", "2", "3"]
|
||||
|
||||
LiteralCheckboxVariant = Literal["classic", "surface", "soft"]
|
||||
|
||||
|
||||
class ContextMenuRoot(RadixThemesComponent):
|
||||
"""Menu representing a set of actions, displayed at the origin of a pointer right-click or long-press."""
|
||||
|
||||
@ -236,6 +236,7 @@ class ContextMenuSeparator(RadixThemesComponent):
|
||||
|
||||
tag = "ContextMenu.Separator"
|
||||
|
||||
|
||||
class ContextMenuCheckbox(RadixThemesComponent):
|
||||
"""The component that contains the checkbox."""
|
||||
|
||||
@ -253,6 +254,7 @@ class ContextMenuCheckbox(RadixThemesComponent):
|
||||
"""
|
||||
return HighLevelCheckbox.create(cls, **props)
|
||||
|
||||
|
||||
class ContextMenu(ComponentNamespace):
|
||||
"""Menu representing a set of actions, diplayed at the origin of a pointer right-click or long-press."""
|
||||
|
||||
@ -266,4 +268,5 @@ class ContextMenu(ComponentNamespace):
|
||||
separator = staticmethod(ContextMenuSeparator.create)
|
||||
checkbox = staticmethod(ContextMenuCheckbox.create)
|
||||
|
||||
|
||||
context_menu = ContextMenu()
|
||||
|
Loading…
Reference in New Issue
Block a user