reflex 0.6.0__py3-none-any.whl → 0.6.0a1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of reflex might be problematic. Click here for more details.

Files changed (253) hide show
  1. reflex/.templates/jinja/custom_components/pyproject.toml.jinja2 +2 -2
  2. reflex/.templates/jinja/web/pages/_app.js.jinja2 +1 -1
  3. reflex/.templates/jinja/web/pages/utils.js.jinja2 +2 -2
  4. reflex/.templates/web/components/reflex/chakra_color_mode_provider.js +36 -0
  5. reflex/.templates/web/utils/state.js +1 -3
  6. reflex/__init__.py +2 -8
  7. reflex/__init__.pyi +1 -2
  8. reflex/app.py +2 -4
  9. reflex/app_module_for_backend.py +1 -1
  10. reflex/base.py +1 -1
  11. reflex/compiler/compiler.py +2 -2
  12. reflex/compiler/utils.py +3 -3
  13. reflex/components/base/app_wrap.py +2 -2
  14. reflex/components/base/app_wrap.pyi +27 -17
  15. reflex/components/base/bare.py +5 -4
  16. reflex/components/base/body.pyi +27 -17
  17. reflex/components/base/document.pyi +131 -81
  18. reflex/components/base/error_boundary.py +7 -6
  19. reflex/components/base/error_boundary.pyi +33 -20
  20. reflex/components/base/fragment.pyi +27 -17
  21. reflex/components/base/head.pyi +53 -33
  22. reflex/components/base/link.py +1 -1
  23. reflex/components/base/link.pyi +54 -33
  24. reflex/components/base/meta.pyi +105 -65
  25. reflex/components/base/script.py +2 -1
  26. reflex/components/base/script.pyi +38 -21
  27. reflex/components/component.py +47 -53
  28. reflex/components/core/banner.py +27 -23
  29. reflex/components/core/banner.pyi +171 -134
  30. reflex/components/core/client_side_routing.py +3 -2
  31. reflex/components/core/client_side_routing.pyi +54 -33
  32. reflex/components/core/clipboard.py +1 -2
  33. reflex/components/core/clipboard.pyi +33 -20
  34. reflex/components/core/cond.py +5 -5
  35. reflex/components/core/debounce.py +5 -5
  36. reflex/components/core/debounce.pyi +33 -20
  37. reflex/components/core/foreach.py +4 -3
  38. reflex/components/core/html.py +1 -1
  39. reflex/components/core/html.pyi +46 -35
  40. reflex/components/core/match.py +17 -17
  41. reflex/components/core/upload.py +23 -17
  42. reflex/components/core/upload.pyi +124 -78
  43. reflex/components/datadisplay/code.py +10 -9
  44. reflex/components/datadisplay/code.pyi +409 -299
  45. reflex/components/datadisplay/dataeditor.py +10 -8
  46. reflex/components/datadisplay/dataeditor.pyi +53 -40
  47. reflex/components/el/element.pyi +27 -17
  48. reflex/components/el/elements/base.py +1 -1
  49. reflex/components/el/elements/base.pyi +45 -34
  50. reflex/components/el/elements/forms.py +16 -16
  51. reflex/components/el/elements/forms.pyi +707 -554
  52. reflex/components/el/elements/inline.py +1 -1
  53. reflex/components/el/elements/inline.pyi +1218 -937
  54. reflex/components/el/elements/media.py +1 -1
  55. reflex/components/el/elements/media.pyi +997 -786
  56. reflex/components/el/elements/metadata.py +6 -3
  57. reflex/components/el/elements/metadata.pyi +242 -181
  58. reflex/components/el/elements/other.py +1 -1
  59. reflex/components/el/elements/other.pyi +306 -235
  60. reflex/components/el/elements/scripts.py +1 -1
  61. reflex/components/el/elements/scripts.pyi +140 -109
  62. reflex/components/el/elements/sectioning.py +2 -0
  63. reflex/components/el/elements/sectioning.pyi +647 -496
  64. reflex/components/el/elements/tables.py +1 -1
  65. reflex/components/el/elements/tables.pyi +452 -351
  66. reflex/components/el/elements/typography.py +1 -1
  67. reflex/components/el/elements/typography.pyi +657 -506
  68. reflex/components/gridjs/datatable.py +9 -6
  69. reflex/components/gridjs/datatable.pyi +56 -35
  70. reflex/components/lucide/icon.py +1 -1
  71. reflex/components/lucide/icon.pyi +54 -33
  72. reflex/components/markdown/markdown.py +31 -26
  73. reflex/components/markdown/markdown.pyi +37 -27
  74. reflex/components/moment/moment.py +12 -13
  75. reflex/components/moment/moment.pyi +35 -23
  76. reflex/components/next/base.pyi +27 -17
  77. reflex/components/next/image.py +1 -1
  78. reflex/components/next/image.pyi +37 -22
  79. reflex/components/next/link.py +1 -1
  80. reflex/components/next/link.pyi +28 -17
  81. reflex/components/next/video.py +1 -1
  82. reflex/components/next/video.pyi +28 -17
  83. reflex/components/plotly/plotly.py +13 -12
  84. reflex/components/plotly/plotly.pyi +54 -39
  85. reflex/components/props.py +1 -1
  86. reflex/components/radix/__init__.pyi +0 -1
  87. reflex/components/radix/primitives/__init__.pyi +0 -1
  88. reflex/components/radix/primitives/accordion.py +4 -4
  89. reflex/components/radix/primitives/accordion.pyi +495 -424
  90. reflex/components/radix/primitives/base.py +1 -1
  91. reflex/components/radix/primitives/base.pyi +54 -33
  92. reflex/components/radix/primitives/drawer.py +1 -1
  93. reflex/components/radix/primitives/drawer.pyi +273 -172
  94. reflex/components/radix/primitives/form.py +1 -1
  95. reflex/components/radix/primitives/form.pyi +364 -257
  96. reflex/components/radix/primitives/progress.py +1 -1
  97. reflex/components/radix/primitives/progress.pyi +282 -231
  98. reflex/components/radix/primitives/slider.py +1 -1
  99. reflex/components/radix/primitives/slider.pyi +138 -87
  100. reflex/components/radix/themes/base.py +24 -3
  101. reflex/components/radix/themes/base.pyi +250 -178
  102. reflex/components/radix/themes/color_mode.py +5 -5
  103. reflex/components/radix/themes/color_mode.pyi +220 -187
  104. reflex/components/radix/themes/components/alert_dialog.py +1 -1
  105. reflex/components/radix/themes/components/alert_dialog.pyi +207 -136
  106. reflex/components/radix/themes/components/aspect_ratio.py +1 -1
  107. reflex/components/radix/themes/components/aspect_ratio.pyi +28 -17
  108. reflex/components/radix/themes/components/avatar.py +1 -1
  109. reflex/components/radix/themes/components/avatar.pyi +81 -70
  110. reflex/components/radix/themes/components/badge.py +1 -1
  111. reflex/components/radix/themes/components/badge.pyi +99 -88
  112. reflex/components/radix/themes/components/button.py +1 -1
  113. reflex/components/radix/themes/components/button.pyi +109 -98
  114. reflex/components/radix/themes/components/callout.py +1 -1
  115. reflex/components/radix/themes/components/callout.pyi +373 -322
  116. reflex/components/radix/themes/components/card.py +1 -1
  117. reflex/components/radix/themes/components/card.pyi +49 -38
  118. reflex/components/radix/themes/components/checkbox.py +2 -1
  119. reflex/components/radix/themes/components/checkbox.pyi +245 -208
  120. reflex/components/radix/themes/components/checkbox_cards.py +1 -1
  121. reflex/components/radix/themes/components/checkbox_cards.pyi +115 -94
  122. reflex/components/radix/themes/components/checkbox_group.py +1 -1
  123. reflex/components/radix/themes/components/checkbox_group.pyi +107 -86
  124. reflex/components/radix/themes/components/context_menu.py +1 -1
  125. reflex/components/radix/themes/components/context_menu.pyi +319 -238
  126. reflex/components/radix/themes/components/data_list.py +1 -1
  127. reflex/components/radix/themes/components/data_list.pyi +171 -130
  128. reflex/components/radix/themes/components/dialog.py +1 -1
  129. reflex/components/radix/themes/components/dialog.pyi +210 -139
  130. reflex/components/radix/themes/components/dropdown_menu.py +1 -1
  131. reflex/components/radix/themes/components/dropdown_menu.pyi +332 -249
  132. reflex/components/radix/themes/components/hover_card.py +1 -1
  133. reflex/components/radix/themes/components/hover_card.pyi +131 -90
  134. reflex/components/radix/themes/components/icon_button.py +3 -2
  135. reflex/components/radix/themes/components/icon_button.pyi +109 -98
  136. reflex/components/radix/themes/components/inset.py +1 -1
  137. reflex/components/radix/themes/components/inset.pyi +58 -47
  138. reflex/components/radix/themes/components/popover.py +1 -1
  139. reflex/components/radix/themes/components/popover.pyi +136 -95
  140. reflex/components/radix/themes/components/progress.py +1 -1
  141. reflex/components/radix/themes/components/progress.pyi +82 -71
  142. reflex/components/radix/themes/components/radio.py +1 -1
  143. reflex/components/radix/themes/components/radio.pyi +80 -69
  144. reflex/components/radix/themes/components/radio_cards.py +1 -1
  145. reflex/components/radix/themes/components/radio_cards.pyi +119 -98
  146. reflex/components/radix/themes/components/radio_group.py +11 -8
  147. reflex/components/radix/themes/components/radio_group.pyi +271 -228
  148. reflex/components/radix/themes/components/scroll_area.py +1 -1
  149. reflex/components/radix/themes/components/scroll_area.pyi +32 -21
  150. reflex/components/radix/themes/components/segmented_control.py +1 -1
  151. reflex/components/radix/themes/components/segmented_control.pyi +113 -90
  152. reflex/components/radix/themes/components/select.py +3 -2
  153. reflex/components/radix/themes/components/select.pyi +471 -374
  154. reflex/components/radix/themes/components/separator.py +2 -1
  155. reflex/components/radix/themes/components/separator.pyi +80 -69
  156. reflex/components/radix/themes/components/skeleton.py +1 -1
  157. reflex/components/radix/themes/components/skeleton.pyi +34 -23
  158. reflex/components/radix/themes/components/slider.py +3 -2
  159. reflex/components/radix/themes/components/slider.pyi +88 -75
  160. reflex/components/radix/themes/components/spinner.py +1 -1
  161. reflex/components/radix/themes/components/spinner.pyi +30 -19
  162. reflex/components/radix/themes/components/switch.py +1 -1
  163. reflex/components/radix/themes/components/switch.pyi +84 -71
  164. reflex/components/radix/themes/components/table.py +1 -1
  165. reflex/components/radix/themes/components/table.pyi +332 -261
  166. reflex/components/radix/themes/components/tabs.py +1 -1
  167. reflex/components/radix/themes/components/tabs.pyi +194 -139
  168. reflex/components/radix/themes/components/text_area.py +1 -1
  169. reflex/components/radix/themes/components/text_area.pyi +111 -96
  170. reflex/components/radix/themes/components/text_field.py +1 -1
  171. reflex/components/radix/themes/components/text_field.pyi +286 -247
  172. reflex/components/radix/themes/components/tooltip.py +1 -1
  173. reflex/components/radix/themes/components/tooltip.pyi +37 -26
  174. reflex/components/radix/themes/layout/__init__.pyi +0 -1
  175. reflex/components/radix/themes/layout/base.py +1 -1
  176. reflex/components/radix/themes/layout/base.pyi +67 -56
  177. reflex/components/radix/themes/layout/box.pyi +45 -34
  178. reflex/components/radix/themes/layout/center.pyi +67 -56
  179. reflex/components/radix/themes/layout/container.py +2 -1
  180. reflex/components/radix/themes/layout/container.pyi +47 -36
  181. reflex/components/radix/themes/layout/flex.py +1 -1
  182. reflex/components/radix/themes/layout/flex.pyi +67 -56
  183. reflex/components/radix/themes/layout/grid.py +1 -1
  184. reflex/components/radix/themes/layout/grid.pyi +75 -64
  185. reflex/components/radix/themes/layout/list.py +6 -5
  186. reflex/components/radix/themes/layout/list.pyi +244 -193
  187. reflex/components/radix/themes/layout/section.py +2 -1
  188. reflex/components/radix/themes/layout/section.pyi +47 -36
  189. reflex/components/radix/themes/layout/spacer.pyi +67 -56
  190. reflex/components/radix/themes/layout/stack.py +1 -1
  191. reflex/components/radix/themes/layout/stack.pyi +159 -128
  192. reflex/components/radix/themes/typography/blockquote.py +1 -1
  193. reflex/components/radix/themes/typography/blockquote.pyi +100 -89
  194. reflex/components/radix/themes/typography/code.py +1 -1
  195. reflex/components/radix/themes/typography/code.pyi +101 -90
  196. reflex/components/radix/themes/typography/heading.py +1 -1
  197. reflex/components/radix/themes/typography/heading.pyi +107 -96
  198. reflex/components/radix/themes/typography/link.py +1 -1
  199. reflex/components/radix/themes/typography/link.pyi +113 -102
  200. reflex/components/radix/themes/typography/text.py +1 -1
  201. reflex/components/radix/themes/typography/text.pyi +572 -501
  202. reflex/components/react_player/audio.pyi +60 -33
  203. reflex/components/react_player/react_player.py +1 -1
  204. reflex/components/react_player/react_player.pyi +60 -33
  205. reflex/components/react_player/video.pyi +60 -33
  206. reflex/components/recharts/cartesian.py +3 -2
  207. reflex/components/recharts/cartesian.pyi +861 -678
  208. reflex/components/recharts/charts.py +5 -4
  209. reflex/components/recharts/charts.pyi +357 -252
  210. reflex/components/recharts/general.py +2 -1
  211. reflex/components/recharts/general.pyi +231 -180
  212. reflex/components/recharts/polar.py +5 -4
  213. reflex/components/recharts/polar.pyi +181 -144
  214. reflex/components/recharts/recharts.pyi +53 -33
  215. reflex/components/sonner/toast.py +17 -16
  216. reflex/components/sonner/toast.pyi +47 -36
  217. reflex/components/suneditor/editor.py +3 -2
  218. reflex/components/suneditor/editor.pyi +78 -55
  219. reflex/components/tags/cond_tag.py +4 -6
  220. reflex/components/tags/iter_tag.py +16 -28
  221. reflex/components/tags/match_tag.py +4 -6
  222. reflex/components/tags/tag.py +23 -40
  223. reflex/custom_components/custom_components.py +1 -3
  224. reflex/event.py +65 -113
  225. reflex/experimental/client_state.py +24 -25
  226. reflex/experimental/hooks.py +16 -16
  227. reflex/experimental/layout.py +5 -5
  228. reflex/experimental/layout.pyi +187 -136
  229. reflex/{vars → ivars}/__init__.py +2 -6
  230. reflex/{vars → ivars}/base.py +216 -599
  231. reflex/{vars → ivars}/function.py +19 -15
  232. reflex/{vars → ivars}/number.py +20 -41
  233. reflex/{vars → ivars}/object.py +30 -28
  234. reflex/{vars → ivars}/sequence.py +50 -53
  235. reflex/middleware/hydrate_middleware.py +0 -2
  236. reflex/middleware/middleware.py +3 -3
  237. reflex/state.py +82 -148
  238. reflex/style.py +22 -21
  239. reflex/utils/exceptions.py +0 -20
  240. reflex/utils/format.py +34 -54
  241. reflex/utils/imports.py +73 -16
  242. reflex/utils/prerequisites.py +15 -35
  243. reflex/utils/pyi_generator.py +8 -13
  244. reflex/utils/serializers.py +22 -12
  245. reflex/utils/telemetry.py +2 -3
  246. reflex/utils/types.py +5 -10
  247. reflex/vars.py +501 -0
  248. {reflex-0.6.0.dist-info → reflex-0.6.0a1.dist-info}/METADATA +5 -4
  249. reflex-0.6.0a1.dist-info/RECORD +384 -0
  250. reflex-0.6.0.dist-info/RECORD +0 -382
  251. {reflex-0.6.0.dist-info → reflex-0.6.0a1.dist-info}/LICENSE +0 -0
  252. {reflex-0.6.0.dist-info → reflex-0.6.0a1.dist-info}/WHEEL +0 -0
  253. {reflex-0.6.0.dist-info → reflex-0.6.0a1.dist-info}/entry_points.txt +0 -0
