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, List, Literal, Optional, Union, overload
6
+ from typing import Any, Literal, Optional, Sequence, overload
7
7
 
8
8
  from reflex import color
9
9
  from reflex.components.base.fragment import Fragment
@@ -21,217 +21,190 @@ class Sidebar(Box, MemoizationLeaf):
21
21
  def create( # type: ignore
22
22
  cls,
23
23
  *children,
24
- access_key: Optional[Union[Var[str], str]] = None,
25
- auto_capitalize: Optional[
26
- Union[
27
- Literal["characters", "none", "off", "on", "sentences", "words"],
28
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
24
+ access_key: Var[str] | str | None = None,
25
+ auto_capitalize: Literal[
26
+ "characters", "none", "off", "on", "sentences", "words"
27
+ ]
28
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
29
+ | None = None,
30
+ content_editable: Literal["inherit", "plaintext-only", False, True]
31
+ | Var[Literal["inherit", "plaintext-only", False, True]]
32
+ | None = None,
33
+ context_menu: Var[str] | str | None = None,
34
+ dir: Var[str] | str | None = None,
35
+ draggable: Var[bool] | bool | None = None,
36
+ enter_key_hint: Literal[
37
+ "done", "enter", "go", "next", "previous", "search", "send"
38
+ ]
39
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
40
+ | None = None,
41
+ hidden: Var[bool] | bool | None = None,
42
+ input_mode: Literal[
43
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
44
+ ]
45
+ | Var[
46
+ Literal[
47
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
29
48
  ]
30
- ] = None,
31
- content_editable: Optional[
32
- Union[
33
- Literal["inherit", "plaintext-only", False, True],
34
- Var[Literal["inherit", "plaintext-only", False, True]],
49
+ ]
50
+ | None = None,
51
+ item_prop: Var[str] | str | None = None,
52
+ lang: Var[str] | str | None = None,
53
+ role: Literal[
54
+ "alert",
55
+ "alertdialog",
56
+ "application",
57
+ "article",
58
+ "banner",
59
+ "button",
60
+ "cell",
61
+ "checkbox",
62
+ "columnheader",
63
+ "combobox",
64
+ "complementary",
65
+ "contentinfo",
66
+ "definition",
67
+ "dialog",
68
+ "directory",
69
+ "document",
70
+ "feed",
71
+ "figure",
72
+ "form",
73
+ "grid",
74
+ "gridcell",
75
+ "group",
76
+ "heading",
77
+ "img",
78
+ "link",
79
+ "list",
80
+ "listbox",
81
+ "listitem",
82
+ "log",
83
+ "main",
84
+ "marquee",
85
+ "math",
86
+ "menu",
87
+ "menubar",
88
+ "menuitem",
89
+ "menuitemcheckbox",
90
+ "menuitemradio",
91
+ "navigation",
92
+ "none",
93
+ "note",
94
+ "option",
95
+ "presentation",
96
+ "progressbar",
97
+ "radio",
98
+ "radiogroup",
99
+ "region",
100
+ "row",
101
+ "rowgroup",
102
+ "rowheader",
103
+ "scrollbar",
104
+ "search",
105
+ "searchbox",
106
+ "separator",
107
+ "slider",
108
+ "spinbutton",
109
+ "status",
110
+ "switch",
111
+ "tab",
112
+ "table",
113
+ "tablist",
114
+ "tabpanel",
115
+ "term",
116
+ "textbox",
117
+ "timer",
118
+ "toolbar",
119
+ "tooltip",
120
+ "tree",
121
+ "treegrid",
122
+ "treeitem",
123
+ ]
124
+ | Var[
125
+ Literal[
126
+ "alert",
127
+ "alertdialog",
128
+ "application",
129
+ "article",
130
+ "banner",
131
+ "button",
132
+ "cell",
133
+ "checkbox",
134
+ "columnheader",
135
+ "combobox",
136
+ "complementary",
137
+ "contentinfo",
138
+ "definition",
139
+ "dialog",
140
+ "directory",
141
+ "document",
142
+ "feed",
143
+ "figure",
144
+ "form",
145
+ "grid",
146
+ "gridcell",
147
+ "group",
148
+ "heading",
149
+ "img",
150
+ "link",
151
+ "list",
152
+ "listbox",
153
+ "listitem",
154
+ "log",
155
+ "main",
156
+ "marquee",
157
+ "math",
158
+ "menu",
159
+ "menubar",
160
+ "menuitem",
161
+ "menuitemcheckbox",
162
+ "menuitemradio",
163
+ "navigation",
164
+ "none",
165
+ "note",
166
+ "option",
167
+ "presentation",
168
+ "progressbar",
169
+ "radio",
170
+ "radiogroup",
171
+ "region",
172
+ "row",
173
+ "rowgroup",
174
+ "rowheader",
175
+ "scrollbar",
176
+ "search",
177
+ "searchbox",
178
+ "separator",
179
+ "slider",
180
+ "spinbutton",
181
+ "status",
182
+ "switch",
183
+ "tab",
184
+ "table",
185
+ "tablist",
186
+ "tabpanel",
187
+ "term",
188
+ "textbox",
189
+ "timer",
190
+ "toolbar",
191
+ "tooltip",
192
+ "tree",
193
+ "treegrid",
194
+ "treeitem",
35
195
  ]
36
- ] = None,
37
- context_menu: Optional[Union[Var[str], str]] = None,
38
- dir: Optional[Union[Var[str], str]] = None,
39
- draggable: Optional[Union[Var[bool], bool]] = None,
40
- enter_key_hint: Optional[
41
- Union[
42
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
43
- Var[
44
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
45
- ],
46
- ]
47
- ] = None,
48
- hidden: Optional[Union[Var[bool], bool]] = None,
49
- input_mode: Optional[
50
- Union[
51
- Literal[
52
- "decimal",
53
- "email",
54
- "none",
55
- "numeric",
56
- "search",
57
- "tel",
58
- "text",
59
- "url",
60
- ],
61
- Var[
62
- Literal[
63
- "decimal",
64
- "email",
65
- "none",
66
- "numeric",
67
- "search",
68
- "tel",
69
- "text",
70
- "url",
71
- ]
72
- ],
73
- ]
74
- ] = None,
75
- item_prop: Optional[Union[Var[str], str]] = None,
76
- lang: Optional[Union[Var[str], str]] = None,
77
- role: Optional[
78
- Union[
79
- Literal[
80
- "alert",
81
- "alertdialog",
82
- "application",
83
- "article",
84
- "banner",
85
- "button",
86
- "cell",
87
- "checkbox",
88
- "columnheader",
89
- "combobox",
90
- "complementary",
91
- "contentinfo",
92
- "definition",
93
- "dialog",
94
- "directory",
95
- "document",
96
- "feed",
97
- "figure",
98
- "form",
99
- "grid",
100
- "gridcell",
101
- "group",
102
- "heading",
103
- "img",
104
- "link",
105
- "list",
106
- "listbox",
107
- "listitem",
108
- "log",
109
- "main",
110
- "marquee",
111
- "math",
112
- "menu",
113
- "menubar",
114
- "menuitem",
115
- "menuitemcheckbox",
116
- "menuitemradio",
117
- "navigation",
118
- "none",
119
- "note",
120
- "option",
121
- "presentation",
122
- "progressbar",
123
- "radio",
124
- "radiogroup",
125
- "region",
126
- "row",
127
- "rowgroup",
128
- "rowheader",
129
- "scrollbar",
130
- "search",
131
- "searchbox",
132
- "separator",
133
- "slider",
134
- "spinbutton",
135
- "status",
136
- "switch",
137
- "tab",
138
- "table",
139
- "tablist",
140
- "tabpanel",
141
- "term",
142
- "textbox",
143
- "timer",
144
- "toolbar",
145
- "tooltip",
146
- "tree",
147
- "treegrid",
148
- "treeitem",
149
- ],
150
- Var[
151
- Literal[
152
- "alert",
153
- "alertdialog",
154
- "application",
155
- "article",
156
- "banner",
157
- "button",
158
- "cell",
159
- "checkbox",
160
- "columnheader",
161
- "combobox",
162
- "complementary",
163
- "contentinfo",
164
- "definition",
165
- "dialog",
166
- "directory",
167
- "document",
168
- "feed",
169
- "figure",
170
- "form",
171
- "grid",
172
- "gridcell",
173
- "group",
174
- "heading",
175
- "img",
176
- "link",
177
- "list",
178
- "listbox",
179
- "listitem",
180
- "log",
181
- "main",
182
- "marquee",
183
- "math",
184
- "menu",
185
- "menubar",
186
- "menuitem",
187
- "menuitemcheckbox",
188
- "menuitemradio",
189
- "navigation",
190
- "none",
191
- "note",
192
- "option",
193
- "presentation",
194
- "progressbar",
195
- "radio",
196
- "radiogroup",
197
- "region",
198
- "row",
199
- "rowgroup",
200
- "rowheader",
201
- "scrollbar",
202
- "search",
203
- "searchbox",
204
- "separator",
205
- "slider",
206
- "spinbutton",
207
- "status",
208
- "switch",
209
- "tab",
210
- "table",
211
- "tablist",
212
- "tabpanel",
213
- "term",
214
- "textbox",
215
- "timer",
216
- "toolbar",
217
- "tooltip",
218
- "tree",
219
- "treegrid",
220
- "treeitem",
221
- ]
222
- ],
223
- ]
224
- ] = None,
225
- slot: Optional[Union[Var[str], str]] = None,
226
- spell_check: Optional[Union[Var[bool], bool]] = None,
227
- tab_index: Optional[Union[Var[int], int]] = None,
228
- title: Optional[Union[Var[str], str]] = None,
229
- style: Optional[Style] = None,
230
- key: Optional[Any] = None,
231
- id: Optional[Any] = None,
232
- class_name: Optional[Any] = None,
233
- autofocus: Optional[bool] = None,
234
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
196
+ ]
197
+ | None = None,
198
+ slot: Var[str] | str | None = None,
199
+ spell_check: Var[bool] | bool | None = None,
200
+ tab_index: Var[int] | int | None = None,
201
+ title: Var[str] | str | None = None,
202
+ style: Style | None = None,
203
+ key: Any | None = None,
204
+ id: Any | None = None,
205
+ class_name: Any | None = None,
206
+ autofocus: bool | None = None,
207
+ custom_attrs: dict[str, Var | Any] | None = None,
235
208
  on_blur: Optional[EventType[()]] = None,
236
209
  on_click: Optional[EventType[()]] = None,
237
210
  on_context_menu: Optional[EventType[()]] = None,
@@ -261,7 +234,7 @@ class Sidebar(Box, MemoizationLeaf):
261
234
  ...
262
235
 
263
236
  def add_style(self) -> dict[str, Any] | None: ...
264
- def add_hooks(self) -> List[Var]: ...
237
+ def add_hooks(self) -> list[Var]: ...
265
238
 
266
239
  class StatefulSidebar(ComponentState):
267
240
  open: bool
@@ -276,31 +249,28 @@ class DrawerSidebar(DrawerRoot):
276
249
  def create( # type: ignore
277
250
  cls,
278
251
  *children,
279
- default_open: Optional[Union[Var[bool], bool]] = None,
280
- open: Optional[Union[Var[bool], bool]] = None,
281
- modal: Optional[Union[Var[bool], bool]] = None,
282
- direction: Optional[
283
- Union[
284
- Literal["bottom", "left", "right", "top"],
285
- Var[Literal["bottom", "left", "right", "top"]],
286
- ]
287
- ] = None,
288
- dismissible: Optional[Union[Var[bool], bool]] = None,
289
- handle_only: Optional[Union[Var[bool], bool]] = None,
290
- snap_points: Optional[List[Union[float, str]]] = None,
291
- fade_from_index: Optional[Union[Var[int], int]] = None,
292
- scroll_lock_timeout: Optional[Union[Var[int], int]] = None,
293
- prevent_scroll_restoration: Optional[Union[Var[bool], bool]] = None,
294
- should_scale_background: Optional[Union[Var[bool], bool]] = None,
295
- close_threshold: Optional[Union[Var[float], float]] = None,
296
- as_child: Optional[Union[Var[bool], bool]] = None,
297
- style: Optional[Style] = None,
298
- key: Optional[Any] = None,
299
- id: Optional[Any] = None,
300
- class_name: Optional[Any] = None,
301
- autofocus: Optional[bool] = None,
302
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
303
- on_animation_end: Optional[Union[EventType[()], EventType[bool]]] = None,
252
+ default_open: Var[bool] | bool | None = None,
253
+ open: Var[bool] | bool | None = None,
254
+ modal: Var[bool] | bool | None = None,
255
+ direction: Literal["bottom", "left", "right", "top"]
256
+ | Var[Literal["bottom", "left", "right", "top"]]
257
+ | None = None,
258
+ dismissible: Var[bool] | bool | None = None,
259
+ handle_only: Var[bool] | bool | None = None,
260
+ snap_points: Sequence[float | str] | None = None,
261
+ fade_from_index: Var[int] | int | None = None,
262
+ scroll_lock_timeout: Var[int] | int | None = None,
263
+ prevent_scroll_restoration: Var[bool] | bool | None = None,
264
+ should_scale_background: Var[bool] | bool | None = None,
265
+ close_threshold: Var[float] | float | None = None,
266
+ as_child: Var[bool] | bool | None = None,
267
+ style: Style | None = None,
268
+ key: Any | None = None,
269
+ id: Any | None = None,
270
+ class_name: Any | None = None,
271
+ autofocus: bool | None = None,
272
+ custom_attrs: dict[str, Var | Any] | None = None,
273
+ on_animation_end: Optional[EventType[()] | EventType[bool]] = None,
304
274
  on_blur: Optional[EventType[()]] = None,
305
275
  on_click: Optional[EventType[()]] = None,
306
276
  on_context_menu: Optional[EventType[()]] = None,
@@ -314,7 +284,7 @@ class DrawerSidebar(DrawerRoot):
314
284
  on_mouse_out: Optional[EventType[()]] = None,
315
285
  on_mouse_over: Optional[EventType[()]] = None,
316
286
  on_mouse_up: Optional[EventType[()]] = None,
317
- on_open_change: Optional[Union[EventType[()], EventType[bool]]] = None,
287
+ on_open_change: Optional[EventType[()] | EventType[bool]] = None,
318
288
  on_scroll: Optional[EventType[()]] = None,
319
289
  on_unmount: Optional[EventType[()]] = None,
320
290
  **props,
@@ -344,12 +314,12 @@ class SidebarTrigger(Fragment):
344
314
  def create( # type: ignore
345
315
  cls,
346
316
  *children,
347
- style: Optional[Style] = None,
348
- key: Optional[Any] = None,
349
- id: Optional[Any] = None,
350
- class_name: Optional[Any] = None,
351
- autofocus: Optional[bool] = None,
352
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
317
+ style: Style | None = None,
318
+ key: Any | None = None,
319
+ id: Any | None = None,
320
+ class_name: Any | None = None,
321
+ autofocus: bool | None = None,
322
+ custom_attrs: dict[str, Var | Any] | None = None,
353
323
  on_blur: Optional[EventType[()]] = None,
354
324
  on_click: Optional[EventType[()]] = None,
355
325
  on_context_menu: Optional[EventType[()]] = None,
@@ -384,218 +354,191 @@ class Layout(Box):
384
354
  def create( # type: ignore
385
355
  cls,
386
356
  *children,
387
- sidebar: Optional[Component] = None,
388
- access_key: Optional[Union[Var[str], str]] = None,
389
- auto_capitalize: Optional[
390
- Union[
391
- Literal["characters", "none", "off", "on", "sentences", "words"],
392
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
393
- ]
394
- ] = None,
395
- content_editable: Optional[
396
- Union[
397
- Literal["inherit", "plaintext-only", False, True],
398
- Var[Literal["inherit", "plaintext-only", False, True]],
357
+ sidebar: Component | None = None,
358
+ access_key: Var[str] | str | None = None,
359
+ auto_capitalize: Literal[
360
+ "characters", "none", "off", "on", "sentences", "words"
361
+ ]
362
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
363
+ | None = None,
364
+ content_editable: Literal["inherit", "plaintext-only", False, True]
365
+ | Var[Literal["inherit", "plaintext-only", False, True]]
366
+ | None = None,
367
+ context_menu: Var[str] | str | None = None,
368
+ dir: Var[str] | str | None = None,
369
+ draggable: Var[bool] | bool | None = None,
370
+ enter_key_hint: Literal[
371
+ "done", "enter", "go", "next", "previous", "search", "send"
372
+ ]
373
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
374
+ | None = None,
375
+ hidden: Var[bool] | bool | None = None,
376
+ input_mode: Literal[
377
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
378
+ ]
379
+ | Var[
380
+ Literal[
381
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
399
382
  ]
400
- ] = None,
401
- context_menu: Optional[Union[Var[str], str]] = None,
402
- dir: Optional[Union[Var[str], str]] = None,
403
- draggable: Optional[Union[Var[bool], bool]] = None,
404
- enter_key_hint: Optional[
405
- Union[
406
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
407
- Var[
408
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
409
- ],
383
+ ]
384
+ | None = None,
385
+ item_prop: Var[str] | str | None = None,
386
+ lang: Var[str] | str | None = None,
387
+ role: Literal[
388
+ "alert",
389
+ "alertdialog",
390
+ "application",
391
+ "article",
392
+ "banner",
393
+ "button",
394
+ "cell",
395
+ "checkbox",
396
+ "columnheader",
397
+ "combobox",
398
+ "complementary",
399
+ "contentinfo",
400
+ "definition",
401
+ "dialog",
402
+ "directory",
403
+ "document",
404
+ "feed",
405
+ "figure",
406
+ "form",
407
+ "grid",
408
+ "gridcell",
409
+ "group",
410
+ "heading",
411
+ "img",
412
+ "link",
413
+ "list",
414
+ "listbox",
415
+ "listitem",
416
+ "log",
417
+ "main",
418
+ "marquee",
419
+ "math",
420
+ "menu",
421
+ "menubar",
422
+ "menuitem",
423
+ "menuitemcheckbox",
424
+ "menuitemradio",
425
+ "navigation",
426
+ "none",
427
+ "note",
428
+ "option",
429
+ "presentation",
430
+ "progressbar",
431
+ "radio",
432
+ "radiogroup",
433
+ "region",
434
+ "row",
435
+ "rowgroup",
436
+ "rowheader",
437
+ "scrollbar",
438
+ "search",
439
+ "searchbox",
440
+ "separator",
441
+ "slider",
442
+ "spinbutton",
443
+ "status",
444
+ "switch",
445
+ "tab",
446
+ "table",
447
+ "tablist",
448
+ "tabpanel",
449
+ "term",
450
+ "textbox",
451
+ "timer",
452
+ "toolbar",
453
+ "tooltip",
454
+ "tree",
455
+ "treegrid",
456
+ "treeitem",
457
+ ]
458
+ | Var[
459
+ Literal[
460
+ "alert",
461
+ "alertdialog",
462
+ "application",
463
+ "article",
464
+ "banner",
465
+ "button",
466
+ "cell",
467
+ "checkbox",
468
+ "columnheader",
469
+ "combobox",
470
+ "complementary",
471
+ "contentinfo",
472
+ "definition",
473
+ "dialog",
474
+ "directory",
475
+ "document",
476
+ "feed",
477
+ "figure",
478
+ "form",
479
+ "grid",
480
+ "gridcell",
481
+ "group",
482
+ "heading",
483
+ "img",
484
+ "link",
485
+ "list",
486
+ "listbox",
487
+ "listitem",
488
+ "log",
489
+ "main",
490
+ "marquee",
491
+ "math",
492
+ "menu",
493
+ "menubar",
494
+ "menuitem",
495
+ "menuitemcheckbox",
496
+ "menuitemradio",
497
+ "navigation",
498
+ "none",
499
+ "note",
500
+ "option",
501
+ "presentation",
502
+ "progressbar",
503
+ "radio",
504
+ "radiogroup",
505
+ "region",
506
+ "row",
507
+ "rowgroup",
508
+ "rowheader",
509
+ "scrollbar",
510
+ "search",
511
+ "searchbox",
512
+ "separator",
513
+ "slider",
514
+ "spinbutton",
515
+ "status",
516
+ "switch",
517
+ "tab",
518
+ "table",
519
+ "tablist",
520
+ "tabpanel",
521
+ "term",
522
+ "textbox",
523
+ "timer",
524
+ "toolbar",
525
+ "tooltip",
526
+ "tree",
527
+ "treegrid",
528
+ "treeitem",
410
529
  ]
411
- ] = None,
412
- hidden: Optional[Union[Var[bool], bool]] = None,
413
- input_mode: Optional[
414
- Union[
415
- Literal[
416
- "decimal",
417
- "email",
418
- "none",
419
- "numeric",
420
- "search",
421
- "tel",
422
- "text",
423
- "url",
424
- ],
425
- Var[
426
- Literal[
427
- "decimal",
428
- "email",
429
- "none",
430
- "numeric",
431
- "search",
432
- "tel",
433
- "text",
434
- "url",
435
- ]
436
- ],
437
- ]
438
- ] = None,
439
- item_prop: Optional[Union[Var[str], str]] = None,
440
- lang: Optional[Union[Var[str], str]] = None,
441
- role: Optional[
442
- Union[
443
- Literal[
444
- "alert",
445
- "alertdialog",
446
- "application",
447
- "article",
448
- "banner",
449
- "button",
450
- "cell",
451
- "checkbox",
452
- "columnheader",
453
- "combobox",
454
- "complementary",
455
- "contentinfo",
456
- "definition",
457
- "dialog",
458
- "directory",
459
- "document",
460
- "feed",
461
- "figure",
462
- "form",
463
- "grid",
464
- "gridcell",
465
- "group",
466
- "heading",
467
- "img",
468
- "link",
469
- "list",
470
- "listbox",
471
- "listitem",
472
- "log",
473
- "main",
474
- "marquee",
475
- "math",
476
- "menu",
477
- "menubar",
478
- "menuitem",
479
- "menuitemcheckbox",
480
- "menuitemradio",
481
- "navigation",
482
- "none",
483
- "note",
484
- "option",
485
- "presentation",
486
- "progressbar",
487
- "radio",
488
- "radiogroup",
489
- "region",
490
- "row",
491
- "rowgroup",
492
- "rowheader",
493
- "scrollbar",
494
- "search",
495
- "searchbox",
496
- "separator",
497
- "slider",
498
- "spinbutton",
499
- "status",
500
- "switch",
501
- "tab",
502
- "table",
503
- "tablist",
504
- "tabpanel",
505
- "term",
506
- "textbox",
507
- "timer",
508
- "toolbar",
509
- "tooltip",
510
- "tree",
511
- "treegrid",
512
- "treeitem",
513
- ],
514
- Var[
515
- Literal[
516
- "alert",
517
- "alertdialog",
518
- "application",
519
- "article",
520
- "banner",
521
- "button",
522
- "cell",
523
- "checkbox",
524
- "columnheader",
525
- "combobox",
526
- "complementary",
527
- "contentinfo",
528
- "definition",
529
- "dialog",
530
- "directory",
531
- "document",
532
- "feed",
533
- "figure",
534
- "form",
535
- "grid",
536
- "gridcell",
537
- "group",
538
- "heading",
539
- "img",
540
- "link",
541
- "list",
542
- "listbox",
543
- "listitem",
544
- "log",
545
- "main",
546
- "marquee",
547
- "math",
548
- "menu",
549
- "menubar",
550
- "menuitem",
551
- "menuitemcheckbox",
552
- "menuitemradio",
553
- "navigation",
554
- "none",
555
- "note",
556
- "option",
557
- "presentation",
558
- "progressbar",
559
- "radio",
560
- "radiogroup",
561
- "region",
562
- "row",
563
- "rowgroup",
564
- "rowheader",
565
- "scrollbar",
566
- "search",
567
- "searchbox",
568
- "separator",
569
- "slider",
570
- "spinbutton",
571
- "status",
572
- "switch",
573
- "tab",
574
- "table",
575
- "tablist",
576
- "tabpanel",
577
- "term",
578
- "textbox",
579
- "timer",
580
- "toolbar",
581
- "tooltip",
582
- "tree",
583
- "treegrid",
584
- "treeitem",
585
- ]
586
- ],
587
- ]
588
- ] = None,
589
- slot: Optional[Union[Var[str], str]] = None,
590
- spell_check: Optional[Union[Var[bool], bool]] = None,
591
- tab_index: Optional[Union[Var[int], int]] = None,
592
- title: Optional[Union[Var[str], str]] = None,
593
- style: Optional[Style] = None,
594
- key: Optional[Any] = None,
595
- id: Optional[Any] = None,
596
- class_name: Optional[Any] = None,
597
- autofocus: Optional[bool] = None,
598
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
530
+ ]
531
+ | None = None,
532
+ slot: Var[str] | str | None = None,
533
+ spell_check: Var[bool] | bool | None = None,
534
+ tab_index: Var[int] | int | None = None,
535
+ title: Var[str] | str | None = None,
536
+ style: Style | None = None,
537
+ key: Any | None = None,
538
+ id: Any | None = None,
539
+ class_name: Any | None = None,
540
+ autofocus: bool | None = None,
541
+ custom_attrs: dict[str, Var | Any] | None = None,
599
542
  on_blur: Optional[EventType[()]] = None,
600
543
  on_click: Optional[EventType[()]] = None,
601
544
  on_context_menu: Optional[EventType[()]] = None,
@@ -633,218 +576,191 @@ class LayoutNamespace(ComponentNamespace):
633
576
  @staticmethod
634
577
  def __call__(
635
578
  *children,
636
- sidebar: Optional[Component] = None,
637
- access_key: Optional[Union[Var[str], str]] = None,
638
- auto_capitalize: Optional[
639
- Union[
640
- Literal["characters", "none", "off", "on", "sentences", "words"],
641
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
642
- ]
643
- ] = None,
644
- content_editable: Optional[
645
- Union[
646
- Literal["inherit", "plaintext-only", False, True],
647
- Var[Literal["inherit", "plaintext-only", False, True]],
648
- ]
649
- ] = None,
650
- context_menu: Optional[Union[Var[str], str]] = None,
651
- dir: Optional[Union[Var[str], str]] = None,
652
- draggable: Optional[Union[Var[bool], bool]] = None,
653
- enter_key_hint: Optional[
654
- Union[
655
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
656
- Var[
657
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
658
- ],
659
- ]
660
- ] = None,
661
- hidden: Optional[Union[Var[bool], bool]] = None,
662
- input_mode: Optional[
663
- Union[
664
- Literal[
665
- "decimal",
666
- "email",
667
- "none",
668
- "numeric",
669
- "search",
670
- "tel",
671
- "text",
672
- "url",
673
- ],
674
- Var[
675
- Literal[
676
- "decimal",
677
- "email",
678
- "none",
679
- "numeric",
680
- "search",
681
- "tel",
682
- "text",
683
- "url",
684
- ]
685
- ],
579
+ sidebar: Component | None = None,
580
+ access_key: Var[str] | str | None = None,
581
+ auto_capitalize: Literal[
582
+ "characters", "none", "off", "on", "sentences", "words"
583
+ ]
584
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
585
+ | None = None,
586
+ content_editable: Literal["inherit", "plaintext-only", False, True]
587
+ | Var[Literal["inherit", "plaintext-only", False, True]]
588
+ | None = None,
589
+ context_menu: Var[str] | str | None = None,
590
+ dir: Var[str] | str | None = None,
591
+ draggable: Var[bool] | bool | None = None,
592
+ enter_key_hint: Literal[
593
+ "done", "enter", "go", "next", "previous", "search", "send"
594
+ ]
595
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
596
+ | None = None,
597
+ hidden: Var[bool] | bool | None = None,
598
+ input_mode: Literal[
599
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
600
+ ]
601
+ | Var[
602
+ Literal[
603
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
686
604
  ]
687
- ] = None,
688
- item_prop: Optional[Union[Var[str], str]] = None,
689
- lang: Optional[Union[Var[str], str]] = None,
690
- role: Optional[
691
- Union[
692
- Literal[
693
- "alert",
694
- "alertdialog",
695
- "application",
696
- "article",
697
- "banner",
698
- "button",
699
- "cell",
700
- "checkbox",
701
- "columnheader",
702
- "combobox",
703
- "complementary",
704
- "contentinfo",
705
- "definition",
706
- "dialog",
707
- "directory",
708
- "document",
709
- "feed",
710
- "figure",
711
- "form",
712
- "grid",
713
- "gridcell",
714
- "group",
715
- "heading",
716
- "img",
717
- "link",
718
- "list",
719
- "listbox",
720
- "listitem",
721
- "log",
722
- "main",
723
- "marquee",
724
- "math",
725
- "menu",
726
- "menubar",
727
- "menuitem",
728
- "menuitemcheckbox",
729
- "menuitemradio",
730
- "navigation",
731
- "none",
732
- "note",
733
- "option",
734
- "presentation",
735
- "progressbar",
736
- "radio",
737
- "radiogroup",
738
- "region",
739
- "row",
740
- "rowgroup",
741
- "rowheader",
742
- "scrollbar",
743
- "search",
744
- "searchbox",
745
- "separator",
746
- "slider",
747
- "spinbutton",
748
- "status",
749
- "switch",
750
- "tab",
751
- "table",
752
- "tablist",
753
- "tabpanel",
754
- "term",
755
- "textbox",
756
- "timer",
757
- "toolbar",
758
- "tooltip",
759
- "tree",
760
- "treegrid",
761
- "treeitem",
762
- ],
763
- Var[
764
- Literal[
765
- "alert",
766
- "alertdialog",
767
- "application",
768
- "article",
769
- "banner",
770
- "button",
771
- "cell",
772
- "checkbox",
773
- "columnheader",
774
- "combobox",
775
- "complementary",
776
- "contentinfo",
777
- "definition",
778
- "dialog",
779
- "directory",
780
- "document",
781
- "feed",
782
- "figure",
783
- "form",
784
- "grid",
785
- "gridcell",
786
- "group",
787
- "heading",
788
- "img",
789
- "link",
790
- "list",
791
- "listbox",
792
- "listitem",
793
- "log",
794
- "main",
795
- "marquee",
796
- "math",
797
- "menu",
798
- "menubar",
799
- "menuitem",
800
- "menuitemcheckbox",
801
- "menuitemradio",
802
- "navigation",
803
- "none",
804
- "note",
805
- "option",
806
- "presentation",
807
- "progressbar",
808
- "radio",
809
- "radiogroup",
810
- "region",
811
- "row",
812
- "rowgroup",
813
- "rowheader",
814
- "scrollbar",
815
- "search",
816
- "searchbox",
817
- "separator",
818
- "slider",
819
- "spinbutton",
820
- "status",
821
- "switch",
822
- "tab",
823
- "table",
824
- "tablist",
825
- "tabpanel",
826
- "term",
827
- "textbox",
828
- "timer",
829
- "toolbar",
830
- "tooltip",
831
- "tree",
832
- "treegrid",
833
- "treeitem",
834
- ]
835
- ],
605
+ ]
606
+ | None = None,
607
+ item_prop: Var[str] | str | None = None,
608
+ lang: Var[str] | str | None = None,
609
+ role: Literal[
610
+ "alert",
611
+ "alertdialog",
612
+ "application",
613
+ "article",
614
+ "banner",
615
+ "button",
616
+ "cell",
617
+ "checkbox",
618
+ "columnheader",
619
+ "combobox",
620
+ "complementary",
621
+ "contentinfo",
622
+ "definition",
623
+ "dialog",
624
+ "directory",
625
+ "document",
626
+ "feed",
627
+ "figure",
628
+ "form",
629
+ "grid",
630
+ "gridcell",
631
+ "group",
632
+ "heading",
633
+ "img",
634
+ "link",
635
+ "list",
636
+ "listbox",
637
+ "listitem",
638
+ "log",
639
+ "main",
640
+ "marquee",
641
+ "math",
642
+ "menu",
643
+ "menubar",
644
+ "menuitem",
645
+ "menuitemcheckbox",
646
+ "menuitemradio",
647
+ "navigation",
648
+ "none",
649
+ "note",
650
+ "option",
651
+ "presentation",
652
+ "progressbar",
653
+ "radio",
654
+ "radiogroup",
655
+ "region",
656
+ "row",
657
+ "rowgroup",
658
+ "rowheader",
659
+ "scrollbar",
660
+ "search",
661
+ "searchbox",
662
+ "separator",
663
+ "slider",
664
+ "spinbutton",
665
+ "status",
666
+ "switch",
667
+ "tab",
668
+ "table",
669
+ "tablist",
670
+ "tabpanel",
671
+ "term",
672
+ "textbox",
673
+ "timer",
674
+ "toolbar",
675
+ "tooltip",
676
+ "tree",
677
+ "treegrid",
678
+ "treeitem",
679
+ ]
680
+ | Var[
681
+ Literal[
682
+ "alert",
683
+ "alertdialog",
684
+ "application",
685
+ "article",
686
+ "banner",
687
+ "button",
688
+ "cell",
689
+ "checkbox",
690
+ "columnheader",
691
+ "combobox",
692
+ "complementary",
693
+ "contentinfo",
694
+ "definition",
695
+ "dialog",
696
+ "directory",
697
+ "document",
698
+ "feed",
699
+ "figure",
700
+ "form",
701
+ "grid",
702
+ "gridcell",
703
+ "group",
704
+ "heading",
705
+ "img",
706
+ "link",
707
+ "list",
708
+ "listbox",
709
+ "listitem",
710
+ "log",
711
+ "main",
712
+ "marquee",
713
+ "math",
714
+ "menu",
715
+ "menubar",
716
+ "menuitem",
717
+ "menuitemcheckbox",
718
+ "menuitemradio",
719
+ "navigation",
720
+ "none",
721
+ "note",
722
+ "option",
723
+ "presentation",
724
+ "progressbar",
725
+ "radio",
726
+ "radiogroup",
727
+ "region",
728
+ "row",
729
+ "rowgroup",
730
+ "rowheader",
731
+ "scrollbar",
732
+ "search",
733
+ "searchbox",
734
+ "separator",
735
+ "slider",
736
+ "spinbutton",
737
+ "status",
738
+ "switch",
739
+ "tab",
740
+ "table",
741
+ "tablist",
742
+ "tabpanel",
743
+ "term",
744
+ "textbox",
745
+ "timer",
746
+ "toolbar",
747
+ "tooltip",
748
+ "tree",
749
+ "treegrid",
750
+ "treeitem",
836
751
  ]
837
- ] = None,
838
- slot: Optional[Union[Var[str], str]] = None,
839
- spell_check: Optional[Union[Var[bool], bool]] = None,
840
- tab_index: Optional[Union[Var[int], int]] = None,
841
- title: Optional[Union[Var[str], str]] = None,
842
- style: Optional[Style] = None,
843
- key: Optional[Any] = None,
844
- id: Optional[Any] = None,
845
- class_name: Optional[Any] = None,
846
- autofocus: Optional[bool] = None,
847
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
752
+ ]
753
+ | None = None,
754
+ slot: Var[str] | str | None = None,
755
+ spell_check: Var[bool] | bool | None = None,
756
+ tab_index: Var[int] | int | None = None,
757
+ title: Var[str] | str | None = None,
758
+ style: Style | None = None,
759
+ key: Any | None = None,
760
+ id: Any | None = None,
761
+ class_name: Any | None = None,
762
+ autofocus: bool | None = None,
763
+ custom_attrs: dict[str, Var | Any] | None = None,
848
764
  on_blur: Optional[EventType[()]] = None,
849
765
  on_click: Optional[EventType[()]] = None,
850
766
  on_context_menu: Optional[EventType[()]] = None,