reflex 0.7.1a4__py3-none-any.whl → 0.7.2__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 (227) hide show
  1. reflex/.templates/jinja/web/utils/context.js.jinja2 +8 -8
  2. reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +3 -3
  3. reflex/.templates/web/utils/state.js +18 -18
  4. reflex/admin.py +1 -2
  5. reflex/app.py +46 -49
  6. reflex/app_mixins/lifespan.py +2 -2
  7. reflex/app_mixins/middleware.py +1 -2
  8. reflex/assets.py +1 -2
  9. reflex/base.py +2 -2
  10. reflex/compiler/compiler.py +51 -16
  11. reflex/compiler/utils.py +4 -13
  12. reflex/components/base/app_wrap.pyi +7 -7
  13. reflex/components/base/bare.py +3 -3
  14. reflex/components/base/body.pyi +7 -7
  15. reflex/components/base/document.py +1 -3
  16. reflex/components/base/document.pyi +32 -32
  17. reflex/components/base/error_boundary.py +2 -4
  18. reflex/components/base/error_boundary.pyi +11 -13
  19. reflex/components/base/fragment.pyi +7 -7
  20. reflex/components/base/head.pyi +13 -13
  21. reflex/components/base/link.pyi +22 -22
  22. reflex/components/base/meta.py +5 -7
  23. reflex/components/base/meta.pyi +40 -40
  24. reflex/components/base/script.pyi +11 -14
  25. reflex/components/base/strict_mode.pyi +7 -7
  26. reflex/components/component.py +188 -113
  27. reflex/components/core/auto_scroll.py +8 -1
  28. reflex/components/core/auto_scroll.pyi +183 -210
  29. reflex/components/core/banner.py +2 -4
  30. reflex/components/core/banner.pyi +390 -444
  31. reflex/components/core/breakpoints.py +5 -5
  32. reflex/components/core/client_side_routing.pyi +14 -14
  33. reflex/components/core/clipboard.py +4 -4
  34. reflex/components/core/clipboard.pyi +12 -14
  35. reflex/components/core/cond.py +17 -25
  36. reflex/components/core/debounce.py +3 -3
  37. reflex/components/core/debounce.pyi +14 -14
  38. reflex/components/core/foreach.py +7 -2
  39. reflex/components/core/html.py +1 -3
  40. reflex/components/core/html.pyi +184 -213
  41. reflex/components/core/match.py +15 -19
  42. reflex/components/core/sticky.pyi +930 -1078
  43. reflex/components/core/upload.py +4 -4
  44. reflex/components/core/upload.pyi +62 -62
  45. reflex/components/datadisplay/code.py +6 -6
  46. reflex/components/datadisplay/code.pyi +1159 -1165
  47. reflex/components/datadisplay/dataeditor.py +49 -49
  48. reflex/components/datadisplay/dataeditor.pyi +95 -123
  49. reflex/components/datadisplay/logo.py +1 -3
  50. reflex/components/datadisplay/shiki_code_block.py +8 -10
  51. reflex/components/datadisplay/shiki_code_block.pyi +1678 -1720
  52. reflex/components/el/element.pyi +7 -7
  53. reflex/components/el/elements/base.pyi +183 -210
  54. reflex/components/el/elements/forms.py +24 -24
  55. reflex/components/el/elements/forms.pyi +2572 -2934
  56. reflex/components/el/elements/inline.py +4 -4
  57. reflex/components/el/elements/inline.pyi +5191 -5953
  58. reflex/components/el/elements/media.py +47 -47
  59. reflex/components/el/elements/media.pyi +4802 -5500
  60. reflex/components/el/elements/metadata.py +1 -3
  61. reflex/components/el/elements/metadata.pyi +782 -896
  62. reflex/components/el/elements/other.pyi +1278 -1467
  63. reflex/components/el/elements/scripts.pyi +580 -667
  64. reflex/components/el/elements/sectioning.pyi +2761 -3166
  65. reflex/components/el/elements/tables.pyi +1840 -2119
  66. reflex/components/el/elements/typography.pyi +2772 -3179
  67. reflex/components/gridjs/datatable.py +7 -7
  68. reflex/components/gridjs/datatable.pyi +19 -19
  69. reflex/components/lucide/icon.pyi +21 -21
  70. reflex/components/markdown/markdown.py +2 -2
  71. reflex/components/markdown/markdown.pyi +9 -9
  72. reflex/components/moment/moment.py +11 -12
  73. reflex/components/moment/moment.pyi +44 -47
  74. reflex/components/next/base.pyi +7 -7
  75. reflex/components/next/image.py +3 -3
  76. reflex/components/next/image.pyi +19 -21
  77. reflex/components/next/link.pyi +9 -9
  78. reflex/components/next/video.py +1 -3
  79. reflex/components/next/video.pyi +9 -9
  80. reflex/components/plotly/plotly.py +22 -45
  81. reflex/components/plotly/plotly.pyi +164 -164
  82. reflex/components/radix/primitives/accordion.py +14 -14
  83. reflex/components/radix/primitives/accordion.pyi +439 -487
  84. reflex/components/radix/primitives/base.py +1 -3
  85. reflex/components/radix/primitives/base.pyi +15 -15
  86. reflex/components/radix/primitives/drawer.py +3 -3
  87. reflex/components/radix/primitives/drawer.pyi +110 -116
  88. reflex/components/radix/primitives/form.py +1 -1
  89. reflex/components/radix/primitives/form.pyi +668 -752
  90. reflex/components/radix/primitives/progress.py +6 -6
  91. reflex/components/radix/primitives/progress.pyi +225 -243
  92. reflex/components/radix/primitives/slider.py +6 -6
  93. reflex/components/radix/primitives/slider.pyi +52 -55
  94. reflex/components/radix/themes/base.py +3 -6
  95. reflex/components/radix/themes/base.pyi +197 -303
  96. reflex/components/radix/themes/color_mode.py +5 -5
  97. reflex/components/radix/themes/color_mode.pyi +366 -436
  98. reflex/components/radix/themes/components/alert_dialog.pyi +229 -262
  99. reflex/components/radix/themes/components/aspect_ratio.py +1 -3
  100. reflex/components/radix/themes/components/aspect_ratio.pyi +8 -8
  101. reflex/components/radix/themes/components/avatar.pyi +79 -94
  102. reflex/components/radix/themes/components/badge.pyi +252 -295
  103. reflex/components/radix/themes/components/button.pyi +269 -314
  104. reflex/components/radix/themes/components/callout.py +2 -2
  105. reflex/components/radix/themes/components/callout.pyi +1116 -1290
  106. reflex/components/radix/themes/components/card.pyi +194 -229
  107. reflex/components/radix/themes/components/checkbox.pyi +243 -278
  108. reflex/components/radix/themes/components/checkbox_cards.py +3 -7
  109. reflex/components/radix/themes/components/checkbox_cards.pyi +101 -135
  110. reflex/components/radix/themes/components/checkbox_group.py +2 -2
  111. reflex/components/radix/themes/components/checkbox_group.pyi +83 -96
  112. reflex/components/radix/themes/components/context_menu.py +18 -15
  113. reflex/components/radix/themes/components/context_menu.pyi +408 -458
  114. reflex/components/radix/themes/components/data_list.pyi +122 -147
  115. reflex/components/radix/themes/components/dialog.pyi +231 -264
  116. reflex/components/radix/themes/components/dropdown_menu.py +16 -13
  117. reflex/components/radix/themes/components/dropdown_menu.pyi +223 -246
  118. reflex/components/radix/themes/components/hover_card.py +2 -2
  119. reflex/components/radix/themes/components/hover_card.pyi +237 -282
  120. reflex/components/radix/themes/components/icon_button.pyi +269 -314
  121. reflex/components/radix/themes/components/inset.py +8 -8
  122. reflex/components/radix/themes/components/inset.pyi +232 -292
  123. reflex/components/radix/themes/components/popover.py +2 -2
  124. reflex/components/radix/themes/components/popover.pyi +229 -271
  125. reflex/components/radix/themes/components/progress.pyi +80 -96
  126. reflex/components/radix/themes/components/radio.pyi +73 -86
  127. reflex/components/radix/themes/components/radio_cards.py +4 -8
  128. reflex/components/radix/themes/components/radio_cards.pyi +117 -154
  129. reflex/components/radix/themes/components/radio_group.py +3 -3
  130. reflex/components/radix/themes/components/radio_group.pyi +250 -291
  131. reflex/components/radix/themes/components/scroll_area.pyi +14 -20
  132. reflex/components/radix/themes/components/segmented_control.py +6 -6
  133. reflex/components/radix/themes/components/segmented_control.pyi +89 -108
  134. reflex/components/radix/themes/components/select.py +7 -7
  135. reflex/components/radix/themes/components/select.pyi +376 -444
  136. reflex/components/radix/themes/components/separator.pyi +79 -93
  137. reflex/components/radix/themes/components/skeleton.pyi +32 -26
  138. reflex/components/radix/themes/components/slider.py +8 -8
  139. reflex/components/radix/themes/components/slider.pyi +99 -122
  140. reflex/components/radix/themes/components/spinner.pyi +12 -19
  141. reflex/components/radix/themes/components/switch.pyi +84 -99
  142. reflex/components/radix/themes/components/table.py +9 -9
  143. reflex/components/radix/themes/components/table.pyi +1440 -1794
  144. reflex/components/radix/themes/components/tabs.py +4 -4
  145. reflex/components/radix/themes/components/tabs.pyi +120 -132
  146. reflex/components/radix/themes/components/text_area.pyi +281 -331
  147. reflex/components/radix/themes/components/text_field.py +2 -2
  148. reflex/components/radix/themes/components/text_field.pyi +639 -734
  149. reflex/components/radix/themes/components/tooltip.py +6 -6
  150. reflex/components/radix/themes/components/tooltip.pyi +34 -43
  151. reflex/components/radix/themes/layout/base.pyi +85 -182
  152. reflex/components/radix/themes/layout/box.pyi +183 -210
  153. reflex/components/radix/themes/layout/center.pyi +225 -286
  154. reflex/components/radix/themes/layout/container.pyi +191 -224
  155. reflex/components/radix/themes/layout/flex.py +2 -2
  156. reflex/components/radix/themes/layout/flex.pyi +225 -286
  157. reflex/components/radix/themes/layout/grid.py +2 -2
  158. reflex/components/radix/themes/layout/grid.pyi +245 -315
  159. reflex/components/radix/themes/layout/list.py +2 -2
  160. reflex/components/radix/themes/layout/list.pyi +712 -815
  161. reflex/components/radix/themes/layout/section.pyi +187 -221
  162. reflex/components/radix/themes/layout/spacer.pyi +225 -286
  163. reflex/components/radix/themes/layout/stack.pyi +625 -768
  164. reflex/components/radix/themes/typography/blockquote.pyi +257 -299
  165. reflex/components/radix/themes/typography/code.pyi +259 -304
  166. reflex/components/radix/themes/typography/heading.pyi +272 -324
  167. reflex/components/radix/themes/typography/link.pyi +302 -358
  168. reflex/components/radix/themes/typography/text.pyi +1669 -1945
  169. reflex/components/react_player/audio.pyi +20 -22
  170. reflex/components/react_player/react_player.pyi +19 -19
  171. reflex/components/react_player/video.pyi +20 -22
  172. reflex/components/recharts/cartesian.py +100 -97
  173. reflex/components/recharts/cartesian.pyi +891 -1007
  174. reflex/components/recharts/charts.py +42 -42
  175. reflex/components/recharts/charts.pyi +212 -249
  176. reflex/components/recharts/general.py +22 -21
  177. reflex/components/recharts/general.pyi +198 -223
  178. reflex/components/recharts/polar.py +42 -45
  179. reflex/components/recharts/polar.pyi +254 -288
  180. reflex/components/recharts/recharts.pyi +13 -13
  181. reflex/components/sonner/toast.py +20 -20
  182. reflex/components/sonner/toast.pyi +58 -61
  183. reflex/components/suneditor/editor.py +9 -9
  184. reflex/components/suneditor/editor.pyi +78 -83
  185. reflex/components/tags/cond_tag.py +2 -2
  186. reflex/components/tags/iter_tag.py +10 -14
  187. reflex/components/tags/match_tag.py +2 -2
  188. reflex/components/tags/tag.py +10 -10
  189. reflex/config.py +36 -35
  190. reflex/constants/__init__.py +56 -53
  191. reflex/custom_components/custom_components.py +6 -7
  192. reflex/event.py +38 -42
  193. reflex/experimental/client_state.py +2 -4
  194. reflex/experimental/layout.py +2 -2
  195. reflex/experimental/layout.pyi +579 -663
  196. reflex/istate/data.py +4 -5
  197. reflex/middleware/hydrate_middleware.py +2 -2
  198. reflex/middleware/middleware.py +2 -2
  199. reflex/model.py +3 -5
  200. reflex/page.py +2 -2
  201. reflex/reflex.py +9 -10
  202. reflex/state.py +77 -49
  203. reflex/style.py +11 -5
  204. reflex/testing.py +21 -24
  205. reflex/utils/console.py +1 -1
  206. reflex/utils/decorator.py +26 -1
  207. reflex/utils/exec.py +6 -11
  208. reflex/utils/export.py +2 -3
  209. reflex/utils/format.py +4 -4
  210. reflex/utils/imports.py +12 -12
  211. reflex/utils/prerequisites.py +35 -84
  212. reflex/utils/processes.py +5 -5
  213. reflex/utils/pyi_generator.py +33 -22
  214. reflex/utils/serializers.py +60 -15
  215. reflex/utils/types.py +237 -56
  216. reflex/vars/base.py +122 -72
  217. reflex/vars/datetime.py +2 -2
  218. reflex/vars/function.py +52 -55
  219. reflex/vars/number.py +59 -5
  220. reflex/vars/object.py +57 -26
  221. reflex/vars/sequence.py +983 -958
  222. {reflex-0.7.1a4.dist-info → reflex-0.7.2.dist-info}/METADATA +3 -6
  223. reflex-0.7.2.dist-info/RECORD +405 -0
  224. {reflex-0.7.1a4.dist-info → reflex-0.7.2.dist-info}/WHEEL +1 -1
  225. reflex-0.7.1a4.dist-info/RECORD +0 -405
  226. {reflex-0.7.1a4.dist-info → reflex-0.7.2.dist-info}/LICENSE +0 -0
  227. {reflex-0.7.1a4.dist-info → reflex-0.7.2.dist-info}/entry_points.txt +0 -0