@@ -9,8 +9,9 @@ from reflex.components.component import ComponentNamespace
9
9
  from reflex.components.core.breakpoints import Breakpoints
10
10
  from reflex.components.el import elements
11
11
  from reflex.event import EventHandler, EventSpec
12
+ from reflex.ivars.base import ImmutableVar
12
13
  from reflex.style import Style
13
- from reflex.vars.base import Var
14
+ from reflex.vars import Var
14
15
 
15
16
  from ..base import RadixThemesComponent
16
17
 
@@ -25,148 +26,158 @@ class CalloutRoot(elements.Div, RadixThemesComponent):
25
26
  as_child: Optional[Union[Var[bool], bool]] = None,
26
27
  size: Optional[
27
28
  Union[
28
- Breakpoints[str, Literal["1", "2", "3"]],
29
- Literal["1", "2", "3"],
30
29
  Var[
31
30
  Union[
32
31
  Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
33
32
  ]
34
33
  ],
34
+ Literal["1", "2", "3"],
35
+ Breakpoints[str, Literal["1", "2", "3"]],
35
36
  ]
36
37
  ] = None,
37
38
  variant: Optional[
38
39
  Union[
39
- Literal["outline", "soft", "surface"],
40
- Var[Literal["outline", "soft", "surface"]],
40
+ Var[Literal["soft", "surface", "outline"]],
41
+ Literal["soft", "surface", "outline"],
41
42
  ]
42
43
  ] = None,
