base.pyi 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. """Stub file for reflex/components/radix/primitives/base.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Dict, Optional, Union, overload
  6. from reflex.components.component import Component
  7. from reflex.event import BASE_STATE, EventType
  8. from reflex.style import Style
  9. from reflex.vars.base import Var
  10. class RadixPrimitiveComponent(Component):
  11. @overload
  12. @classmethod
  13. def create( # type: ignore
  14. cls,
  15. *children,
  16. as_child: Optional[Union[Var[bool], bool]] = None,
  17. style: Optional[Style] = None,
  18. key: Optional[Any] = None,
  19. id: Optional[Any] = None,
  20. class_name: Optional[Any] = None,
  21. autofocus: Optional[bool] = None,
  22. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  23. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  24. on_click: Optional[EventType[[], BASE_STATE]] = None,
  25. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  26. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  27. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  28. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  29. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  30. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  31. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  32. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  33. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  34. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  35. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  36. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  37. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  38. **props,
  39. ) -> "RadixPrimitiveComponent":
  40. """Create the component.
  41. Args:
  42. *children: The children of the component.
  43. as_child: Change the default rendered element for the one passed as a child.
  44. style: The style of the component.
  45. key: A unique key for the component.
  46. id: The id for the component.
  47. class_name: The class name for the component.
  48. autofocus: Whether the component should take the focus once the page is loaded
  49. custom_attrs: custom attribute
  50. **props: The props of the component.
  51. Returns:
  52. The component.
  53. """
  54. ...
  55. class RadixPrimitiveComponentWithClassName(RadixPrimitiveComponent):
  56. @overload
  57. @classmethod
  58. def create( # type: ignore
  59. cls,
  60. *children,
  61. as_child: Optional[Union[Var[bool], bool]] = None,
  62. style: Optional[Style] = None,
  63. key: Optional[Any] = None,
  64. id: Optional[Any] = None,
  65. class_name: Optional[Any] = None,
  66. autofocus: Optional[bool] = None,
  67. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  68. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  69. on_click: Optional[EventType[[], BASE_STATE]] = None,
  70. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  71. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  72. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  73. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  74. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  75. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  76. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  77. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  78. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  79. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  80. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  81. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  82. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  83. **props,
  84. ) -> "RadixPrimitiveComponentWithClassName":
  85. """Create the component.
  86. Args:
  87. *children: The children of the component.
  88. as_child: Change the default rendered element for the one passed as a child.
  89. style: The style of the component.
  90. key: A unique key for the component.
  91. id: The id for the component.
  92. class_name: The class name for the component.
  93. autofocus: Whether the component should take the focus once the page is loaded
  94. custom_attrs: custom attribute
  95. **props: The props of the component.
  96. Returns:
  97. The component.
  98. """
  99. ...