reflex 0.7.1a3__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 +53 -50
  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.1a3.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.1a3.dist-info → reflex-0.7.2.dist-info}/WHEEL +1 -1
  225. reflex-0.7.1a3.dist-info/RECORD +0 -405
  226. {reflex-0.7.1a3.dist-info → reflex-0.7.2.dist-info}/LICENSE +0 -0
  227. {reflex-0.7.1a3.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.components.el.element import Element
9
9
  from reflex.event import EventType
@@ -18,219 +18,192 @@ class Base(BaseHTML):
18
18
  def create( # type: ignore
19
19
  cls,
20
20
  *children,
21
- href: Optional[Union[Var[str], str]] = None,
22
- target: Optional[Union[Var[str], str]] = None,
23
- access_key: Optional[Union[Var[str], str]] = None,
24
- auto_capitalize: Optional[
25
- Union[
26
- Literal["characters", "none", "off", "on", "sentences", "words"],
27
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
21
+ href: Var[str] | str | None = None,
22
+ target: Var[str] | str | None = None,
23
+ access_key: Var[str] | str | None = None,
24
+ auto_capitalize: Literal[
25
+ "characters", "none", "off", "on", "sentences", "words"
26
+ ]
27
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
28
+ | None = None,
29
+ content_editable: Literal["inherit", "plaintext-only", False, True]
30
+ | Var[Literal["inherit", "plaintext-only", False, True]]
31
+ | None = None,
32
+ context_menu: Var[str] | str | None = None,
33
+ dir: Var[str] | str | None = None,
34
+ draggable: Var[bool] | bool | None = None,
35
+ enter_key_hint: Literal[
36
+ "done", "enter", "go", "next", "previous", "search", "send"
37
+ ]
38
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
39
+ | None = None,
40
+ hidden: Var[bool] | bool | None = None,
41
+ input_mode: Literal[
42
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
43
+ ]
44
+ | Var[
45
+ Literal[
46
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
28
47
  ]
29
- ] = None,
30
- content_editable: Optional[
31
- Union[
32
- Literal["inherit", "plaintext-only", False, True],
33
- Var[Literal["inherit", "plaintext-only", False, True]],
48
+ ]
49
+ | None = None,
50
+ item_prop: Var[str] | str | None = None,
51
+ lang: Var[str] | str | None = None,
52
+ role: Literal[
53
+ "alert",
54
+ "alertdialog",
55
+ "application",
56
+ "article",
57
+ "banner",
58
+ "button",
59
+ "cell",
60
+ "checkbox",
61
+ "columnheader",
62
+ "combobox",
63
+ "complementary",
64
+ "contentinfo",
65
+ "definition",
66
+ "dialog",
67
+ "directory",
68
+ "document",
69
+ "feed",
70
+ "figure",
71
+ "form",
72
+ "grid",
73
+ "gridcell",
74
+ "group",
75
+ "heading",
76
+ "img",
77
+ "link",
78
+ "list",
79
+ "listbox",
80
+ "listitem",
81
+ "log",
82
+ "main",
83
+ "marquee",
84
+ "math",
85
+ "menu",
86
+ "menubar",
87
+ "menuitem",
88
+ "menuitemcheckbox",
89
+ "menuitemradio",
90
+ "navigation",
91
+ "none",
92
+ "note",
93
+ "option",
94
+ "presentation",
95
+ "progressbar",
96
+ "radio",
97
+ "radiogroup",
98
+ "region",
99
+ "row",
100
+ "rowgroup",
101
+ "rowheader",
102
+ "scrollbar",
103
+ "search",
104
+ "searchbox",
105
+ "separator",
106
+ "slider",
107
+ "spinbutton",
108
+ "status",
109
+ "switch",
110
+ "tab",
111
+ "table",
112
+ "tablist",
113
+ "tabpanel",
114
+ "term",
115
+ "textbox",
116
+ "timer",
117
+ "toolbar",
118
+ "tooltip",
119
+ "tree",
120
+ "treegrid",
121
+ "treeitem",
122
+ ]
123
+ | Var[
124
+ Literal[
125
+ "alert",
126
+ "alertdialog",
127
+ "application",
128
+ "article",
129
+ "banner",
130
+ "button",
131
+ "cell",
132
+ "checkbox",
133
+ "columnheader",
134
+ "combobox",
135
+ "complementary",
136
+ "contentinfo",
137
+ "definition",
138
+ "dialog",
139
+ "directory",
140
+ "document",
141
+ "feed",
142
+ "figure",
143
+ "form",
144
+ "grid",
145
+ "gridcell",
146
+ "group",
147
+ "heading",
148
+ "img",
149
+ "link",
150
+ "list",
151
+ "listbox",
152
+ "listitem",
153
+ "log",
154
+ "main",
155
+ "marquee",
156
+ "math",
157
+ "menu",
158
+ "menubar",
159
+ "menuitem",
160
+ "menuitemcheckbox",
161
+ "menuitemradio",
162
+ "navigation",
163
+ "none",
164
+ "note",
165
+ "option",
166
+ "presentation",
167
+ "progressbar",
168
+ "radio",
169
+ "radiogroup",
170
+ "region",
171
+ "row",
172
+ "rowgroup",
173
+ "rowheader",
174
+ "scrollbar",
175
+ "search",
176
+ "searchbox",
177
+ "separator",
178
+ "slider",
179
+ "spinbutton",
180
+ "status",
181
+ "switch",
182
+ "tab",
183
+ "table",
184
+ "tablist",
185
+ "tabpanel",
186
+ "term",
187
+ "textbox",
188
+ "timer",
189
+ "toolbar",
190
+ "tooltip",
191
+ "tree",
192
+ "treegrid",
193
+ "treeitem",
34
194
  ]
35
- ] = None,
36
- context_menu: Optional[Union[Var[str], str]] = None,
37
- dir: Optional[Union[Var[str], str]] = None,
38
- draggable: Optional[Union[Var[bool], bool]] = None,
39
- enter_key_hint: Optional[
40
- Union[
41
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
42
- Var[
43
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
44
- ],
45
- ]
46
- ] = None,
47
- hidden: Optional[Union[Var[bool], bool]] = None,
48
- input_mode: Optional[
49
- Union[
50
- Literal[
51
- "decimal",
52
- "email",
53
- "none",
54
- "numeric",
55
- "search",
56
- "tel",
57
- "text",
58
- "url",
59
- ],
60
- Var[
61
- Literal[
62
- "decimal",
63
- "email",
64
- "none",
65
- "numeric",
66
- "search",
67
- "tel",
68
- "text",
69
- "url",
70
- ]
71
- ],
72
- ]
73
- ] = None,
74
- item_prop: Optional[Union[Var[str], str]] = None,
75
- lang: Optional[Union[Var[str], str]] = None,
76
- role: Optional[
77
- Union[
78
- Literal[
79
- "alert",
80
- "alertdialog",
81
- "application",
82
- "article",
83
- "banner",
84
- "button",
85
- "cell",
86
- "checkbox",
87
- "columnheader",
88
- "combobox",
89
- "complementary",
90
- "contentinfo",
91
- "definition",
92
- "dialog",
93
- "directory",
94
- "document",
95
- "feed",
96
- "figure",
97
- "form",
98
- "grid",
99
- "gridcell",
100
- "group",
101
- "heading",
102
- "img",
103
- "link",
104
- "list",
105
- "listbox",
106
- "listitem",
107
- "log",
108
- "main",
109
- "marquee",
110
- "math",
111
- "menu",
112
- "menubar",
113
- "menuitem",
114
- "menuitemcheckbox",
115
- "menuitemradio",
116
- "navigation",
117
- "none",
118
- "note",
119
- "option",
120
- "presentation",
121
- "progressbar",
122
- "radio",
123
- "radiogroup",
124
- "region",
125
- "row",
126
- "rowgroup",
127
- "rowheader",
128
- "scrollbar",
129
- "search",
130
- "searchbox",
131
- "separator",
132
- "slider",
133
- "spinbutton",
134
- "status",
135
- "switch",
136
- "tab",
137
- "table",
138
- "tablist",
139
- "tabpanel",
140
- "term",
141
- "textbox",
142
- "timer",
143
- "toolbar",
144
- "tooltip",
145
- "tree",
146
- "treegrid",
147
- "treeitem",
148
- ],
149
- Var[
150
- Literal[
151
- "alert",
152
- "alertdialog",
153
- "application",
154
- "article",
155
- "banner",
156
- "button",
157
- "cell",
158
- "checkbox",
159
- "columnheader",
160
- "combobox",
161
- "complementary",
162
- "contentinfo",
163
- "definition",
164
- "dialog",
165
- "directory",
166
- "document",
167
- "feed",
168
- "figure",
169
- "form",
170
- "grid",
171
- "gridcell",
172
- "group",
173
- "heading",
174
- "img",
175
- "link",
176
- "list",
177
- "listbox",
178
- "listitem",
179
- "log",
180
- "main",
181
- "marquee",
182
- "math",
183
- "menu",
184
- "menubar",
185
- "menuitem",
186
- "menuitemcheckbox",
187
- "menuitemradio",
188
- "navigation",
189
- "none",
190
- "note",
191
- "option",
192
- "presentation",
193
- "progressbar",
194
- "radio",
195
- "radiogroup",
196
- "region",
197
- "row",
198
- "rowgroup",
199
- "rowheader",
200
- "scrollbar",
201
- "search",
202
- "searchbox",
203
- "separator",
204
- "slider",
205
- "spinbutton",
206
- "status",
207
- "switch",
208
- "tab",
209
- "table",
210
- "tablist",
211
- "tabpanel",
212
- "term",
213
- "textbox",
214
- "timer",
215
- "toolbar",
216
- "tooltip",
217
- "tree",
218
- "treegrid",
219
- "treeitem",
220
- ]
221
- ],
222
- ]
223
- ] = None,
224
- slot: Optional[Union[Var[str], str]] = None,
225
- spell_check: Optional[Union[Var[bool], bool]] = None,
226
- tab_index: Optional[Union[Var[int], int]] = None,
227
- title: Optional[Union[Var[str], str]] = None,
228
- style: Optional[Style] = None,
229
- key: Optional[Any] = None,
230
- id: Optional[Any] = None,
231
- class_name: Optional[Any] = None,
232
- autofocus: Optional[bool] = None,
233
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
195
+ ]
196
+ | None = None,
197
+ slot: Var[str] | str | None = None,
198
+ spell_check: Var[bool] | bool | None = None,
199
+ tab_index: Var[int] | int | None = None,
200
+ title: Var[str] | str | None = None,
201
+ style: Style | None = None,
202
+ key: Any | None = None,
203
+ id: Any | None = None,
204
+ class_name: Any | None = None,
205
+ autofocus: bool | None = None,
206
+ custom_attrs: dict[str, Var | Any] | None = None,
234
207
  on_blur: Optional[EventType[()]] = None,
235
208
  on_click: Optional[EventType[()]] = None,
236
209
  on_context_menu: Optional[EventType[()]] = None,
@@ -287,217 +260,190 @@ class Head(BaseHTML):
287
260
  def create( # type: ignore
288
261
  cls,
289
262
  *children,
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]],
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"
301
287
  ]
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
- ],
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",
312
434
  ]
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
- ],
339
- ]
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
- ],
489
- ]
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,
@@ -554,258 +500,225 @@ class Link(BaseHTML):
554
500
  def create( # type: ignore
555
501
  cls,
556
502
  *children,
557
- cross_origin: Optional[
558
- Union[
559
- Literal["", "anonymous", "use-credentials"],
560
- Var[Literal["", "anonymous", "use-credentials"]],
561
- ]
562
- ] = None,
563
- href: Optional[Union[Var[str], str]] = None,
564
- href_lang: Optional[Union[Var[str], str]] = None,
565
- integrity: Optional[Union[Var[str], str]] = None,
566
- media: Optional[Union[Var[str], str]] = None,
567
- referrer_policy: Optional[
568
- Union[
569
- Literal[
570
- "",
571
- "no-referrer",
572
- "no-referrer-when-downgrade",
573
- "origin",
574
- "origin-when-cross-origin",
575
- "same-origin",
576
- "strict-origin",
577
- "strict-origin-when-cross-origin",
578
- "unsafe-url",
579
- ],
580
- Var[
581
- Literal[
582
- "",
583
- "no-referrer",
584
- "no-referrer-when-downgrade",
585
- "origin",
586
- "origin-when-cross-origin",
587
- "same-origin",
588
- "strict-origin",
589
- "strict-origin-when-cross-origin",
590
- "unsafe-url",
591
- ]
592
- ],
503
+ cross_origin: Literal["", "anonymous", "use-credentials"]
504
+ | Var[Literal["", "anonymous", "use-credentials"]]
505
+ | None = None,
506
+ href: Var[str] | str | None = None,
507
+ href_lang: Var[str] | str | None = None,
508
+ integrity: Var[str] | str | None = None,
509
+ media: Var[str] | str | None = None,
510
+ referrer_policy: Literal[
511
+ "",
512
+ "no-referrer",
513
+ "no-referrer-when-downgrade",
514
+ "origin",
515
+ "origin-when-cross-origin",
516
+ "same-origin",
517
+ "strict-origin",
518
+ "strict-origin-when-cross-origin",
519
+ "unsafe-url",
520
+ ]
521
+ | Var[
522
+ Literal[
523
+ "",
524
+ "no-referrer",
525
+ "no-referrer-when-downgrade",
526
+ "origin",
527
+ "origin-when-cross-origin",
528
+ "same-origin",
529
+ "strict-origin",
530
+ "strict-origin-when-cross-origin",
531
+ "unsafe-url",
593
532
  ]
594
- ] = None,
595
- rel: Optional[Union[Var[str], str]] = None,
596
- sizes: Optional[Union[Var[str], str]] = None,
597
- type: Optional[Union[Var[str], str]] = None,
598
- access_key: Optional[Union[Var[str], str]] = None,
599
- auto_capitalize: Optional[
600
- Union[
601
- Literal["characters", "none", "off", "on", "sentences", "words"],
602
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
533
+ ]
534
+ | None = None,
535
+ rel: Var[str] | str | None = None,
536
+ sizes: Var[str] | str | None = None,
537
+ type: Var[str] | str | None = None,
538
+ access_key: Var[str] | str | None = None,
539
+ auto_capitalize: Literal[
540
+ "characters", "none", "off", "on", "sentences", "words"
541
+ ]
542
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
543
+ | None = None,
544
+ content_editable: Literal["inherit", "plaintext-only", False, True]
545
+ | Var[Literal["inherit", "plaintext-only", False, True]]
546
+ | None = None,
547
+ context_menu: Var[str] | str | None = None,
548
+ dir: Var[str] | str | None = None,
549
+ draggable: Var[bool] | bool | None = None,
550
+ enter_key_hint: Literal[
551
+ "done", "enter", "go", "next", "previous", "search", "send"
552
+ ]
553
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
554
+ | None = None,
555
+ hidden: Var[bool] | bool | None = None,
556
+ input_mode: Literal[
557
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
558
+ ]
559
+ | Var[
560
+ Literal[
561
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
603
562
  ]
604
- ] = None,
605
- content_editable: Optional[
606
- Union[
607
- Literal["inherit", "plaintext-only", False, True],
608
- Var[Literal["inherit", "plaintext-only", False, True]],
563
+ ]
564
+ | None = None,
565
+ item_prop: Var[str] | str | None = None,
566
+ lang: Var[str] | str | None = None,
567
+ role: Literal[
568
+ "alert",
569
+ "alertdialog",
570
+ "application",
571
+ "article",
572
+ "banner",
573
+ "button",
574
+ "cell",
575
+ "checkbox",
576
+ "columnheader",
577
+ "combobox",
578
+ "complementary",
579
+ "contentinfo",
580
+ "definition",
581
+ "dialog",
582
+ "directory",
583
+ "document",
584
+ "feed",
585
+ "figure",
586
+ "form",
587
+ "grid",
588
+ "gridcell",
589
+ "group",
590
+ "heading",
591
+ "img",
592
+ "link",
593
+ "list",
594
+ "listbox",
595
+ "listitem",
596
+ "log",
597
+ "main",
598
+ "marquee",
599
+ "math",
600
+ "menu",
601
+ "menubar",
602
+ "menuitem",
603
+ "menuitemcheckbox",
604
+ "menuitemradio",
605
+ "navigation",
606
+ "none",
607
+ "note",
608
+ "option",
609
+ "presentation",
610
+ "progressbar",
611
+ "radio",
612
+ "radiogroup",
613
+ "region",
614
+ "row",
615
+ "rowgroup",
616
+ "rowheader",
617
+ "scrollbar",
618
+ "search",
619
+ "searchbox",
620
+ "separator",
621
+ "slider",
622
+ "spinbutton",
623
+ "status",
624
+ "switch",
625
+ "tab",
626
+ "table",
627
+ "tablist",
628
+ "tabpanel",
629
+ "term",
630
+ "textbox",
631
+ "timer",
632
+ "toolbar",
633
+ "tooltip",
634
+ "tree",
635
+ "treegrid",
636
+ "treeitem",
637
+ ]
638
+ | Var[
639
+ Literal[
640
+ "alert",
641
+ "alertdialog",
642
+ "application",
643
+ "article",
644
+ "banner",
645
+ "button",
646
+ "cell",
647
+ "checkbox",
648
+ "columnheader",
649
+ "combobox",
650
+ "complementary",
651
+ "contentinfo",
652
+ "definition",
653
+ "dialog",
654
+ "directory",
655
+ "document",
656
+ "feed",
657
+ "figure",
658
+ "form",
659
+ "grid",
660
+ "gridcell",
661
+ "group",
662
+ "heading",
663
+ "img",
664
+ "link",
665
+ "list",
666
+ "listbox",
667
+ "listitem",
668
+ "log",
669
+ "main",
670
+ "marquee",
671
+ "math",
672
+ "menu",
673
+ "menubar",
674
+ "menuitem",
675
+ "menuitemcheckbox",
676
+ "menuitemradio",
677
+ "navigation",
678
+ "none",
679
+ "note",
680
+ "option",
681
+ "presentation",
682
+ "progressbar",
683
+ "radio",
684
+ "radiogroup",
685
+ "region",
686
+ "row",
687
+ "rowgroup",
688
+ "rowheader",
689
+ "scrollbar",
690
+ "search",
691
+ "searchbox",
692
+ "separator",
693
+ "slider",
694
+ "spinbutton",
695
+ "status",
696
+ "switch",
697
+ "tab",
698
+ "table",
699
+ "tablist",
700
+ "tabpanel",
701
+ "term",
702
+ "textbox",
703
+ "timer",
704
+ "toolbar",
705
+ "tooltip",
706
+ "tree",
707
+ "treegrid",
708
+ "treeitem",
609
709
  ]
610
- ] = None,
611
- context_menu: Optional[Union[Var[str], str]] = None,
612
- dir: Optional[Union[Var[str], str]] = None,
613
- draggable: Optional[Union[Var[bool], bool]] = None,
614
- enter_key_hint: Optional[
615
- Union[
616
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
617
- Var[
618
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
619
- ],
620
- ]
621
- ] = None,
622
- hidden: Optional[Union[Var[bool], bool]] = None,
623
- input_mode: Optional[
624
- Union[
625
- Literal[
626
- "decimal",
627
- "email",
628
- "none",
629
- "numeric",
630
- "search",
631
- "tel",
632
- "text",
633
- "url",
634
- ],
635
- Var[
636
- Literal[
637
- "decimal",
638
- "email",
639
- "none",
640
- "numeric",
641
- "search",
642
- "tel",
643
- "text",
644
- "url",
645
- ]
646
- ],
647
- ]
648
- ] = None,
649
- item_prop: Optional[Union[Var[str], str]] = None,
650
- lang: Optional[Union[Var[str], str]] = None,
651
- role: Optional[
652
- Union[
653
- Literal[
654
- "alert",
655
- "alertdialog",
656
- "application",
657
- "article",
658
- "banner",
659
- "button",
660
- "cell",
661
- "checkbox",
662
- "columnheader",
663
- "combobox",
664
- "complementary",
665
- "contentinfo",
666
- "definition",
667
- "dialog",
668
- "directory",
669
- "document",
670
- "feed",
671
- "figure",
672
- "form",
673
- "grid",
674
- "gridcell",
675
- "group",
676
- "heading",
677
- "img",
678
- "link",
679
- "list",
680
- "listbox",
681
- "listitem",
682
- "log",
683
- "main",
684
- "marquee",
685
- "math",
686
- "menu",
687
- "menubar",
688
- "menuitem",
689
- "menuitemcheckbox",
690
- "menuitemradio",
691
- "navigation",
692
- "none",
693
- "note",
694
- "option",
695
- "presentation",
696
- "progressbar",
697
- "radio",
698
- "radiogroup",
699
- "region",
700
- "row",
701
- "rowgroup",
702
- "rowheader",
703
- "scrollbar",
704
- "search",
705
- "searchbox",
706
- "separator",
707
- "slider",
708
- "spinbutton",
709
- "status",
710
- "switch",
711
- "tab",
712
- "table",
713
- "tablist",
714
- "tabpanel",
715
- "term",
716
- "textbox",
717
- "timer",
718
- "toolbar",
719
- "tooltip",
720
- "tree",
721
- "treegrid",
722
- "treeitem",
723
- ],
724
- Var[
725
- Literal[
726
- "alert",
727
- "alertdialog",
728
- "application",
729
- "article",
730
- "banner",
731
- "button",
732
- "cell",
733
- "checkbox",
734
- "columnheader",
735
- "combobox",
736
- "complementary",
737
- "contentinfo",
738
- "definition",
739
- "dialog",
740
- "directory",
741
- "document",
742
- "feed",
743
- "figure",
744
- "form",
745
- "grid",
746
- "gridcell",
747
- "group",
748
- "heading",
749
- "img",
750
- "link",
751
- "list",
752
- "listbox",
753
- "listitem",
754
- "log",
755
- "main",
756
- "marquee",
757
- "math",
758
- "menu",
759
- "menubar",
760
- "menuitem",
761
- "menuitemcheckbox",
762
- "menuitemradio",
763
- "navigation",
764
- "none",
765
- "note",
766
- "option",
767
- "presentation",
768
- "progressbar",
769
- "radio",
770
- "radiogroup",
771
- "region",
772
- "row",
773
- "rowgroup",
774
- "rowheader",
775
- "scrollbar",
776
- "search",
777
- "searchbox",
778
- "separator",
779
- "slider",
780
- "spinbutton",
781
- "status",
782
- "switch",
783
- "tab",
784
- "table",
785
- "tablist",
786
- "tabpanel",
787
- "term",
788
- "textbox",
789
- "timer",
790
- "toolbar",
791
- "tooltip",
792
- "tree",
793
- "treegrid",
794
- "treeitem",
795
- ]
796
- ],
797
- ]
798
- ] = None,
799
- slot: Optional[Union[Var[str], str]] = None,
800
- spell_check: Optional[Union[Var[bool], bool]] = None,
801
- tab_index: Optional[Union[Var[int], int]] = None,
802
- title: Optional[Union[Var[str], str]] = None,
803
- style: Optional[Style] = None,
804
- key: Optional[Any] = None,
805
- id: Optional[Any] = None,
806
- class_name: Optional[Any] = None,
807
- autofocus: Optional[bool] = None,
808
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
710
+ ]
711
+ | None = None,
712
+ slot: Var[str] | str | None = None,
713
+ spell_check: Var[bool] | bool | None = None,
714
+ tab_index: Var[int] | int | None = None,
715
+ title: Var[str] | str | None = None,
716
+ style: Style | None = None,
717
+ key: Any | None = None,
718
+ id: Any | None = None,
719
+ class_name: Any | None = None,
720
+ autofocus: bool | None = None,
721
+ custom_attrs: dict[str, Var | Any] | None = None,
809
722
  on_blur: Optional[EventType[()]] = None,
810
723
  on_click: Optional[EventType[()]] = None,
811
724
  on_context_menu: Optional[EventType[()]] = None,
@@ -871,221 +784,194 @@ class Meta(BaseHTML):
871
784
  def create( # type: ignore
872
785
  cls,
873
786
  *children,
874
- char_set: Optional[Union[Var[str], str]] = None,
875
- content: Optional[Union[Var[str], str]] = None,
876
- http_equiv: Optional[Union[Var[str], str]] = None,
877
- name: Optional[Union[Var[str], str]] = None,
878
- access_key: Optional[Union[Var[str], str]] = None,
879
- auto_capitalize: Optional[
880
- Union[
881
- Literal["characters", "none", "off", "on", "sentences", "words"],
882
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
883
- ]
884
- ] = None,
885
- content_editable: Optional[
886
- Union[
887
- Literal["inherit", "plaintext-only", False, True],
888
- Var[Literal["inherit", "plaintext-only", False, True]],
889
- ]
890
- ] = None,
891
- context_menu: Optional[Union[Var[str], str]] = None,
892
- dir: Optional[Union[Var[str], str]] = None,
893
- draggable: Optional[Union[Var[bool], bool]] = None,
894
- enter_key_hint: Optional[
895
- Union[
896
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
897
- Var[
898
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
899
- ],
900
- ]
901
- ] = None,
902
- hidden: Optional[Union[Var[bool], bool]] = None,
903
- input_mode: Optional[
904
- Union[
905
- Literal[
906
- "decimal",
907
- "email",
908
- "none",
909
- "numeric",
910
- "search",
911
- "tel",
912
- "text",
913
- "url",
914
- ],
915
- Var[
916
- Literal[
917
- "decimal",
918
- "email",
919
- "none",
920
- "numeric",
921
- "search",
922
- "tel",
923
- "text",
924
- "url",
925
- ]
926
- ],
787
+ char_set: Var[str] | str | None = None,
788
+ content: Var[str] | str | None = None,
789
+ http_equiv: Var[str] | str | None = None,
790
+ name: Var[str] | str | None = None,
791
+ access_key: Var[str] | str | None = None,
792
+ auto_capitalize: Literal[
793
+ "characters", "none", "off", "on", "sentences", "words"
794
+ ]
795
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
796
+ | None = None,
797
+ content_editable: Literal["inherit", "plaintext-only", False, True]
798
+ | Var[Literal["inherit", "plaintext-only", False, True]]
799
+ | None = None,
800
+ context_menu: Var[str] | str | None = None,
801
+ dir: Var[str] | str | None = None,
802
+ draggable: Var[bool] | bool | None = None,
803
+ enter_key_hint: Literal[
804
+ "done", "enter", "go", "next", "previous", "search", "send"
805
+ ]
806
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
807
+ | None = None,
808
+ hidden: Var[bool] | bool | None = None,
809
+ input_mode: Literal[
810
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
811
+ ]
812
+ | Var[
813
+ Literal[
814
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
927
815
  ]
928
- ] = None,
929
- item_prop: Optional[Union[Var[str], str]] = None,
930
- lang: Optional[Union[Var[str], str]] = None,
931
- role: Optional[
932
- Union[
933
- Literal[
934
- "alert",
935
- "alertdialog",
936
- "application",
937
- "article",
938
- "banner",
939
- "button",
940
- "cell",
941
- "checkbox",
942
- "columnheader",
943
- "combobox",
944
- "complementary",
945
- "contentinfo",
946
- "definition",
947
- "dialog",
948
- "directory",
949
- "document",
950
- "feed",
951
- "figure",
952
- "form",
953
- "grid",
954
- "gridcell",
955
- "group",
956
- "heading",
957
- "img",
958
- "link",
959
- "list",
960
- "listbox",
961
- "listitem",
962
- "log",
963
- "main",
964
- "marquee",
965
- "math",
966
- "menu",
967
- "menubar",
968
- "menuitem",
969
- "menuitemcheckbox",
970
- "menuitemradio",
971
- "navigation",
972
- "none",
973
- "note",
974
- "option",
975
- "presentation",
976
- "progressbar",
977
- "radio",
978
- "radiogroup",
979
- "region",
980
- "row",
981
- "rowgroup",
982
- "rowheader",
983
- "scrollbar",
984
- "search",
985
- "searchbox",
986
- "separator",
987
- "slider",
988
- "spinbutton",
989
- "status",
990
- "switch",
991
- "tab",
992
- "table",
993
- "tablist",
994
- "tabpanel",
995
- "term",
996
- "textbox",
997
- "timer",
998
- "toolbar",
999
- "tooltip",
1000
- "tree",
1001
- "treegrid",
1002
- "treeitem",
1003
- ],
1004
- Var[
1005
- Literal[
1006
- "alert",
1007
- "alertdialog",
1008
- "application",
1009
- "article",
1010
- "banner",
1011
- "button",
1012
- "cell",
1013
- "checkbox",
1014
- "columnheader",
1015
- "combobox",
1016
- "complementary",
1017
- "contentinfo",
1018
- "definition",
1019
- "dialog",
1020
- "directory",
1021
- "document",
1022
- "feed",
1023
- "figure",
1024
- "form",
1025
- "grid",
1026
- "gridcell",
1027
- "group",
1028
- "heading",
1029
- "img",
1030
- "link",
1031
- "list",
1032
- "listbox",
1033
- "listitem",
1034
- "log",
1035
- "main",
1036
- "marquee",
1037
- "math",
1038
- "menu",
1039
- "menubar",
1040
- "menuitem",
1041
- "menuitemcheckbox",
1042
- "menuitemradio",
1043
- "navigation",
1044
- "none",
1045
- "note",
1046
- "option",
1047
- "presentation",
1048
- "progressbar",
1049
- "radio",
1050
- "radiogroup",
1051
- "region",
1052
- "row",
1053
- "rowgroup",
1054
- "rowheader",
1055
- "scrollbar",
1056
- "search",
1057
- "searchbox",
1058
- "separator",
1059
- "slider",
1060
- "spinbutton",
1061
- "status",
1062
- "switch",
1063
- "tab",
1064
- "table",
1065
- "tablist",
1066
- "tabpanel",
1067
- "term",
1068
- "textbox",
1069
- "timer",
1070
- "toolbar",
1071
- "tooltip",
1072
- "tree",
1073
- "treegrid",
1074
- "treeitem",
1075
- ]
1076
- ],
816
+ ]
817
+ | None = None,
818
+ item_prop: Var[str] | str | None = None,
819
+ lang: Var[str] | str | None = None,
820
+ role: Literal[
821
+ "alert",
822
+ "alertdialog",
823
+ "application",
824
+ "article",
825
+ "banner",
826
+ "button",
827
+ "cell",
828
+ "checkbox",
829
+ "columnheader",
830
+ "combobox",
831
+ "complementary",
832
+ "contentinfo",
833
+ "definition",
834
+ "dialog",
835
+ "directory",
836
+ "document",
837
+ "feed",
838
+ "figure",
839
+ "form",
840
+ "grid",
841
+ "gridcell",
842
+ "group",
843
+ "heading",
844
+ "img",
845
+ "link",
846
+ "list",
847
+ "listbox",
848
+ "listitem",
849
+ "log",
850
+ "main",
851
+ "marquee",
852
+ "math",
853
+ "menu",
854
+ "menubar",
855
+ "menuitem",
856
+ "menuitemcheckbox",
857
+ "menuitemradio",
858
+ "navigation",
859
+ "none",
860
+ "note",
861
+ "option",
862
+ "presentation",
863
+ "progressbar",
864
+ "radio",
865
+ "radiogroup",
866
+ "region",
867
+ "row",
868
+ "rowgroup",
869
+ "rowheader",
870
+ "scrollbar",
871
+ "search",
872
+ "searchbox",
873
+ "separator",
874
+ "slider",
875
+ "spinbutton",
876
+ "status",
877
+ "switch",
878
+ "tab",
879
+ "table",
880
+ "tablist",
881
+ "tabpanel",
882
+ "term",
883
+ "textbox",
884
+ "timer",
885
+ "toolbar",
886
+ "tooltip",
887
+ "tree",
888
+ "treegrid",
889
+ "treeitem",
890
+ ]
891
+ | Var[
892
+ Literal[
893
+ "alert",
894
+ "alertdialog",
895
+ "application",
896
+ "article",
897
+ "banner",
898
+ "button",
899
+ "cell",
900
+ "checkbox",
901
+ "columnheader",
902
+ "combobox",
903
+ "complementary",
904
+ "contentinfo",
905
+ "definition",
906
+ "dialog",
907
+ "directory",
908
+ "document",
909
+ "feed",
910
+ "figure",
911
+ "form",
912
+ "grid",
913
+ "gridcell",
914
+ "group",
915
+ "heading",
916
+ "img",
917
+ "link",
918
+ "list",
919
+ "listbox",
920
+ "listitem",
921
+ "log",
922
+ "main",
923
+ "marquee",
924
+ "math",
925
+ "menu",
926
+ "menubar",
927
+ "menuitem",
928
+ "menuitemcheckbox",
929
+ "menuitemradio",
930
+ "navigation",
931
+ "none",
932
+ "note",
933
+ "option",
934
+ "presentation",
935
+ "progressbar",
936
+ "radio",
937
+ "radiogroup",
938
+ "region",
939
+ "row",
940
+ "rowgroup",
941
+ "rowheader",
942
+ "scrollbar",
943
+ "search",
944
+ "searchbox",
945
+ "separator",
946
+ "slider",
947
+ "spinbutton",
948
+ "status",
949
+ "switch",
950
+ "tab",
951
+ "table",
952
+ "tablist",
953
+ "tabpanel",
954
+ "term",
955
+ "textbox",
956
+ "timer",
957
+ "toolbar",
958
+ "tooltip",
959
+ "tree",
960
+ "treegrid",
961
+ "treeitem",
1077
962
  ]
1078
- ] = None,
1079
- slot: Optional[Union[Var[str], str]] = None,
1080
- spell_check: Optional[Union[Var[bool], bool]] = None,
1081
- tab_index: Optional[Union[Var[int], int]] = None,
1082
- title: Optional[Union[Var[str], str]] = None,
1083
- style: Optional[Style] = None,
1084
- key: Optional[Any] = None,
1085
- id: Optional[Any] = None,
1086
- class_name: Optional[Any] = None,
1087
- autofocus: Optional[bool] = None,
1088
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
963
+ ]
964
+ | None = None,
965
+ slot: Var[str] | str | None = None,
966
+ spell_check: Var[bool] | bool | None = None,
967
+ tab_index: Var[int] | int | None = None,
968
+ title: Var[str] | str | None = None,
969
+ style: Style | None = None,
970
+ key: Any | None = None,
971
+ id: Any | None = None,
972
+ class_name: Any | None = None,
973
+ autofocus: bool | None = None,
974
+ custom_attrs: dict[str, Var | Any] | None = None,
1089
975
  on_blur: Optional[EventType[()]] = None,
1090
976
  on_click: Optional[EventType[()]] = None,
1091
977
  on_context_menu: Optional[EventType[()]] = None,
@@ -1146,12 +1032,12 @@ class Title(Element):
1146
1032
  def create( # type: ignore
1147
1033
  cls,
1148
1034
  *children,
1149
- style: Optional[Style] = None,
1150
- key: Optional[Any] = None,
1151
- id: Optional[Any] = None,
1152
- class_name: Optional[Any] = None,
1153
- autofocus: Optional[bool] = None,
1154
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
1035
+ style: Style | None = None,
1036
+ key: Any | None = None,
1037
+ id: Any | None = None,
1038
+ class_name: Any | None = None,
1039
+ autofocus: bool | None = None,
1040
+ custom_attrs: dict[str, Var | Any] | None = None,
1155
1041
  on_blur: Optional[EventType[()]] = None,
1156
1042
  on_click: Optional[EventType[()]] = None,
1157
1043
  on_context_menu: Optional[EventType[()]] = None,
@@ -1192,13 +1078,13 @@ class StyleEl(Element):
1192
1078
  def create( # type: ignore
1193
1079
  cls,
1194
1080
  *children,
1195
- media: Optional[Union[Var[str], str]] = None,
1196
- style: Optional[Style] = None,
1197
- key: Optional[Any] = None,
1198
- id: Optional[Any] = None,
1199
- class_name: Optional[Any] = None,
1200
- autofocus: Optional[bool] = None,
1201
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
1081
+ media: Var[str] | str | None = None,
1082
+ style: Style | None = None,
1083
+ key: Any | None = None,
1084
+ id: Any | None = None,
1085
+ class_name: Any | None = None,
1086
+ autofocus: bool | None = None,
1087
+ custom_attrs: dict[str, Var | Any] | None = None,
1202
1088
  on_blur: Optional[EventType[()]] = None,
1203
1089
  on_click: Optional[EventType[()]] = None,
1204
1090
  on_context_menu: Optional[EventType[()]] = None,