43
44
  color_scheme: Optional[
44
45
  Union[
45
- Literal[
46
- "amber",
47
- "blue",
48
- "bronze",
49
- "brown",
50
- "crimson",
51
- "cyan",
52
- "gold",
53
- "grass",
54
- "gray",
55
- "green",
56
- "indigo",
57
- "iris",
58
- "jade",
59
- "lime",
60
- "mint",
61
- "orange",
62
- "pink",
63
- "plum",
64
- "purple",
65
- "red",
66
- "ruby",
67
- "sky",
68
- "teal",
69
- "tomato",
70
- "violet",
71
- "yellow",
72
- ],
73
46
  Var[
74
47
  Literal[
75
- "amber",
76
- "blue",
77
- "bronze",
78
- "brown",
48
+ "tomato",
49
+ "red",
50
+ "ruby",
79
51
  "crimson",
80
- "cyan",
81
- "gold",
82
- "grass",
83
- "gray",
84
- "green",
85
- "indigo",
86
- "iris",
87
- "jade",
88
- "lime",
89
- "mint",
90
- "orange",
91
52
  "pink",
92
53
  "plum",
93
54
  "purple",
94
- "red",
95
- "ruby",
96
- "sky",
97
- "teal",
98
- "tomato",
99
55
  "violet",
56
+ "iris",
57
+ "indigo",
58
+ "blue",
59
+ "cyan",
60
+ "teal",
61
+ "jade",
62
+ "green",
63
+ "grass",
64
+ "brown",
65
+ "orange",
66
+ "sky",
67
+ "mint",
68
+ "lime",
100
69
  "yellow",
70
+ "amber",
71
+ "gold",
72
+ "bronze",
73
+ "gray",
101
74
  ]
102
75
  ],
76
+ Literal[
77
+ "tomato",
78
+ "red",
79
+ "ruby",
80
+ "crimson",
81
+ "pink",
82
+ "plum",
83
+ "purple",
84
+ "violet",
85
+ "iris",
86
+ "indigo",
87
+ "blue",
88
+ "cyan",
89
+ "teal",
90
+ "jade",
91
+ "green",
92
+ "grass",
93
+ "brown",
94
+ "orange",
95
+ "sky",
96
+ "mint",
97
+ "lime",
98
+ "yellow",
99
+ "amber",
100
+ "gold",
101
+ "bronze",
102
+ "gray",
103
+ ],
103
104
  ]
104
105
  ] = None,
