fix pyi again

This commit is contained in:
Tom Gotsman 2024-11-01 09:46:10 -07:00
parent 088dcbf1e6
commit 319e81d5f7
5 changed files with 13 additions and 7 deletions

View File

@ -116,8 +116,10 @@ class DrawerRoot(DrawerComponent):
*children: The children of the component. *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. 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. open: Whether the drawer is open or not.
on_open_change: Fires when the drawer is opened or closed.
modal: When `False`, it allows interaction with elements outside of the drawer without closing it. Defaults to `True`. 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"` direction: Direction of the drawer. This adjusts the animations and the drag direction. Defaults to `"bottom"`
on_animation_end: Gets triggered after the open or close animation ends, it receives an open argument with the open state of the drawer by the time the function was triggered.
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. 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. 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. 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.
@ -596,8 +598,10 @@ class Drawer(ComponentNamespace):
*children: The children of the component. *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. 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. open: Whether the drawer is open or not.
on_open_change: Fires when the drawer is opened or closed.
modal: When `False`, it allows interaction with elements outside of the drawer without closing it. Defaults to `True`. 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"` direction: Direction of the drawer. This adjusts the animations and the drag direction. Defaults to `"bottom"`
on_animation_end: Gets triggered after the open or close animation ends, it receives an open argument with the open state of the drawer by the time the function was triggered.
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. 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. 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. 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.

View File

@ -56,8 +56,8 @@ class AlertDialogRoot(RadixThemesComponent):
Args: Args:
*children: Child components. *children: Child components.
open: The controlled open state of the dialog. open: The controlled open state of the dialog.
default_open: The open state of the dialog when it is initially rendered. Use when you do not need to control its open state.
on_open_change: Fired when the open state changes. on_open_change: Fired when the open state changes.
default_open: The open state of the dialog when it is initially rendered. Use when you do not need to control its open state.
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.

View File

@ -60,8 +60,8 @@ class ContextMenuRoot(RadixThemesComponent):
Args: Args:
*children: Child components. *children: Child components.
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.
dir: The reading direction of submenus when applicable. If omitted, inherits globally from DirectionProvider or assumes LTR (left-to-right) reading mode.
on_open_change: Fired when the open state changes. on_open_change: Fired when the open state changes.
dir: The reading direction of submenus when applicable. If omitted, inherits globally from DirectionProvider or assumes LTR (left-to-right) reading mode.
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,11 +285,11 @@ class ContextMenuContent(RadixThemesComponent):
collision_padding: The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for all sides), or a partial padding object, for example: { "top": 20, "left": 20 }. Defaults to 0. collision_padding: The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for all sides), or a partial padding object, for example: { "top": 20, "left": 20 }. Defaults to 0.
sticky: The sticky behavior on the align axis. "partial" will keep the content in the boundary as long as the trigger is at least partially in the boundary whilst "always" will keep the content in the boundary regardless. Defaults to "partial". sticky: The sticky behavior on the align axis. "partial" will keep the content in the boundary as long as the trigger is at least partially in the boundary whilst "always" will keep the content in the boundary regardless. Defaults to "partial".
hide_when_detached: Whether to hide the content when the trigger becomes fully occluded. Defaults to False. hide_when_detached: Whether to hide the content when the trigger becomes fully occluded. Defaults to False.
on_close_auto_focus: Fired when the context menu is closed. on_close_auto_focus: Fired when focus moves back after closing.
on_escape_key_down: Fired when the escape key is pressed. on_escape_key_down: Fired when the escape key is pressed.
on_pointer_down_outside: Fired when a pointer down event happens outside the context menu. on_pointer_down_outside: Fired when a pointer down event happens outside the context menu.
on_focus_outside: Fired when focus moves outside the context menu. on_focus_outside: Fired when focus moves outside the context menu.
on_interact_outside: Fired when interacting outside the context menu. on_interact_outside: Fired when the pointer interacts outside the context menu.
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.
@ -344,6 +344,7 @@ class ContextMenuSub(RadixThemesComponent):
*children: Child components. *children: Child components.
open: The controlled open state of the submenu. Must be used in conjunction with `on_open_change`. open: The controlled open state of the submenu. Must be used in conjunction with `on_open_change`.
default_open: The open state of the submenu when it is initially rendered. Use when you do not need to control its open state. default_open: The open state of the submenu when it is initially rendered. Use when you do not need to control its open state.
on_open_change: Fired when the open state changes.
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.
@ -604,6 +605,7 @@ class ContextMenuItem(RadixThemesComponent):
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False. 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. 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 content 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.
on_select: Fired when the item is selected.
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.

View File

@ -54,8 +54,8 @@ class DialogRoot(RadixThemesComponent):
Args: Args:
*children: Child components. *children: Child components.
open: The controlled open state of the dialog. open: The controlled open state of the dialog.
default_open: The open state of the dialog when it is initially rendered. Use when you do not need to control its open state.
on_open_change: Fired when the open state changes. on_open_change: Fired when the open state changes.
default_open: The open state of the dialog when it is initially rendered. Use when you do not need to control its open state.
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,8 +404,8 @@ class Dialog(ComponentNamespace):
Args: Args:
*children: Child components. *children: Child components.
open: The controlled open state of the dialog. open: The controlled open state of the dialog.
default_open: The open state of the dialog when it is initially rendered. Use when you do not need to control its open state.
on_open_change: Fired when the open state changes. on_open_change: Fired when the open state changes.
default_open: The open state of the dialog when it is initially rendered. Use when you do not need to control its open state.
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.

View File

@ -56,8 +56,8 @@ class PopoverRoot(RadixThemesComponent):
*children: Child components. *children: Child components.
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.
default_open: The open state of the popover when it is initially rendered. Use when you do not need to control its open state.
on_open_change: Fired when the open state changes. on_open_change: Fired when the open state changes.
default_open: The open state of the popover when it is initially rendered. Use when you do not need to control its open state.
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.