fix pyi
This commit is contained in:
parent
17776081a9
commit
c1e2c5ba9c
@ -73,7 +73,7 @@ class DrawerRoot(DrawerComponent):
|
||||
should_scale_background: Var[bool]
|
||||
|
||||
# Number between 0 and 1 that determines when the drawer should be closed.
|
||||
close_threshold: Var[float]
|
||||
close_threshold: Var[float]
|
||||
|
||||
|
||||
class DrawerTrigger(DrawerComponent):
|
||||
|
@ -116,15 +116,15 @@ class DrawerRoot(DrawerComponent):
|
||||
*children: The children of the component.
|
||||
default_open: The open state of the drawer when it is initially rendered. Use when you do not need to control its open state.
|
||||
open: Whether the drawer is open or not.
|
||||
modal: When `False`, it allows to interact with elements outside of the drawer without closing it. Defaults to `True`.
|
||||
direction: Direction of the drawer. This adjust the animations and the drag direction. Defaults to `"bottom"`
|
||||
dismissible: When false dragging, clicking outside, pressing esc, etc. will not close the drawer. Use this in combination with the open prop, otherwise you won't be able to open/close the drawer.
|
||||
handle_only: When true dragging will only be possible by the handle.
|
||||
modal: When `False`, it allows interaction with elements outside of the drawer without closing it. Defaults to `True`.
|
||||
direction: Direction of the drawer. This adjusts the animations and the drag direction. Defaults to `"bottom"`
|
||||
dismissible: When `False`, dragging, clicking outside, pressing esc, etc. will not close the drawer. Use this in combination with the open prop, otherwise you won't be able to open/close the drawer.
|
||||
handle_only: When `True`, dragging will only be possible by the handle.
|
||||
snap_points: Array of numbers from 0 to 100 that corresponds to % of the screen a given snap point should take up. Should go from least visible. Also Accept px values, which doesn't take screen height into account.
|
||||
fade_from_index: Index of a snapPoint from which the overlay fade should be applied. Defaults to the last snap point.
|
||||
scroll_lock_timeout: Duration for which the drawer is not draggable after scrolling content inside of the drawer. Defaults to 500ms
|
||||
preventScrollRestoration: When `True`, it prevents scroll restoration. Defaults to `True`.
|
||||
should_scale_background: Enable background scaling, it requires an element with [vaul-drawer-wrapper] data attribute to scale its background.
|
||||
should_scale_background: Enable background scaling, it requires container element with `vaul-drawer-wrapper` attribute to scale its background.
|
||||
close_threshold: Number between 0 and 1 that determines when the drawer should be closed.
|
||||
as_child: Change the default rendered element for the one passed as a child.
|
||||
style: The style of the component.
|
||||
@ -582,15 +582,15 @@ class Drawer(ComponentNamespace):
|
||||
*children: The children of the component.
|
||||
default_open: The open state of the drawer when it is initially rendered. Use when you do not need to control its open state.
|
||||
open: Whether the drawer is open or not.
|
||||
modal: When `False`, it allows to interact with elements outside of the drawer without closing it. Defaults to `True`.
|
||||
direction: Direction of the drawer. This adjust the animations and the drag direction. Defaults to `"bottom"`
|
||||
dismissible: When false dragging, clicking outside, pressing esc, etc. will not close the drawer. Use this in combination with the open prop, otherwise you won't be able to open/close the drawer.
|
||||
handle_only: When true dragging will only be possible by the handle.
|
||||
modal: When `False`, it allows interaction with elements outside of the drawer without closing it. Defaults to `True`.
|
||||
direction: Direction of the drawer. This adjusts the animations and the drag direction. Defaults to `"bottom"`
|
||||
dismissible: When `False`, dragging, clicking outside, pressing esc, etc. will not close the drawer. Use this in combination with the open prop, otherwise you won't be able to open/close the drawer.
|
||||
handle_only: When `True`, dragging will only be possible by the handle.
|
||||
snap_points: Array of numbers from 0 to 100 that corresponds to % of the screen a given snap point should take up. Should go from least visible. Also Accept px values, which doesn't take screen height into account.
|
||||
fade_from_index: Index of a snapPoint from which the overlay fade should be applied. Defaults to the last snap point.
|
||||
scroll_lock_timeout: Duration for which the drawer is not draggable after scrolling content inside of the drawer. Defaults to 500ms
|
||||
preventScrollRestoration: When `True`, it prevents scroll restoration. Defaults to `True`.
|
||||
should_scale_background: Enable background scaling, it requires an element with [vaul-drawer-wrapper] data attribute to scale its background.
|
||||
should_scale_background: Enable background scaling, it requires container element with `vaul-drawer-wrapper` attribute to scale its background.
|
||||
close_threshold: Number between 0 and 1 that determines when the drawer should be closed.
|
||||
as_child: Change the default rendered element for the one passed as a child.
|
||||
style: The style of the component.
|
||||
|
@ -171,7 +171,7 @@ class ContextMenuSubContent(RadixThemesComponent):
|
||||
force_mount: Var[bool]
|
||||
|
||||
# The distance in pixels from the trigger. Defaults to 0.
|
||||
side_offset: Var[Union[float, int]]
|
||||
side_offset: Var[Union[float, int]]
|
||||
|
||||
# An offset in pixels from the "start" or "end" alignment options.
|
||||
align_offset: Var[Union[float, int]]
|
||||
|
@ -593,7 +593,7 @@ class ContextMenuItem(RadixThemesComponent):
|
||||
shortcut: Shortcut to render a menu item as a link
|
||||
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
|
||||
disabled: When true, prevents the user from interacting with the item.
|
||||
text_value: Optional text used for typeahead purposes. By default the typeahead behavior will use the .textContent of the item. Use this when the content is complex, or you have non-textual content inside.
|
||||
text_value: Optional text used for typeahead purposes. By default the typeahead behavior will use the content of the item. Use this when the content is complex, or you have non-textual content inside.
|
||||
style: The style of the component.
|
||||
key: A unique key for the component.
|
||||
id: The id for the component.
|
||||
|
@ -50,7 +50,7 @@ class DialogContent(elements.Div, RadixThemesComponent):
|
||||
size: Var[Responsive[Literal["1", "2", "3", "4"]]]
|
||||
|
||||
# Fired when the dialog is opened.
|
||||
on_open_auto_focus: EventHandler[empty_event]
|
||||
on_open_auto_focus: EventHandler[empty_event]
|
||||
|
||||
# Fired when the dialog is closed.
|
||||
on_close_auto_focus: EventHandler[empty_event]
|
||||
|
@ -86,7 +86,7 @@ class PopoverContent(elements.Div, RadixThemesComponent):
|
||||
on_focus_outside: EventHandler[empty_event]
|
||||
|
||||
# Fired when the pointer interacts outside the dialog.
|
||||
on_interact_outside: EventHandler[empty_event]
|
||||
on_interact_outside: EventHandler[empty_event]
|
||||
|
||||
|
||||
class PopoverClose(RadixThemesTriggerComponent):
|
||||
|
Loading…
Reference in New Issue
Block a user