105
106
  high_contrast: Optional[Union[Var[bool], bool]] = None,
106
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
107
+ access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
107
108
  auto_capitalize: Optional[
108
- Union[Var[Union[bool, int, str]], bool, int, str]
109
+ Union[Var[Union[bool, int, str]], str, int, bool]
109
110
  ] = None,
110
111
  content_editable: Optional[
111
- Union[Var[Union[bool, int, str]], bool, int, str]
112
+ Union[Var[Union[bool, int, str]], str, int, bool]
112
113
  ] = None,
113
114
  context_menu: Optional[
114
- Union[Var[Union[bool, int, str]], bool, int, str]
115
+ Union[Var[Union[bool, int, str]], str, int, bool]
115
116
  ] = None,
116
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
117
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
117
+ dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
118
+ draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
118
119
  enter_key_hint: Optional[
119
- Union[Var[Union[bool, int, str]], bool, int, str]
120
- ] = None,
121
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
122
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
123
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
124
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
125
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
126
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
127
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
128
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
129
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
120
+ Union[Var[Union[bool, int, str]], str, int, bool]
121
+ ] = None,
122
+ hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
123
+ input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
124
+ item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
125
+ lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
126
+ role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
127
+ slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
128
+ spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
129
+ tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
130
+ title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
130
131
  style: Optional[Style] = None,
131
132
  key: Optional[Any] = None,
132
133
  id: Optional[Any] = None,
133
134
  class_name: Optional[Any] = None,
134
135
  autofocus: Optional[bool] = None,
135
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
136
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
137
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
136
+ custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
137
+ on_blur: Optional[
138
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
139
+ ] = None,
140
+ on_click: Optional[
141
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
142
+ ] = None,
138
143
  on_context_menu: Optional[
139
- Union[EventHandler, EventSpec, list, Callable, Var]
144
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
140
145
  ] = None,
