base.pyi 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. """Stub file for reflex/components/radix/themes/layout/base.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Dict, Literal, Optional, Union, overload
  6. from reflex.components.core.breakpoints import Breakpoints
  7. from reflex.event import BASE_STATE, EventType
  8. from reflex.style import Style
  9. from reflex.vars.base import Var
  10. from ..base import CommonMarginProps, CommonPaddingProps, RadixThemesComponent
  11. LiteralBoolNumber = Literal["0", "1"]
  12. class LayoutComponent(CommonMarginProps, CommonPaddingProps, RadixThemesComponent):
  13. @overload
  14. @classmethod
  15. def create( # type: ignore
  16. cls,
  17. *children,
  18. flex_shrink: Optional[
  19. Union[
  20. Breakpoints[str, Literal["0", "1"]],
  21. Literal["0", "1"],
  22. Var[Union[Breakpoints[str, Literal["0", "1"]], Literal["0", "1"]]],
  23. ]
  24. ] = None,
  25. flex_grow: Optional[
  26. Union[
  27. Breakpoints[str, Literal["0", "1"]],
  28. Literal["0", "1"],
  29. Var[Union[Breakpoints[str, Literal["0", "1"]], Literal["0", "1"]]],
  30. ]
  31. ] = None,
  32. m: Optional[
  33. Union[
  34. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  35. Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
  36. ]
  37. ] = None,
  38. mx: Optional[
  39. Union[
  40. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  41. Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
  42. ]
  43. ] = None,
  44. my: Optional[
  45. Union[
  46. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  47. Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
  48. ]
  49. ] = None,
  50. mt: Optional[
  51. Union[
  52. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  53. Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
  54. ]
  55. ] = None,
  56. mr: Optional[
  57. Union[
  58. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  59. Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
  60. ]
  61. ] = None,
  62. mb: Optional[
  63. Union[
  64. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  65. Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
  66. ]
  67. ] = None,
  68. ml: Optional[
  69. Union[
  70. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  71. Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
  72. ]
  73. ] = None,
  74. p: Optional[
  75. Union[
  76. Breakpoints[
  77. str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  78. ],
  79. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  80. Var[
  81. Union[
  82. Breakpoints[
  83. str,
  84. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  85. ],
  86. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  87. ]
  88. ],
  89. ]
  90. ] = None,
  91. px: Optional[
  92. Union[
  93. Breakpoints[
  94. str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  95. ],
  96. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  97. Var[
  98. Union[
  99. Breakpoints[
  100. str,
  101. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  102. ],
  103. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  104. ]
  105. ],
  106. ]
  107. ] = None,
  108. py: Optional[
  109. Union[
  110. Breakpoints[
  111. str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  112. ],
  113. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  114. Var[
  115. Union[
  116. Breakpoints[
  117. str,
  118. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  119. ],
  120. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  121. ]
  122. ],
  123. ]
  124. ] = None,
  125. pt: Optional[
  126. Union[
  127. Breakpoints[
  128. str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  129. ],
  130. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  131. Var[
  132. Union[
  133. Breakpoints[
  134. str,
  135. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  136. ],
  137. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  138. ]
  139. ],
  140. ]
  141. ] = None,
  142. pr: Optional[
  143. Union[
  144. Breakpoints[
  145. str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  146. ],
  147. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  148. Var[
  149. Union[
  150. Breakpoints[
  151. str,
  152. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  153. ],
  154. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  155. ]
  156. ],
  157. ]
  158. ] = None,
  159. pb: Optional[
  160. Union[
  161. Breakpoints[
  162. str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  163. ],
  164. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  165. Var[
  166. Union[
  167. Breakpoints[
  168. str,
  169. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  170. ],
  171. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  172. ]
  173. ],
  174. ]
  175. ] = None,
  176. pl: Optional[
  177. Union[
  178. Breakpoints[
  179. str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  180. ],
  181. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  182. Var[
  183. Union[
  184. Breakpoints[
  185. str,
  186. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  187. ],
  188. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  189. ]
  190. ],
  191. ]
  192. ] = None,
  193. style: Optional[Style] = None,
  194. key: Optional[Any] = None,
  195. id: Optional[Any] = None,
  196. class_name: Optional[Any] = None,
  197. autofocus: Optional[bool] = None,
  198. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  199. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  200. on_click: Optional[EventType[[], BASE_STATE]] = None,
  201. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  202. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  203. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  204. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  205. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  206. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  207. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  208. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  209. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  210. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  211. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  212. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  213. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  214. **props,
  215. ) -> "LayoutComponent":
  216. """Create a new component instance.
  217. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  218. other UI libraries for common names, like Text and Button.
  219. Args:
  220. *children: Child components.
  221. flex_shrink: Whether the element will take up the smallest possible space: "0" | "1"
  222. flex_grow: Whether the element will take up the largest possible space: "0" | "1"
  223. m: Margin: "0" - "9"
  224. mx: Margin horizontal: "0" - "9"
  225. my: Margin vertical: "0" - "9"
  226. mt: Margin top: "0" - "9"
  227. mr: Margin right: "0" - "9"
  228. mb: Margin bottom: "0" - "9"
  229. ml: Margin left: "0" - "9"
  230. p: Padding: "0" - "9"
  231. px: Padding horizontal: "0" - "9"
  232. py: Padding vertical: "0" - "9"
  233. pt: Padding top: "0" - "9"
  234. pr: Padding right: "0" - "9"
  235. pb: Padding bottom: "0" - "9"
  236. pl: Padding left: "0" - "9"
  237. style: The style of the component.
  238. key: A unique key for the component.
  239. id: The id for the component.
  240. class_name: The class name for the component.
  241. autofocus: Whether the component should take the focus once the page is loaded
  242. custom_attrs: custom attribute
  243. **props: Component properties.
  244. Returns:
  245. A new component instance.
  246. """
  247. ...