@@ -3,7 +3,7 @@
3
3
  # ------------------- DO NOT EDIT ----------------------
4
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
5
5
  # ------------------------------------------------------
6
- from typing import Any, Dict, Literal, Optional, Union, overload
6
+ from typing import Any, Literal, Optional, overload
7
7
 
8
8
  from reflex.event import EventType
9
9
  from reflex.style import Style
@@ -17,217 +17,190 @@ class Canvas(BaseHTML):
17
17
  def create( # type: ignore
18
18
  cls,
19
19
  *children,
20
- access_key: Optional[Union[Var[str], str]] = None,
21
- auto_capitalize: Optional[
22
- Union[
23
- Literal["characters", "none", "off", "on", "sentences", "words"],
24
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
20
+ access_key: Var[str] | str | None = None,
21
+ auto_capitalize: Literal[
22
+ "characters", "none", "off", "on", "sentences", "words"
23
+ ]
24
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
25
+ | None = None,
26
+ content_editable: Literal["inherit", "plaintext-only", False, True]
27
+ | Var[Literal["inherit", "plaintext-only", False, True]]
28
+ | None = None,
29
+ context_menu: Var[str] | str | None = None,
30
+ dir: Var[str] | str | None = None,
31
+ draggable: Var[bool] | bool | None = None,
32
+ enter_key_hint: Literal[
33
+ "done", "enter", "go", "next", "previous", "search", "send"
34
+ ]
35
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
36
+ | None = None,
37
+ hidden: Var[bool] | bool | None = None,
38
+ input_mode: Literal[
39
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
40
+ ]
41
+ | Var[
42
+ Literal[
43
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
25
44
  ]
26
- ] = None,
27
- content_editable: Optional[
28
- Union[
29
- Literal["inherit", "plaintext-only", False, True],
30
- Var[Literal["inherit", "plaintext-only", False, True]],
45
+ ]
46
+ | None = None,
47
+ item_prop: Var[str] | str | None = None,
48
+ lang: Var[str] | str | None = None,
49
+ role: Literal[
50
+ "alert",
51
+ "alertdialog",
52
+ "application",
53
+ "article",
54
+ "banner",
55
+ "button",
56
+ "cell",
57
+ "checkbox",
58
+ "columnheader",
59
+ "combobox",
60
+ "complementary",
61
+ "contentinfo",
62
+ "definition",
63
+ "dialog",
64
+ "directory",
65
+ "document",
66
+ "feed",
67
+ "figure",
68
+ "form",
69
+ "grid",
70
+ "gridcell",
71
+ "group",
72
+ "heading",
73
+ "img",
74
+ "link",
75
+ "list",
76
+ "listbox",
77
+ "listitem",
78
+ "log",
79
+ "main",
80
+ "marquee",
81
+ "math",
82
+ "menu",
83
+ "menubar",
84
+ "menuitem",
85
+ "menuitemcheckbox",
86
+ "menuitemradio",
87
+ "navigation",
88
+ "none",
89
+ "note",
90
+ "option",
91
+ "presentation",
92
+ "progressbar",
93
+ "radio",
94
+ "radiogroup",
95
+ "region",
96
+ "row",
97
+ "rowgroup",
98
+ "rowheader",
99
+ "scrollbar",
100
+ "search",
101
+ "searchbox",
102
+ "separator",
103
+ "slider",
104
+ "spinbutton",
105
+ "status",
106
+ "switch",
107
+ "tab",
108
+ "table",
109
+ "tablist",
110
+ "tabpanel",
111
+ "term",
112
+ "textbox",
113
+ "timer",
114
+ "toolbar",
115
+ "tooltip",
116
+ "tree",
117
+ "treegrid",
118
+ "treeitem",
119
+ ]
120
+ | Var[
121
+ Literal[
122
+ "alert",
123
+ "alertdialog",
124
+ "application",
125
+ "article",
126
+ "banner",
127
+ "button",
128
+ "cell",
129
+ "checkbox",
130
+ "columnheader",
131
+ "combobox",
132
+ "complementary",
133
+ "contentinfo",
134
+ "definition",
135
+ "dialog",
136
+ "directory",
137
+ "document",
138
+ "feed",
139
+ "figure",
140
+ "form",
141
+ "grid",
142
+ "gridcell",
143
+ "group",
144
+ "heading",
145
+ "img",
146
+ "link",
147
+ "list",
148
+ "listbox",
149
+ "listitem",
150
+ "log",
151
+ "main",
152
+ "marquee",
153
+ "math",
154
+ "menu",
155
+ "menubar",
156
+ "menuitem",
157
+ "menuitemcheckbox",
158
+ "menuitemradio",
159
+ "navigation",
160
+ "none",
161
+ "note",
162
+ "option",
163
+ "presentation",
164
+ "progressbar",
165
+ "radio",
166
+ "radiogroup",
167
+ "region",
168
+ "row",
169
+ "rowgroup",
170
+ "rowheader",
171
+ "scrollbar",
172
+ "search",
173
+ "searchbox",
174
+ "separator",
175
+ "slider",
176
+ "spinbutton",
177
+ "status",
178
+ "switch",
179
+ "tab",
180
+ "table",
181
+ "tablist",
182
+ "tabpanel",
183
+ "term",
184
+ "textbox",
185
+ "timer",
186
+ "toolbar",
187
+ "tooltip",
188
+ "tree",
189
+ "treegrid",
190
+ "treeitem",
31
191
  ]
32
- ] = None,
33
- context_menu: Optional[Union[Var[str], str]] = None,
34
- dir: Optional[Union[Var[str], str]] = None,
35
- draggable: Optional[Union[Var[bool], bool]] = None,
36
- enter_key_hint: Optional[
37
- Union[
38
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
39
- Var[
40
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
41
- ],
42
- ]
43
- ] = None,
44
- hidden: Optional[Union[Var[bool], bool]] = None,
45
- input_mode: Optional[
46
- Union[
47
- Literal[
48
- "decimal",
49
- "email",
50
- "none",
51
- "numeric",
52
- "search",
53
- "tel",
54
- "text",
55
- "url",
56
- ],
57
- Var[
58
- Literal[
59
- "decimal",
60
- "email",
61
- "none",
62
- "numeric",
63
- "search",
64
- "tel",
65
- "text",
66
- "url",
67
- ]
68
- ],
69
- ]
70
- ] = None,
71
- item_prop: Optional[Union[Var[str], str]] = None,
72
- lang: Optional[Union[Var[str], str]] = None,
73
- role: Optional[
74
- Union[
75
- Literal[
76
- "alert",
77
- "alertdialog",
78
- "application",
79
- "article",
80
- "banner",
81
- "button",
82
- "cell",
83
- "checkbox",
84
- "columnheader",
85
- "combobox",
86
- "complementary",
87
- "contentinfo",
88
- "definition",
89
- "dialog",
90
- "directory",
91
- "document",
92
- "feed",
93
- "figure",
94
- "form",
95
- "grid",
96
- "gridcell",
97
- "group",
98
- "heading",
99
- "img",
100
- "link",
101
- "list",
102
- "listbox",
103
- "listitem",
104
- "log",
105
- "main",
106
- "marquee",
107
- "math",
108
- "menu",
109
- "menubar",
110
- "menuitem",
111
- "menuitemcheckbox",
112
- "menuitemradio",
113
- "navigation",
114
- "none",
115
- "note",
116
- "option",
117
- "presentation",
118
- "progressbar",
119
- "radio",
120
- "radiogroup",
121
- "region",
122
- "row",
123
- "rowgroup",
124
- "rowheader",
125
- "scrollbar",
126
- "search",
127
- "searchbox",
128
- "separator",
129
- "slider",
130
- "spinbutton",
131
- "status",
132
- "switch",
133
- "tab",
134
- "table",
135
- "tablist",
136
- "tabpanel",
137
- "term",
138
- "textbox",
139
- "timer",
140
- "toolbar",
141
- "tooltip",
142
- "tree",
143
- "treegrid",
144
- "treeitem",
145
- ],
146
- Var[
147
- Literal[
148
- "alert",
149
- "alertdialog",
150
- "application",
151
- "article",
152
- "banner",
153
- "button",
154
- "cell",
155
- "checkbox",
156
- "columnheader",
157
- "combobox",
158
- "complementary",
159
- "contentinfo",
160
- "definition",
161
- "dialog",
162
- "directory",
163
- "document",
164
- "feed",
165
- "figure",
166
- "form",
167
- "grid",
168
- "gridcell",
169
- "group",
170
- "heading",
171
- "img",
172
- "link",
173
- "list",
174
- "listbox",
175
- "listitem",
176
- "log",
177
- "main",
178
- "marquee",
179
- "math",
180
- "menu",
181
- "menubar",
182
- "menuitem",
183
- "menuitemcheckbox",
184
- "menuitemradio",
185
- "navigation",
186
- "none",
187
- "note",
188
- "option",
189
- "presentation",
190
- "progressbar",
191
- "radio",
192
- "radiogroup",
193
- "region",
194
- "row",
195
- "rowgroup",
196
- "rowheader",
197
- "scrollbar",
198
- "search",
199
- "searchbox",
200
- "separator",
201
- "slider",
202
- "spinbutton",
203
- "status",
204
- "switch",
205
- "tab",
206
- "table",
207
- "tablist",
208
- "tabpanel",
209
- "term",
210
- "textbox",
211
- "timer",
212
- "toolbar",
213
- "tooltip",
214
- "tree",
215
- "treegrid",
216
- "treeitem",
217
- ]
218
- ],
219
- ]
220
- ] = None,
221
- slot: Optional[Union[Var[str], str]] = None,
222
- spell_check: Optional[Union[Var[bool], bool]] = None,
223
- tab_index: Optional[Union[Var[int], int]] = None,
224
- title: Optional[Union[Var[str], str]] = None,
225
- style: Optional[Style] = None,
226
- key: Optional[Any] = None,
227
- id: Optional[Any] = None,
228
- class_name: Optional[Any] = None,
229
- autofocus: Optional[bool] = None,
230
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
192
+ ]
193
+ | None = None,
194
+ slot: Var[str] | str | None = None,
195
+ spell_check: Var[bool] | bool | None = None,
196
+ tab_index: Var[int] | int | None = None,
197
+ title: Var[str] | str | None = None,
198
+ style: Style | None = None,
199
+ key: Any | None = None,
200
+ id: Any | None = None,
201
+ class_name: Any | None = None,
202
+ autofocus: bool | None = None,
203
+ custom_attrs: dict[str, Var | Any] | None = None,
231
204
  on_blur: Optional[EventType[()]] = None,
232
205
  on_click: Optional[EventType[()]] = None,
233
206
  on_context_menu: Optional[EventType[()]] = None,
@@ -284,217 +257,190 @@ class Noscript(BaseHTML):
284
257
  def create( # type: ignore
285
258
  cls,
286
259
  *children,
287
- access_key: Optional[Union[Var[str], str]] = None,
288
- auto_capitalize: Optional[
289
- Union[
290
- Literal["characters", "none", "off", "on", "sentences", "words"],
291
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
292
- ]
293
- ] = None,
294
- content_editable: Optional[
295
- Union[
296
- Literal["inherit", "plaintext-only", False, True],
297
- Var[Literal["inherit", "plaintext-only", False, True]],
298
- ]
299
- ] = None,
300
- context_menu: Optional[Union[Var[str], str]] = None,
301
- dir: Optional[Union[Var[str], str]] = None,
302
- draggable: Optional[Union[Var[bool], bool]] = None,
303
- enter_key_hint: Optional[
304
- Union[
305
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
306
- Var[
307
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
308
- ],
260
+ access_key: Var[str] | str | None = None,
261
+ auto_capitalize: Literal[
262
+ "characters", "none", "off", "on", "sentences", "words"
263
+ ]
264
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
265
+ | None = None,
266
+ content_editable: Literal["inherit", "plaintext-only", False, True]
267
+ | Var[Literal["inherit", "plaintext-only", False, True]]
268
+ | None = None,
269
+ context_menu: Var[str] | str | None = None,
270
+ dir: Var[str] | str | None = None,
271
+ draggable: Var[bool] | bool | None = None,
272
+ enter_key_hint: Literal[
273
+ "done", "enter", "go", "next", "previous", "search", "send"
274
+ ]
275
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
276
+ | None = None,
277
+ hidden: Var[bool] | bool | None = None,
278
+ input_mode: Literal[
279
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
280
+ ]
281
+ | Var[
282
+ Literal[
283
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
309
284
  ]
310
- ] = None,
311
- hidden: Optional[Union[Var[bool], bool]] = None,
312
- input_mode: Optional[
313
- Union[
314
- Literal[
315
- "decimal",
316
- "email",
317
- "none",
318
- "numeric",
319
- "search",
320
- "tel",
321
- "text",
322
- "url",
323
- ],
324
- Var[
325
- Literal[
326
- "decimal",
327
- "email",
328
- "none",
329
- "numeric",
330
- "search",
331
- "tel",
332
- "text",
333
- "url",
334
- ]
335
- ],
285
+ ]
286
+ | None = None,
287
+ item_prop: Var[str] | str | None = None,
288
+ lang: Var[str] | str | None = None,
289
+ role: Literal[
290
+ "alert",
291
+ "alertdialog",
292
+ "application",
293
+ "article",
294
+ "banner",
295
+ "button",
296
+ "cell",
297
+ "checkbox",
298
+ "columnheader",
299
+ "combobox",
300
+ "complementary",
301
+ "contentinfo",
302
+ "definition",
303
+ "dialog",
304
+ "directory",
305
+ "document",
306
+ "feed",
307
+ "figure",
308
+ "form",
309
+ "grid",
310
+ "gridcell",
311
+ "group",
312
+ "heading",
313
+ "img",
314
+ "link",
315
+ "list",
316
+ "listbox",
317
+ "listitem",
318
+ "log",
319
+ "main",
320
+ "marquee",
321
+ "math",
322
+ "menu",
323
+ "menubar",
324
+ "menuitem",
325
+ "menuitemcheckbox",
326
+ "menuitemradio",
327
+ "navigation",
328
+ "none",
329
+ "note",
330
+ "option",
331
+ "presentation",
332
+ "progressbar",
333
+ "radio",
334
+ "radiogroup",
335
+ "region",
336
+ "row",
337
+ "rowgroup",
338
+ "rowheader",
339
+ "scrollbar",
340
+ "search",
341
+ "searchbox",
342
+ "separator",
343
+ "slider",
344
+ "spinbutton",
345
+ "status",
346
+ "switch",
347
+ "tab",
348
+ "table",
349
+ "tablist",
350
+ "tabpanel",
351
+ "term",
352
+ "textbox",
353
+ "timer",
354
+ "toolbar",
355
+ "tooltip",
356
+ "tree",
357
+ "treegrid",
358
+ "treeitem",
359
+ ]
360
+ | Var[
361
+ Literal[
362
+ "alert",
363
+ "alertdialog",
364
+ "application",
365
+ "article",
366
+ "banner",
367
+ "button",
368
+ "cell",
369
+ "checkbox",
370
+ "columnheader",
371
+ "combobox",
372
+ "complementary",
373
+ "contentinfo",
374
+ "definition",
375
+ "dialog",
376
+ "directory",
377
+ "document",
378
+ "feed",
379
+ "figure",
380
+ "form",
381
+ "grid",
382
+ "gridcell",
383
+ "group",
384
+ "heading",
385
+ "img",
386
+ "link",
387
+ "list",
388
+ "listbox",
389
+ "listitem",
390
+ "log",
391
+ "main",
392
+ "marquee",
393
+ "math",
394
+ "menu",
395
+ "menubar",
396
+ "menuitem",
397
+ "menuitemcheckbox",
398
+ "menuitemradio",
399
+ "navigation",
400
+ "none",
401
+ "note",
402
+ "option",
403
+ "presentation",
404
+ "progressbar",
405
+ "radio",
406
+ "radiogroup",
407
+ "region",
408
+ "row",
409
+ "rowgroup",
410
+ "rowheader",
411
+ "scrollbar",
412
+ "search",
413
+ "searchbox",
414
+ "separator",
415
+ "slider",
416
+ "spinbutton",
417
+ "status",
418
+ "switch",
419
+ "tab",
420
+ "table",
421
+ "tablist",
422
+ "tabpanel",
423
+ "term",
424
+ "textbox",
425
+ "timer",
426
+ "toolbar",
427
+ "tooltip",
428
+ "tree",
429
+ "treegrid",
430
+ "treeitem",
336
431
  ]
337
- ] = None,
338
- item_prop: Optional[Union[Var[str], str]] = None,
339
- lang: Optional[Union[Var[str], str]] = None,
340
- role: Optional[
341
- Union[
342
- Literal[
343
- "alert",
344
- "alertdialog",
345
- "application",
346
- "article",
347
- "banner",
348
- "button",
349
- "cell",
350
- "checkbox",
351
- "columnheader",
352
- "combobox",
353
- "complementary",
354
- "contentinfo",
355
- "definition",
356
- "dialog",
357
- "directory",
358
- "document",
359
- "feed",
360
- "figure",
361
- "form",
362
- "grid",
363
- "gridcell",
364
- "group",
365
- "heading",
366
- "img",
367
- "link",
368
- "list",
369
- "listbox",
370
- "listitem",
371
- "log",
372
- "main",
373
- "marquee",
374
- "math",
375
- "menu",
376
- "menubar",
377
- "menuitem",
378
- "menuitemcheckbox",
379
- "menuitemradio",
380
- "navigation",
381
- "none",
382
- "note",
383
- "option",
384
- "presentation",
385
- "progressbar",
386
- "radio",
387
- "radiogroup",
388
- "region",
389
- "row",
390
- "rowgroup",
391
- "rowheader",
392
- "scrollbar",
393
- "search",
394
- "searchbox",
395
- "separator",
396
- "slider",
397
- "spinbutton",
398
- "status",
399
- "switch",
400
- "tab",
401
- "table",
402
- "tablist",
403
- "tabpanel",
404
- "term",
405
- "textbox",
406
- "timer",
407
- "toolbar",
408
- "tooltip",
409
- "tree",
410
- "treegrid",
411
- "treeitem",
412
- ],
413
- Var[
414
- Literal[
415
- "alert",
416
- "alertdialog",
417
- "application",
418
- "article",
419
- "banner",
420
- "button",
421
- "cell",
422
- "checkbox",
423
- "columnheader",
424
- "combobox",
425
- "complementary",
426
- "contentinfo",
427
- "definition",
428
- "dialog",
429
- "directory",
430
- "document",
431
- "feed",
432
- "figure",
433
- "form",
434
- "grid",
435
- "gridcell",
436
- "group",
437
- "heading",
438
- "img",
439
- "link",
440
- "list",
441
- "listbox",
442
- "listitem",
443
- "log",
444
- "main",
445
- "marquee",
446
- "math",
447
- "menu",
448
- "menubar",
449
- "menuitem",
450
- "menuitemcheckbox",
451
- "menuitemradio",
452
- "navigation",
453
- "none",
454
- "note",
455
- "option",
456
- "presentation",
457
- "progressbar",
458
- "radio",
459
- "radiogroup",
460
- "region",
461
- "row",
462
- "rowgroup",
463
- "rowheader",
464
- "scrollbar",
465
- "search",
466
- "searchbox",
467
- "separator",
468
- "slider",
469
- "spinbutton",
470
- "status",
471
- "switch",
472
- "tab",
473
- "table",
474
- "tablist",
475
- "tabpanel",
476
- "term",
477
- "textbox",
478
- "timer",
479
- "toolbar",
480
- "tooltip",
481
- "tree",
482
- "treegrid",
483
- "treeitem",
484
- ]
485
- ],
486
- ]
487
- ] = None,
488
- slot: Optional[Union[Var[str], str]] = None,
489
- spell_check: Optional[Union[Var[bool], bool]] = None,
490
- tab_index: Optional[Union[Var[int], int]] = None,
491
- title: Optional[Union[Var[str], str]] = None,
492
- style: Optional[Style] = None,
493
- key: Optional[Any] = None,
494
- id: Optional[Any] = None,
495
- class_name: Optional[Any] = None,
496
- autofocus: Optional[bool] = None,
497
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
432
+ ]
433
+ | None = None,
434
+ slot: Var[str] | str | None = None,
435
+ spell_check: Var[bool] | bool | None = None,
436
+ tab_index: Var[int] | int | None = None,
437
+ title: Var[str] | str | None = None,
438
+ style: Style | None = None,
439
+ key: Any | None = None,
440
+ id: Any | None = None,
441
+ class_name: Any | None = None,
442
+ autofocus: bool | None = None,
443
+ custom_attrs: dict[str, Var | Any] | None = None,
498
444
  on_blur: Optional[EventType[()]] = None,
499
445
  on_click: Optional[EventType[()]] = None,
500
446
  on_context_menu: Optional[EventType[()]] = None,
@@ -551,257 +497,224 @@ class Script(BaseHTML):
551
497
  def create( # type: ignore
552
498
  cls,
553
499
  *children,
554
- async_: Optional[Union[Var[bool], bool]] = None,
555
- char_set: Optional[Union[Var[str], str]] = None,
556
- cross_origin: Optional[
557
- Union[
558
- Literal["", "anonymous", "use-credentials"],
559
- Var[Literal["", "anonymous", "use-credentials"]],
560
- ]
561
- ] = None,
562
- defer: Optional[Union[Var[bool], bool]] = None,
563
- integrity: Optional[Union[Var[str], str]] = None,
564
- referrer_policy: Optional[
565
- Union[
566
- Literal[
567
- "",
568
- "no-referrer",
569
- "no-referrer-when-downgrade",
570
- "origin",
571
- "origin-when-cross-origin",
572
- "same-origin",
573
- "strict-origin",
574
- "strict-origin-when-cross-origin",
575
- "unsafe-url",
576
- ],
577
- Var[
578
- Literal[
579
- "",
580
- "no-referrer",
581
- "no-referrer-when-downgrade",
582
- "origin",
583
- "origin-when-cross-origin",
584
- "same-origin",
585
- "strict-origin",
586
- "strict-origin-when-cross-origin",
587
- "unsafe-url",
588
- ]
589
- ],
590
- ]
591
- ] = None,
592
- src: Optional[Union[Var[str], str]] = None,
593
- type: Optional[Union[Var[str], str]] = None,
594
- access_key: Optional[Union[Var[str], str]] = None,
595
- auto_capitalize: Optional[
596
- Union[
597
- Literal["characters", "none", "off", "on", "sentences", "words"],
598
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
599
- ]
600
- ] = None,
601
- content_editable: Optional[
602
- Union[
603
- Literal["inherit", "plaintext-only", False, True],
604
- Var[Literal["inherit", "plaintext-only", False, True]],
605
- ]
606
- ] = None,
607
- context_menu: Optional[Union[Var[str], str]] = None,
608
- dir: Optional[Union[Var[str], str]] = None,
609
- draggable: Optional[Union[Var[bool], bool]] = None,
610
- enter_key_hint: Optional[
611
- Union[
612
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
613
- Var[
614
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
615
- ],
500
+ async_: Var[bool] | bool | None = None,
501
+ char_set: Var[str] | str | None = None,
502
+ cross_origin: Literal["", "anonymous", "use-credentials"]
503
+ | Var[Literal["", "anonymous", "use-credentials"]]
504
+ | None = None,
505
+ defer: Var[bool] | bool | None = None,
506
+ integrity: Var[str] | str | None = None,
507
+ referrer_policy: Literal[
508
+ "",
509
+ "no-referrer",
510
+ "no-referrer-when-downgrade",
511
+ "origin",
512
+ "origin-when-cross-origin",
513
+ "same-origin",
514
+ "strict-origin",
515
+ "strict-origin-when-cross-origin",
516
+ "unsafe-url",
517
+ ]
518
+ | Var[
519
+ Literal[
520
+ "",
521
+ "no-referrer",
522
+ "no-referrer-when-downgrade",
523
+ "origin",
524
+ "origin-when-cross-origin",
525
+ "same-origin",
526
+ "strict-origin",
527
+ "strict-origin-when-cross-origin",
528
+ "unsafe-url",
616
529
  ]
617
- ] = None,
618
- hidden: Optional[Union[Var[bool], bool]] = None,
619
- input_mode: Optional[
620
- Union[
621
- Literal[
622
- "decimal",
623
- "email",
624
- "none",
625
- "numeric",
626
- "search",
627
- "tel",
628
- "text",
629
- "url",
630
- ],
631
- Var[
632
- Literal[
633
- "decimal",
634
- "email",
635
- "none",
636
- "numeric",
637
- "search",
638
- "tel",
639
- "text",
640
- "url",
641
- ]
642
- ],
530
+ ]
531
+ | None = None,
532
+ src: Var[str] | str | None = None,
533
+ type: Var[str] | str | None = None,
534
+ access_key: Var[str] | str | None = None,
535
+ auto_capitalize: Literal[
536
+ "characters", "none", "off", "on", "sentences", "words"
537
+ ]
538
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
539
+ | None = None,
540
+ content_editable: Literal["inherit", "plaintext-only", False, True]
541
+ | Var[Literal["inherit", "plaintext-only", False, True]]
542
+ | None = None,
543
+ context_menu: Var[str] | str | None = None,
544
+ dir: Var[str] | str | None = None,
545
+ draggable: Var[bool] | bool | None = None,
546
+ enter_key_hint: Literal[
547
+ "done", "enter", "go", "next", "previous", "search", "send"
548
+ ]
549
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
550
+ | None = None,
551
+ hidden: Var[bool] | bool | None = None,
552
+ input_mode: Literal[
553
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
554
+ ]
555
+ | Var[
556
+ Literal[
557
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
643
558
  ]
644
- ] = None,
645
- item_prop: Optional[Union[Var[str], str]] = None,
646
- lang: Optional[Union[Var[str], str]] = None,
647
- role: Optional[
648
- Union[
649
- Literal[
650
- "alert",
651
- "alertdialog",
652
- "application",
653
- "article",
654
- "banner",
655
- "button",
656
- "cell",
657
- "checkbox",
658
- "columnheader",
659
- "combobox",
660
- "complementary",
661
- "contentinfo",
662
- "definition",
663
- "dialog",
664
- "directory",
665
- "document",
666
- "feed",
667
- "figure",
668
- "form",
669
- "grid",
670
- "gridcell",
671
- "group",
672
- "heading",
673
- "img",
674
- "link",
675
- "list",
676
- "listbox",
677
- "listitem",
678
- "log",
679
- "main",
680
- "marquee",
681
- "math",
682
- "menu",
683
- "menubar",
684
- "menuitem",
685
- "menuitemcheckbox",
686
- "menuitemradio",
687
- "navigation",
688
- "none",
689
- "note",
690
- "option",
691
- "presentation",
692
- "progressbar",
693
- "radio",
694
- "radiogroup",
695
- "region",
696
- "row",
697
- "rowgroup",
698
- "rowheader",
699
- "scrollbar",
700
- "search",
701
- "searchbox",
702
- "separator",
703
- "slider",
704
- "spinbutton",
705
- "status",
706
- "switch",
707
- "tab",
708
- "table",
709
- "tablist",
710
- "tabpanel",
711
- "term",
712
- "textbox",
713
- "timer",
714
- "toolbar",
715
- "tooltip",
716
- "tree",
717
- "treegrid",
718
- "treeitem",
719
- ],
720
- Var[
721
- Literal[
722
- "alert",
723
- "alertdialog",
724
- "application",
725
- "article",
726
- "banner",
727
- "button",
728
- "cell",
729
- "checkbox",
730
- "columnheader",
731
- "combobox",
732
- "complementary",
733
- "contentinfo",
734
- "definition",
735
- "dialog",
736
- "directory",
737
- "document",
738
- "feed",
739
- "figure",
740
- "form",
741
- "grid",
742
- "gridcell",
743
- "group",
744
- "heading",
745
- "img",
746
- "link",
747
- "list",
748
- "listbox",
749
- "listitem",
750
- "log",
751
- "main",
752
- "marquee",
753
- "math",
754
- "menu",
755
- "menubar",
756
- "menuitem",
757
- "menuitemcheckbox",
758
- "menuitemradio",
759
- "navigation",
760
- "none",
761
- "note",
762
- "option",
763
- "presentation",
764
- "progressbar",
765
- "radio",
766
- "radiogroup",
767
- "region",
768
- "row",
769
- "rowgroup",
770
- "rowheader",
771
- "scrollbar",
772
- "search",
773
- "searchbox",
774
- "separator",
775
- "slider",
776
- "spinbutton",
777
- "status",
778
- "switch",
779
- "tab",
780
- "table",
781
- "tablist",
782
- "tabpanel",
783
- "term",
784
- "textbox",
785
- "timer",
786
- "toolbar",
787
- "tooltip",
788
- "tree",
789
- "treegrid",
790
- "treeitem",
791
- ]
792
- ],
559
+ ]
560
+ | None = None,
561
+ item_prop: Var[str] | str | None = None,
562
+ lang: Var[str] | str | None = None,
563
+ role: Literal[
564
+ "alert",
565
+ "alertdialog",
566
+ "application",
567
+ "article",
568
+ "banner",
569
+ "button",
570
+ "cell",
571
+ "checkbox",
572
+ "columnheader",
573
+ "combobox",
574
+ "complementary",
575
+ "contentinfo",
576
+ "definition",
577
+ "dialog",
578
+ "directory",
579
+ "document",
580
+ "feed",
581
+ "figure",
582
+ "form",
583
+ "grid",
584
+ "gridcell",
585
+ "group",
586
+ "heading",
587
+ "img",
588
+ "link",
589
+ "list",
590
+ "listbox",
591
+ "listitem",
592
+ "log",
593
+ "main",
594
+ "marquee",
595
+ "math",
596
+ "menu",
597
+ "menubar",
598
+ "menuitem",
599
+ "menuitemcheckbox",
600
+ "menuitemradio",
601
+ "navigation",
602
+ "none",
603
+ "note",
604
+ "option",
605
+ "presentation",
606
+ "progressbar",
607
+ "radio",
608
+ "radiogroup",
609
+ "region",
610
+ "row",
611
+ "rowgroup",
612
+ "rowheader",
613
+ "scrollbar",
614
+ "search",
615
+ "searchbox",
616
+ "separator",
617
+ "slider",
618
+ "spinbutton",
619
+ "status",
620
+ "switch",
621
+ "tab",
622
+ "table",
623
+ "tablist",
624
+ "tabpanel",
625
+ "term",
626
+ "textbox",
627
+ "timer",
628
+ "toolbar",
629
+ "tooltip",
630
+ "tree",
631
+ "treegrid",
632
+ "treeitem",
633
+ ]
634
+ | Var[
635
+ Literal[
636
+ "alert",
637
+ "alertdialog",
638
+ "application",
639
+ "article",
640
+ "banner",
641
+ "button",
642
+ "cell",
643
+ "checkbox",
644
+ "columnheader",
645
+ "combobox",
646
+ "complementary",
647
+ "contentinfo",
648
+ "definition",
649
+ "dialog",
650
+ "directory",
651
+ "document",
652
+ "feed",
653
+ "figure",
654
+ "form",
655
+ "grid",
656
+ "gridcell",
657
+ "group",
658
+ "heading",
659
+ "img",
660
+ "link",
661
+ "list",
662
+ "listbox",
663
+ "listitem",
664
+ "log",
665
+ "main",
666
+ "marquee",
667
+ "math",
668
+ "menu",
669
+ "menubar",
670
+ "menuitem",
671
+ "menuitemcheckbox",
672
+ "menuitemradio",
673
+ "navigation",
674
+ "none",
675
+ "note",
676
+ "option",
677
+ "presentation",
678
+ "progressbar",
679
+ "radio",
680
+ "radiogroup",
681
+ "region",
682
+ "row",
683
+ "rowgroup",
684
+ "rowheader",
685
+ "scrollbar",
686
+ "search",
687
+ "searchbox",
688
+ "separator",
689
+ "slider",
690
+ "spinbutton",
691
+ "status",
692
+ "switch",
693
+ "tab",
694
+ "table",
695
+ "tablist",
696
+ "tabpanel",
697
+ "term",
698
+ "textbox",
699
+ "timer",
700
+ "toolbar",
701
+ "tooltip",
702
+ "tree",
703
+ "treegrid",
704
+ "treeitem",
793
705
  ]
794
- ] = None,
795
- slot: Optional[Union[Var[str], str]] = None,
796
- spell_check: Optional[Union[Var[bool], bool]] = None,
797
- tab_index: Optional[Union[Var[int], int]] = None,
798
- title: Optional[Union[Var[str], str]] = None,
799
- style: Optional[Style] = None,
800
- key: Optional[Any] = None,
801
- id: Optional[Any] = None,
802
- class_name: Optional[Any] = None,
803
- autofocus: Optional[bool] = None,
804
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
706
+ ]
707
+ | None = None,
708
+ slot: Var[str] | str | None = None,
709
+ spell_check: Var[bool] | bool | None = None,
710
+ tab_index: Var[int] | int | None = None,
711
+ title: Var[str] | str | None = None,
712
+ style: Style | None = None,
713
+ key: Any | None = None,
714
+ id: Any | None = None,
715
+ class_name: Any | None = None,
716
+ autofocus: bool | None = None,
717
+ custom_attrs: dict[str, Var | Any] | None = None,
805
718
  on_blur: Optional[EventType[()]] = None,
806
719
  on_click: Optional[EventType[()]] = None,
807
720
  on_context_menu: Optional[EventType[()]] = None,