141
146
  on_double_click: Optional[
142
- Union[EventHandler, EventSpec, list, Callable, Var]
147
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
148
+ ] = None,
149
+ on_focus: Optional[
150
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
151
+ ] = None,
152
+ on_mount: Optional[
153
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
143
154
  ] = None,
144
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
145
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
146
155
  on_mouse_down: Optional[
147
- Union[EventHandler, EventSpec, list, Callable, Var]
156
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
148
157
  ] = None,
149
158
  on_mouse_enter: Optional[
150
- Union[EventHandler, EventSpec, list, Callable, Var]
159
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
151
160
  ] = None,
152
161
  on_mouse_leave: Optional[
153
- Union[EventHandler, EventSpec, list, Callable, Var]
162
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
154
163
  ] = None,
155
164
  on_mouse_move: Optional[
156
- Union[EventHandler, EventSpec, list, Callable, Var]
165
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
157
166
  ] = None,
158
167
  on_mouse_out: Optional[
159
- Union[EventHandler, EventSpec, list, Callable, Var]
168
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
160
169
  ] = None,
161
170
  on_mouse_over: Optional[
162
- Union[EventHandler, EventSpec, list, Callable, Var]
171
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
163
172
  ] = None,
164
173
  on_mouse_up: Optional[
165
- Union[EventHandler, EventSpec, list, Callable, Var]
174
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
175
+ ] = None,
176
+ on_scroll: Optional[
177
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
166
178
  ] = None,
167
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
168
179
  on_unmount: Optional[
169
- Union[EventHandler, EventSpec, list, Callable, Var]
180
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
170
181
  ] = None,
171
182
  **props,
172
183
  ) -> "CalloutRoot":
@@ -217,70 +228,80 @@ class CalloutIcon(elements.Div, RadixThemesComponent):
217
228
  def create( # type: ignore
218
229
  cls,
219
230
  *children,
220
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
231
+ access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
221
232
  auto_capitalize: Optional[
222
- Union[Var[Union[bool, int, str]], bool, int, str]
233
+ Union[Var[Union[bool, int, str]], str, int, bool]
223
234
  ] = None,
224
235
  content_editable: Optional[
225
- Union[Var[Union[bool, int, str]], bool, int, str]
236
+ Union[Var[Union[bool, int, str]], str, int, bool]
226
237
  ] = None,
227
238
  context_menu: Optional[
228
- Union[Var[Union[bool, int, str]], bool, int, str]
239
+ Union[Var[Union[bool, int, str]], str, int, bool]
229
240
  ] = None,
230
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
231
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
241
+ dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
242
+ draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
232
243
  enter_key_hint: Optional[
233
- Union[Var[Union[bool, int, str]], bool, int, str]
234
- ] = None,
235
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
236
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
237
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
238
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
239
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
240
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
241
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
242
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
243
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
244
+ Union[Var[Union[bool, int, str]], str, int, bool]
245
+ ] = None,
246
+ hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
247
+ input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
248
+ item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
249
+ lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
250
+ role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
251
+ slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
252
+ spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
253
+ tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
254
+ title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
244
255
  style: Optional[Style] = None,
245
256
  key: Optional[Any] = None,
246
257
  id: Optional[Any] = None,
247
258
  class_name: Optional[Any] = None,
248
259
  autofocus: Optional[bool] = None,
249
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
250
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
251
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
260
+ custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
261
+ on_blur: Optional[
262
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
263
+ ] = None,
264
+ on_click: Optional[
265
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
266
+ ] = None,
252
267
  on_context_menu: Optional[
253
- Union[EventHandler, EventSpec, list, Callable, Var]
268
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
254
269
  ] = None,
255
270
  on_double_click: Optional[
256
- Union[EventHandler, EventSpec, list, Callable, Var]
271
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
272
+ ] = None,
273
+ on_focus: Optional[
274
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
275
+ ] = None,
276
+ on_mount: Optional[
277
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
257
278
  ] = None,
258
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
259
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
260
279
  on_mouse_down: Optional[
261
- Union[EventHandler, EventSpec, list, Callable, Var]
280
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
262
281
  ] = None,
263
282
  on_mouse_enter: Optional[
264
- Union[EventHandler, EventSpec, list, Callable, Var]
283
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
265
284
  ] = None,
266
285
  on_mouse_leave: Optional[
267
- Union[EventHandler, EventSpec, list, Callable, Var]
286
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
268
287
  ] = None,
269
288
  on_mouse_move: Optional[
270
- Union[EventHandler, EventSpec, list, Callable, Var]
289
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
271
290
  ] = None,
272
291
  on_mouse_out: Optional[
273
- Union[EventHandler, EventSpec, list, Callable, Var]
292
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
274
293
  ] = None,
275
294
  on_mouse_over: Optional[
276
- Union[EventHandler, EventSpec, list, Callable, Var]
295
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
277
296
  ] = None,
278
297
  on_mouse_up: Optional[
279
- Union[EventHandler, EventSpec, list, Callable, Var]
298
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
299
+ ] = None,
300
+ on_scroll: Optional[
301
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
280
302
  ] = None,
281
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
282
303
  on_unmount: Optional[
283
- Union[EventHandler, EventSpec, list, Callable, Var]
304
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
284
305
  ] = None,
285
306
  **props,
286
307
  ) -> "CalloutIcon":
