document.pyi 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  1. """Stub file for reflex/components/base/document.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `scripts/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Dict, Literal, Optional, Union, overload
  6. from reflex.vars import Var, BaseVar, ComputedVar
  7. from reflex.event import EventChain, EventHandler, EventSpec
  8. from reflex.style import Style
  9. from reflex.components.component import Component
  10. from reflex.components.libs.chakra import ChakraComponent
  11. class NextDocumentLib(Component):
  12. @overload
  13. @classmethod
  14. def create( # type: ignore
  15. cls,
  16. *children,
  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[
  24. Union[EventHandler, EventSpec, list, function, BaseVar]
  25. ] = None,
  26. on_click: Optional[
  27. Union[EventHandler, EventSpec, list, function, BaseVar]
  28. ] = None,
  29. on_context_menu: Optional[
  30. Union[EventHandler, EventSpec, list, function, BaseVar]
  31. ] = None,
  32. on_double_click: Optional[
  33. Union[EventHandler, EventSpec, list, function, BaseVar]
  34. ] = None,
  35. on_focus: Optional[
  36. Union[EventHandler, EventSpec, list, function, BaseVar]
  37. ] = None,
  38. on_mount: Optional[
  39. Union[EventHandler, EventSpec, list, function, BaseVar]
  40. ] = None,
  41. on_mouse_down: Optional[
  42. Union[EventHandler, EventSpec, list, function, BaseVar]
  43. ] = None,
  44. on_mouse_enter: Optional[
  45. Union[EventHandler, EventSpec, list, function, BaseVar]
  46. ] = None,
  47. on_mouse_leave: Optional[
  48. Union[EventHandler, EventSpec, list, function, BaseVar]
  49. ] = None,
  50. on_mouse_move: Optional[
  51. Union[EventHandler, EventSpec, list, function, BaseVar]
  52. ] = None,
  53. on_mouse_out: Optional[
  54. Union[EventHandler, EventSpec, list, function, BaseVar]
  55. ] = None,
  56. on_mouse_over: Optional[
  57. Union[EventHandler, EventSpec, list, function, BaseVar]
  58. ] = None,
  59. on_mouse_up: Optional[
  60. Union[EventHandler, EventSpec, list, function, BaseVar]
  61. ] = None,
  62. on_scroll: Optional[
  63. Union[EventHandler, EventSpec, list, function, BaseVar]
  64. ] = None,
  65. on_unmount: Optional[
  66. Union[EventHandler, EventSpec, list, function, BaseVar]
  67. ] = None,
  68. **props
  69. ) -> "NextDocumentLib":
  70. """Create the component.
  71. Args:
  72. *children: The children of the component.
  73. style: The style of the component.
  74. key: A unique key for the component.
  75. id: The id for the component.
  76. class_name: The class name for the component.
  77. autofocus: Whether the component should take the focus once the page is loaded
  78. custom_attrs: custom attribute
  79. **props: The props of the component.
  80. Returns:
  81. The component.
  82. Raises:
  83. TypeError: If an invalid child is passed.
  84. """
  85. ...
  86. class Html(NextDocumentLib):
  87. @overload
  88. @classmethod
  89. def create( # type: ignore
  90. cls,
  91. *children,
  92. style: Optional[Style] = None,
  93. key: Optional[Any] = None,
  94. id: Optional[Any] = None,
  95. class_name: Optional[Any] = None,
  96. autofocus: Optional[bool] = None,
  97. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  98. on_blur: Optional[
  99. Union[EventHandler, EventSpec, list, function, BaseVar]
  100. ] = None,
  101. on_click: Optional[
  102. Union[EventHandler, EventSpec, list, function, BaseVar]
  103. ] = None,
  104. on_context_menu: Optional[
  105. Union[EventHandler, EventSpec, list, function, BaseVar]
  106. ] = None,
  107. on_double_click: Optional[
  108. Union[EventHandler, EventSpec, list, function, BaseVar]
  109. ] = None,
  110. on_focus: Optional[
  111. Union[EventHandler, EventSpec, list, function, BaseVar]
  112. ] = None,
  113. on_mount: Optional[
  114. Union[EventHandler, EventSpec, list, function, BaseVar]
  115. ] = None,
  116. on_mouse_down: Optional[
  117. Union[EventHandler, EventSpec, list, function, BaseVar]
  118. ] = None,
  119. on_mouse_enter: Optional[
  120. Union[EventHandler, EventSpec, list, function, BaseVar]
  121. ] = None,
  122. on_mouse_leave: Optional[
  123. Union[EventHandler, EventSpec, list, function, BaseVar]
  124. ] = None,
  125. on_mouse_move: Optional[
  126. Union[EventHandler, EventSpec, list, function, BaseVar]
  127. ] = None,
  128. on_mouse_out: Optional[
  129. Union[EventHandler, EventSpec, list, function, BaseVar]
  130. ] = None,
  131. on_mouse_over: Optional[
  132. Union[EventHandler, EventSpec, list, function, BaseVar]
  133. ] = None,
  134. on_mouse_up: Optional[
  135. Union[EventHandler, EventSpec, list, function, BaseVar]
  136. ] = None,
  137. on_scroll: Optional[
  138. Union[EventHandler, EventSpec, list, function, BaseVar]
  139. ] = None,
  140. on_unmount: Optional[
  141. Union[EventHandler, EventSpec, list, function, BaseVar]
  142. ] = None,
  143. **props
  144. ) -> "Html":
  145. """Create the component.
  146. Args:
  147. *children: The children of the component.
  148. style: The style of the component.
  149. key: A unique key for the component.
  150. id: The id for the component.
  151. class_name: The class name for the component.
  152. autofocus: Whether the component should take the focus once the page is loaded
  153. custom_attrs: custom attribute
  154. **props: The props of the component.
  155. Returns:
  156. The component.
  157. Raises:
  158. TypeError: If an invalid child is passed.
  159. """
  160. ...
  161. class DocumentHead(NextDocumentLib):
  162. @overload
  163. @classmethod
  164. def create( # type: ignore
  165. cls,
  166. *children,
  167. style: Optional[Style] = None,
  168. key: Optional[Any] = None,
  169. id: Optional[Any] = None,
  170. class_name: Optional[Any] = None,
  171. autofocus: Optional[bool] = None,
  172. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  173. on_blur: Optional[
  174. Union[EventHandler, EventSpec, list, function, BaseVar]
  175. ] = None,
  176. on_click: Optional[
  177. Union[EventHandler, EventSpec, list, function, BaseVar]
  178. ] = None,
  179. on_context_menu: Optional[
  180. Union[EventHandler, EventSpec, list, function, BaseVar]
  181. ] = None,
  182. on_double_click: Optional[
  183. Union[EventHandler, EventSpec, list, function, BaseVar]
  184. ] = None,
  185. on_focus: Optional[
  186. Union[EventHandler, EventSpec, list, function, BaseVar]
  187. ] = None,
  188. on_mount: Optional[
  189. Union[EventHandler, EventSpec, list, function, BaseVar]
  190. ] = None,
  191. on_mouse_down: Optional[
  192. Union[EventHandler, EventSpec, list, function, BaseVar]
  193. ] = None,
  194. on_mouse_enter: Optional[
  195. Union[EventHandler, EventSpec, list, function, BaseVar]
  196. ] = None,
  197. on_mouse_leave: Optional[
  198. Union[EventHandler, EventSpec, list, function, BaseVar]
  199. ] = None,
  200. on_mouse_move: Optional[
  201. Union[EventHandler, EventSpec, list, function, BaseVar]
  202. ] = None,
  203. on_mouse_out: Optional[
  204. Union[EventHandler, EventSpec, list, function, BaseVar]
  205. ] = None,
  206. on_mouse_over: Optional[
  207. Union[EventHandler, EventSpec, list, function, BaseVar]
  208. ] = None,
  209. on_mouse_up: Optional[
  210. Union[EventHandler, EventSpec, list, function, BaseVar]
  211. ] = None,
  212. on_scroll: Optional[
  213. Union[EventHandler, EventSpec, list, function, BaseVar]
  214. ] = None,
  215. on_unmount: Optional[
  216. Union[EventHandler, EventSpec, list, function, BaseVar]
  217. ] = None,
  218. **props
  219. ) -> "DocumentHead":
  220. """Create the component.
  221. Args:
  222. *children: The children of the component.
  223. style: The style of the component.
  224. key: A unique key for the component.
  225. id: The id for the component.
  226. class_name: The class name for the component.
  227. autofocus: Whether the component should take the focus once the page is loaded
  228. custom_attrs: custom attribute
  229. **props: The props of the component.
  230. Returns:
  231. The component.
  232. Raises:
  233. TypeError: If an invalid child is passed.
  234. """
  235. ...
  236. class Main(NextDocumentLib):
  237. @overload
  238. @classmethod
  239. def create( # type: ignore
  240. cls,
  241. *children,
  242. style: Optional[Style] = None,
  243. key: Optional[Any] = None,
  244. id: Optional[Any] = None,
  245. class_name: Optional[Any] = None,
  246. autofocus: Optional[bool] = None,
  247. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  248. on_blur: Optional[
  249. Union[EventHandler, EventSpec, list, function, BaseVar]
  250. ] = None,
  251. on_click: Optional[
  252. Union[EventHandler, EventSpec, list, function, BaseVar]
  253. ] = None,
  254. on_context_menu: Optional[
  255. Union[EventHandler, EventSpec, list, function, BaseVar]
  256. ] = None,
  257. on_double_click: Optional[
  258. Union[EventHandler, EventSpec, list, function, BaseVar]
  259. ] = None,
  260. on_focus: Optional[
  261. Union[EventHandler, EventSpec, list, function, BaseVar]
  262. ] = None,
  263. on_mount: Optional[
  264. Union[EventHandler, EventSpec, list, function, BaseVar]
  265. ] = None,
  266. on_mouse_down: Optional[
  267. Union[EventHandler, EventSpec, list, function, BaseVar]
  268. ] = None,
  269. on_mouse_enter: Optional[
  270. Union[EventHandler, EventSpec, list, function, BaseVar]
  271. ] = None,
  272. on_mouse_leave: Optional[
  273. Union[EventHandler, EventSpec, list, function, BaseVar]
  274. ] = None,
  275. on_mouse_move: Optional[
  276. Union[EventHandler, EventSpec, list, function, BaseVar]
  277. ] = None,
  278. on_mouse_out: Optional[
  279. Union[EventHandler, EventSpec, list, function, BaseVar]
  280. ] = None,
  281. on_mouse_over: Optional[
  282. Union[EventHandler, EventSpec, list, function, BaseVar]
  283. ] = None,
  284. on_mouse_up: Optional[
  285. Union[EventHandler, EventSpec, list, function, BaseVar]
  286. ] = None,
  287. on_scroll: Optional[
  288. Union[EventHandler, EventSpec, list, function, BaseVar]
  289. ] = None,
  290. on_unmount: Optional[
  291. Union[EventHandler, EventSpec, list, function, BaseVar]
  292. ] = None,
  293. **props
  294. ) -> "Main":
  295. """Create the component.
  296. Args:
  297. *children: The children of the component.
  298. style: The style of the component.
  299. key: A unique key for the component.
  300. id: The id for the component.
  301. class_name: The class name for the component.
  302. autofocus: Whether the component should take the focus once the page is loaded
  303. custom_attrs: custom attribute
  304. **props: The props of the component.
  305. Returns:
  306. The component.
  307. Raises:
  308. TypeError: If an invalid child is passed.
  309. """
  310. ...
  311. class NextScript(NextDocumentLib):
  312. @overload
  313. @classmethod
  314. def create( # type: ignore
  315. cls,
  316. *children,
  317. style: Optional[Style] = None,
  318. key: Optional[Any] = None,
  319. id: Optional[Any] = None,
  320. class_name: Optional[Any] = None,
  321. autofocus: Optional[bool] = None,
  322. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  323. on_blur: Optional[
  324. Union[EventHandler, EventSpec, list, function, BaseVar]
  325. ] = None,
  326. on_click: Optional[
  327. Union[EventHandler, EventSpec, list, function, BaseVar]
  328. ] = None,
  329. on_context_menu: Optional[
  330. Union[EventHandler, EventSpec, list, function, BaseVar]
  331. ] = None,
  332. on_double_click: Optional[
  333. Union[EventHandler, EventSpec, list, function, BaseVar]
  334. ] = None,
  335. on_focus: Optional[
  336. Union[EventHandler, EventSpec, list, function, BaseVar]
  337. ] = None,
  338. on_mount: Optional[
  339. Union[EventHandler, EventSpec, list, function, BaseVar]
  340. ] = None,
  341. on_mouse_down: Optional[
  342. Union[EventHandler, EventSpec, list, function, BaseVar]
  343. ] = None,
  344. on_mouse_enter: Optional[
  345. Union[EventHandler, EventSpec, list, function, BaseVar]
  346. ] = None,
  347. on_mouse_leave: Optional[
  348. Union[EventHandler, EventSpec, list, function, BaseVar]
  349. ] = None,
  350. on_mouse_move: Optional[
  351. Union[EventHandler, EventSpec, list, function, BaseVar]
  352. ] = None,
  353. on_mouse_out: Optional[
  354. Union[EventHandler, EventSpec, list, function, BaseVar]
  355. ] = None,
  356. on_mouse_over: Optional[
  357. Union[EventHandler, EventSpec, list, function, BaseVar]
  358. ] = None,
  359. on_mouse_up: Optional[
  360. Union[EventHandler, EventSpec, list, function, BaseVar]
  361. ] = None,
  362. on_scroll: Optional[
  363. Union[EventHandler, EventSpec, list, function, BaseVar]
  364. ] = None,
  365. on_unmount: Optional[
  366. Union[EventHandler, EventSpec, list, function, BaseVar]
  367. ] = None,
  368. **props
  369. ) -> "NextScript":
  370. """Create the component.
  371. Args:
  372. *children: The children of the component.
  373. style: The style of the component.
  374. key: A unique key for the component.
  375. id: The id for the component.
  376. class_name: The class name for the component.
  377. autofocus: Whether the component should take the focus once the page is loaded
  378. custom_attrs: custom attribute
  379. **props: The props of the component.
  380. Returns:
  381. The component.
  382. Raises:
  383. TypeError: If an invalid child is passed.
  384. """
  385. ...
  386. class ColorModeScript(ChakraComponent):
  387. @overload
  388. @classmethod
  389. def create( # type: ignore
  390. cls,
  391. *children,
  392. style: Optional[Style] = None,
  393. key: Optional[Any] = None,
  394. id: Optional[Any] = None,
  395. class_name: Optional[Any] = None,
  396. autofocus: Optional[bool] = None,
  397. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  398. on_blur: Optional[
  399. Union[EventHandler, EventSpec, list, function, BaseVar]
  400. ] = None,
  401. on_click: Optional[
  402. Union[EventHandler, EventSpec, list, function, BaseVar]
  403. ] = None,
  404. on_context_menu: Optional[
  405. Union[EventHandler, EventSpec, list, function, BaseVar]
  406. ] = None,
  407. on_double_click: Optional[
  408. Union[EventHandler, EventSpec, list, function, BaseVar]
  409. ] = None,
  410. on_focus: Optional[
  411. Union[EventHandler, EventSpec, list, function, BaseVar]
  412. ] = None,
  413. on_mount: Optional[
  414. Union[EventHandler, EventSpec, list, function, BaseVar]
  415. ] = None,
  416. on_mouse_down: Optional[
  417. Union[EventHandler, EventSpec, list, function, BaseVar]
  418. ] = None,
  419. on_mouse_enter: Optional[
  420. Union[EventHandler, EventSpec, list, function, BaseVar]
  421. ] = None,
  422. on_mouse_leave: Optional[
  423. Union[EventHandler, EventSpec, list, function, BaseVar]
  424. ] = None,
  425. on_mouse_move: Optional[
  426. Union[EventHandler, EventSpec, list, function, BaseVar]
  427. ] = None,
  428. on_mouse_out: Optional[
  429. Union[EventHandler, EventSpec, list, function, BaseVar]
  430. ] = None,
  431. on_mouse_over: Optional[
  432. Union[EventHandler, EventSpec, list, function, BaseVar]
  433. ] = None,
  434. on_mouse_up: Optional[
  435. Union[EventHandler, EventSpec, list, function, BaseVar]
  436. ] = None,
  437. on_scroll: Optional[
  438. Union[EventHandler, EventSpec, list, function, BaseVar]
  439. ] = None,
  440. on_unmount: Optional[
  441. Union[EventHandler, EventSpec, list, function, BaseVar]
  442. ] = None,
  443. **props
  444. ) -> "ColorModeScript":
  445. """Create the component.
  446. Args:
  447. *children: The children of the component.
  448. style: The style of the component.
  449. key: A unique key for the component.
  450. id: The id for the component.
  451. class_name: The class name for the component.
  452. autofocus: Whether the component should take the focus once the page is loaded
  453. custom_attrs: custom attribute
  454. **props: The props of the component.
  455. Returns:
  456. The component.
  457. Raises:
  458. TypeError: If an invalid child is passed.
  459. """
  460. ...