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,218 +17,191 @@ class Details(BaseHTML):
17
17
  def create( # type: ignore
18
18
  cls,
19
19
  *children,
20
- open: Optional[Union[Var[bool], bool]] = None,
21
- access_key: Optional[Union[Var[str], str]] = None,
22
- auto_capitalize: Optional[
23
- Union[
24
- Literal["characters", "none", "off", "on", "sentences", "words"],
25
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
20
+ open: Var[bool] | bool | None = None,
21
+ access_key: Var[str] | str | None = None,
22
+ auto_capitalize: Literal[
23
+ "characters", "none", "off", "on", "sentences", "words"
24
+ ]
25
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
26
+ | None = None,
27
+ content_editable: Literal["inherit", "plaintext-only", False, True]
28
+ | Var[Literal["inherit", "plaintext-only", False, True]]
29
+ | None = None,
30
+ context_menu: Var[str] | str | None = None,
31
+ dir: Var[str] | str | None = None,
32
+ draggable: Var[bool] | bool | None = None,
33
+ enter_key_hint: Literal[
34
+ "done", "enter", "go", "next", "previous", "search", "send"
35
+ ]
36
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
37
+ | None = None,
38
+ hidden: Var[bool] | bool | None = None,
39
+ input_mode: Literal[
40
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
41
+ ]
42
+ | Var[
43
+ Literal[
44
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
26
45
  ]
27
- ] = None,
28
- content_editable: Optional[
29
- Union[
30
- Literal["inherit", "plaintext-only", False, True],
31
- Var[Literal["inherit", "plaintext-only", False, True]],
46
+ ]
47
+ | None = None,
48
+ item_prop: Var[str] | str | None = None,
49
+ lang: Var[str] | str | None = None,
50
+ role: Literal[
51
+ "alert",
52
+ "alertdialog",
53
+ "application",
54
+ "article",
55
+ "banner",
56
+ "button",
57
+ "cell",
58
+ "checkbox",
59
+ "columnheader",
60
+ "combobox",
61
+ "complementary",
62
+ "contentinfo",
63
+ "definition",
64
+ "dialog",
65
+ "directory",
66
+ "document",
67
+ "feed",
68
+ "figure",
69
+ "form",
70
+ "grid",
71
+ "gridcell",
72
+ "group",
73
+ "heading",
74
+ "img",
75
+ "link",
76
+ "list",
77
+ "listbox",
78
+ "listitem",
79
+ "log",
80
+ "main",
81
+ "marquee",
82
+ "math",
83
+ "menu",
84
+ "menubar",
85
+ "menuitem",
86
+ "menuitemcheckbox",
87
+ "menuitemradio",
88
+ "navigation",
89
+ "none",
90
+ "note",
91
+ "option",
92
+ "presentation",
93
+ "progressbar",
94
+ "radio",
95
+ "radiogroup",
96
+ "region",
97
+ "row",
98
+ "rowgroup",
99
+ "rowheader",
100
+ "scrollbar",
101
+ "search",
102
+ "searchbox",
103
+ "separator",
104
+ "slider",
105
+ "spinbutton",
106
+ "status",
107
+ "switch",
108
+ "tab",
109
+ "table",
110
+ "tablist",
111
+ "tabpanel",
112
+ "term",
113
+ "textbox",
114
+ "timer",
115
+ "toolbar",
116
+ "tooltip",
117
+ "tree",
118
+ "treegrid",
119
+ "treeitem",
120
+ ]
121
+ | Var[
122
+ Literal[
123
+ "alert",
124
+ "alertdialog",
125
+ "application",
126
+ "article",
127
+ "banner",
128
+ "button",
129
+ "cell",
130
+ "checkbox",
131
+ "columnheader",
132
+ "combobox",
133
+ "complementary",
134
+ "contentinfo",
135
+ "definition",
136
+ "dialog",
137
+ "directory",
138
+ "document",
139
+ "feed",
140
+ "figure",
141
+ "form",
142
+ "grid",
143
+ "gridcell",
144
+ "group",
145
+ "heading",
146
+ "img",
147
+ "link",
148
+ "list",
149
+ "listbox",
150
+ "listitem",
151
+ "log",
152
+ "main",
153
+ "marquee",
154
+ "math",
155
+ "menu",
156
+ "menubar",
157
+ "menuitem",
158
+ "menuitemcheckbox",
159
+ "menuitemradio",
160
+ "navigation",
161
+ "none",
162
+ "note",
163
+ "option",
164
+ "presentation",
165
+ "progressbar",
166
+ "radio",
167
+ "radiogroup",
168
+ "region",
169
+ "row",
170
+ "rowgroup",
171
+ "rowheader",
172
+ "scrollbar",
173
+ "search",
174
+ "searchbox",
175
+ "separator",
176
+ "slider",
177
+ "spinbutton",
178
+ "status",
179
+ "switch",
180
+ "tab",
181
+ "table",
182
+ "tablist",
183
+ "tabpanel",
184
+ "term",
185
+ "textbox",
186
+ "timer",
187
+ "toolbar",
188
+ "tooltip",
189
+ "tree",
190
+ "treegrid",
191
+ "treeitem",
32
192
  ]
33
- ] = None,
34
- context_menu: Optional[Union[Var[str], str]] = None,
35
- dir: Optional[Union[Var[str], str]] = None,
36
- draggable: Optional[Union[Var[bool], bool]] = None,
37
- enter_key_hint: Optional[
38
- Union[
39
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
40
- Var[
41
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
42
- ],
43
- ]
44
- ] = None,
45
- hidden: Optional[Union[Var[bool], bool]] = None,
46
- input_mode: Optional[
47
- Union[
48
- Literal[
49
- "decimal",
50
- "email",
51
- "none",
52
- "numeric",
53
- "search",
54
- "tel",
55
- "text",
56
- "url",
57
- ],
58
- Var[
59
- Literal[
60
- "decimal",
61
- "email",
62
- "none",
63
- "numeric",
64
- "search",
65
- "tel",
66
- "text",
67
- "url",
68
- ]
69
- ],
70
- ]
71
- ] = None,
72
- item_prop: Optional[Union[Var[str], str]] = None,
73
- lang: Optional[Union[Var[str], str]] = None,
74
- role: Optional[
75
- Union[
76
- Literal[
77
- "alert",
78
- "alertdialog",
79
- "application",
80
- "article",
81
- "banner",
82
- "button",
83
- "cell",
84
- "checkbox",
85
- "columnheader",
86
- "combobox",
87
- "complementary",
88
- "contentinfo",
89
- "definition",
90
- "dialog",
91
- "directory",
92
- "document",
93
- "feed",
94
- "figure",
95
- "form",
96
- "grid",
97
- "gridcell",
98
- "group",
99
- "heading",
100
- "img",
101
- "link",
102
- "list",
103
- "listbox",
104
- "listitem",
105
- "log",
106
- "main",
107
- "marquee",
108
- "math",
109
- "menu",
110
- "menubar",
111
- "menuitem",
112
- "menuitemcheckbox",
113
- "menuitemradio",
114
- "navigation",
115
- "none",
116
- "note",
117
- "option",
118
- "presentation",
119
- "progressbar",
120
- "radio",
121
- "radiogroup",
122
- "region",
123
- "row",
124
- "rowgroup",
125
- "rowheader",
126
- "scrollbar",
127
- "search",
128
- "searchbox",
129
- "separator",
130
- "slider",
131
- "spinbutton",
132
- "status",
133
- "switch",
134
- "tab",
135
- "table",
136
- "tablist",
137
- "tabpanel",
138
- "term",
139
- "textbox",
140
- "timer",
141
- "toolbar",
142
- "tooltip",
143
- "tree",
144
- "treegrid",
145
- "treeitem",
146
- ],
147
- Var[
148
- Literal[
149
- "alert",
150
- "alertdialog",
151
- "application",
152
- "article",
153
- "banner",
154
- "button",
155
- "cell",
156
- "checkbox",
157
- "columnheader",
158
- "combobox",
159
- "complementary",
160
- "contentinfo",
161
- "definition",
162
- "dialog",
163
- "directory",
164
- "document",
165
- "feed",
166
- "figure",
167
- "form",
168
- "grid",
169
- "gridcell",
170
- "group",
171
- "heading",
172
- "img",
173
- "link",
174
- "list",
175
- "listbox",
176
- "listitem",
177
- "log",
178
- "main",
179
- "marquee",
180
- "math",
181
- "menu",
182
- "menubar",
183
- "menuitem",
184
- "menuitemcheckbox",
185
- "menuitemradio",
186
- "navigation",
187
- "none",
188
- "note",
189
- "option",
190
- "presentation",
191
- "progressbar",
192
- "radio",
193
- "radiogroup",
194
- "region",
195
- "row",
196
- "rowgroup",
197
- "rowheader",
198
- "scrollbar",
199
- "search",
200
- "searchbox",
201
- "separator",
202
- "slider",
203
- "spinbutton",
204
- "status",
205
- "switch",
206
- "tab",
207
- "table",
208
- "tablist",
209
- "tabpanel",
210
- "term",
211
- "textbox",
212
- "timer",
213
- "toolbar",
214
- "tooltip",
215
- "tree",
216
- "treegrid",
217
- "treeitem",
218
- ]
219
- ],
220
- ]
221
- ] = None,
222
- slot: Optional[Union[Var[str], str]] = None,
223
- spell_check: Optional[Union[Var[bool], bool]] = None,
224
- tab_index: Optional[Union[Var[int], int]] = None,
225
- title: Optional[Union[Var[str], str]] = None,
226
- style: Optional[Style] = None,
227
- key: Optional[Any] = None,
228
- id: Optional[Any] = None,
229
- class_name: Optional[Any] = None,
230
- autofocus: Optional[bool] = None,
231
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
193
+ ]
194
+ | None = None,
195
+ slot: Var[str] | str | None = None,
196
+ spell_check: Var[bool] | bool | None = None,
197
+ tab_index: Var[int] | int | None = None,
198
+ title: Var[str] | str | None = None,
199
+ style: Style | None = None,
200
+ key: Any | None = None,
201
+ id: Any | None = None,
202
+ class_name: Any | None = None,
203
+ autofocus: bool | None = None,
204
+ custom_attrs: dict[str, Var | Any] | None = None,
232
205
  on_blur: Optional[EventType[()]] = None,
233
206
  on_click: Optional[EventType[()]] = None,
234
207
  on_context_menu: Optional[EventType[()]] = None,
@@ -286,218 +259,191 @@ class Dialog(BaseHTML):
286
259
  def create( # type: ignore
287
260
  cls,
288
261
  *children,
289
- open: Optional[Union[Var[bool], bool]] = None,
290
- access_key: Optional[Union[Var[str], str]] = None,
291
- auto_capitalize: Optional[
292
- Union[
293
- Literal["characters", "none", "off", "on", "sentences", "words"],
294
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
295
- ]
296
- ] = None,
297
- content_editable: Optional[
298
- Union[
299
- Literal["inherit", "plaintext-only", False, True],
300
- Var[Literal["inherit", "plaintext-only", False, True]],
301
- ]
302
- ] = None,
303
- context_menu: Optional[Union[Var[str], str]] = None,
304
- dir: Optional[Union[Var[str], str]] = None,
305
- draggable: Optional[Union[Var[bool], bool]] = None,
306
- enter_key_hint: Optional[
307
- Union[
308
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
309
- Var[
310
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
311
- ],
312
- ]
313
- ] = None,
314
- hidden: Optional[Union[Var[bool], bool]] = None,
315
- input_mode: Optional[
316
- Union[
317
- Literal[
318
- "decimal",
319
- "email",
320
- "none",
321
- "numeric",
322
- "search",
323
- "tel",
324
- "text",
325
- "url",
326
- ],
327
- Var[
328
- Literal[
329
- "decimal",
330
- "email",
331
- "none",
332
- "numeric",
333
- "search",
334
- "tel",
335
- "text",
336
- "url",
337
- ]
338
- ],
262
+ open: Var[bool] | bool | None = None,
263
+ access_key: Var[str] | str | None = None,
264
+ auto_capitalize: Literal[
265
+ "characters", "none", "off", "on", "sentences", "words"
266
+ ]
267
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
268
+ | None = None,
269
+ content_editable: Literal["inherit", "plaintext-only", False, True]
270
+ | Var[Literal["inherit", "plaintext-only", False, True]]
271
+ | None = None,
272
+ context_menu: Var[str] | str | None = None,
273
+ dir: Var[str] | str | None = None,
274
+ draggable: Var[bool] | bool | None = None,
275
+ enter_key_hint: Literal[
276
+ "done", "enter", "go", "next", "previous", "search", "send"
277
+ ]
278
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
279
+ | None = None,
280
+ hidden: Var[bool] | bool | None = None,
281
+ input_mode: Literal[
282
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
283
+ ]
284
+ | Var[
285
+ Literal[
286
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
339
287
  ]
340
- ] = None,
341
- item_prop: Optional[Union[Var[str], str]] = None,
342
- lang: Optional[Union[Var[str], str]] = None,
343
- role: Optional[
344
- Union[
345
- Literal[
346
- "alert",
347
- "alertdialog",
348
- "application",
349
- "article",
350
- "banner",
351
- "button",
352
- "cell",
353
- "checkbox",
354
- "columnheader",
355
- "combobox",
356
- "complementary",
357
- "contentinfo",
358
- "definition",
359
- "dialog",
360
- "directory",
361
- "document",
362
- "feed",
363
- "figure",
364
- "form",
365
- "grid",
366
- "gridcell",
367
- "group",
368
- "heading",
369
- "img",
370
- "link",
371
- "list",
372
- "listbox",
373
- "listitem",
374
- "log",
375
- "main",
376
- "marquee",
377
- "math",
378
- "menu",
379
- "menubar",
380
- "menuitem",
381
- "menuitemcheckbox",
382
- "menuitemradio",
383
- "navigation",
384
- "none",
385
- "note",
386
- "option",
387
- "presentation",
388
- "progressbar",
389
- "radio",
390
- "radiogroup",
391
- "region",
392
- "row",
393
- "rowgroup",
394
- "rowheader",
395
- "scrollbar",
396
- "search",
397
- "searchbox",
398
- "separator",
399
- "slider",
400
- "spinbutton",
401
- "status",
402
- "switch",
403
- "tab",
404
- "table",
405
- "tablist",
406
- "tabpanel",
407
- "term",
408
- "textbox",
409
- "timer",
410
- "toolbar",
411
- "tooltip",
412
- "tree",
413
- "treegrid",
414
- "treeitem",
415
- ],
416
- Var[
417
- Literal[
418
- "alert",
419
- "alertdialog",
420
- "application",
421
- "article",
422
- "banner",
423
- "button",
424
- "cell",
425
- "checkbox",
426
- "columnheader",
427
- "combobox",
428
- "complementary",
429
- "contentinfo",
430
- "definition",
431
- "dialog",
432
- "directory",
433
- "document",
434
- "feed",
435
- "figure",
436
- "form",
437
- "grid",
438
- "gridcell",
439
- "group",
440
- "heading",
441
- "img",
442
- "link",
443
- "list",
444
- "listbox",
445
- "listitem",
446
- "log",
447
- "main",
448
- "marquee",
449
- "math",
450
- "menu",
451
- "menubar",
452
- "menuitem",
453
- "menuitemcheckbox",
454
- "menuitemradio",
455
- "navigation",
456
- "none",
457
- "note",
458
- "option",
459
- "presentation",
460
- "progressbar",
461
- "radio",
462
- "radiogroup",
463
- "region",
464
- "row",
465
- "rowgroup",
466
- "rowheader",
467
- "scrollbar",
468
- "search",
469
- "searchbox",
470
- "separator",
471
- "slider",
472
- "spinbutton",
473
- "status",
474
- "switch",
475
- "tab",
476
- "table",
477
- "tablist",
478
- "tabpanel",
479
- "term",
480
- "textbox",
481
- "timer",
482
- "toolbar",
483
- "tooltip",
484
- "tree",
485
- "treegrid",
486
- "treeitem",
487
- ]
488
- ],
288
+ ]
289
+ | None = None,
290
+ item_prop: Var[str] | str | None = None,
291
+ lang: Var[str] | str | None = None,
292
+ role: Literal[
293
+ "alert",
294
+ "alertdialog",
295
+ "application",
296
+ "article",
297
+ "banner",
298
+ "button",
299
+ "cell",
300
+ "checkbox",
301
+ "columnheader",
302
+ "combobox",
303
+ "complementary",
304
+ "contentinfo",
305
+ "definition",
306
+ "dialog",
307
+ "directory",
308
+ "document",
309
+ "feed",
310
+ "figure",
311
+ "form",
312
+ "grid",
313
+ "gridcell",
314
+ "group",
315
+ "heading",
316
+ "img",
317
+ "link",
318
+ "list",
319
+ "listbox",
320
+ "listitem",
321
+ "log",
322
+ "main",
323
+ "marquee",
324
+ "math",
325
+ "menu",
326
+ "menubar",
327
+ "menuitem",
328
+ "menuitemcheckbox",
329
+ "menuitemradio",
330
+ "navigation",
331
+ "none",
332
+ "note",
333
+ "option",
334
+ "presentation",
335
+ "progressbar",
336
+ "radio",
337
+ "radiogroup",
338
+ "region",
339
+ "row",
340
+ "rowgroup",
341
+ "rowheader",
342
+ "scrollbar",
343
+ "search",
344
+ "searchbox",
345
+ "separator",
346
+ "slider",
347
+ "spinbutton",
348
+ "status",
349
+ "switch",
350
+ "tab",
351
+ "table",
352
+ "tablist",
353
+ "tabpanel",
354
+ "term",
355
+ "textbox",
356
+ "timer",
357
+ "toolbar",
358
+ "tooltip",
359
+ "tree",
360
+ "treegrid",
361
+ "treeitem",
362
+ ]
363
+ | Var[
364
+ Literal[
365
+ "alert",
366
+ "alertdialog",
367
+ "application",
368
+ "article",
369
+ "banner",
370
+ "button",
371
+ "cell",
372
+ "checkbox",
373
+ "columnheader",
374
+ "combobox",
375
+ "complementary",
376
+ "contentinfo",
377
+ "definition",
378
+ "dialog",
379
+ "directory",
380
+ "document",
381
+ "feed",
382
+ "figure",
383
+ "form",
384
+ "grid",
385
+ "gridcell",
386
+ "group",
387
+ "heading",
388
+ "img",
389
+ "link",
390
+ "list",
391
+ "listbox",
392
+ "listitem",
393
+ "log",
394
+ "main",
395
+ "marquee",
396
+ "math",
397
+ "menu",
398
+ "menubar",
399
+ "menuitem",
400
+ "menuitemcheckbox",
401
+ "menuitemradio",
402
+ "navigation",
403
+ "none",
404
+ "note",
405
+ "option",
406
+ "presentation",
407
+ "progressbar",
408
+ "radio",
409
+ "radiogroup",
410
+ "region",
411
+ "row",
412
+ "rowgroup",
413
+ "rowheader",
414
+ "scrollbar",
415
+ "search",
416
+ "searchbox",
417
+ "separator",
418
+ "slider",
419
+ "spinbutton",
420
+ "status",
421
+ "switch",
422
+ "tab",
423
+ "table",
424
+ "tablist",
425
+ "tabpanel",
426
+ "term",
427
+ "textbox",
428
+ "timer",
429
+ "toolbar",
430
+ "tooltip",
431
+ "tree",
432
+ "treegrid",
433
+ "treeitem",
489
434
  ]
490
- ] = None,
491
- slot: Optional[Union[Var[str], str]] = None,
492
- spell_check: Optional[Union[Var[bool], bool]] = None,
493
- tab_index: Optional[Union[Var[int], int]] = None,
494
- title: Optional[Union[Var[str], str]] = None,
495
- style: Optional[Style] = None,
496
- key: Optional[Any] = None,
497
- id: Optional[Any] = None,
498
- class_name: Optional[Any] = None,
499
- autofocus: Optional[bool] = None,
500
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
435
+ ]
436
+ | None = None,
437
+ slot: Var[str] | str | None = None,
438
+ spell_check: Var[bool] | bool | None = None,
439
+ tab_index: Var[int] | int | None = None,
440
+ title: Var[str] | str | None = None,
441
+ style: Style | None = None,
442
+ key: Any | None = None,
443
+ id: Any | None = None,
444
+ class_name: Any | None = None,
445
+ autofocus: bool | None = None,
446
+ custom_attrs: dict[str, Var | Any] | None = None,
501
447
  on_blur: Optional[EventType[()]] = None,
502
448
  on_click: Optional[EventType[()]] = None,
503
449
  on_context_menu: Optional[EventType[()]] = None,
@@ -555,217 +501,190 @@ class Summary(BaseHTML):
555
501
  def create( # type: ignore
556
502
  cls,
557
503
  *children,
558
- access_key: Optional[Union[Var[str], str]] = None,
559
- auto_capitalize: Optional[
560
- Union[
561
- Literal["characters", "none", "off", "on", "sentences", "words"],
562
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
504
+ access_key: Var[str] | str | None = None,
505
+ auto_capitalize: Literal[
506
+ "characters", "none", "off", "on", "sentences", "words"
507
+ ]
508
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
509
+ | None = None,
510
+ content_editable: Literal["inherit", "plaintext-only", False, True]
511
+ | Var[Literal["inherit", "plaintext-only", False, True]]
512
+ | None = None,
513
+ context_menu: Var[str] | str | None = None,
514
+ dir: Var[str] | str | None = None,
515
+ draggable: Var[bool] | bool | None = None,
516
+ enter_key_hint: Literal[
517
+ "done", "enter", "go", "next", "previous", "search", "send"
518
+ ]
519
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
520
+ | None = None,
521
+ hidden: Var[bool] | bool | None = None,
522
+ input_mode: Literal[
523
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
524
+ ]
525
+ | Var[
526
+ Literal[
527
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
563
528
  ]
564
- ] = None,
565
- content_editable: Optional[
566
- Union[
567
- Literal["inherit", "plaintext-only", False, True],
568
- Var[Literal["inherit", "plaintext-only", False, True]],
529
+ ]
530
+ | None = None,
531
+ item_prop: Var[str] | str | None = None,
532
+ lang: Var[str] | str | None = None,
533
+ role: Literal[
534
+ "alert",
535
+ "alertdialog",
536
+ "application",
537
+ "article",
538
+ "banner",
539
+ "button",
540
+ "cell",
541
+ "checkbox",
542
+ "columnheader",
543
+ "combobox",
544
+ "complementary",
545
+ "contentinfo",
546
+ "definition",
547
+ "dialog",
548
+ "directory",
549
+ "document",
550
+ "feed",
551
+ "figure",
552
+ "form",
553
+ "grid",
554
+ "gridcell",
555
+ "group",
556
+ "heading",
557
+ "img",
558
+ "link",
559
+ "list",
560
+ "listbox",
561
+ "listitem",
562
+ "log",
563
+ "main",
564
+ "marquee",
565
+ "math",
566
+ "menu",
567
+ "menubar",
568
+ "menuitem",
569
+ "menuitemcheckbox",
570
+ "menuitemradio",
571
+ "navigation",
572
+ "none",
573
+ "note",
574
+ "option",
575
+ "presentation",
576
+ "progressbar",
577
+ "radio",
578
+ "radiogroup",
579
+ "region",
580
+ "row",
581
+ "rowgroup",
582
+ "rowheader",
583
+ "scrollbar",
584
+ "search",
585
+ "searchbox",
586
+ "separator",
587
+ "slider",
588
+ "spinbutton",
589
+ "status",
590
+ "switch",
591
+ "tab",
592
+ "table",
593
+ "tablist",
594
+ "tabpanel",
595
+ "term",
596
+ "textbox",
597
+ "timer",
598
+ "toolbar",
599
+ "tooltip",
600
+ "tree",
601
+ "treegrid",
602
+ "treeitem",
603
+ ]
604
+ | Var[
605
+ Literal[
606
+ "alert",
607
+ "alertdialog",
608
+ "application",
609
+ "article",
610
+ "banner",
611
+ "button",
612
+ "cell",
613
+ "checkbox",
614
+ "columnheader",
615
+ "combobox",
616
+ "complementary",
617
+ "contentinfo",
618
+ "definition",
619
+ "dialog",
620
+ "directory",
621
+ "document",
622
+ "feed",
623
+ "figure",
624
+ "form",
625
+ "grid",
626
+ "gridcell",
627
+ "group",
628
+ "heading",
629
+ "img",
630
+ "link",
631
+ "list",
632
+ "listbox",
633
+ "listitem",
634
+ "log",
635
+ "main",
636
+ "marquee",
637
+ "math",
638
+ "menu",
639
+ "menubar",
640
+ "menuitem",
641
+ "menuitemcheckbox",
642
+ "menuitemradio",
643
+ "navigation",
644
+ "none",
645
+ "note",
646
+ "option",
647
+ "presentation",
648
+ "progressbar",
649
+ "radio",
650
+ "radiogroup",
651
+ "region",
652
+ "row",
653
+ "rowgroup",
654
+ "rowheader",
655
+ "scrollbar",
656
+ "search",
657
+ "searchbox",
658
+ "separator",
659
+ "slider",
660
+ "spinbutton",
661
+ "status",
662
+ "switch",
663
+ "tab",
664
+ "table",
665
+ "tablist",
666
+ "tabpanel",
667
+ "term",
668
+ "textbox",
669
+ "timer",
670
+ "toolbar",
671
+ "tooltip",
672
+ "tree",
673
+ "treegrid",
674
+ "treeitem",
569
675
  ]
570
- ] = None,
571
- context_menu: Optional[Union[Var[str], str]] = None,
572
- dir: Optional[Union[Var[str], str]] = None,
573
- draggable: Optional[Union[Var[bool], bool]] = None,
574
- enter_key_hint: Optional[
575
- Union[
576
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
577
- Var[
578
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
579
- ],
580
- ]
581
- ] = None,
582
- hidden: Optional[Union[Var[bool], bool]] = None,
583
- input_mode: Optional[
584
- Union[
585
- Literal[
586
- "decimal",
587
- "email",
588
- "none",
589
- "numeric",
590
- "search",
591
- "tel",
592
- "text",
593
- "url",
594
- ],
595
- Var[
596
- Literal[
597
- "decimal",
598
- "email",
599
- "none",
600
- "numeric",
601
- "search",
602
- "tel",
603
- "text",
604
- "url",
605
- ]
606
- ],
607
- ]
608
- ] = None,
609
- item_prop: Optional[Union[Var[str], str]] = None,
610
- lang: Optional[Union[Var[str], str]] = None,
611
- role: Optional[
612
- Union[
613
- Literal[
614
- "alert",
615
- "alertdialog",
616
- "application",
617
- "article",
618
- "banner",
619
- "button",
620
- "cell",
621
- "checkbox",
622
- "columnheader",
623
- "combobox",
624
- "complementary",
625
- "contentinfo",
626
- "definition",
627
- "dialog",
628
- "directory",
629
- "document",
630
- "feed",
631
- "figure",
632
- "form",
633
- "grid",
634
- "gridcell",
635
- "group",
636
- "heading",
637
- "img",
638
- "link",
639
- "list",
640
- "listbox",
641
- "listitem",
642
- "log",
643
- "main",
644
- "marquee",
645
- "math",
646
- "menu",
647
- "menubar",
648
- "menuitem",
649
- "menuitemcheckbox",
650
- "menuitemradio",
651
- "navigation",
652
- "none",
653
- "note",
654
- "option",
655
- "presentation",
656
- "progressbar",
657
- "radio",
658
- "radiogroup",
659
- "region",
660
- "row",
661
- "rowgroup",
662
- "rowheader",
663
- "scrollbar",
664
- "search",
665
- "searchbox",
666
- "separator",
667
- "slider",
668
- "spinbutton",
669
- "status",
670
- "switch",
671
- "tab",
672
- "table",
673
- "tablist",
674
- "tabpanel",
675
- "term",
676
- "textbox",
677
- "timer",
678
- "toolbar",
679
- "tooltip",
680
- "tree",
681
- "treegrid",
682
- "treeitem",
683
- ],
684
- Var[
685
- Literal[
686
- "alert",
687
- "alertdialog",
688
- "application",
689
- "article",
690
- "banner",
691
- "button",
692
- "cell",
693
- "checkbox",
694
- "columnheader",
695
- "combobox",
696
- "complementary",
697
- "contentinfo",
698
- "definition",
699
- "dialog",
700
- "directory",
701
- "document",
702
- "feed",
703
- "figure",
704
- "form",
705
- "grid",
706
- "gridcell",
707
- "group",
708
- "heading",
709
- "img",
710
- "link",
711
- "list",
712
- "listbox",
713
- "listitem",
714
- "log",
715
- "main",
716
- "marquee",
717
- "math",
718
- "menu",
719
- "menubar",
720
- "menuitem",
721
- "menuitemcheckbox",
722
- "menuitemradio",
723
- "navigation",
724
- "none",
725
- "note",
726
- "option",
727
- "presentation",
728
- "progressbar",
729
- "radio",
730
- "radiogroup",
731
- "region",
732
- "row",
733
- "rowgroup",
734
- "rowheader",
735
- "scrollbar",
736
- "search",
737
- "searchbox",
738
- "separator",
739
- "slider",
740
- "spinbutton",
741
- "status",
742
- "switch",
743
- "tab",
744
- "table",
745
- "tablist",
746
- "tabpanel",
747
- "term",
748
- "textbox",
749
- "timer",
750
- "toolbar",
751
- "tooltip",
752
- "tree",
753
- "treegrid",
754
- "treeitem",
755
- ]
756
- ],
757
- ]
758
- ] = None,
759
- slot: Optional[Union[Var[str], str]] = None,
760
- spell_check: Optional[Union[Var[bool], bool]] = None,
761
- tab_index: Optional[Union[Var[int], int]] = None,
762
- title: Optional[Union[Var[str], str]] = None,
763
- style: Optional[Style] = None,
764
- key: Optional[Any] = None,
765
- id: Optional[Any] = None,
766
- class_name: Optional[Any] = None,
767
- autofocus: Optional[bool] = None,
768
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
676
+ ]
677
+ | None = None,
678
+ slot: Var[str] | str | None = None,
679
+ spell_check: Var[bool] | bool | None = None,
680
+ tab_index: Var[int] | int | None = None,
681
+ title: Var[str] | str | None = None,
682
+ style: Style | None = None,
683
+ key: Any | None = None,
684
+ id: Any | None = None,
685
+ class_name: Any | None = None,
686
+ autofocus: bool | None = None,
687
+ custom_attrs: dict[str, Var | Any] | None = None,
769
688
  on_blur: Optional[EventType[()]] = None,
770
689
  on_click: Optional[EventType[()]] = None,
771
690
  on_context_menu: Optional[EventType[()]] = None,
@@ -822,217 +741,190 @@ class Slot(BaseHTML):
822
741
  def create( # type: ignore
823
742
  cls,
824
743
  *children,
825
- access_key: Optional[Union[Var[str], str]] = None,
826
- auto_capitalize: Optional[
827
- Union[
828
- Literal["characters", "none", "off", "on", "sentences", "words"],
829
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
830
- ]
831
- ] = None,
832
- content_editable: Optional[
833
- Union[
834
- Literal["inherit", "plaintext-only", False, True],
835
- Var[Literal["inherit", "plaintext-only", False, True]],
836
- ]
837
- ] = None,
838
- context_menu: Optional[Union[Var[str], str]] = None,
839
- dir: Optional[Union[Var[str], str]] = None,
840
- draggable: Optional[Union[Var[bool], bool]] = None,
841
- enter_key_hint: Optional[
842
- Union[
843
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
844
- Var[
845
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
846
- ],
744
+ access_key: Var[str] | str | None = None,
745
+ auto_capitalize: Literal[
746
+ "characters", "none", "off", "on", "sentences", "words"
747
+ ]
748
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
749
+ | None = None,
750
+ content_editable: Literal["inherit", "plaintext-only", False, True]
751
+ | Var[Literal["inherit", "plaintext-only", False, True]]
752
+ | None = None,
753
+ context_menu: Var[str] | str | None = None,
754
+ dir: Var[str] | str | None = None,
755
+ draggable: Var[bool] | bool | None = None,
756
+ enter_key_hint: Literal[
757
+ "done", "enter", "go", "next", "previous", "search", "send"
758
+ ]
759
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
760
+ | None = None,
761
+ hidden: Var[bool] | bool | None = None,
762
+ input_mode: Literal[
763
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
764
+ ]
765
+ | Var[
766
+ Literal[
767
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
847
768
  ]
848
- ] = None,
849
- hidden: Optional[Union[Var[bool], bool]] = None,
850
- input_mode: Optional[
851
- Union[
852
- Literal[
853
- "decimal",
854
- "email",
855
- "none",
856
- "numeric",
857
- "search",
858
- "tel",
859
- "text",
860
- "url",
861
- ],
862
- Var[
863
- Literal[
864
- "decimal",
865
- "email",
866
- "none",
867
- "numeric",
868
- "search",
869
- "tel",
870
- "text",
871
- "url",
872
- ]
873
- ],
769
+ ]
770
+ | None = None,
771
+ item_prop: Var[str] | str | None = None,
772
+ lang: Var[str] | str | None = None,
773
+ role: Literal[
774
+ "alert",
775
+ "alertdialog",
776
+ "application",
777
+ "article",
778
+ "banner",
779
+ "button",
780
+ "cell",
781
+ "checkbox",
782
+ "columnheader",
783
+ "combobox",
784
+ "complementary",
785
+ "contentinfo",
786
+ "definition",
787
+ "dialog",
788
+ "directory",
789
+ "document",
790
+ "feed",
791
+ "figure",
792
+ "form",
793
+ "grid",
794
+ "gridcell",
795
+ "group",
796
+ "heading",
797
+ "img",
798
+ "link",
799
+ "list",
800
+ "listbox",
801
+ "listitem",
802
+ "log",
803
+ "main",
804
+ "marquee",
805
+ "math",
806
+ "menu",
807
+ "menubar",
808
+ "menuitem",
809
+ "menuitemcheckbox",
810
+ "menuitemradio",
811
+ "navigation",
812
+ "none",
813
+ "note",
814
+ "option",
815
+ "presentation",
816
+ "progressbar",
817
+ "radio",
818
+ "radiogroup",
819
+ "region",
820
+ "row",
821
+ "rowgroup",
822
+ "rowheader",
823
+ "scrollbar",
824
+ "search",
825
+ "searchbox",
826
+ "separator",
827
+ "slider",
828
+ "spinbutton",
829
+ "status",
830
+ "switch",
831
+ "tab",
832
+ "table",
833
+ "tablist",
834
+ "tabpanel",
835
+ "term",
836
+ "textbox",
837
+ "timer",
838
+ "toolbar",
839
+ "tooltip",
840
+ "tree",
841
+ "treegrid",
842
+ "treeitem",
843
+ ]
844
+ | Var[
845
+ Literal[
846
+ "alert",
847
+ "alertdialog",
848
+ "application",
849
+ "article",
850
+ "banner",
851
+ "button",
852
+ "cell",
853
+ "checkbox",
854
+ "columnheader",
855
+ "combobox",
856
+ "complementary",
857
+ "contentinfo",
858
+ "definition",
859
+ "dialog",
860
+ "directory",
861
+ "document",
862
+ "feed",
863
+ "figure",
864
+ "form",
865
+ "grid",
866
+ "gridcell",
867
+ "group",
868
+ "heading",
869
+ "img",
870
+ "link",
871
+ "list",
872
+ "listbox",
873
+ "listitem",
874
+ "log",
875
+ "main",
876
+ "marquee",
877
+ "math",
878
+ "menu",
879
+ "menubar",
880
+ "menuitem",
881
+ "menuitemcheckbox",
882
+ "menuitemradio",
883
+ "navigation",
884
+ "none",
885
+ "note",
886
+ "option",
887
+ "presentation",
888
+ "progressbar",
889
+ "radio",
890
+ "radiogroup",
891
+ "region",
892
+ "row",
893
+ "rowgroup",
894
+ "rowheader",
895
+ "scrollbar",
896
+ "search",
897
+ "searchbox",
898
+ "separator",
899
+ "slider",
900
+ "spinbutton",
901
+ "status",
902
+ "switch",
903
+ "tab",
904
+ "table",
905
+ "tablist",
906
+ "tabpanel",
907
+ "term",
908
+ "textbox",
909
+ "timer",
910
+ "toolbar",
911
+ "tooltip",
912
+ "tree",
913
+ "treegrid",
914
+ "treeitem",
874
915
  ]
875
- ] = None,
876
- item_prop: Optional[Union[Var[str], str]] = None,
877
- lang: Optional[Union[Var[str], str]] = None,
878
- role: Optional[
879
- Union[
880
- Literal[
881
- "alert",
882
- "alertdialog",
883
- "application",
884
- "article",
885
- "banner",
886
- "button",
887
- "cell",
888
- "checkbox",
889
- "columnheader",
890
- "combobox",
891
- "complementary",
892
- "contentinfo",
893
- "definition",
894
- "dialog",
895
- "directory",
896
- "document",
897
- "feed",
898
- "figure",
899
- "form",
900
- "grid",
901
- "gridcell",
902
- "group",
903
- "heading",
904
- "img",
905
- "link",
906
- "list",
907
- "listbox",
908
- "listitem",
909
- "log",
910
- "main",
911
- "marquee",
912
- "math",
913
- "menu",
914
- "menubar",
915
- "menuitem",
916
- "menuitemcheckbox",
917
- "menuitemradio",
918
- "navigation",
919
- "none",
920
- "note",
921
- "option",
922
- "presentation",
923
- "progressbar",
924
- "radio",
925
- "radiogroup",
926
- "region",
927
- "row",
928
- "rowgroup",
929
- "rowheader",
930
- "scrollbar",
931
- "search",
932
- "searchbox",
933
- "separator",
934
- "slider",
935
- "spinbutton",
936
- "status",
937
- "switch",
938
- "tab",
939
- "table",
940
- "tablist",
941
- "tabpanel",
942
- "term",
943
- "textbox",
944
- "timer",
945
- "toolbar",
946
- "tooltip",
947
- "tree",
948
- "treegrid",
949
- "treeitem",
950
- ],
951
- Var[
952
- Literal[
953
- "alert",
954
- "alertdialog",
955
- "application",
956
- "article",
957
- "banner",
958
- "button",
959
- "cell",
960
- "checkbox",
961
- "columnheader",
962
- "combobox",
963
- "complementary",
964
- "contentinfo",
965
- "definition",
966
- "dialog",
967
- "directory",
968
- "document",
969
- "feed",
970
- "figure",
971
- "form",
972
- "grid",
973
- "gridcell",
974
- "group",
975
- "heading",
976
- "img",
977
- "link",
978
- "list",
979
- "listbox",
980
- "listitem",
981
- "log",
982
- "main",
983
- "marquee",
984
- "math",
985
- "menu",
986
- "menubar",
987
- "menuitem",
988
- "menuitemcheckbox",
989
- "menuitemradio",
990
- "navigation",
991
- "none",
992
- "note",
993
- "option",
994
- "presentation",
995
- "progressbar",
996
- "radio",
997
- "radiogroup",
998
- "region",
999
- "row",
1000
- "rowgroup",
1001
- "rowheader",
1002
- "scrollbar",
1003
- "search",
1004
- "searchbox",
1005
- "separator",
1006
- "slider",
1007
- "spinbutton",
1008
- "status",
1009
- "switch",
1010
- "tab",
1011
- "table",
1012
- "tablist",
1013
- "tabpanel",
1014
- "term",
1015
- "textbox",
1016
- "timer",
1017
- "toolbar",
1018
- "tooltip",
1019
- "tree",
1020
- "treegrid",
1021
- "treeitem",
1022
- ]
1023
- ],
1024
- ]
1025
- ] = None,
1026
- slot: Optional[Union[Var[str], str]] = None,
1027
- spell_check: Optional[Union[Var[bool], bool]] = None,
1028
- tab_index: Optional[Union[Var[int], int]] = None,
1029
- title: Optional[Union[Var[str], str]] = None,
1030
- style: Optional[Style] = None,
1031
- key: Optional[Any] = None,
1032
- id: Optional[Any] = None,
1033
- class_name: Optional[Any] = None,
1034
- autofocus: Optional[bool] = None,
1035
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
916
+ ]
917
+ | None = None,
918
+ slot: Var[str] | str | None = None,
919
+ spell_check: Var[bool] | bool | None = None,
920
+ tab_index: Var[int] | int | None = None,
921
+ title: Var[str] | str | None = None,
922
+ style: Style | None = None,
923
+ key: Any | None = None,
924
+ id: Any | None = None,
925
+ class_name: Any | None = None,
926
+ autofocus: bool | None = None,
927
+ custom_attrs: dict[str, Var | Any] | None = None,
1036
928
  on_blur: Optional[EventType[()]] = None,
1037
929
  on_click: Optional[EventType[()]] = None,
1038
930
  on_context_menu: Optional[EventType[()]] = None,
@@ -1089,217 +981,190 @@ class Template(BaseHTML):
1089
981
  def create( # type: ignore
1090
982
  cls,
1091
983
  *children,
1092
- access_key: Optional[Union[Var[str], str]] = None,
1093
- auto_capitalize: Optional[
1094
- Union[
1095
- Literal["characters", "none", "off", "on", "sentences", "words"],
1096
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
1097
- ]
1098
- ] = None,
1099
- content_editable: Optional[
1100
- Union[
1101
- Literal["inherit", "plaintext-only", False, True],
1102
- Var[Literal["inherit", "plaintext-only", False, True]],
1103
- ]
1104
- ] = None,
1105
- context_menu: Optional[Union[Var[str], str]] = None,
1106
- dir: Optional[Union[Var[str], str]] = None,
1107
- draggable: Optional[Union[Var[bool], bool]] = None,
1108
- enter_key_hint: Optional[
1109
- Union[
1110
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
1111
- Var[
1112
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
1113
- ],
984
+ access_key: Var[str] | str | None = None,
985
+ auto_capitalize: Literal[
986
+ "characters", "none", "off", "on", "sentences", "words"
987
+ ]
988
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
989
+ | None = None,
990
+ content_editable: Literal["inherit", "plaintext-only", False, True]
991
+ | Var[Literal["inherit", "plaintext-only", False, True]]
992
+ | None = None,
993
+ context_menu: Var[str] | str | None = None,
994
+ dir: Var[str] | str | None = None,
995
+ draggable: Var[bool] | bool | None = None,
996
+ enter_key_hint: Literal[
997
+ "done", "enter", "go", "next", "previous", "search", "send"
998
+ ]
999
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
1000
+ | None = None,
1001
+ hidden: Var[bool] | bool | None = None,
1002
+ input_mode: Literal[
1003
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
1004
+ ]
1005
+ | Var[
1006
+ Literal[
1007
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
1114
1008
  ]
1115
- ] = None,
1116
- hidden: Optional[Union[Var[bool], bool]] = None,
1117
- input_mode: Optional[
1118
- Union[
1119
- Literal[
1120
- "decimal",
1121
- "email",
1122
- "none",
1123
- "numeric",
1124
- "search",
1125
- "tel",
1126
- "text",
1127
- "url",
1128
- ],
1129
- Var[
1130
- Literal[
1131
- "decimal",
1132
- "email",
1133
- "none",
1134
- "numeric",
1135
- "search",
1136
- "tel",
1137
- "text",
1138
- "url",
1139
- ]
1140
- ],
1009
+ ]
1010
+ | None = None,
1011
+ item_prop: Var[str] | str | None = None,
1012
+ lang: Var[str] | str | None = None,
1013
+ role: Literal[
1014
+ "alert",
1015
+ "alertdialog",
1016
+ "application",
1017
+ "article",
1018
+ "banner",
1019
+ "button",
1020
+ "cell",
1021
+ "checkbox",
1022
+ "columnheader",
1023
+ "combobox",
1024
+ "complementary",
1025
+ "contentinfo",
1026
+ "definition",
1027
+ "dialog",
1028
+ "directory",
1029
+ "document",
1030
+ "feed",
1031
+ "figure",
1032
+ "form",
1033
+ "grid",
1034
+ "gridcell",
1035
+ "group",
1036
+ "heading",
1037
+ "img",
1038
+ "link",
1039
+ "list",
1040
+ "listbox",
1041
+ "listitem",
1042
+ "log",
1043
+ "main",
1044
+ "marquee",
1045
+ "math",
1046
+ "menu",
1047
+ "menubar",
1048
+ "menuitem",
1049
+ "menuitemcheckbox",
1050
+ "menuitemradio",
1051
+ "navigation",
1052
+ "none",
1053
+ "note",
1054
+ "option",
1055
+ "presentation",
1056
+ "progressbar",
1057
+ "radio",
1058
+ "radiogroup",
1059
+ "region",
1060
+ "row",
1061
+ "rowgroup",
1062
+ "rowheader",
1063
+ "scrollbar",
1064
+ "search",
1065
+ "searchbox",
1066
+ "separator",
1067
+ "slider",
1068
+ "spinbutton",
1069
+ "status",
1070
+ "switch",
1071
+ "tab",
1072
+ "table",
1073
+ "tablist",
1074
+ "tabpanel",
1075
+ "term",
1076
+ "textbox",
1077
+ "timer",
1078
+ "toolbar",
1079
+ "tooltip",
1080
+ "tree",
1081
+ "treegrid",
1082
+ "treeitem",
1083
+ ]
1084
+ | Var[
1085
+ Literal[
1086
+ "alert",
1087
+ "alertdialog",
1088
+ "application",
1089
+ "article",
1090
+ "banner",
1091
+ "button",
1092
+ "cell",
1093
+ "checkbox",
1094
+ "columnheader",
1095
+ "combobox",
1096
+ "complementary",
1097
+ "contentinfo",
1098
+ "definition",
1099
+ "dialog",
1100
+ "directory",
1101
+ "document",
1102
+ "feed",
1103
+ "figure",
1104
+ "form",
1105
+ "grid",
1106
+ "gridcell",
1107
+ "group",
1108
+ "heading",
1109
+ "img",
1110
+ "link",
1111
+ "list",
1112
+ "listbox",
1113
+ "listitem",
1114
+ "log",
1115
+ "main",
1116
+ "marquee",
1117
+ "math",
1118
+ "menu",
1119
+ "menubar",
1120
+ "menuitem",
1121
+ "menuitemcheckbox",
1122
+ "menuitemradio",
1123
+ "navigation",
1124
+ "none",
1125
+ "note",
1126
+ "option",
1127
+ "presentation",
1128
+ "progressbar",
1129
+ "radio",
1130
+ "radiogroup",
1131
+ "region",
1132
+ "row",
1133
+ "rowgroup",
1134
+ "rowheader",
1135
+ "scrollbar",
1136
+ "search",
1137
+ "searchbox",
1138
+ "separator",
1139
+ "slider",
1140
+ "spinbutton",
1141
+ "status",
1142
+ "switch",
1143
+ "tab",
1144
+ "table",
1145
+ "tablist",
1146
+ "tabpanel",
1147
+ "term",
1148
+ "textbox",
1149
+ "timer",
1150
+ "toolbar",
1151
+ "tooltip",
1152
+ "tree",
1153
+ "treegrid",
1154
+ "treeitem",
1141
1155
  ]
1142
- ] = None,
1143
- item_prop: Optional[Union[Var[str], str]] = None,
1144
- lang: Optional[Union[Var[str], str]] = None,
1145
- role: Optional[
1146
- Union[
1147
- Literal[
1148
- "alert",
1149
- "alertdialog",
1150
- "application",
1151
- "article",
1152
- "banner",
1153
- "button",
1154
- "cell",
1155
- "checkbox",
1156
- "columnheader",
1157
- "combobox",
1158
- "complementary",
1159
- "contentinfo",
1160
- "definition",
1161
- "dialog",
1162
- "directory",
1163
- "document",
1164
- "feed",
1165
- "figure",
1166
- "form",
1167
- "grid",
1168
- "gridcell",
1169
- "group",
1170
- "heading",
1171
- "img",
1172
- "link",
1173
- "list",
1174
- "listbox",
1175
- "listitem",
1176
- "log",
1177
- "main",
1178
- "marquee",
1179
- "math",
1180
- "menu",
1181
- "menubar",
1182
- "menuitem",
1183
- "menuitemcheckbox",
1184
- "menuitemradio",
1185
- "navigation",
1186
- "none",
1187
- "note",
1188
- "option",
1189
- "presentation",
1190
- "progressbar",
1191
- "radio",
1192
- "radiogroup",
1193
- "region",
1194
- "row",
1195
- "rowgroup",
1196
- "rowheader",
1197
- "scrollbar",
1198
- "search",
1199
- "searchbox",
1200
- "separator",
1201
- "slider",
1202
- "spinbutton",
1203
- "status",
1204
- "switch",
1205
- "tab",
1206
- "table",
1207
- "tablist",
1208
- "tabpanel",
1209
- "term",
1210
- "textbox",
1211
- "timer",
1212
- "toolbar",
1213
- "tooltip",
1214
- "tree",
1215
- "treegrid",
1216
- "treeitem",
1217
- ],
1218
- Var[
1219
- Literal[
1220
- "alert",
1221
- "alertdialog",
1222
- "application",
1223
- "article",
1224
- "banner",
1225
- "button",
1226
- "cell",
1227
- "checkbox",
1228
- "columnheader",
1229
- "combobox",
1230
- "complementary",
1231
- "contentinfo",
1232
- "definition",
1233
- "dialog",
1234
- "directory",
1235
- "document",
1236
- "feed",
1237
- "figure",
1238
- "form",
1239
- "grid",
1240
- "gridcell",
1241
- "group",
1242
- "heading",
1243
- "img",
1244
- "link",
1245
- "list",
1246
- "listbox",
1247
- "listitem",
1248
- "log",
1249
- "main",
1250
- "marquee",
1251
- "math",
1252
- "menu",
1253
- "menubar",
1254
- "menuitem",
1255
- "menuitemcheckbox",
1256
- "menuitemradio",
1257
- "navigation",
1258
- "none",
1259
- "note",
1260
- "option",
1261
- "presentation",
1262
- "progressbar",
1263
- "radio",
1264
- "radiogroup",
1265
- "region",
1266
- "row",
1267
- "rowgroup",
1268
- "rowheader",
1269
- "scrollbar",
1270
- "search",
1271
- "searchbox",
1272
- "separator",
1273
- "slider",
1274
- "spinbutton",
1275
- "status",
1276
- "switch",
1277
- "tab",
1278
- "table",
1279
- "tablist",
1280
- "tabpanel",
1281
- "term",
1282
- "textbox",
1283
- "timer",
1284
- "toolbar",
1285
- "tooltip",
1286
- "tree",
1287
- "treegrid",
1288
- "treeitem",
1289
- ]
1290
- ],
1291
- ]
1292
- ] = None,
1293
- slot: Optional[Union[Var[str], str]] = None,
1294
- spell_check: Optional[Union[Var[bool], bool]] = None,
1295
- tab_index: Optional[Union[Var[int], int]] = None,
1296
- title: Optional[Union[Var[str], str]] = None,
1297
- style: Optional[Style] = None,
1298
- key: Optional[Any] = None,
1299
- id: Optional[Any] = None,
1300
- class_name: Optional[Any] = None,
1301
- autofocus: Optional[bool] = None,
1302
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
1156
+ ]
1157
+ | None = None,
1158
+ slot: Var[str] | str | None = None,
1159
+ spell_check: Var[bool] | bool | None = None,
1160
+ tab_index: Var[int] | int | None = None,
1161
+ title: Var[str] | str | None = None,
1162
+ style: Style | None = None,
1163
+ key: Any | None = None,
1164
+ id: Any | None = None,
1165
+ class_name: Any | None = None,
1166
+ autofocus: bool | None = None,
1167
+ custom_attrs: dict[str, Var | Any] | None = None,
1303
1168
  on_blur: Optional[EventType[()]] = None,
1304
1169
  on_click: Optional[EventType[()]] = None,
1305
1170
  on_context_menu: Optional[EventType[()]] = None,
@@ -1356,217 +1221,190 @@ class Math(BaseHTML):
1356
1221
  def create( # type: ignore
1357
1222
  cls,
1358
1223
  *children,
1359
- access_key: Optional[Union[Var[str], str]] = None,
1360
- auto_capitalize: Optional[
1361
- Union[
1362
- Literal["characters", "none", "off", "on", "sentences", "words"],
1363
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
1364
- ]
1365
- ] = None,
1366
- content_editable: Optional[
1367
- Union[
1368
- Literal["inherit", "plaintext-only", False, True],
1369
- Var[Literal["inherit", "plaintext-only", False, True]],
1224
+ access_key: Var[str] | str | None = None,
1225
+ auto_capitalize: Literal[
1226
+ "characters", "none", "off", "on", "sentences", "words"
1227
+ ]
1228
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
1229
+ | None = None,
1230
+ content_editable: Literal["inherit", "plaintext-only", False, True]
1231
+ | Var[Literal["inherit", "plaintext-only", False, True]]
1232
+ | None = None,
1233
+ context_menu: Var[str] | str | None = None,
1234
+ dir: Var[str] | str | None = None,
1235
+ draggable: Var[bool] | bool | None = None,
1236
+ enter_key_hint: Literal[
1237
+ "done", "enter", "go", "next", "previous", "search", "send"
1238
+ ]
1239
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
1240
+ | None = None,
1241
+ hidden: Var[bool] | bool | None = None,
1242
+ input_mode: Literal[
1243
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
1244
+ ]
1245
+ | Var[
1246
+ Literal[
1247
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
1370
1248
  ]
1371
- ] = None,
1372
- context_menu: Optional[Union[Var[str], str]] = None,
1373
- dir: Optional[Union[Var[str], str]] = None,
1374
- draggable: Optional[Union[Var[bool], bool]] = None,
1375
- enter_key_hint: Optional[
1376
- Union[
1377
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
1378
- Var[
1379
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
1380
- ],
1249
+ ]
1250
+ | None = None,
1251
+ item_prop: Var[str] | str | None = None,
1252
+ lang: Var[str] | str | None = None,
1253
+ role: Literal[
1254
+ "alert",
1255
+ "alertdialog",
1256
+ "application",
1257
+ "article",
1258
+ "banner",
1259
+ "button",
1260
+ "cell",
1261
+ "checkbox",
1262
+ "columnheader",
1263
+ "combobox",
1264
+ "complementary",
1265
+ "contentinfo",
1266
+ "definition",
1267
+ "dialog",
1268
+ "directory",
1269
+ "document",
1270
+ "feed",
1271
+ "figure",
1272
+ "form",
1273
+ "grid",
1274
+ "gridcell",
1275
+ "group",
1276
+ "heading",
1277
+ "img",
1278
+ "link",
1279
+ "list",
1280
+ "listbox",
1281
+ "listitem",
1282
+ "log",
1283
+ "main",
1284
+ "marquee",
1285
+ "math",
1286
+ "menu",
1287
+ "menubar",
1288
+ "menuitem",
1289
+ "menuitemcheckbox",
1290
+ "menuitemradio",
1291
+ "navigation",
1292
+ "none",
1293
+ "note",
1294
+ "option",
1295
+ "presentation",
1296
+ "progressbar",
1297
+ "radio",
1298
+ "radiogroup",
1299
+ "region",
1300
+ "row",
1301
+ "rowgroup",
1302
+ "rowheader",
1303
+ "scrollbar",
1304
+ "search",
1305
+ "searchbox",
1306
+ "separator",
1307
+ "slider",
1308
+ "spinbutton",
1309
+ "status",
1310
+ "switch",
1311
+ "tab",
1312
+ "table",
1313
+ "tablist",
1314
+ "tabpanel",
1315
+ "term",
1316
+ "textbox",
1317
+ "timer",
1318
+ "toolbar",
1319
+ "tooltip",
1320
+ "tree",
1321
+ "treegrid",
1322
+ "treeitem",
1323
+ ]
1324
+ | Var[
1325
+ Literal[
1326
+ "alert",
1327
+ "alertdialog",
1328
+ "application",
1329
+ "article",
1330
+ "banner",
1331
+ "button",
1332
+ "cell",
1333
+ "checkbox",
1334
+ "columnheader",
1335
+ "combobox",
1336
+ "complementary",
1337
+ "contentinfo",
1338
+ "definition",
1339
+ "dialog",
1340
+ "directory",
1341
+ "document",
1342
+ "feed",
1343
+ "figure",
1344
+ "form",
1345
+ "grid",
1346
+ "gridcell",
1347
+ "group",
1348
+ "heading",
1349
+ "img",
1350
+ "link",
1351
+ "list",
1352
+ "listbox",
1353
+ "listitem",
1354
+ "log",
1355
+ "main",
1356
+ "marquee",
1357
+ "math",
1358
+ "menu",
1359
+ "menubar",
1360
+ "menuitem",
1361
+ "menuitemcheckbox",
1362
+ "menuitemradio",
1363
+ "navigation",
1364
+ "none",
1365
+ "note",
1366
+ "option",
1367
+ "presentation",
1368
+ "progressbar",
1369
+ "radio",
1370
+ "radiogroup",
1371
+ "region",
1372
+ "row",
1373
+ "rowgroup",
1374
+ "rowheader",
1375
+ "scrollbar",
1376
+ "search",
1377
+ "searchbox",
1378
+ "separator",
1379
+ "slider",
1380
+ "spinbutton",
1381
+ "status",
1382
+ "switch",
1383
+ "tab",
1384
+ "table",
1385
+ "tablist",
1386
+ "tabpanel",
1387
+ "term",
1388
+ "textbox",
1389
+ "timer",
1390
+ "toolbar",
1391
+ "tooltip",
1392
+ "tree",
1393
+ "treegrid",
1394
+ "treeitem",
1381
1395
  ]
1382
- ] = None,
1383
- hidden: Optional[Union[Var[bool], bool]] = None,
1384
- input_mode: Optional[
1385
- Union[
1386
- Literal[
1387
- "decimal",
1388
- "email",
1389
- "none",
1390
- "numeric",
1391
- "search",
1392
- "tel",
1393
- "text",
1394
- "url",
1395
- ],
1396
- Var[
1397
- Literal[
1398
- "decimal",
1399
- "email",
1400
- "none",
1401
- "numeric",
1402
- "search",
1403
- "tel",
1404
- "text",
1405
- "url",
1406
- ]
1407
- ],
1408
- ]
1409
- ] = None,
1410
- item_prop: Optional[Union[Var[str], str]] = None,
1411
- lang: Optional[Union[Var[str], str]] = None,
1412
- role: Optional[
1413
- Union[
1414
- Literal[
1415
- "alert",
1416
- "alertdialog",
1417
- "application",
1418
- "article",
1419
- "banner",
1420
- "button",
1421
- "cell",
1422
- "checkbox",
1423
- "columnheader",
1424
- "combobox",
1425
- "complementary",
1426
- "contentinfo",
1427
- "definition",
1428
- "dialog",
1429
- "directory",
1430
- "document",
1431
- "feed",
1432
- "figure",
1433
- "form",
1434
- "grid",
1435
- "gridcell",
1436
- "group",
1437
- "heading",
1438
- "img",
1439
- "link",
1440
- "list",
1441
- "listbox",
1442
- "listitem",
1443
- "log",
1444
- "main",
1445
- "marquee",
1446
- "math",
1447
- "menu",
1448
- "menubar",
1449
- "menuitem",
1450
- "menuitemcheckbox",
1451
- "menuitemradio",
1452
- "navigation",
1453
- "none",
1454
- "note",
1455
- "option",
1456
- "presentation",
1457
- "progressbar",
1458
- "radio",
1459
- "radiogroup",
1460
- "region",
1461
- "row",
1462
- "rowgroup",
1463
- "rowheader",
1464
- "scrollbar",
1465
- "search",
1466
- "searchbox",
1467
- "separator",
1468
- "slider",
1469
- "spinbutton",
1470
- "status",
1471
- "switch",
1472
- "tab",
1473
- "table",
1474
- "tablist",
1475
- "tabpanel",
1476
- "term",
1477
- "textbox",
1478
- "timer",
1479
- "toolbar",
1480
- "tooltip",
1481
- "tree",
1482
- "treegrid",
1483
- "treeitem",
1484
- ],
1485
- Var[
1486
- Literal[
1487
- "alert",
1488
- "alertdialog",
1489
- "application",
1490
- "article",
1491
- "banner",
1492
- "button",
1493
- "cell",
1494
- "checkbox",
1495
- "columnheader",
1496
- "combobox",
1497
- "complementary",
1498
- "contentinfo",
1499
- "definition",
1500
- "dialog",
1501
- "directory",
1502
- "document",
1503
- "feed",
1504
- "figure",
1505
- "form",
1506
- "grid",
1507
- "gridcell",
1508
- "group",
1509
- "heading",
1510
- "img",
1511
- "link",
1512
- "list",
1513
- "listbox",
1514
- "listitem",
1515
- "log",
1516
- "main",
1517
- "marquee",
1518
- "math",
1519
- "menu",
1520
- "menubar",
1521
- "menuitem",
1522
- "menuitemcheckbox",
1523
- "menuitemradio",
1524
- "navigation",
1525
- "none",
1526
- "note",
1527
- "option",
1528
- "presentation",
1529
- "progressbar",
1530
- "radio",
1531
- "radiogroup",
1532
- "region",
1533
- "row",
1534
- "rowgroup",
1535
- "rowheader",
1536
- "scrollbar",
1537
- "search",
1538
- "searchbox",
1539
- "separator",
1540
- "slider",
1541
- "spinbutton",
1542
- "status",
1543
- "switch",
1544
- "tab",
1545
- "table",
1546
- "tablist",
1547
- "tabpanel",
1548
- "term",
1549
- "textbox",
1550
- "timer",
1551
- "toolbar",
1552
- "tooltip",
1553
- "tree",
1554
- "treegrid",
1555
- "treeitem",
1556
- ]
1557
- ],
1558
- ]
1559
- ] = None,
1560
- slot: Optional[Union[Var[str], str]] = None,
1561
- spell_check: Optional[Union[Var[bool], bool]] = None,
1562
- tab_index: Optional[Union[Var[int], int]] = None,
1563
- title: Optional[Union[Var[str], str]] = None,
1564
- style: Optional[Style] = None,
1565
- key: Optional[Any] = None,
1566
- id: Optional[Any] = None,
1567
- class_name: Optional[Any] = None,
1568
- autofocus: Optional[bool] = None,
1569
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
1396
+ ]
1397
+ | None = None,
1398
+ slot: Var[str] | str | None = None,
1399
+ spell_check: Var[bool] | bool | None = None,
1400
+ tab_index: Var[int] | int | None = None,
1401
+ title: Var[str] | str | None = None,
1402
+ style: Style | None = None,
1403
+ key: Any | None = None,
1404
+ id: Any | None = None,
1405
+ class_name: Any | None = None,
1406
+ autofocus: bool | None = None,
1407
+ custom_attrs: dict[str, Var | Any] | None = None,
1570
1408
  on_blur: Optional[EventType[()]] = None,
1571
1409
  on_click: Optional[EventType[()]] = None,
1572
1410
  on_context_menu: Optional[EventType[()]] = None,
@@ -1623,218 +1461,191 @@ class Html(BaseHTML):
1623
1461
  def create( # type: ignore
1624
1462
  cls,
1625
1463
  *children,
1626
- manifest: Optional[Union[Var[str], str]] = None,
1627
- access_key: Optional[Union[Var[str], str]] = None,
1628
- auto_capitalize: Optional[
1629
- Union[
1630
- Literal["characters", "none", "off", "on", "sentences", "words"],
1631
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
1632
- ]
1633
- ] = None,
1634
- content_editable: Optional[
1635
- Union[
1636
- Literal["inherit", "plaintext-only", False, True],
1637
- Var[Literal["inherit", "plaintext-only", False, True]],
1638
- ]
1639
- ] = None,
1640
- context_menu: Optional[Union[Var[str], str]] = None,
1641
- dir: Optional[Union[Var[str], str]] = None,
1642
- draggable: Optional[Union[Var[bool], bool]] = None,
1643
- enter_key_hint: Optional[
1644
- Union[
1645
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
1646
- Var[
1647
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
1648
- ],
1649
- ]
1650
- ] = None,
1651
- hidden: Optional[Union[Var[bool], bool]] = None,
1652
- input_mode: Optional[
1653
- Union[
1654
- Literal[
1655
- "decimal",
1656
- "email",
1657
- "none",
1658
- "numeric",
1659
- "search",
1660
- "tel",
1661
- "text",
1662
- "url",
1663
- ],
1664
- Var[
1665
- Literal[
1666
- "decimal",
1667
- "email",
1668
- "none",
1669
- "numeric",
1670
- "search",
1671
- "tel",
1672
- "text",
1673
- "url",
1674
- ]
1675
- ],
1464
+ manifest: Var[str] | str | None = None,
1465
+ access_key: Var[str] | str | None = None,
1466
+ auto_capitalize: Literal[
1467
+ "characters", "none", "off", "on", "sentences", "words"
1468
+ ]
1469
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
1470
+ | None = None,
1471
+ content_editable: Literal["inherit", "plaintext-only", False, True]
1472
+ | Var[Literal["inherit", "plaintext-only", False, True]]
1473
+ | None = None,
1474
+ context_menu: Var[str] | str | None = None,
1475
+ dir: Var[str] | str | None = None,
1476
+ draggable: Var[bool] | bool | None = None,
1477
+ enter_key_hint: Literal[
1478
+ "done", "enter", "go", "next", "previous", "search", "send"
1479
+ ]
1480
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
1481
+ | None = None,
1482
+ hidden: Var[bool] | bool | None = None,
1483
+ input_mode: Literal[
1484
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
1485
+ ]
1486
+ | Var[
1487
+ Literal[
1488
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
1676
1489
  ]
1677
- ] = None,
1678
- item_prop: Optional[Union[Var[str], str]] = None,
1679
- lang: Optional[Union[Var[str], str]] = None,
1680
- role: Optional[
1681
- Union[
1682
- Literal[
1683
- "alert",
1684
- "alertdialog",
1685
- "application",
1686
- "article",
1687
- "banner",
1688
- "button",
1689
- "cell",
1690
- "checkbox",
1691
- "columnheader",
1692
- "combobox",
1693
- "complementary",
1694
- "contentinfo",
1695
- "definition",
1696
- "dialog",
1697
- "directory",
1698
- "document",
1699
- "feed",
1700
- "figure",
1701
- "form",
1702
- "grid",
1703
- "gridcell",
1704
- "group",
1705
- "heading",
1706
- "img",
1707
- "link",
1708
- "list",
1709
- "listbox",
1710
- "listitem",
1711
- "log",
1712
- "main",
1713
- "marquee",
1714
- "math",
1715
- "menu",
1716
- "menubar",
1717
- "menuitem",
1718
- "menuitemcheckbox",
1719
- "menuitemradio",
1720
- "navigation",
1721
- "none",
1722
- "note",
1723
- "option",
1724
- "presentation",
1725
- "progressbar",
1726
- "radio",
1727
- "radiogroup",
1728
- "region",
1729
- "row",
1730
- "rowgroup",
1731
- "rowheader",
1732
- "scrollbar",
1733
- "search",
1734
- "searchbox",
1735
- "separator",
1736
- "slider",
1737
- "spinbutton",
1738
- "status",
1739
- "switch",
1740
- "tab",
1741
- "table",
1742
- "tablist",
1743
- "tabpanel",
1744
- "term",
1745
- "textbox",
1746
- "timer",
1747
- "toolbar",
1748
- "tooltip",
1749
- "tree",
1750
- "treegrid",
1751
- "treeitem",
1752
- ],
1753
- Var[
1754
- Literal[
1755
- "alert",
1756
- "alertdialog",
1757
- "application",
1758
- "article",
1759
- "banner",
1760
- "button",
1761
- "cell",
1762
- "checkbox",
1763
- "columnheader",
1764
- "combobox",
1765
- "complementary",
1766
- "contentinfo",
1767
- "definition",
1768
- "dialog",
1769
- "directory",
1770
- "document",
1771
- "feed",
1772
- "figure",
1773
- "form",
1774
- "grid",
1775
- "gridcell",
1776
- "group",
1777
- "heading",
1778
- "img",
1779
- "link",
1780
- "list",
1781
- "listbox",
1782
- "listitem",
1783
- "log",
1784
- "main",
1785
- "marquee",
1786
- "math",
1787
- "menu",
1788
- "menubar",
1789
- "menuitem",
1790
- "menuitemcheckbox",
1791
- "menuitemradio",
1792
- "navigation",
1793
- "none",
1794
- "note",
1795
- "option",
1796
- "presentation",
1797
- "progressbar",
1798
- "radio",
1799
- "radiogroup",
1800
- "region",
1801
- "row",
1802
- "rowgroup",
1803
- "rowheader",
1804
- "scrollbar",
1805
- "search",
1806
- "searchbox",
1807
- "separator",
1808
- "slider",
1809
- "spinbutton",
1810
- "status",
1811
- "switch",
1812
- "tab",
1813
- "table",
1814
- "tablist",
1815
- "tabpanel",
1816
- "term",
1817
- "textbox",
1818
- "timer",
1819
- "toolbar",
1820
- "tooltip",
1821
- "tree",
1822
- "treegrid",
1823
- "treeitem",
1824
- ]
1825
- ],
1490
+ ]
1491
+ | None = None,
1492
+ item_prop: Var[str] | str | None = None,
1493
+ lang: Var[str] | str | None = None,
1494
+ role: Literal[
1495
+ "alert",
1496
+ "alertdialog",
1497
+ "application",
1498
+ "article",
1499
+ "banner",
1500
+ "button",
1501
+ "cell",
1502
+ "checkbox",
1503
+ "columnheader",
1504
+ "combobox",
1505
+ "complementary",
1506
+ "contentinfo",
1507
+ "definition",
1508
+ "dialog",
1509
+ "directory",
1510
+ "document",
1511
+ "feed",
1512
+ "figure",
1513
+ "form",
1514
+ "grid",
1515
+ "gridcell",
1516
+ "group",
1517
+ "heading",
1518
+ "img",
1519
+ "link",
1520
+ "list",
1521
+ "listbox",
1522
+ "listitem",
1523
+ "log",
1524
+ "main",
1525
+ "marquee",
1526
+ "math",
1527
+ "menu",
1528
+ "menubar",
1529
+ "menuitem",
1530
+ "menuitemcheckbox",
1531
+ "menuitemradio",
1532
+ "navigation",
1533
+ "none",
1534
+ "note",
1535
+ "option",
1536
+ "presentation",
1537
+ "progressbar",
1538
+ "radio",
1539
+ "radiogroup",
1540
+ "region",
1541
+ "row",
1542
+ "rowgroup",
1543
+ "rowheader",
1544
+ "scrollbar",
1545
+ "search",
1546
+ "searchbox",
1547
+ "separator",
1548
+ "slider",
1549
+ "spinbutton",
1550
+ "status",
1551
+ "switch",
1552
+ "tab",
1553
+ "table",
1554
+ "tablist",
1555
+ "tabpanel",
1556
+ "term",
1557
+ "textbox",
1558
+ "timer",
1559
+ "toolbar",
1560
+ "tooltip",
1561
+ "tree",
1562
+ "treegrid",
1563
+ "treeitem",
1564
+ ]
1565
+ | Var[
1566
+ Literal[
1567
+ "alert",
1568
+ "alertdialog",
1569
+ "application",
1570
+ "article",
1571
+ "banner",
1572
+ "button",
1573
+ "cell",
1574
+ "checkbox",
1575
+ "columnheader",
1576
+ "combobox",
1577
+ "complementary",
1578
+ "contentinfo",
1579
+ "definition",
1580
+ "dialog",
1581
+ "directory",
1582
+ "document",
1583
+ "feed",
1584
+ "figure",
1585
+ "form",
1586
+ "grid",
1587
+ "gridcell",
1588
+ "group",
1589
+ "heading",
1590
+ "img",
1591
+ "link",
1592
+ "list",
1593
+ "listbox",
1594
+ "listitem",
1595
+ "log",
1596
+ "main",
1597
+ "marquee",
1598
+ "math",
1599
+ "menu",
1600
+ "menubar",
1601
+ "menuitem",
1602
+ "menuitemcheckbox",
1603
+ "menuitemradio",
1604
+ "navigation",
1605
+ "none",
1606
+ "note",
1607
+ "option",
1608
+ "presentation",
1609
+ "progressbar",
1610
+ "radio",
1611
+ "radiogroup",
1612
+ "region",
1613
+ "row",
1614
+ "rowgroup",
1615
+ "rowheader",
1616
+ "scrollbar",
1617
+ "search",
1618
+ "searchbox",
1619
+ "separator",
1620
+ "slider",
1621
+ "spinbutton",
1622
+ "status",
1623
+ "switch",
1624
+ "tab",
1625
+ "table",
1626
+ "tablist",
1627
+ "tabpanel",
1628
+ "term",
1629
+ "textbox",
1630
+ "timer",
1631
+ "toolbar",
1632
+ "tooltip",
1633
+ "tree",
1634
+ "treegrid",
1635
+ "treeitem",
1826
1636
  ]
1827
- ] = None,
1828
- slot: Optional[Union[Var[str], str]] = None,
1829
- spell_check: Optional[Union[Var[bool], bool]] = None,
1830
- tab_index: Optional[Union[Var[int], int]] = None,
1831
- title: Optional[Union[Var[str], str]] = None,
1832
- style: Optional[Style] = None,
1833
- key: Optional[Any] = None,
1834
- id: Optional[Any] = None,
1835
- class_name: Optional[Any] = None,
1836
- autofocus: Optional[bool] = None,
1837
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
1637
+ ]
1638
+ | None = None,
1639
+ slot: Var[str] | str | None = None,
1640
+ spell_check: Var[bool] | bool | None = None,
1641
+ tab_index: Var[int] | int | None = None,
1642
+ title: Var[str] | str | None = None,
1643
+ style: Style | None = None,
1644
+ key: Any | None = None,
1645
+ id: Any | None = None,
1646
+ class_name: Any | None = None,
1647
+ autofocus: bool | None = None,
1648
+ custom_attrs: dict[str, Var | Any] | None = None,
1838
1649
  on_blur: Optional[EventType[()]] = None,
1839
1650
  on_click: Optional[EventType[()]] = None,
1840
1651
  on_context_menu: Optional[EventType[()]] = None,