@@ -326,70 +347,80 @@ class CalloutText(elements.P, RadixThemesComponent):
326
347
  def create( # type: ignore
327
348
  cls,
328
349
  *children,
329
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
350
+ access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
330
351
  auto_capitalize: Optional[
331
- Union[Var[Union[bool, int, str]], bool, int, str]
352
+ Union[Var[Union[bool, int, str]], str, int, bool]
332
353
  ] = None,
333
354
  content_editable: Optional[
334
- Union[Var[Union[bool, int, str]], bool, int, str]
355
+ Union[Var[Union[bool, int, str]], str, int, bool]
335
356
  ] = None,
336
357
  context_menu: Optional[
337
- Union[Var[Union[bool, int, str]], bool, int, str]
358
+ Union[Var[Union[bool, int, str]], str, int, bool]
338
359
  ] = None,
339
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
340
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
360
+ dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
361
+ draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
341
362
  enter_key_hint: Optional[
342
- Union[Var[Union[bool, int, str]], bool, int, str]
343
- ] = None,
344
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
345
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
346
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
347
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
348
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
349
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
350
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
351
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
352
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
363
+ Union[Var[Union[bool, int, str]], str, int, bool]
364
+ ] = None,
365
+ hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
366
+ input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
367
+ item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
368
+ lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
369
+ role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
370
+ slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
371
+ spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
372
+ tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
373
+ title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
353
374
  style: Optional[Style] = None,
354
375
  key: Optional[Any] = None,
355
376
  id: Optional[Any] = None,
356
377
  class_name: Optional[Any] = None,
357
378
  autofocus: Optional[bool] = None,
358
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
359
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
360
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
379
+ custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
380
+ on_blur: Optional[
381
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
382
+ ] = None,
383
+ on_click: Optional[
384
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
385
+ ] = None,
361
386
  on_context_menu: Optional[
362
- Union[EventHandler, EventSpec, list, Callable, Var]
387
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
363
388
  ] = None,
364
389
  on_double_click: Optional[
365
- Union[EventHandler, EventSpec, list, Callable, Var]
390
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
391
+ ] = None,
392
+ on_focus: Optional[
393
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
394
+ ] = None,
395
+ on_mount: Optional[
396
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
366
397
  ] = None,
367
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
368
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
369
398
  on_mouse_down: Optional[
370
- Union[EventHandler, EventSpec, list, Callable, Var]
399
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
371
400
  ] = None,
372
401
  on_mouse_enter: Optional[
373
- Union[EventHandler, EventSpec, list, Callable, Var]
402
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
374
403
  ] = None,
375
404
  on_mouse_leave: Optional[
376
- Union[EventHandler, EventSpec, list, Callable, Var]
405
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
377
406
  ] = None,
378
407
  on_mouse_move: Optional[
379
- Union[EventHandler, EventSpec, list, Callable, Var]
408
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
380
409
  ] = None,
381
410
  on_mouse_out: Optional[
382
- Union[EventHandler, EventSpec, list, Callable, Var]
411
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
383
412
  ] = None,
384
413
  on_mouse_over: Optional[
385
- Union[EventHandler, EventSpec, list, Callable, Var]
414
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
386
415
  ] = None,
387
416
  on_mouse_up: Optional[
388
- Union[EventHandler, EventSpec, list, Callable, Var]
417
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
418
+ ] = None,
419
+ on_scroll: Optional[
420
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
389
421
  ] = None,
390
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
391
422
  on_unmount: Optional[
392
- Union[EventHandler, EventSpec, list, Callable, Var]
423
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
393
424
  ] = None,
394
425
  **props,
395
426
  ) -> "CalloutText":
@@ -440,148 +471,158 @@ class Callout(CalloutRoot):
440
471
  as_child: Optional[Union[Var[bool], bool]] = None,
441
472
  size: Optional[
442
473
  Union[
443
- Breakpoints[str, Literal["1", "2", "3"]],
444
- Literal["1", "2", "3"],
445
474
  Var[
446
475
  Union[
447
476
  Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
448
477
  ]
449
478
  ],
479
+ Literal["1", "2", "3"],
480
+ Breakpoints[str, Literal["1", "2", "3"]],
450
481
  ]
451
482
  ] = None,
452
483
  variant: Optional[
453
484
  Union[
454
- Literal["outline", "soft", "surface"],
455
- Var[Literal["outline", "soft", "surface"]],
485
+ Var[Literal["soft", "surface", "outline"]],
486
+ Literal["soft", "surface", "outline"],
456
487
  ]
457
488
  ] = None,
458
489
  color_scheme: Optional[
459
490
  Union[
460
- Literal[
461
- "amber",
462
- "blue",
463
- "bronze",
464
- "brown",
465
- "crimson",
466
- "cyan",
467
- "gold",
468
- "grass",
469
- "gray",
470
- "green",
471
- "indigo",
472
- "iris",
473
- "jade",
474
- "lime",
475
- "mint",
476
- "orange",
477
- "pink",
478
- "plum",
479
- "purple",
480
- "red",
481
- "ruby",
482
- "sky",
483
- "teal",
484
- "tomato",
485
- "violet",
486
- "yellow",
487
- ],
488
491
  Var[
489
492
  Literal[
490
- "amber",
491
- "blue",
492
- "bronze",
493
- "brown",
493
+ "tomato",
494
+ "red",
495
+ "ruby",
494
496
  "crimson",
495
- "cyan",
496
- "gold",
497
- "grass",
498
- "gray",
499
- "green",
500
- "indigo",
501
- "iris",
502
- "jade",
503
- "lime",
504
- "mint",
505
- "orange",
506
497
  "pink",
507
498
  "plum",
508
499
  "purple",
509
- "red",
510
- "ruby",
511
- "sky",
512
- "teal",
513
- "tomato",
514
500
  "violet",
501
+ "iris",
502
+ "indigo",
503
+ "blue",
504
+ "cyan",
505
+ "teal",
506
+ "jade",
507
+ "green",
508
+ "grass",
509
+ "brown",
510
+ "orange",
511
+ "sky",
512
+ "mint",
513
+ "lime",
515
514
  "yellow",
515
+ "amber",
516
+ "gold",
517
+ "bronze",
518
+ "gray",
516
519
  ]
517
520
  ],
521
+ Literal[
522
+ "tomato",
523
+ "red",
524
+ "ruby",
525
+ "crimson",
526
+ "pink",
527
+ "plum",
528
+ "purple",
529
+ "violet",
530
+ "iris",
531
+ "indigo",
532
+ "blue",
533
+ "cyan",
534
+ "teal",
535
+ "jade",
536
+ "green",
537
+ "grass",
538
+ "brown",
539
+ "orange",
540
+ "sky",
541
+ "mint",
542
+ "lime",
543
+ "yellow",
544
+ "amber",
545
+ "gold",
546
+ "bronze",
547
+ "gray",
548
+ ],
518
549
  ]
519
550
  ] = None,
