popover.pyi 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787
  1. """Stub file for reflex/components/overlay/popover.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 typing import Any, Union
  10. from reflex.components.component import Component
  11. from reflex.components.libs.chakra import (
  12. ChakraComponent,
  13. LiteralChakraDirection,
  14. LiteralMenuStrategy,
  15. LiteralPopOverTrigger,
  16. )
  17. from reflex.vars import Var
  18. class Popover(ChakraComponent):
  19. def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
  20. @overload
  21. @classmethod
  22. def create( # type: ignore
  23. cls,
  24. *children,
  25. trigger=None,
  26. header=None,
  27. body=None,
  28. footer=None,
  29. use_close_button=False,
  30. arrow_padding: Optional[Union[Var[int], int]] = None,
  31. arrow_shadow_color: Optional[Union[Var[str], str]] = None,
  32. arrow_size: Optional[Union[Var[int], int]] = None,
  33. auto_focus: Optional[Union[Var[bool], bool]] = None,
  34. boundary: Optional[Union[Var[str], str]] = None,
  35. close_on_blur: Optional[Union[Var[bool], bool]] = None,
  36. close_on_esc: Optional[Union[Var[bool], bool]] = None,
  37. default_is_open: Optional[Union[Var[bool], bool]] = None,
  38. direction: Optional[
  39. Union[Var[Literal["ltr", "rtl"]], Literal["ltr", "rtl"]]
  40. ] = None,
  41. flip: Optional[Union[Var[bool], bool]] = None,
  42. gutter: Optional[Union[Var[int], int]] = None,
  43. id_: Optional[Union[Var[str], str]] = None,
  44. is_lazy: Optional[Union[Var[bool], bool]] = None,
  45. lazy_behavior: Optional[Union[Var[str], str]] = None,
  46. is_open: Optional[Union[Var[bool], bool]] = None,
  47. match_width: Optional[Union[Var[bool], bool]] = None,
  48. placement: Optional[Union[Var[str], str]] = None,
  49. prevent_overflow: Optional[Union[Var[bool], bool]] = None,
  50. return_focus_on_close: Optional[Union[Var[bool], bool]] = None,
  51. strategy: Optional[
  52. Union[Var[Literal["fixed", "absolute"]], Literal["fixed", "absolute"]]
  53. ] = None,
  54. style: Optional[Style] = None,
  55. key: Optional[Any] = None,
  56. id: Optional[Any] = None,
  57. class_name: Optional[Any] = None,
  58. autofocus: Optional[bool] = None,
  59. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  60. on_blur: Optional[
  61. Union[EventHandler, EventSpec, list, function, BaseVar]
  62. ] = None,
  63. on_click: Optional[
  64. Union[EventHandler, EventSpec, list, function, BaseVar]
  65. ] = None,
  66. on_close: Optional[
  67. Union[EventHandler, EventSpec, list, function, BaseVar]
  68. ] = None,
  69. on_context_menu: Optional[
  70. Union[EventHandler, EventSpec, list, function, BaseVar]
  71. ] = None,
  72. on_double_click: Optional[
  73. Union[EventHandler, EventSpec, list, function, BaseVar]
  74. ] = None,
  75. on_focus: Optional[
  76. Union[EventHandler, EventSpec, list, function, BaseVar]
  77. ] = None,
  78. on_mount: Optional[
  79. Union[EventHandler, EventSpec, list, function, BaseVar]
  80. ] = None,
  81. on_mouse_down: Optional[
  82. Union[EventHandler, EventSpec, list, function, BaseVar]
  83. ] = None,
  84. on_mouse_enter: Optional[
  85. Union[EventHandler, EventSpec, list, function, BaseVar]
  86. ] = None,
  87. on_mouse_leave: Optional[
  88. Union[EventHandler, EventSpec, list, function, BaseVar]
  89. ] = None,
  90. on_mouse_move: Optional[
  91. Union[EventHandler, EventSpec, list, function, BaseVar]
  92. ] = None,
  93. on_mouse_out: Optional[
  94. Union[EventHandler, EventSpec, list, function, BaseVar]
  95. ] = None,
  96. on_mouse_over: Optional[
  97. Union[EventHandler, EventSpec, list, function, BaseVar]
  98. ] = None,
  99. on_mouse_up: Optional[
  100. Union[EventHandler, EventSpec, list, function, BaseVar]
  101. ] = None,
  102. on_open: Optional[
  103. Union[EventHandler, EventSpec, list, function, BaseVar]
  104. ] = None,
  105. on_scroll: Optional[
  106. Union[EventHandler, EventSpec, list, function, BaseVar]
  107. ] = None,
  108. on_unmount: Optional[
  109. Union[EventHandler, EventSpec, list, function, BaseVar]
  110. ] = None,
  111. **props
  112. ) -> "Popover":
  113. """Create a popover component.
  114. Args:
  115. *children: The children of the component.
  116. trigger: The trigger that opens the popover.
  117. header: The header of the popover.
  118. body: The body of the popover.
  119. footer: The footer of the popover.
  120. use_close_button: Whether to add a close button on the popover.
  121. arrow_padding: The padding required to prevent the arrow from reaching the very edge of the popper.
  122. arrow_shadow_color: The `box-shadow` of the popover arrow
  123. arrow_size: The size of the popover arrow
  124. auto_focus: If true, focus will be transferred to the first interactive element when the popover opens
  125. boundary: The boundary area for the popper. Used within the preventOverflow modifier
  126. close_on_blur: If true, the popover will close when you blur out it by clicking outside or tabbing out
  127. close_on_esc: If true, the popover will close when you hit the Esc key
  128. default_is_open: If true, the popover will be initially opened.
  129. direction: Theme direction ltr or rtl. Popper's placement will be set accordingly
  130. flip: If true, the popper will change its placement and flip when it's about to overflow its boundary area.
  131. gutter: The distance or margin between the reference and popper. It is used internally to create an offset modifier. NB: If you define offset prop, it'll override the gutter.
  132. id_: The html id attribute of the popover. If not provided, we generate a unique id. This id is also used to auto-generate the `aria-labelledby` and `aria-describedby` attributes that points to the PopoverHeader and PopoverBody
  133. is_lazy: Performance 🚀: If true, the PopoverContent rendering will be deferred until the popover is open.
  134. lazy_behavior: Performance 🚀: The lazy behavior of popover's content when not visible. Only works when `isLazy={true}` - "unmount": The popover's content is always unmounted when not open. - "keepMounted": The popover's content initially unmounted, but stays mounted when popover is open.
  135. is_open: If true, the popover will be opened in controlled mode.
  136. match_width: If true, the popper will match the width of the reference at all times. It's useful for autocomplete, `date-picker` and select patterns.
  137. placement: The placement of the popover. It's used internally by Popper.js.
  138. prevent_overflow: If true, will prevent the popper from being cut off and ensure it's visible within the boundary area.
  139. return_focus_on_close: If true, focus will be returned to the element that triggers the popover when it closes
  140. strategy: The CSS positioning strategy to use. ("fixed" | "absolute")
  141. style: The style of the component.
  142. key: A unique key for the component.
  143. id: The id for the component.
  144. class_name: The class name for the component.
  145. autofocus: Whether the component should take the focus once the page is loaded
  146. custom_attrs: custom attribute
  147. **props: The properties of the component.
  148. Returns:
  149. The popover component.
  150. """
  151. ...
  152. class PopoverContent(ChakraComponent):
  153. @overload
  154. @classmethod
  155. def create( # type: ignore
  156. cls,
  157. *children,
  158. style: Optional[Style] = None,
  159. key: Optional[Any] = None,
  160. id: Optional[Any] = None,
  161. class_name: Optional[Any] = None,
  162. autofocus: Optional[bool] = None,
  163. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  164. on_blur: Optional[
  165. Union[EventHandler, EventSpec, list, function, BaseVar]
  166. ] = None,
  167. on_click: Optional[
  168. Union[EventHandler, EventSpec, list, function, BaseVar]
  169. ] = None,
  170. on_context_menu: Optional[
  171. Union[EventHandler, EventSpec, list, function, BaseVar]
  172. ] = None,
  173. on_double_click: Optional[
  174. Union[EventHandler, EventSpec, list, function, BaseVar]
  175. ] = None,
  176. on_focus: Optional[
  177. Union[EventHandler, EventSpec, list, function, BaseVar]
  178. ] = None,
  179. on_mount: Optional[
  180. Union[EventHandler, EventSpec, list, function, BaseVar]
  181. ] = None,
  182. on_mouse_down: Optional[
  183. Union[EventHandler, EventSpec, list, function, BaseVar]
  184. ] = None,
  185. on_mouse_enter: Optional[
  186. Union[EventHandler, EventSpec, list, function, BaseVar]
  187. ] = None,
  188. on_mouse_leave: Optional[
  189. Union[EventHandler, EventSpec, list, function, BaseVar]
  190. ] = None,
  191. on_mouse_move: Optional[
  192. Union[EventHandler, EventSpec, list, function, BaseVar]
  193. ] = None,
  194. on_mouse_out: Optional[
  195. Union[EventHandler, EventSpec, list, function, BaseVar]
  196. ] = None,
  197. on_mouse_over: Optional[
  198. Union[EventHandler, EventSpec, list, function, BaseVar]
  199. ] = None,
  200. on_mouse_up: Optional[
  201. Union[EventHandler, EventSpec, list, function, BaseVar]
  202. ] = None,
  203. on_scroll: Optional[
  204. Union[EventHandler, EventSpec, list, function, BaseVar]
  205. ] = None,
  206. on_unmount: Optional[
  207. Union[EventHandler, EventSpec, list, function, BaseVar]
  208. ] = None,
  209. **props
  210. ) -> "PopoverContent":
  211. """Create the component.
  212. Args:
  213. *children: The children of the component.
  214. style: The style of the component.
  215. key: A unique key for the component.
  216. id: The id for the component.
  217. class_name: The class name for the component.
  218. autofocus: Whether the component should take the focus once the page is loaded
  219. custom_attrs: custom attribute
  220. **props: The props of the component.
  221. Returns:
  222. The component.
  223. Raises:
  224. TypeError: If an invalid child is passed.
  225. """
  226. ...
  227. class PopoverHeader(ChakraComponent):
  228. @overload
  229. @classmethod
  230. def create( # type: ignore
  231. cls,
  232. *children,
  233. style: Optional[Style] = None,
  234. key: Optional[Any] = None,
  235. id: Optional[Any] = None,
  236. class_name: Optional[Any] = None,
  237. autofocus: Optional[bool] = None,
  238. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  239. on_blur: Optional[
  240. Union[EventHandler, EventSpec, list, function, BaseVar]
  241. ] = None,
  242. on_click: Optional[
  243. Union[EventHandler, EventSpec, list, function, BaseVar]
  244. ] = None,
  245. on_context_menu: Optional[
  246. Union[EventHandler, EventSpec, list, function, BaseVar]
  247. ] = None,
  248. on_double_click: Optional[
  249. Union[EventHandler, EventSpec, list, function, BaseVar]
  250. ] = None,
  251. on_focus: Optional[
  252. Union[EventHandler, EventSpec, list, function, BaseVar]
  253. ] = None,
  254. on_mount: Optional[
  255. Union[EventHandler, EventSpec, list, function, BaseVar]
  256. ] = None,
  257. on_mouse_down: Optional[
  258. Union[EventHandler, EventSpec, list, function, BaseVar]
  259. ] = None,
  260. on_mouse_enter: Optional[
  261. Union[EventHandler, EventSpec, list, function, BaseVar]
  262. ] = None,
  263. on_mouse_leave: Optional[
  264. Union[EventHandler, EventSpec, list, function, BaseVar]
  265. ] = None,
  266. on_mouse_move: Optional[
  267. Union[EventHandler, EventSpec, list, function, BaseVar]
  268. ] = None,
  269. on_mouse_out: Optional[
  270. Union[EventHandler, EventSpec, list, function, BaseVar]
  271. ] = None,
  272. on_mouse_over: Optional[
  273. Union[EventHandler, EventSpec, list, function, BaseVar]
  274. ] = None,
  275. on_mouse_up: Optional[
  276. Union[EventHandler, EventSpec, list, function, BaseVar]
  277. ] = None,
  278. on_scroll: Optional[
  279. Union[EventHandler, EventSpec, list, function, BaseVar]
  280. ] = None,
  281. on_unmount: Optional[
  282. Union[EventHandler, EventSpec, list, function, BaseVar]
  283. ] = None,
  284. **props
  285. ) -> "PopoverHeader":
  286. """Create the component.
  287. Args:
  288. *children: The children of the component.
  289. style: The style of the component.
  290. key: A unique key for the component.
  291. id: The id for the component.
  292. class_name: The class name for the component.
  293. autofocus: Whether the component should take the focus once the page is loaded
  294. custom_attrs: custom attribute
  295. **props: The props of the component.
  296. Returns:
  297. The component.
  298. Raises:
  299. TypeError: If an invalid child is passed.
  300. """
  301. ...
  302. class PopoverFooter(ChakraComponent):
  303. @overload
  304. @classmethod
  305. def create( # type: ignore
  306. cls,
  307. *children,
  308. style: Optional[Style] = None,
  309. key: Optional[Any] = None,
  310. id: Optional[Any] = None,
  311. class_name: Optional[Any] = None,
  312. autofocus: Optional[bool] = None,
  313. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  314. on_blur: Optional[
  315. Union[EventHandler, EventSpec, list, function, BaseVar]
  316. ] = None,
  317. on_click: Optional[
  318. Union[EventHandler, EventSpec, list, function, BaseVar]
  319. ] = None,
  320. on_context_menu: Optional[
  321. Union[EventHandler, EventSpec, list, function, BaseVar]
  322. ] = None,
  323. on_double_click: Optional[
  324. Union[EventHandler, EventSpec, list, function, BaseVar]
  325. ] = None,
  326. on_focus: Optional[
  327. Union[EventHandler, EventSpec, list, function, BaseVar]
  328. ] = None,
  329. on_mount: Optional[
  330. Union[EventHandler, EventSpec, list, function, BaseVar]
  331. ] = None,
  332. on_mouse_down: Optional[
  333. Union[EventHandler, EventSpec, list, function, BaseVar]
  334. ] = None,
  335. on_mouse_enter: Optional[
  336. Union[EventHandler, EventSpec, list, function, BaseVar]
  337. ] = None,
  338. on_mouse_leave: Optional[
  339. Union[EventHandler, EventSpec, list, function, BaseVar]
  340. ] = None,
  341. on_mouse_move: Optional[
  342. Union[EventHandler, EventSpec, list, function, BaseVar]
  343. ] = None,
  344. on_mouse_out: Optional[
  345. Union[EventHandler, EventSpec, list, function, BaseVar]
  346. ] = None,
  347. on_mouse_over: Optional[
  348. Union[EventHandler, EventSpec, list, function, BaseVar]
  349. ] = None,
  350. on_mouse_up: Optional[
  351. Union[EventHandler, EventSpec, list, function, BaseVar]
  352. ] = None,
  353. on_scroll: Optional[
  354. Union[EventHandler, EventSpec, list, function, BaseVar]
  355. ] = None,
  356. on_unmount: Optional[
  357. Union[EventHandler, EventSpec, list, function, BaseVar]
  358. ] = None,
  359. **props
  360. ) -> "PopoverFooter":
  361. """Create the component.
  362. Args:
  363. *children: The children of the component.
  364. style: The style of the component.
  365. key: A unique key for the component.
  366. id: The id for the component.
  367. class_name: The class name for the component.
  368. autofocus: Whether the component should take the focus once the page is loaded
  369. custom_attrs: custom attribute
  370. **props: The props of the component.
  371. Returns:
  372. The component.
  373. Raises:
  374. TypeError: If an invalid child is passed.
  375. """
  376. ...
  377. class PopoverBody(ChakraComponent):
  378. @overload
  379. @classmethod
  380. def create( # type: ignore
  381. cls,
  382. *children,
  383. style: Optional[Style] = None,
  384. key: Optional[Any] = None,
  385. id: Optional[Any] = None,
  386. class_name: Optional[Any] = None,
  387. autofocus: Optional[bool] = None,
  388. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  389. on_blur: Optional[
  390. Union[EventHandler, EventSpec, list, function, BaseVar]
  391. ] = None,
  392. on_click: Optional[
  393. Union[EventHandler, EventSpec, list, function, BaseVar]
  394. ] = None,
  395. on_context_menu: Optional[
  396. Union[EventHandler, EventSpec, list, function, BaseVar]
  397. ] = None,
  398. on_double_click: Optional[
  399. Union[EventHandler, EventSpec, list, function, BaseVar]
  400. ] = None,
  401. on_focus: Optional[
  402. Union[EventHandler, EventSpec, list, function, BaseVar]
  403. ] = None,
  404. on_mount: Optional[
  405. Union[EventHandler, EventSpec, list, function, BaseVar]
  406. ] = None,
  407. on_mouse_down: Optional[
  408. Union[EventHandler, EventSpec, list, function, BaseVar]
  409. ] = None,
  410. on_mouse_enter: Optional[
  411. Union[EventHandler, EventSpec, list, function, BaseVar]
  412. ] = None,
  413. on_mouse_leave: Optional[
  414. Union[EventHandler, EventSpec, list, function, BaseVar]
  415. ] = None,
  416. on_mouse_move: Optional[
  417. Union[EventHandler, EventSpec, list, function, BaseVar]
  418. ] = None,
  419. on_mouse_out: Optional[
  420. Union[EventHandler, EventSpec, list, function, BaseVar]
  421. ] = None,
  422. on_mouse_over: Optional[
  423. Union[EventHandler, EventSpec, list, function, BaseVar]
  424. ] = None,
  425. on_mouse_up: Optional[
  426. Union[EventHandler, EventSpec, list, function, BaseVar]
  427. ] = None,
  428. on_scroll: Optional[
  429. Union[EventHandler, EventSpec, list, function, BaseVar]
  430. ] = None,
  431. on_unmount: Optional[
  432. Union[EventHandler, EventSpec, list, function, BaseVar]
  433. ] = None,
  434. **props
  435. ) -> "PopoverBody":
  436. """Create the component.
  437. Args:
  438. *children: The children of the component.
  439. style: The style of the component.
  440. key: A unique key for the component.
  441. id: The id for the component.
  442. class_name: The class name for the component.
  443. autofocus: Whether the component should take the focus once the page is loaded
  444. custom_attrs: custom attribute
  445. **props: The props of the component.
  446. Returns:
  447. The component.
  448. Raises:
  449. TypeError: If an invalid child is passed.
  450. """
  451. ...
  452. class PopoverArrow(ChakraComponent):
  453. @overload
  454. @classmethod
  455. def create( # type: ignore
  456. cls,
  457. *children,
  458. style: Optional[Style] = None,
  459. key: Optional[Any] = None,
  460. id: Optional[Any] = None,
  461. class_name: Optional[Any] = None,
  462. autofocus: Optional[bool] = None,
  463. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  464. on_blur: Optional[
  465. Union[EventHandler, EventSpec, list, function, BaseVar]
  466. ] = None,
  467. on_click: Optional[
  468. Union[EventHandler, EventSpec, list, function, BaseVar]
  469. ] = None,
  470. on_context_menu: Optional[
  471. Union[EventHandler, EventSpec, list, function, BaseVar]
  472. ] = None,
  473. on_double_click: Optional[
  474. Union[EventHandler, EventSpec, list, function, BaseVar]
  475. ] = None,
  476. on_focus: Optional[
  477. Union[EventHandler, EventSpec, list, function, BaseVar]
  478. ] = None,
  479. on_mount: Optional[
  480. Union[EventHandler, EventSpec, list, function, BaseVar]
  481. ] = None,
  482. on_mouse_down: Optional[
  483. Union[EventHandler, EventSpec, list, function, BaseVar]
  484. ] = None,
  485. on_mouse_enter: Optional[
  486. Union[EventHandler, EventSpec, list, function, BaseVar]
  487. ] = None,
  488. on_mouse_leave: Optional[
  489. Union[EventHandler, EventSpec, list, function, BaseVar]
  490. ] = None,
  491. on_mouse_move: Optional[
  492. Union[EventHandler, EventSpec, list, function, BaseVar]
  493. ] = None,
  494. on_mouse_out: Optional[
  495. Union[EventHandler, EventSpec, list, function, BaseVar]
  496. ] = None,
  497. on_mouse_over: Optional[
  498. Union[EventHandler, EventSpec, list, function, BaseVar]
  499. ] = None,
  500. on_mouse_up: Optional[
  501. Union[EventHandler, EventSpec, list, function, BaseVar]
  502. ] = None,
  503. on_scroll: Optional[
  504. Union[EventHandler, EventSpec, list, function, BaseVar]
  505. ] = None,
  506. on_unmount: Optional[
  507. Union[EventHandler, EventSpec, list, function, BaseVar]
  508. ] = None,
  509. **props
  510. ) -> "PopoverArrow":
  511. """Create the component.
  512. Args:
  513. *children: The children of the component.
  514. style: The style of the component.
  515. key: A unique key for the component.
  516. id: The id for the component.
  517. class_name: The class name for the component.
  518. autofocus: Whether the component should take the focus once the page is loaded
  519. custom_attrs: custom attribute
  520. **props: The props of the component.
  521. Returns:
  522. The component.
  523. Raises:
  524. TypeError: If an invalid child is passed.
  525. """
  526. ...
  527. class PopoverCloseButton(ChakraComponent):
  528. @overload
  529. @classmethod
  530. def create( # type: ignore
  531. cls,
  532. *children,
  533. style: Optional[Style] = None,
  534. key: Optional[Any] = None,
  535. id: Optional[Any] = None,
  536. class_name: Optional[Any] = None,
  537. autofocus: Optional[bool] = None,
  538. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  539. on_blur: Optional[
  540. Union[EventHandler, EventSpec, list, function, BaseVar]
  541. ] = None,
  542. on_click: Optional[
  543. Union[EventHandler, EventSpec, list, function, BaseVar]
  544. ] = None,
  545. on_context_menu: Optional[
  546. Union[EventHandler, EventSpec, list, function, BaseVar]
  547. ] = None,
  548. on_double_click: Optional[
  549. Union[EventHandler, EventSpec, list, function, BaseVar]
  550. ] = None,
  551. on_focus: Optional[
  552. Union[EventHandler, EventSpec, list, function, BaseVar]
  553. ] = None,
  554. on_mount: Optional[
  555. Union[EventHandler, EventSpec, list, function, BaseVar]
  556. ] = None,
  557. on_mouse_down: Optional[
  558. Union[EventHandler, EventSpec, list, function, BaseVar]
  559. ] = None,
  560. on_mouse_enter: Optional[
  561. Union[EventHandler, EventSpec, list, function, BaseVar]
  562. ] = None,
  563. on_mouse_leave: Optional[
  564. Union[EventHandler, EventSpec, list, function, BaseVar]
  565. ] = None,
  566. on_mouse_move: Optional[
  567. Union[EventHandler, EventSpec, list, function, BaseVar]
  568. ] = None,
  569. on_mouse_out: Optional[
  570. Union[EventHandler, EventSpec, list, function, BaseVar]
  571. ] = None,
  572. on_mouse_over: Optional[
  573. Union[EventHandler, EventSpec, list, function, BaseVar]
  574. ] = None,
  575. on_mouse_up: Optional[
  576. Union[EventHandler, EventSpec, list, function, BaseVar]
  577. ] = None,
  578. on_scroll: Optional[
  579. Union[EventHandler, EventSpec, list, function, BaseVar]
  580. ] = None,
  581. on_unmount: Optional[
  582. Union[EventHandler, EventSpec, list, function, BaseVar]
  583. ] = None,
  584. **props
  585. ) -> "PopoverCloseButton":
  586. """Create the component.
  587. Args:
  588. *children: The children of the component.
  589. style: The style of the component.
  590. key: A unique key for the component.
  591. id: The id for the component.
  592. class_name: The class name for the component.
  593. autofocus: Whether the component should take the focus once the page is loaded
  594. custom_attrs: custom attribute
  595. **props: The props of the component.
  596. Returns:
  597. The component.
  598. Raises:
  599. TypeError: If an invalid child is passed.
  600. """
  601. ...
  602. class PopoverAnchor(ChakraComponent):
  603. @overload
  604. @classmethod
  605. def create( # type: ignore
  606. cls,
  607. *children,
  608. style: Optional[Style] = None,
  609. key: Optional[Any] = None,
  610. id: Optional[Any] = None,
  611. class_name: Optional[Any] = None,
  612. autofocus: Optional[bool] = None,
  613. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  614. on_blur: Optional[
  615. Union[EventHandler, EventSpec, list, function, BaseVar]
  616. ] = None,
  617. on_click: Optional[
  618. Union[EventHandler, EventSpec, list, function, BaseVar]
  619. ] = None,
  620. on_context_menu: Optional[
  621. Union[EventHandler, EventSpec, list, function, BaseVar]
  622. ] = None,
  623. on_double_click: Optional[
  624. Union[EventHandler, EventSpec, list, function, BaseVar]
  625. ] = None,
  626. on_focus: Optional[
  627. Union[EventHandler, EventSpec, list, function, BaseVar]
  628. ] = None,
  629. on_mount: Optional[
  630. Union[EventHandler, EventSpec, list, function, BaseVar]
  631. ] = None,
  632. on_mouse_down: Optional[
  633. Union[EventHandler, EventSpec, list, function, BaseVar]
  634. ] = None,
  635. on_mouse_enter: Optional[
  636. Union[EventHandler, EventSpec, list, function, BaseVar]
  637. ] = None,
  638. on_mouse_leave: Optional[
  639. Union[EventHandler, EventSpec, list, function, BaseVar]
  640. ] = None,
  641. on_mouse_move: Optional[
  642. Union[EventHandler, EventSpec, list, function, BaseVar]
  643. ] = None,
  644. on_mouse_out: Optional[
  645. Union[EventHandler, EventSpec, list, function, BaseVar]
  646. ] = None,
  647. on_mouse_over: Optional[
  648. Union[EventHandler, EventSpec, list, function, BaseVar]
  649. ] = None,
  650. on_mouse_up: Optional[
  651. Union[EventHandler, EventSpec, list, function, BaseVar]
  652. ] = None,
  653. on_scroll: Optional[
  654. Union[EventHandler, EventSpec, list, function, BaseVar]
  655. ] = None,
  656. on_unmount: Optional[
  657. Union[EventHandler, EventSpec, list, function, BaseVar]
  658. ] = None,
  659. **props
  660. ) -> "PopoverAnchor":
  661. """Create the component.
  662. Args:
  663. *children: The children of the component.
  664. style: The style of the component.
  665. key: A unique key for the component.
  666. id: The id for the component.
  667. class_name: The class name for the component.
  668. autofocus: Whether the component should take the focus once the page is loaded
  669. custom_attrs: custom attribute
  670. **props: The props of the component.
  671. Returns:
  672. The component.
  673. Raises:
  674. TypeError: If an invalid child is passed.
  675. """
  676. ...
  677. class PopoverTrigger(ChakraComponent):
  678. @overload
  679. @classmethod
  680. def create( # type: ignore
  681. cls,
  682. *children,
  683. style: Optional[Style] = None,
  684. key: Optional[Any] = None,
  685. id: Optional[Any] = None,
  686. class_name: Optional[Any] = None,
  687. autofocus: Optional[bool] = None,
  688. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  689. on_blur: Optional[
  690. Union[EventHandler, EventSpec, list, function, BaseVar]
  691. ] = None,
  692. on_click: Optional[
  693. Union[EventHandler, EventSpec, list, function, BaseVar]
  694. ] = None,
  695. on_context_menu: Optional[
  696. Union[EventHandler, EventSpec, list, function, BaseVar]
  697. ] = None,
  698. on_double_click: Optional[
  699. Union[EventHandler, EventSpec, list, function, BaseVar]
  700. ] = None,
  701. on_focus: Optional[
  702. Union[EventHandler, EventSpec, list, function, BaseVar]
  703. ] = None,
  704. on_mount: Optional[
  705. Union[EventHandler, EventSpec, list, function, BaseVar]
  706. ] = None,
  707. on_mouse_down: Optional[
  708. Union[EventHandler, EventSpec, list, function, BaseVar]
  709. ] = None,
  710. on_mouse_enter: Optional[
  711. Union[EventHandler, EventSpec, list, function, BaseVar]
  712. ] = None,
  713. on_mouse_leave: Optional[
  714. Union[EventHandler, EventSpec, list, function, BaseVar]
  715. ] = None,
  716. on_mouse_move: Optional[
  717. Union[EventHandler, EventSpec, list, function, BaseVar]
  718. ] = None,
  719. on_mouse_out: Optional[
  720. Union[EventHandler, EventSpec, list, function, BaseVar]
  721. ] = None,
  722. on_mouse_over: Optional[
  723. Union[EventHandler, EventSpec, list, function, BaseVar]
  724. ] = None,
  725. on_mouse_up: Optional[
  726. Union[EventHandler, EventSpec, list, function, BaseVar]
  727. ] = None,
  728. on_scroll: Optional[
  729. Union[EventHandler, EventSpec, list, function, BaseVar]
  730. ] = None,
  731. on_unmount: Optional[
  732. Union[EventHandler, EventSpec, list, function, BaseVar]
  733. ] = None,
  734. **props
  735. ) -> "PopoverTrigger":
  736. """Create the component.
  737. Args:
  738. *children: The children of the component.
  739. style: The style of the component.
  740. key: A unique key for the component.
  741. id: The id for the component.
  742. class_name: The class name for the component.
  743. autofocus: Whether the component should take the focus once the page is loaded
  744. custom_attrs: custom attribute
  745. **props: The props of the component.
  746. Returns:
  747. The component.
  748. Raises:
  749. TypeError: If an invalid child is passed.
  750. """
  751. ...