alertdialog.pyi 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266
  1. """Stub file for reflex/components/radix/themes/components/alertdialog.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 types import SimpleNamespace
  10. from typing import Any, Dict, Literal
  11. from reflex import el
  12. from reflex.vars import Var
  13. from ..base import LiteralSize, RadixThemesComponent
  14. LiteralSwitchSize = Literal["1", "2", "3", "4"]
  15. class AlertDialogRoot(RadixThemesComponent):
  16. def get_event_triggers(self) -> Dict[str, Any]: ...
  17. @overload
  18. @classmethod
  19. def create( # type: ignore
  20. cls,
  21. *children,
  22. color: Optional[Union[Var[str], str]] = None,
  23. color_scheme: Optional[
  24. Union[
  25. Var[
  26. Literal[
  27. "tomato",
  28. "red",
  29. "ruby",
  30. "crimson",
  31. "pink",
  32. "plum",
  33. "purple",
  34. "violet",
  35. "iris",
  36. "indigo",
  37. "blue",
  38. "cyan",
  39. "teal",
  40. "jade",
  41. "green",
  42. "grass",
  43. "brown",
  44. "orange",
  45. "sky",
  46. "mint",
  47. "lime",
  48. "yellow",
  49. "amber",
  50. "gold",
  51. "bronze",
  52. "gray",
  53. ]
  54. ],
  55. Literal[
  56. "tomato",
  57. "red",
  58. "ruby",
  59. "crimson",
  60. "pink",
  61. "plum",
  62. "purple",
  63. "violet",
  64. "iris",
  65. "indigo",
  66. "blue",
  67. "cyan",
  68. "teal",
  69. "jade",
  70. "green",
  71. "grass",
  72. "brown",
  73. "orange",
  74. "sky",
  75. "mint",
  76. "lime",
  77. "yellow",
  78. "amber",
  79. "gold",
  80. "bronze",
  81. "gray",
  82. ],
  83. ]
  84. ] = None,
  85. open: Optional[Union[Var[bool], bool]] = None,
  86. style: Optional[Style] = None,
  87. key: Optional[Any] = None,
  88. id: Optional[Any] = None,
  89. class_name: Optional[Any] = None,
  90. autofocus: Optional[bool] = None,
  91. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  92. on_blur: Optional[
  93. Union[EventHandler, EventSpec, list, function, BaseVar]
  94. ] = None,
  95. on_click: Optional[
  96. Union[EventHandler, EventSpec, list, function, BaseVar]
  97. ] = None,
  98. on_context_menu: Optional[
  99. Union[EventHandler, EventSpec, list, function, BaseVar]
  100. ] = None,
  101. on_double_click: Optional[
  102. Union[EventHandler, EventSpec, list, function, BaseVar]
  103. ] = None,
  104. on_focus: Optional[
  105. Union[EventHandler, EventSpec, list, function, BaseVar]
  106. ] = None,
  107. on_mount: Optional[
  108. Union[EventHandler, EventSpec, list, function, BaseVar]
  109. ] = None,
  110. on_mouse_down: Optional[
  111. Union[EventHandler, EventSpec, list, function, BaseVar]
  112. ] = None,
  113. on_mouse_enter: Optional[
  114. Union[EventHandler, EventSpec, list, function, BaseVar]
  115. ] = None,
  116. on_mouse_leave: Optional[
  117. Union[EventHandler, EventSpec, list, function, BaseVar]
  118. ] = None,
  119. on_mouse_move: Optional[
  120. Union[EventHandler, EventSpec, list, function, BaseVar]
  121. ] = None,
  122. on_mouse_out: Optional[
  123. Union[EventHandler, EventSpec, list, function, BaseVar]
  124. ] = None,
  125. on_mouse_over: Optional[
  126. Union[EventHandler, EventSpec, list, function, BaseVar]
  127. ] = None,
  128. on_mouse_up: Optional[
  129. Union[EventHandler, EventSpec, list, function, BaseVar]
  130. ] = None,
  131. on_open_change: Optional[
  132. Union[EventHandler, EventSpec, list, function, BaseVar]
  133. ] = None,
  134. on_scroll: Optional[
  135. Union[EventHandler, EventSpec, list, function, BaseVar]
  136. ] = None,
  137. on_unmount: Optional[
  138. Union[EventHandler, EventSpec, list, function, BaseVar]
  139. ] = None,
  140. **props
  141. ) -> "AlertDialogRoot":
  142. """Create a new component instance.
  143. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  144. other UI libraries for common names, like Text and Button.
  145. Args:
  146. *children: Child components.
  147. color: map to CSS default color property.
  148. color_scheme: map to radix color property.
  149. open: The controlled open state of the dialog.
  150. style: The style of the component.
  151. key: A unique key for the component.
  152. id: The id for the component.
  153. class_name: The class name for the component.
  154. autofocus: Whether the component should take the focus once the page is loaded
  155. custom_attrs: custom attribute
  156. **props: Component properties.
  157. Returns:
  158. A new component instance.
  159. """
  160. ...
  161. class AlertDialogTrigger(RadixThemesComponent):
  162. @overload
  163. @classmethod
  164. def create( # type: ignore
  165. cls,
  166. *children,
  167. color: Optional[Union[Var[str], str]] = None,
  168. color_scheme: Optional[
  169. Union[
  170. Var[
  171. Literal[
  172. "tomato",
  173. "red",
  174. "ruby",
  175. "crimson",
  176. "pink",
  177. "plum",
  178. "purple",
  179. "violet",
  180. "iris",
  181. "indigo",
  182. "blue",
  183. "cyan",
  184. "teal",
  185. "jade",
  186. "green",
  187. "grass",
  188. "brown",
  189. "orange",
  190. "sky",
  191. "mint",
  192. "lime",
  193. "yellow",
  194. "amber",
  195. "gold",
  196. "bronze",
  197. "gray",
  198. ]
  199. ],
  200. Literal[
  201. "tomato",
  202. "red",
  203. "ruby",
  204. "crimson",
  205. "pink",
  206. "plum",
  207. "purple",
  208. "violet",
  209. "iris",
  210. "indigo",
  211. "blue",
  212. "cyan",
  213. "teal",
  214. "jade",
  215. "green",
  216. "grass",
  217. "brown",
  218. "orange",
  219. "sky",
  220. "mint",
  221. "lime",
  222. "yellow",
  223. "amber",
  224. "gold",
  225. "bronze",
  226. "gray",
  227. ],
  228. ]
  229. ] = None,
  230. style: Optional[Style] = None,
  231. key: Optional[Any] = None,
  232. id: Optional[Any] = None,
  233. class_name: Optional[Any] = None,
  234. autofocus: Optional[bool] = None,
  235. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  236. on_blur: Optional[
  237. Union[EventHandler, EventSpec, list, function, BaseVar]
  238. ] = None,
  239. on_click: Optional[
  240. Union[EventHandler, EventSpec, list, function, BaseVar]
  241. ] = None,
  242. on_context_menu: Optional[
  243. Union[EventHandler, EventSpec, list, function, BaseVar]
  244. ] = None,
  245. on_double_click: Optional[
  246. Union[EventHandler, EventSpec, list, function, BaseVar]
  247. ] = None,
  248. on_focus: Optional[
  249. Union[EventHandler, EventSpec, list, function, BaseVar]
  250. ] = None,
  251. on_mount: Optional[
  252. Union[EventHandler, EventSpec, list, function, BaseVar]
  253. ] = None,
  254. on_mouse_down: Optional[
  255. Union[EventHandler, EventSpec, list, function, BaseVar]
  256. ] = None,
  257. on_mouse_enter: Optional[
  258. Union[EventHandler, EventSpec, list, function, BaseVar]
  259. ] = None,
  260. on_mouse_leave: Optional[
  261. Union[EventHandler, EventSpec, list, function, BaseVar]
  262. ] = None,
  263. on_mouse_move: Optional[
  264. Union[EventHandler, EventSpec, list, function, BaseVar]
  265. ] = None,
  266. on_mouse_out: Optional[
  267. Union[EventHandler, EventSpec, list, function, BaseVar]
  268. ] = None,
  269. on_mouse_over: Optional[
  270. Union[EventHandler, EventSpec, list, function, BaseVar]
  271. ] = None,
  272. on_mouse_up: Optional[
  273. Union[EventHandler, EventSpec, list, function, BaseVar]
  274. ] = None,
  275. on_scroll: Optional[
  276. Union[EventHandler, EventSpec, list, function, BaseVar]
  277. ] = None,
  278. on_unmount: Optional[
  279. Union[EventHandler, EventSpec, list, function, BaseVar]
  280. ] = None,
  281. **props
  282. ) -> "AlertDialogTrigger":
  283. """Create a new component instance.
  284. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  285. other UI libraries for common names, like Text and Button.
  286. Args:
  287. *children: Child components.
  288. color: map to CSS default color property.
  289. color_scheme: map to radix color property.
  290. style: The style of the component.
  291. key: A unique key for the component.
  292. id: The id for the component.
  293. class_name: The class name for the component.
  294. autofocus: Whether the component should take the focus once the page is loaded
  295. custom_attrs: custom attribute
  296. **props: Component properties.
  297. Returns:
  298. A new component instance.
  299. """
  300. ...
  301. class AlertDialogContent(el.Div, RadixThemesComponent):
  302. def get_event_triggers(self) -> Dict[str, Any]: ...
  303. @overload
  304. @classmethod
  305. def create( # type: ignore
  306. cls,
  307. *children,
  308. color: Optional[Union[Var[str], str]] = None,
  309. color_scheme: Optional[
  310. Union[
  311. Var[
  312. Literal[
  313. "tomato",
  314. "red",
  315. "ruby",
  316. "crimson",
  317. "pink",
  318. "plum",
  319. "purple",
  320. "violet",
  321. "iris",
  322. "indigo",
  323. "blue",
  324. "cyan",
  325. "teal",
  326. "jade",
  327. "green",
  328. "grass",
  329. "brown",
  330. "orange",
  331. "sky",
  332. "mint",
  333. "lime",
  334. "yellow",
  335. "amber",
  336. "gold",
  337. "bronze",
  338. "gray",
  339. ]
  340. ],
  341. Literal[
  342. "tomato",
  343. "red",
  344. "ruby",
  345. "crimson",
  346. "pink",
  347. "plum",
  348. "purple",
  349. "violet",
  350. "iris",
  351. "indigo",
  352. "blue",
  353. "cyan",
  354. "teal",
  355. "jade",
  356. "green",
  357. "grass",
  358. "brown",
  359. "orange",
  360. "sky",
  361. "mint",
  362. "lime",
  363. "yellow",
  364. "amber",
  365. "gold",
  366. "bronze",
  367. "gray",
  368. ],
  369. ]
  370. ] = None,
  371. size: Optional[
  372. Union[
  373. Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
  374. Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
  375. ]
  376. ] = None,
  377. force_mount: Optional[Union[Var[bool], bool]] = None,
  378. access_key: Optional[
  379. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  380. ] = None,
  381. auto_capitalize: Optional[
  382. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  383. ] = None,
  384. content_editable: Optional[
  385. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  386. ] = None,
  387. context_menu: Optional[
  388. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  389. ] = None,
  390. dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
  391. draggable: Optional[
  392. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  393. ] = None,
  394. enter_key_hint: Optional[
  395. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  396. ] = None,
  397. hidden: Optional[
  398. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  399. ] = None,
  400. input_mode: Optional[
  401. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  402. ] = None,
  403. item_prop: Optional[
  404. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  405. ] = None,
  406. lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
  407. role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
  408. slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
  409. spell_check: Optional[
  410. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  411. ] = None,
  412. tab_index: Optional[
  413. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  414. ] = None,
  415. title: Optional[
  416. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  417. ] = None,
  418. translate: Optional[
  419. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  420. ] = None,
  421. style: Optional[Style] = None,
  422. key: Optional[Any] = None,
  423. id: Optional[Any] = None,
  424. class_name: Optional[Any] = None,
  425. autofocus: Optional[bool] = None,
  426. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  427. on_blur: Optional[
  428. Union[EventHandler, EventSpec, list, function, BaseVar]
  429. ] = None,
  430. on_click: Optional[
  431. Union[EventHandler, EventSpec, list, function, BaseVar]
  432. ] = None,
  433. on_close_auto_focus: Optional[
  434. Union[EventHandler, EventSpec, list, function, BaseVar]
  435. ] = None,
  436. on_context_menu: Optional[
  437. Union[EventHandler, EventSpec, list, function, BaseVar]
  438. ] = None,
  439. on_double_click: Optional[
  440. Union[EventHandler, EventSpec, list, function, BaseVar]
  441. ] = None,
  442. on_escape_key_down: Optional[
  443. Union[EventHandler, EventSpec, list, function, BaseVar]
  444. ] = None,
  445. on_focus: Optional[
  446. Union[EventHandler, EventSpec, list, function, BaseVar]
  447. ] = None,
  448. on_mount: Optional[
  449. Union[EventHandler, EventSpec, list, function, BaseVar]
  450. ] = None,
  451. on_mouse_down: Optional[
  452. Union[EventHandler, EventSpec, list, function, BaseVar]
  453. ] = None,
  454. on_mouse_enter: Optional[
  455. Union[EventHandler, EventSpec, list, function, BaseVar]
  456. ] = None,
  457. on_mouse_leave: Optional[
  458. Union[EventHandler, EventSpec, list, function, BaseVar]
  459. ] = None,
  460. on_mouse_move: Optional[
  461. Union[EventHandler, EventSpec, list, function, BaseVar]
  462. ] = None,
  463. on_mouse_out: Optional[
  464. Union[EventHandler, EventSpec, list, function, BaseVar]
  465. ] = None,
  466. on_mouse_over: Optional[
  467. Union[EventHandler, EventSpec, list, function, BaseVar]
  468. ] = None,
  469. on_mouse_up: Optional[
  470. Union[EventHandler, EventSpec, list, function, BaseVar]
  471. ] = None,
  472. on_open_auto_focus: Optional[
  473. Union[EventHandler, EventSpec, list, function, BaseVar]
  474. ] = None,
  475. on_scroll: Optional[
  476. Union[EventHandler, EventSpec, list, function, BaseVar]
  477. ] = None,
  478. on_unmount: Optional[
  479. Union[EventHandler, EventSpec, list, function, BaseVar]
  480. ] = None,
  481. **props
  482. ) -> "AlertDialogContent":
  483. """Create a new component instance.
  484. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  485. other UI libraries for common names, like Text and Button.
  486. Args:
  487. *children: Child components.
  488. color: map to CSS default color property.
  489. color_scheme: map to radix color property.
  490. size: The size of the content.
  491. force_mount: Whether to force mount the content on open.
  492. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  493. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  494. content_editable: Indicates whether the element's content is editable.
  495. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  496. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  497. draggable: Defines whether the element can be dragged.
  498. enter_key_hint: Hints what media types the media element is able to play.
  499. hidden: Defines whether the element is hidden.
  500. input_mode: Defines the type of the element.
  501. item_prop: Defines the name of the element for metadata purposes.
  502. lang: Defines the language used in the element.
  503. role: Defines the role of the element.
  504. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  505. spell_check: Defines whether the element may be checked for spelling errors.
  506. tab_index: Defines the position of the current element in the tabbing order.
  507. title: Defines a tooltip for the element.
  508. translate: Specifies whether the content of an element should be translated or not.
  509. style: The style of the component.
  510. key: A unique key for the component.
  511. id: The id for the component.
  512. class_name: The class name for the component.
  513. autofocus: Whether the component should take the focus once the page is loaded
  514. custom_attrs: custom attribute
  515. **props: Component properties.
  516. Returns:
  517. A new component instance.
  518. """
  519. ...
  520. class AlertDialogTitle(RadixThemesComponent):
  521. @overload
  522. @classmethod
  523. def create( # type: ignore
  524. cls,
  525. *children,
  526. color: Optional[Union[Var[str], str]] = None,
  527. color_scheme: Optional[
  528. Union[
  529. Var[
  530. Literal[
  531. "tomato",
  532. "red",
  533. "ruby",
  534. "crimson",
  535. "pink",
  536. "plum",
  537. "purple",
  538. "violet",
  539. "iris",
  540. "indigo",
  541. "blue",
  542. "cyan",
  543. "teal",
  544. "jade",
  545. "green",
  546. "grass",
  547. "brown",
  548. "orange",
  549. "sky",
  550. "mint",
  551. "lime",
  552. "yellow",
  553. "amber",
  554. "gold",
  555. "bronze",
  556. "gray",
  557. ]
  558. ],
  559. Literal[
  560. "tomato",
  561. "red",
  562. "ruby",
  563. "crimson",
  564. "pink",
  565. "plum",
  566. "purple",
  567. "violet",
  568. "iris",
  569. "indigo",
  570. "blue",
  571. "cyan",
  572. "teal",
  573. "jade",
  574. "green",
  575. "grass",
  576. "brown",
  577. "orange",
  578. "sky",
  579. "mint",
  580. "lime",
  581. "yellow",
  582. "amber",
  583. "gold",
  584. "bronze",
  585. "gray",
  586. ],
  587. ]
  588. ] = None,
  589. style: Optional[Style] = None,
  590. key: Optional[Any] = None,
  591. id: Optional[Any] = None,
  592. class_name: Optional[Any] = None,
  593. autofocus: Optional[bool] = None,
  594. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  595. on_blur: Optional[
  596. Union[EventHandler, EventSpec, list, function, BaseVar]
  597. ] = None,
  598. on_click: Optional[
  599. Union[EventHandler, EventSpec, list, function, BaseVar]
  600. ] = None,
  601. on_context_menu: Optional[
  602. Union[EventHandler, EventSpec, list, function, BaseVar]
  603. ] = None,
  604. on_double_click: Optional[
  605. Union[EventHandler, EventSpec, list, function, BaseVar]
  606. ] = None,
  607. on_focus: Optional[
  608. Union[EventHandler, EventSpec, list, function, BaseVar]
  609. ] = None,
  610. on_mount: Optional[
  611. Union[EventHandler, EventSpec, list, function, BaseVar]
  612. ] = None,
  613. on_mouse_down: Optional[
  614. Union[EventHandler, EventSpec, list, function, BaseVar]
  615. ] = None,
  616. on_mouse_enter: Optional[
  617. Union[EventHandler, EventSpec, list, function, BaseVar]
  618. ] = None,
  619. on_mouse_leave: Optional[
  620. Union[EventHandler, EventSpec, list, function, BaseVar]
  621. ] = None,
  622. on_mouse_move: Optional[
  623. Union[EventHandler, EventSpec, list, function, BaseVar]
  624. ] = None,
  625. on_mouse_out: Optional[
  626. Union[EventHandler, EventSpec, list, function, BaseVar]
  627. ] = None,
  628. on_mouse_over: Optional[
  629. Union[EventHandler, EventSpec, list, function, BaseVar]
  630. ] = None,
  631. on_mouse_up: Optional[
  632. Union[EventHandler, EventSpec, list, function, BaseVar]
  633. ] = None,
  634. on_scroll: Optional[
  635. Union[EventHandler, EventSpec, list, function, BaseVar]
  636. ] = None,
  637. on_unmount: Optional[
  638. Union[EventHandler, EventSpec, list, function, BaseVar]
  639. ] = None,
  640. **props
  641. ) -> "AlertDialogTitle":
  642. """Create a new component instance.
  643. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  644. other UI libraries for common names, like Text and Button.
  645. Args:
  646. *children: Child components.
  647. color: map to CSS default color property.
  648. color_scheme: map to radix color property.
  649. style: The style of the component.
  650. key: A unique key for the component.
  651. id: The id for the component.
  652. class_name: The class name for the component.
  653. autofocus: Whether the component should take the focus once the page is loaded
  654. custom_attrs: custom attribute
  655. **props: Component properties.
  656. Returns:
  657. A new component instance.
  658. """
  659. ...
  660. class AlertDialogDescription(RadixThemesComponent):
  661. @overload
  662. @classmethod
  663. def create( # type: ignore
  664. cls,
  665. *children,
  666. color: Optional[Union[Var[str], str]] = None,
  667. color_scheme: Optional[
  668. Union[
  669. Var[
  670. Literal[
  671. "tomato",
  672. "red",
  673. "ruby",
  674. "crimson",
  675. "pink",
  676. "plum",
  677. "purple",
  678. "violet",
  679. "iris",
  680. "indigo",
  681. "blue",
  682. "cyan",
  683. "teal",
  684. "jade",
  685. "green",
  686. "grass",
  687. "brown",
  688. "orange",
  689. "sky",
  690. "mint",
  691. "lime",
  692. "yellow",
  693. "amber",
  694. "gold",
  695. "bronze",
  696. "gray",
  697. ]
  698. ],
  699. Literal[
  700. "tomato",
  701. "red",
  702. "ruby",
  703. "crimson",
  704. "pink",
  705. "plum",
  706. "purple",
  707. "violet",
  708. "iris",
  709. "indigo",
  710. "blue",
  711. "cyan",
  712. "teal",
  713. "jade",
  714. "green",
  715. "grass",
  716. "brown",
  717. "orange",
  718. "sky",
  719. "mint",
  720. "lime",
  721. "yellow",
  722. "amber",
  723. "gold",
  724. "bronze",
  725. "gray",
  726. ],
  727. ]
  728. ] = None,
  729. style: Optional[Style] = None,
  730. key: Optional[Any] = None,
  731. id: Optional[Any] = None,
  732. class_name: Optional[Any] = None,
  733. autofocus: Optional[bool] = None,
  734. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  735. on_blur: Optional[
  736. Union[EventHandler, EventSpec, list, function, BaseVar]
  737. ] = None,
  738. on_click: Optional[
  739. Union[EventHandler, EventSpec, list, function, BaseVar]
  740. ] = None,
  741. on_context_menu: Optional[
  742. Union[EventHandler, EventSpec, list, function, BaseVar]
  743. ] = None,
  744. on_double_click: Optional[
  745. Union[EventHandler, EventSpec, list, function, BaseVar]
  746. ] = None,
  747. on_focus: Optional[
  748. Union[EventHandler, EventSpec, list, function, BaseVar]
  749. ] = None,
  750. on_mount: Optional[
  751. Union[EventHandler, EventSpec, list, function, BaseVar]
  752. ] = None,
  753. on_mouse_down: Optional[
  754. Union[EventHandler, EventSpec, list, function, BaseVar]
  755. ] = None,
  756. on_mouse_enter: Optional[
  757. Union[EventHandler, EventSpec, list, function, BaseVar]
  758. ] = None,
  759. on_mouse_leave: Optional[
  760. Union[EventHandler, EventSpec, list, function, BaseVar]
  761. ] = None,
  762. on_mouse_move: Optional[
  763. Union[EventHandler, EventSpec, list, function, BaseVar]
  764. ] = None,
  765. on_mouse_out: Optional[
  766. Union[EventHandler, EventSpec, list, function, BaseVar]
  767. ] = None,
  768. on_mouse_over: Optional[
  769. Union[EventHandler, EventSpec, list, function, BaseVar]
  770. ] = None,
  771. on_mouse_up: Optional[
  772. Union[EventHandler, EventSpec, list, function, BaseVar]
  773. ] = None,
  774. on_scroll: Optional[
  775. Union[EventHandler, EventSpec, list, function, BaseVar]
  776. ] = None,
  777. on_unmount: Optional[
  778. Union[EventHandler, EventSpec, list, function, BaseVar]
  779. ] = None,
  780. **props
  781. ) -> "AlertDialogDescription":
  782. """Create a new component instance.
  783. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  784. other UI libraries for common names, like Text and Button.
  785. Args:
  786. *children: Child components.
  787. color: map to CSS default color property.
  788. color_scheme: map to radix color property.
  789. style: The style of the component.
  790. key: A unique key for the component.
  791. id: The id for the component.
  792. class_name: The class name for the component.
  793. autofocus: Whether the component should take the focus once the page is loaded
  794. custom_attrs: custom attribute
  795. **props: Component properties.
  796. Returns:
  797. A new component instance.
  798. """
  799. ...
  800. class AlertDialogAction(RadixThemesComponent):
  801. @overload
  802. @classmethod
  803. def create( # type: ignore
  804. cls,
  805. *children,
  806. color: Optional[Union[Var[str], str]] = None,
  807. color_scheme: Optional[
  808. Union[
  809. Var[
  810. Literal[
  811. "tomato",
  812. "red",
  813. "ruby",
  814. "crimson",
  815. "pink",
  816. "plum",
  817. "purple",
  818. "violet",
  819. "iris",
  820. "indigo",
  821. "blue",
  822. "cyan",
  823. "teal",
  824. "jade",
  825. "green",
  826. "grass",
  827. "brown",
  828. "orange",
  829. "sky",
  830. "mint",
  831. "lime",
  832. "yellow",
  833. "amber",
  834. "gold",
  835. "bronze",
  836. "gray",
  837. ]
  838. ],
  839. Literal[
  840. "tomato",
  841. "red",
  842. "ruby",
  843. "crimson",
  844. "pink",
  845. "plum",
  846. "purple",
  847. "violet",
  848. "iris",
  849. "indigo",
  850. "blue",
  851. "cyan",
  852. "teal",
  853. "jade",
  854. "green",
  855. "grass",
  856. "brown",
  857. "orange",
  858. "sky",
  859. "mint",
  860. "lime",
  861. "yellow",
  862. "amber",
  863. "gold",
  864. "bronze",
  865. "gray",
  866. ],
  867. ]
  868. ] = None,
  869. style: Optional[Style] = None,
  870. key: Optional[Any] = None,
  871. id: Optional[Any] = None,
  872. class_name: Optional[Any] = None,
  873. autofocus: Optional[bool] = None,
  874. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  875. on_blur: Optional[
  876. Union[EventHandler, EventSpec, list, function, BaseVar]
  877. ] = None,
  878. on_click: Optional[
  879. Union[EventHandler, EventSpec, list, function, BaseVar]
  880. ] = None,
  881. on_context_menu: Optional[
  882. Union[EventHandler, EventSpec, list, function, BaseVar]
  883. ] = None,
  884. on_double_click: Optional[
  885. Union[EventHandler, EventSpec, list, function, BaseVar]
  886. ] = None,
  887. on_focus: Optional[
  888. Union[EventHandler, EventSpec, list, function, BaseVar]
  889. ] = None,
  890. on_mount: Optional[
  891. Union[EventHandler, EventSpec, list, function, BaseVar]
  892. ] = None,
  893. on_mouse_down: Optional[
  894. Union[EventHandler, EventSpec, list, function, BaseVar]
  895. ] = None,
  896. on_mouse_enter: Optional[
  897. Union[EventHandler, EventSpec, list, function, BaseVar]
  898. ] = None,
  899. on_mouse_leave: Optional[
  900. Union[EventHandler, EventSpec, list, function, BaseVar]
  901. ] = None,
  902. on_mouse_move: Optional[
  903. Union[EventHandler, EventSpec, list, function, BaseVar]
  904. ] = None,
  905. on_mouse_out: Optional[
  906. Union[EventHandler, EventSpec, list, function, BaseVar]
  907. ] = None,
  908. on_mouse_over: Optional[
  909. Union[EventHandler, EventSpec, list, function, BaseVar]
  910. ] = None,
  911. on_mouse_up: Optional[
  912. Union[EventHandler, EventSpec, list, function, BaseVar]
  913. ] = None,
  914. on_scroll: Optional[
  915. Union[EventHandler, EventSpec, list, function, BaseVar]
  916. ] = None,
  917. on_unmount: Optional[
  918. Union[EventHandler, EventSpec, list, function, BaseVar]
  919. ] = None,
  920. **props
  921. ) -> "AlertDialogAction":
  922. """Create a new component instance.
  923. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  924. other UI libraries for common names, like Text and Button.
  925. Args:
  926. *children: Child components.
  927. color: map to CSS default color property.
  928. color_scheme: map to radix color property.
  929. style: The style of the component.
  930. key: A unique key for the component.
  931. id: The id for the component.
  932. class_name: The class name for the component.
  933. autofocus: Whether the component should take the focus once the page is loaded
  934. custom_attrs: custom attribute
  935. **props: Component properties.
  936. Returns:
  937. A new component instance.
  938. """
  939. ...
  940. class AlertDialogCancel(RadixThemesComponent):
  941. @overload
  942. @classmethod
  943. def create( # type: ignore
  944. cls,
  945. *children,
  946. color: Optional[Union[Var[str], str]] = None,
  947. color_scheme: Optional[
  948. Union[
  949. Var[
  950. Literal[
  951. "tomato",
  952. "red",
  953. "ruby",
  954. "crimson",
  955. "pink",
  956. "plum",
  957. "purple",
  958. "violet",
  959. "iris",
  960. "indigo",
  961. "blue",
  962. "cyan",
  963. "teal",
  964. "jade",
  965. "green",
  966. "grass",
  967. "brown",
  968. "orange",
  969. "sky",
  970. "mint",
  971. "lime",
  972. "yellow",
  973. "amber",
  974. "gold",
  975. "bronze",
  976. "gray",
  977. ]
  978. ],
  979. Literal[
  980. "tomato",
  981. "red",
  982. "ruby",
  983. "crimson",
  984. "pink",
  985. "plum",
  986. "purple",
  987. "violet",
  988. "iris",
  989. "indigo",
  990. "blue",
  991. "cyan",
  992. "teal",
  993. "jade",
  994. "green",
  995. "grass",
  996. "brown",
  997. "orange",
  998. "sky",
  999. "mint",
  1000. "lime",
  1001. "yellow",
  1002. "amber",
  1003. "gold",
  1004. "bronze",
  1005. "gray",
  1006. ],
  1007. ]
  1008. ] = None,
  1009. style: Optional[Style] = None,
  1010. key: Optional[Any] = None,
  1011. id: Optional[Any] = None,
  1012. class_name: Optional[Any] = None,
  1013. autofocus: Optional[bool] = None,
  1014. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  1015. on_blur: Optional[
  1016. Union[EventHandler, EventSpec, list, function, BaseVar]
  1017. ] = None,
  1018. on_click: Optional[
  1019. Union[EventHandler, EventSpec, list, function, BaseVar]
  1020. ] = None,
  1021. on_context_menu: Optional[
  1022. Union[EventHandler, EventSpec, list, function, BaseVar]
  1023. ] = None,
  1024. on_double_click: Optional[
  1025. Union[EventHandler, EventSpec, list, function, BaseVar]
  1026. ] = None,
  1027. on_focus: Optional[
  1028. Union[EventHandler, EventSpec, list, function, BaseVar]
  1029. ] = None,
  1030. on_mount: Optional[
  1031. Union[EventHandler, EventSpec, list, function, BaseVar]
  1032. ] = None,
  1033. on_mouse_down: Optional[
  1034. Union[EventHandler, EventSpec, list, function, BaseVar]
  1035. ] = None,
  1036. on_mouse_enter: Optional[
  1037. Union[EventHandler, EventSpec, list, function, BaseVar]
  1038. ] = None,
  1039. on_mouse_leave: Optional[
  1040. Union[EventHandler, EventSpec, list, function, BaseVar]
  1041. ] = None,
  1042. on_mouse_move: Optional[
  1043. Union[EventHandler, EventSpec, list, function, BaseVar]
  1044. ] = None,
  1045. on_mouse_out: Optional[
  1046. Union[EventHandler, EventSpec, list, function, BaseVar]
  1047. ] = None,
  1048. on_mouse_over: Optional[
  1049. Union[EventHandler, EventSpec, list, function, BaseVar]
  1050. ] = None,
  1051. on_mouse_up: Optional[
  1052. Union[EventHandler, EventSpec, list, function, BaseVar]
  1053. ] = None,
  1054. on_scroll: Optional[
  1055. Union[EventHandler, EventSpec, list, function, BaseVar]
  1056. ] = None,
  1057. on_unmount: Optional[
  1058. Union[EventHandler, EventSpec, list, function, BaseVar]
  1059. ] = None,
  1060. **props
  1061. ) -> "AlertDialogCancel":
  1062. """Create a new component instance.
  1063. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  1064. other UI libraries for common names, like Text and Button.
  1065. Args:
  1066. *children: Child components.
  1067. color: map to CSS default color property.
  1068. color_scheme: map to radix color property.
  1069. style: The style of the component.
  1070. key: A unique key for the component.
  1071. id: The id for the component.
  1072. class_name: The class name for the component.
  1073. autofocus: Whether the component should take the focus once the page is loaded
  1074. custom_attrs: custom attribute
  1075. **props: Component properties.
  1076. Returns:
  1077. A new component instance.
  1078. """
  1079. ...
  1080. class AlertDialog(SimpleNamespace):
  1081. root = staticmethod(AlertDialogRoot.create)
  1082. trigger = staticmethod(AlertDialogTrigger.create)
  1083. content = staticmethod(AlertDialogContent.create)
  1084. title = staticmethod(AlertDialogTitle.create)
  1085. description = staticmethod(AlertDialogDescription.create)
  1086. action = staticmethod(AlertDialogAction.create)
  1087. cancel = staticmethod(AlertDialogCancel.create)
  1088. @staticmethod
  1089. def __call__(
  1090. *children,
  1091. color: Optional[Union[Var[str], str]] = None,
  1092. color_scheme: Optional[
  1093. Union[
  1094. Var[
  1095. Literal[
  1096. "tomato",
  1097. "red",
  1098. "ruby",
  1099. "crimson",
  1100. "pink",
  1101. "plum",
  1102. "purple",
  1103. "violet",
  1104. "iris",
  1105. "indigo",
  1106. "blue",
  1107. "cyan",
  1108. "teal",
  1109. "jade",
  1110. "green",
  1111. "grass",
  1112. "brown",
  1113. "orange",
  1114. "sky",
  1115. "mint",
  1116. "lime",
  1117. "yellow",
  1118. "amber",
  1119. "gold",
  1120. "bronze",
  1121. "gray",
  1122. ]
  1123. ],
  1124. Literal[
  1125. "tomato",
  1126. "red",
  1127. "ruby",
  1128. "crimson",
  1129. "pink",
  1130. "plum",
  1131. "purple",
  1132. "violet",
  1133. "iris",
  1134. "indigo",
  1135. "blue",
  1136. "cyan",
  1137. "teal",
  1138. "jade",
  1139. "green",
  1140. "grass",
  1141. "brown",
  1142. "orange",
  1143. "sky",
  1144. "mint",
  1145. "lime",
  1146. "yellow",
  1147. "amber",
  1148. "gold",
  1149. "bronze",
  1150. "gray",
  1151. ],
  1152. ]
  1153. ] = None,
  1154. open: Optional[Union[Var[bool], bool]] = None,
  1155. style: Optional[Style] = None,
  1156. key: Optional[Any] = None,
  1157. id: Optional[Any] = None,
  1158. class_name: Optional[Any] = None,
  1159. autofocus: Optional[bool] = None,
  1160. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  1161. on_blur: Optional[
  1162. Union[EventHandler, EventSpec, list, function, BaseVar]
  1163. ] = None,
  1164. on_click: Optional[
  1165. Union[EventHandler, EventSpec, list, function, BaseVar]
  1166. ] = None,
  1167. on_context_menu: Optional[
  1168. Union[EventHandler, EventSpec, list, function, BaseVar]
  1169. ] = None,
  1170. on_double_click: Optional[
  1171. Union[EventHandler, EventSpec, list, function, BaseVar]
  1172. ] = None,
  1173. on_focus: Optional[
  1174. Union[EventHandler, EventSpec, list, function, BaseVar]
  1175. ] = None,
  1176. on_mount: Optional[
  1177. Union[EventHandler, EventSpec, list, function, BaseVar]
  1178. ] = None,
  1179. on_mouse_down: Optional[
  1180. Union[EventHandler, EventSpec, list, function, BaseVar]
  1181. ] = None,
  1182. on_mouse_enter: Optional[
  1183. Union[EventHandler, EventSpec, list, function, BaseVar]
  1184. ] = None,
  1185. on_mouse_leave: Optional[
  1186. Union[EventHandler, EventSpec, list, function, BaseVar]
  1187. ] = None,
  1188. on_mouse_move: Optional[
  1189. Union[EventHandler, EventSpec, list, function, BaseVar]
  1190. ] = None,
  1191. on_mouse_out: Optional[
  1192. Union[EventHandler, EventSpec, list, function, BaseVar]
  1193. ] = None,
  1194. on_mouse_over: Optional[
  1195. Union[EventHandler, EventSpec, list, function, BaseVar]
  1196. ] = None,
  1197. on_mouse_up: Optional[
  1198. Union[EventHandler, EventSpec, list, function, BaseVar]
  1199. ] = None,
  1200. on_open_change: Optional[
  1201. Union[EventHandler, EventSpec, list, function, BaseVar]
  1202. ] = None,
  1203. on_scroll: Optional[
  1204. Union[EventHandler, EventSpec, list, function, BaseVar]
  1205. ] = None,
  1206. on_unmount: Optional[
  1207. Union[EventHandler, EventSpec, list, function, BaseVar]
  1208. ] = None,
  1209. **props
  1210. ) -> "AlertDialogRoot":
  1211. """Create a new component instance.
  1212. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  1213. other UI libraries for common names, like Text and Button.
  1214. Args:
  1215. *children: Child components.
  1216. color: map to CSS default color property.
  1217. color_scheme: map to radix color property.
  1218. open: The controlled open state of the dialog.
  1219. style: The style of the component.
  1220. key: A unique key for the component.
  1221. id: The id for the component.
  1222. class_name: The class name for the component.
  1223. autofocus: Whether the component should take the focus once the page is loaded
  1224. custom_attrs: custom attribute
  1225. **props: Component properties.
  1226. Returns:
  1227. A new component instance.
  1228. """
  1229. ...
  1230. alert_dialog = AlertDialog()