520
551
  high_contrast: Optional[Union[Var[bool], bool]] = None,
521
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
552
+ access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
522
553
  auto_capitalize: Optional[
523
- Union[Var[Union[bool, int, str]], bool, int, str]
554
+ Union[Var[Union[bool, int, str]], str, int, bool]
524
555
  ] = None,
525
556
  content_editable: Optional[
526
- Union[Var[Union[bool, int, str]], bool, int, str]
557
+ Union[Var[Union[bool, int, str]], str, int, bool]
527
558
  ] = None,
528
559
  context_menu: Optional[
529
- Union[Var[Union[bool, int, str]], bool, int, str]
560
+ Union[Var[Union[bool, int, str]], str, int, bool]
530
561
  ] = None,
531
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
532
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
562
+ dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
563
+ draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
533
564
  enter_key_hint: Optional[
534
- Union[Var[Union[bool, int, str]], bool, int, str]
535
- ] = None,
536
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
537
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
538
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
539
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
540
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
541
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
542
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
543
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
544
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
565
+ Union[Var[Union[bool, int, str]], str, int, bool]
566
+ ] = None,
567
+ hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
568
+ input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
569
+ item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
570
+ lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
571
+ role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
572
+ slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
573
+ spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
574
+ tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
575
+ title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
545
576
  style: Optional[Style] = None,
546
577
  key: Optional[Any] = None,
547
578
  id: Optional[Any] = None,
548
579
  class_name: Optional[Any] = None,
549
580
  autofocus: Optional[bool] = None,
550
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
551
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
552
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
581
+ custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
582
+ on_blur: Optional[
583
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
584
+ ] = None,
585
+ on_click: Optional[
586
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
587
+ ] = None,
553
588
  on_context_menu: Optional[
554
- Union[EventHandler, EventSpec, list, Callable, Var]
589
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
555
590
  ] = None,
556
591
  on_double_click: Optional[
557
- Union[EventHandler, EventSpec, list, Callable, Var]
592
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
593
+ ] = None,
594
+ on_focus: Optional[
595
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
596
+ ] = None,
597
+ on_mount: Optional[
598
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
558
599
  ] = None,
559
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
560
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
561
600
  on_mouse_down: Optional[
562
- Union[EventHandler, EventSpec, list, Callable, Var]
601
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
563
602
  ] = None,
564
603
  on_mouse_enter: Optional[
565
- Union[EventHandler, EventSpec, list, Callable, Var]
604
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
566
605
  ] = None,
567
606
  on_mouse_leave: Optional[
568
- Union[EventHandler, EventSpec, list, Callable, Var]
607
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
569
608
  ] = None,
570
609
  on_mouse_move: Optional[
571
- Union[EventHandler, EventSpec, list, Callable, Var]
610
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
572
611
  ] = None,
573
612
  on_mouse_out: Optional[
574
- Union[EventHandler, EventSpec, list, Callable, Var]
613
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
575
614
  ] = None,
576
615
  on_mouse_over: Optional[
577
- Union[EventHandler, EventSpec, list, Callable, Var]
616
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
578
617
  ] = None,
579
618
  on_mouse_up: Optional[
580
- Union[EventHandler, EventSpec, list, Callable, Var]
619
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
620
+ ] = None,
621
+ on_scroll: Optional[
622
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
581
623
  ] = None,
582
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
583
624
  on_unmount: Optional[
584
- Union[EventHandler, EventSpec, list, Callable, Var]
625
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
585
626
  ] = None,
586
627
  **props,
587
628
  ) -> "Callout":
@@ -638,148 +679,158 @@ class CalloutNamespace(ComponentNamespace):
638
679
  as_child: Optional[Union[Var[bool], bool]] = None,
639
680
  size: Optional[
640
681
  Union[
641
- Breakpoints[str, Literal["1", "2", "3"]],
642
- Literal["1", "2", "3"],
643
682
  Var[
644
683
  Union[
645
684
  Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
646
685
  ]
647
686
  ],
687
+ Literal["1", "2", "3"],
688
+ Breakpoints[str, Literal["1", "2", "3"]],
648
689
  ]
649
690
  ] = None,
650
691
  variant: Optional[
651
692
  Union[
652
- Literal["outline", "soft", "surface"],
653
- Var[Literal["outline", "soft", "surface"]],
693
+ Var[Literal["soft", "surface", "outline"]],
694
+ Literal["soft", "surface", "outline"],
654
695
  ]
655
696
  ] = None,
