base.pyi 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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, Callable, Dict, Optional, Union, overload
  6. from reflex.components.component import Component
  7. from reflex.event import EventHandler, EventSpec
  8. from reflex.style import Style
  9. from reflex.vars 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, str]]] = None,
  23. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  24. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  25. on_context_menu: Optional[
  26. Union[EventHandler, EventSpec, list, Callable, Var]
  27. ] = None,
  28. on_double_click: Optional[
  29. Union[EventHandler, EventSpec, list, Callable, Var]
  30. ] = None,
  31. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  32. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  33. on_mouse_down: Optional[
  34. Union[EventHandler, EventSpec, list, Callable, Var]
  35. ] = None,
  36. on_mouse_enter: Optional[
  37. Union[EventHandler, EventSpec, list, Callable, Var]
  38. ] = None,
  39. on_mouse_leave: Optional[
  40. Union[EventHandler, EventSpec, list, Callable, Var]
  41. ] = None,
  42. on_mouse_move: Optional[
  43. Union[EventHandler, EventSpec, list, Callable, Var]
  44. ] = None,
  45. on_mouse_out: Optional[
  46. Union[EventHandler, EventSpec, list, Callable, Var]
  47. ] = None,
  48. on_mouse_over: Optional[
  49. Union[EventHandler, EventSpec, list, Callable, Var]
  50. ] = None,
  51. on_mouse_up: Optional[
  52. Union[EventHandler, EventSpec, list, Callable, Var]
  53. ] = None,
  54. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  55. on_unmount: Optional[
  56. Union[EventHandler, EventSpec, list, Callable, Var]
  57. ] = None,
  58. **props,
  59. ) -> "RadixPrimitiveComponent":
  60. """Create the component.
  61. Args:
  62. *children: The children of the component.
  63. as_child: Change the default rendered element for the one passed as a child.
  64. style: The style of the component.
  65. key: A unique key for the component.
  66. id: The id for the component.
  67. class_name: The class name for the component.
  68. autofocus: Whether the component should take the focus once the page is loaded
  69. custom_attrs: custom attribute
  70. **props: The props of the component.
  71. Returns:
  72. The component.
  73. """
  74. ...
  75. class RadixPrimitiveComponentWithClassName(RadixPrimitiveComponent):
  76. @overload
  77. @classmethod
  78. def create( # type: ignore
  79. cls,
  80. *children,
  81. as_child: Optional[Union[Var[bool], bool]] = None,
  82. style: Optional[Style] = None,
  83. key: Optional[Any] = None,
  84. id: Optional[Any] = None,
  85. class_name: Optional[Any] = None,
  86. autofocus: Optional[bool] = None,
  87. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  88. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  89. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  90. on_context_menu: Optional[
  91. Union[EventHandler, EventSpec, list, Callable, Var]
  92. ] = None,
  93. on_double_click: Optional[
  94. Union[EventHandler, EventSpec, list, Callable, Var]
  95. ] = None,
  96. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  97. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  98. on_mouse_down: Optional[
  99. Union[EventHandler, EventSpec, list, Callable, Var]
  100. ] = None,
  101. on_mouse_enter: Optional[
  102. Union[EventHandler, EventSpec, list, Callable, Var]
  103. ] = None,
  104. on_mouse_leave: Optional[
  105. Union[EventHandler, EventSpec, list, Callable, Var]
  106. ] = None,
  107. on_mouse_move: Optional[
  108. Union[EventHandler, EventSpec, list, Callable, Var]
  109. ] = None,
  110. on_mouse_out: Optional[
  111. Union[EventHandler, EventSpec, list, Callable, Var]
  112. ] = None,
  113. on_mouse_over: Optional[
  114. Union[EventHandler, EventSpec, list, Callable, Var]
  115. ] = None,
  116. on_mouse_up: Optional[
  117. Union[EventHandler, EventSpec, list, Callable, Var]
  118. ] = None,
  119. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  120. on_unmount: Optional[
  121. Union[EventHandler, EventSpec, list, Callable, Var]
  122. ] = None,
  123. **props,
  124. ) -> "RadixPrimitiveComponentWithClassName":
  125. """Create the component.
  126. Args:
  127. *children: The children of the component.
  128. as_child: Change the default rendered element for the one passed as a child.
  129. style: The style of the component.
  130. key: A unique key for the component.
  131. id: The id for the component.
  132. class_name: The class name for the component.
  133. autofocus: Whether the component should take the focus once the page is loaded
  134. custom_attrs: custom attribute
  135. **props: The props of the component.
  136. Returns:
  137. The component.
  138. """
  139. ...