656
697
  color_scheme: Optional[
657
698
  Union[
658
- Literal[
659
- "amber",
660
- "blue",
661
- "bronze",
662
- "brown",
663
- "crimson",
664
- "cyan",
665
- "gold",
666
- "grass",
667
- "gray",
668
- "green",
669
- "indigo",
670
- "iris",
671
- "jade",
672
- "lime",
673
- "mint",
674
- "orange",
675
- "pink",
676
- "plum",
677
- "purple",
678
- "red",
679
- "ruby",
680
- "sky",
681
- "teal",
682
- "tomato",
683
- "violet",
684
- "yellow",
685
- ],
686
699
  Var[
687
700
  Literal[
688
- "amber",
689
- "blue",
690
- "bronze",
691
- "brown",
701
+ "tomato",
702
+ "red",
703
+ "ruby",
692
704
  "crimson",
693
- "cyan",
694
- "gold",
695
- "grass",
696
- "gray",
697
- "green",
698
- "indigo",
699
- "iris",
700
- "jade",
701
- "lime",
702
- "mint",
703
- "orange",
704
705
  "pink",
705
706
  "plum",
706
707
  "purple",
707
- "red",
708
- "ruby",
709
- "sky",
710
- "teal",
711
- "tomato",
712
708
  "violet",
709
+ "iris",
710
+ "indigo",
711
+ "blue",
712
+ "cyan",
713
+ "teal",
714
+ "jade",
715
+ "green",
716
+ "grass",
717
+ "brown",
718
+ "orange",
719
+ "sky",
720
+ "mint",
721
+ "lime",
713
722
  "yellow",
723
+ "amber",
724
+ "gold",
725
+ "bronze",
726
+ "gray",
714
727
  ]
715
728
  ],
729
+ Literal[
730
+ "tomato",
731
+ "red",
732
+ "ruby",
733
+ "crimson",
734
+ "pink",
735
+ "plum",
736
+ "purple",
737
+ "violet",
738
+ "iris",
739
+ "indigo",
740
+ "blue",
741
+ "cyan",
742
+ "teal",
743
+ "jade",
744
+ "green",
745
+ "grass",
746
+ "brown",
747
+ "orange",
748
+ "sky",
749
+ "mint",
750
+ "lime",
751
+ "yellow",
752
+ "amber",
753
+ "gold",
754
+ "bronze",
755
+ "gray",
756
+ ],
716
757
  ]
717
758
  ] = None,
718
759
  high_contrast: Optional[Union[Var[bool], bool]] = None,
719
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
760
+ access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
720
761
  auto_capitalize: Optional[
721
- Union[Var[Union[bool, int, str]], bool, int, str]
762
+ Union[Var[Union[bool, int, str]], str, int, bool]
722
763
  ] = None,
723
764
  content_editable: Optional[
724
- Union[Var[Union[bool, int, str]], bool, int, str]
765
+ Union[Var[Union[bool, int, str]], str, int, bool]
725
766
  ] = None,
726
767
  context_menu: Optional[
727
- Union[Var[Union[bool, int, str]], bool, int, str]
768
+ Union[Var[Union[bool, int, str]], str, int, bool]
728
769
  ] = None,
729
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
730
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
770
+ dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
771
+ draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
731
772
  enter_key_hint: Optional[
732
- Union[Var[Union[bool, int, str]], bool, int, str]
733
- ] = None,
734
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
735
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
736
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
737
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
738
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
739
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
740
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
741
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
742
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
773
+ Union[Var[Union[bool, int, str]], str, int, bool]
774
+ ] = None,
775
+ hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
776
+ input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
777
+ item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
778
+ lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
779
+ role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
780
+ slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
781
+ spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
782
+ tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
783
+ title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
743
784
  style: Optional[Style] = None,
744
785
  key: Optional[Any] = None,
745
786
  id: Optional[Any] = None,
746
787
  class_name: Optional[Any] = None,
747
788
  autofocus: Optional[bool] = None,
748
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
749
- on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
750
- on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
789
+ custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
790
+ on_blur: Optional[
791
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
792
+ ] = None,
793
+ on_click: Optional[
794
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
795
+ ] = None,
751
796
  on_context_menu: Optional[
752
- Union[EventHandler, EventSpec, list, Callable, Var]
797
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
753
798
  ] = None,
754
799
  on_double_click: Optional[
755
- Union[EventHandler, EventSpec, list, Callable, Var]
800
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
801
+ ] = None,
802
+ on_focus: Optional[
803
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
804
+ ] = None,
805
+ on_mount: Optional[
806
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
756
807
  ] = None,
757
- on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
758
- on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
759
808
  on_mouse_down: Optional[
760
- Union[EventHandler, EventSpec, list, Callable, Var]
809
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
761
810
  ] = None,
762
811
  on_mouse_enter: Optional[
763
- Union[EventHandler, EventSpec, list, Callable, Var]
812
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
764
813
  ] = None,
765
814
  on_mouse_leave: Optional[
766
- Union[EventHandler, EventSpec, list, Callable, Var]
815
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
767
816
  ] = None,
768
817
  on_mouse_move: Optional[
769
- Union[EventHandler, EventSpec, list, Callable, Var]
818
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
770
819
  ] = None,
771
820
  on_mouse_out: Optional[
772
- Union[EventHandler, EventSpec, list, Callable, Var]
821
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
773
822
  ] = None,
774
823
  on_mouse_over: Optional[
775
- Union[EventHandler, EventSpec, list, Callable, Var]
824
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
776
825
  ] = None,
777
826
  on_mouse_up: Optional[
778
- Union[EventHandler, EventSpec, list, Callable, Var]
827
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
828
+ ] = None,
829
+ on_scroll: Optional[
830
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
779
831
  ] = None,
780
- on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
781
832
  on_unmount: Optional[
782
- Union[EventHandler, EventSpec, list, Callable, Var]
833
+ Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
783
834
  ] = None,
784
835
  **props,
785
836
  ) -> "Callout":