reflex 0.7.1a4__py3-none-any.whl → 0.7.2__py3-none-any.whl

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

Potentially problematic release.


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

Files changed (227) hide show
  1. reflex/.templates/jinja/web/utils/context.js.jinja2 +8 -8
  2. reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +3 -3
  3. reflex/.templates/web/utils/state.js +18 -18
  4. reflex/admin.py +1 -2
  5. reflex/app.py +46 -49
  6. reflex/app_mixins/lifespan.py +2 -2
  7. reflex/app_mixins/middleware.py +1 -2
  8. reflex/assets.py +1 -2
  9. reflex/base.py +2 -2
  10. reflex/compiler/compiler.py +51 -16
  11. reflex/compiler/utils.py +4 -13
  12. reflex/components/base/app_wrap.pyi +7 -7
  13. reflex/components/base/bare.py +3 -3
  14. reflex/components/base/body.pyi +7 -7
  15. reflex/components/base/document.py +1 -3
  16. reflex/components/base/document.pyi +32 -32
  17. reflex/components/base/error_boundary.py +2 -4
  18. reflex/components/base/error_boundary.pyi +11 -13
  19. reflex/components/base/fragment.pyi +7 -7
  20. reflex/components/base/head.pyi +13 -13
  21. reflex/components/base/link.pyi +22 -22
  22. reflex/components/base/meta.py +5 -7
  23. reflex/components/base/meta.pyi +40 -40
  24. reflex/components/base/script.pyi +11 -14
  25. reflex/components/base/strict_mode.pyi +7 -7
  26. reflex/components/component.py +188 -113
  27. reflex/components/core/auto_scroll.py +8 -1
  28. reflex/components/core/auto_scroll.pyi +183 -210
  29. reflex/components/core/banner.py +2 -4
  30. reflex/components/core/banner.pyi +390 -444
  31. reflex/components/core/breakpoints.py +5 -5
  32. reflex/components/core/client_side_routing.pyi +14 -14
  33. reflex/components/core/clipboard.py +4 -4
  34. reflex/components/core/clipboard.pyi +12 -14
  35. reflex/components/core/cond.py +17 -25
  36. reflex/components/core/debounce.py +3 -3
  37. reflex/components/core/debounce.pyi +14 -14
  38. reflex/components/core/foreach.py +7 -2
  39. reflex/components/core/html.py +1 -3
  40. reflex/components/core/html.pyi +184 -213
  41. reflex/components/core/match.py +15 -19
  42. reflex/components/core/sticky.pyi +930 -1078
  43. reflex/components/core/upload.py +4 -4
  44. reflex/components/core/upload.pyi +62 -62
  45. reflex/components/datadisplay/code.py +6 -6
  46. reflex/components/datadisplay/code.pyi +1159 -1165
  47. reflex/components/datadisplay/dataeditor.py +49 -49
  48. reflex/components/datadisplay/dataeditor.pyi +95 -123
  49. reflex/components/datadisplay/logo.py +1 -3
  50. reflex/components/datadisplay/shiki_code_block.py +8 -10
  51. reflex/components/datadisplay/shiki_code_block.pyi +1678 -1720
  52. reflex/components/el/element.pyi +7 -7
  53. reflex/components/el/elements/base.pyi +183 -210
  54. reflex/components/el/elements/forms.py +24 -24
  55. reflex/components/el/elements/forms.pyi +2572 -2934
  56. reflex/components/el/elements/inline.py +4 -4
  57. reflex/components/el/elements/inline.pyi +5191 -5953
  58. reflex/components/el/elements/media.py +47 -47
  59. reflex/components/el/elements/media.pyi +4802 -5500
  60. reflex/components/el/elements/metadata.py +1 -3
  61. reflex/components/el/elements/metadata.pyi +782 -896
  62. reflex/components/el/elements/other.pyi +1278 -1467
  63. reflex/components/el/elements/scripts.pyi +580 -667
  64. reflex/components/el/elements/sectioning.pyi +2761 -3166
  65. reflex/components/el/elements/tables.pyi +1840 -2119
  66. reflex/components/el/elements/typography.pyi +2772 -3179
  67. reflex/components/gridjs/datatable.py +7 -7
  68. reflex/components/gridjs/datatable.pyi +19 -19
  69. reflex/components/lucide/icon.pyi +21 -21
  70. reflex/components/markdown/markdown.py +2 -2
  71. reflex/components/markdown/markdown.pyi +9 -9
  72. reflex/components/moment/moment.py +11 -12
  73. reflex/components/moment/moment.pyi +44 -47
  74. reflex/components/next/base.pyi +7 -7
  75. reflex/components/next/image.py +3 -3
  76. reflex/components/next/image.pyi +19 -21
  77. reflex/components/next/link.pyi +9 -9
  78. reflex/components/next/video.py +1 -3
  79. reflex/components/next/video.pyi +9 -9
  80. reflex/components/plotly/plotly.py +22 -45
  81. reflex/components/plotly/plotly.pyi +164 -164
  82. reflex/components/radix/primitives/accordion.py +14 -14
  83. reflex/components/radix/primitives/accordion.pyi +439 -487
  84. reflex/components/radix/primitives/base.py +1 -3
  85. reflex/components/radix/primitives/base.pyi +15 -15
  86. reflex/components/radix/primitives/drawer.py +3 -3
  87. reflex/components/radix/primitives/drawer.pyi +110 -116
  88. reflex/components/radix/primitives/form.py +1 -1
  89. reflex/components/radix/primitives/form.pyi +668 -752
  90. reflex/components/radix/primitives/progress.py +6 -6
  91. reflex/components/radix/primitives/progress.pyi +225 -243
  92. reflex/components/radix/primitives/slider.py +6 -6
  93. reflex/components/radix/primitives/slider.pyi +52 -55
  94. reflex/components/radix/themes/base.py +3 -6
  95. reflex/components/radix/themes/base.pyi +197 -303
  96. reflex/components/radix/themes/color_mode.py +5 -5
  97. reflex/components/radix/themes/color_mode.pyi +366 -436
  98. reflex/components/radix/themes/components/alert_dialog.pyi +229 -262
  99. reflex/components/radix/themes/components/aspect_ratio.py +1 -3
  100. reflex/components/radix/themes/components/aspect_ratio.pyi +8 -8
  101. reflex/components/radix/themes/components/avatar.pyi +79 -94
  102. reflex/components/radix/themes/components/badge.pyi +252 -295
  103. reflex/components/radix/themes/components/button.pyi +269 -314
  104. reflex/components/radix/themes/components/callout.py +2 -2
  105. reflex/components/radix/themes/components/callout.pyi +1116 -1290
  106. reflex/components/radix/themes/components/card.pyi +194 -229
  107. reflex/components/radix/themes/components/checkbox.pyi +243 -278
  108. reflex/components/radix/themes/components/checkbox_cards.py +3 -7
  109. reflex/components/radix/themes/components/checkbox_cards.pyi +101 -135
  110. reflex/components/radix/themes/components/checkbox_group.py +2 -2
  111. reflex/components/radix/themes/components/checkbox_group.pyi +83 -96
  112. reflex/components/radix/themes/components/context_menu.py +18 -15
  113. reflex/components/radix/themes/components/context_menu.pyi +408 -458
  114. reflex/components/radix/themes/components/data_list.pyi +122 -147
  115. reflex/components/radix/themes/components/dialog.pyi +231 -264
  116. reflex/components/radix/themes/components/dropdown_menu.py +16 -13
  117. reflex/components/radix/themes/components/dropdown_menu.pyi +223 -246
  118. reflex/components/radix/themes/components/hover_card.py +2 -2
  119. reflex/components/radix/themes/components/hover_card.pyi +237 -282
  120. reflex/components/radix/themes/components/icon_button.pyi +269 -314
  121. reflex/components/radix/themes/components/inset.py +8 -8
  122. reflex/components/radix/themes/components/inset.pyi +232 -292
  123. reflex/components/radix/themes/components/popover.py +2 -2
  124. reflex/components/radix/themes/components/popover.pyi +229 -271
  125. reflex/components/radix/themes/components/progress.pyi +80 -96
  126. reflex/components/radix/themes/components/radio.pyi +73 -86
  127. reflex/components/radix/themes/components/radio_cards.py +4 -8
  128. reflex/components/radix/themes/components/radio_cards.pyi +117 -154
  129. reflex/components/radix/themes/components/radio_group.py +3 -3
  130. reflex/components/radix/themes/components/radio_group.pyi +250 -291
  131. reflex/components/radix/themes/components/scroll_area.pyi +14 -20
  132. reflex/components/radix/themes/components/segmented_control.py +6 -6
  133. reflex/components/radix/themes/components/segmented_control.pyi +89 -108
  134. reflex/components/radix/themes/components/select.py +7 -7
  135. reflex/components/radix/themes/components/select.pyi +376 -444
  136. reflex/components/radix/themes/components/separator.pyi +79 -93
  137. reflex/components/radix/themes/components/skeleton.pyi +32 -26
  138. reflex/components/radix/themes/components/slider.py +8 -8
  139. reflex/components/radix/themes/components/slider.pyi +99 -122
  140. reflex/components/radix/themes/components/spinner.pyi +12 -19
  141. reflex/components/radix/themes/components/switch.pyi +84 -99
  142. reflex/components/radix/themes/components/table.py +9 -9
  143. reflex/components/radix/themes/components/table.pyi +1440 -1794
  144. reflex/components/radix/themes/components/tabs.py +4 -4
  145. reflex/components/radix/themes/components/tabs.pyi +120 -132
  146. reflex/components/radix/themes/components/text_area.pyi +281 -331
  147. reflex/components/radix/themes/components/text_field.py +2 -2
  148. reflex/components/radix/themes/components/text_field.pyi +639 -734
  149. reflex/components/radix/themes/components/tooltip.py +6 -6
  150. reflex/components/radix/themes/components/tooltip.pyi +34 -43
  151. reflex/components/radix/themes/layout/base.pyi +85 -182
  152. reflex/components/radix/themes/layout/box.pyi +183 -210
  153. reflex/components/radix/themes/layout/center.pyi +225 -286
  154. reflex/components/radix/themes/layout/container.pyi +191 -224
  155. reflex/components/radix/themes/layout/flex.py +2 -2
  156. reflex/components/radix/themes/layout/flex.pyi +225 -286
  157. reflex/components/radix/themes/layout/grid.py +2 -2
  158. reflex/components/radix/themes/layout/grid.pyi +245 -315
  159. reflex/components/radix/themes/layout/list.py +2 -2
  160. reflex/components/radix/themes/layout/list.pyi +712 -815
  161. reflex/components/radix/themes/layout/section.pyi +187 -221
  162. reflex/components/radix/themes/layout/spacer.pyi +225 -286
  163. reflex/components/radix/themes/layout/stack.pyi +625 -768
  164. reflex/components/radix/themes/typography/blockquote.pyi +257 -299
  165. reflex/components/radix/themes/typography/code.pyi +259 -304
  166. reflex/components/radix/themes/typography/heading.pyi +272 -324
  167. reflex/components/radix/themes/typography/link.pyi +302 -358
  168. reflex/components/radix/themes/typography/text.pyi +1669 -1945
  169. reflex/components/react_player/audio.pyi +20 -22
  170. reflex/components/react_player/react_player.pyi +19 -19
  171. reflex/components/react_player/video.pyi +20 -22
  172. reflex/components/recharts/cartesian.py +100 -97
  173. reflex/components/recharts/cartesian.pyi +891 -1007
  174. reflex/components/recharts/charts.py +42 -42
  175. reflex/components/recharts/charts.pyi +212 -249
  176. reflex/components/recharts/general.py +22 -21
  177. reflex/components/recharts/general.pyi +198 -223
  178. reflex/components/recharts/polar.py +42 -45
  179. reflex/components/recharts/polar.pyi +254 -288
  180. reflex/components/recharts/recharts.pyi +13 -13
  181. reflex/components/sonner/toast.py +20 -20
  182. reflex/components/sonner/toast.pyi +58 -61
  183. reflex/components/suneditor/editor.py +9 -9
  184. reflex/components/suneditor/editor.pyi +78 -83
  185. reflex/components/tags/cond_tag.py +2 -2
  186. reflex/components/tags/iter_tag.py +10 -14
  187. reflex/components/tags/match_tag.py +2 -2
  188. reflex/components/tags/tag.py +10 -10
  189. reflex/config.py +36 -35
  190. reflex/constants/__init__.py +56 -53
  191. reflex/custom_components/custom_components.py +6 -7
  192. reflex/event.py +38 -42
  193. reflex/experimental/client_state.py +2 -4
  194. reflex/experimental/layout.py +2 -2
  195. reflex/experimental/layout.pyi +579 -663
  196. reflex/istate/data.py +4 -5
  197. reflex/middleware/hydrate_middleware.py +2 -2
  198. reflex/middleware/middleware.py +2 -2
  199. reflex/model.py +3 -5
  200. reflex/page.py +2 -2
  201. reflex/reflex.py +9 -10
  202. reflex/state.py +77 -49
  203. reflex/style.py +11 -5
  204. reflex/testing.py +21 -24
  205. reflex/utils/console.py +1 -1
  206. reflex/utils/decorator.py +26 -1
  207. reflex/utils/exec.py +6 -11
  208. reflex/utils/export.py +2 -3
  209. reflex/utils/format.py +4 -4
  210. reflex/utils/imports.py +12 -12
  211. reflex/utils/prerequisites.py +35 -84
  212. reflex/utils/processes.py +5 -5
  213. reflex/utils/pyi_generator.py +33 -22
  214. reflex/utils/serializers.py +60 -15
  215. reflex/utils/types.py +237 -56
  216. reflex/vars/base.py +122 -72
  217. reflex/vars/datetime.py +2 -2
  218. reflex/vars/function.py +52 -55
  219. reflex/vars/number.py +59 -5
  220. reflex/vars/object.py +57 -26
  221. reflex/vars/sequence.py +983 -958
  222. {reflex-0.7.1a4.dist-info → reflex-0.7.2.dist-info}/METADATA +3 -6
  223. reflex-0.7.2.dist-info/RECORD +405 -0
  224. {reflex-0.7.1a4.dist-info → reflex-0.7.2.dist-info}/WHEEL +1 -1
  225. reflex-0.7.1a4.dist-info/RECORD +0 -405
  226. {reflex-0.7.1a4.dist-info → reflex-0.7.2.dist-info}/LICENSE +0 -0
  227. {reflex-0.7.1a4.dist-info → reflex-0.7.2.dist-info}/entry_points.txt +0 -0
@@ -3,7 +3,7 @@
3
3
  # ------------------- DO NOT EDIT ----------------------
4
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
5
5
  # ------------------------------------------------------
6
- from typing import Any, Dict, Literal, Optional, Union, overload
6
+ from typing import Any, Literal, Optional, overload
7
7
 
8
8
  from reflex.components.component import ComponentNamespace
9
9
  from reflex.components.core.breakpoints import Breakpoints
@@ -42,377 +42,322 @@ class Text(elements.Span, RadixThemesComponent, MarkdownComponentMap):
42
42
  def create( # type: ignore
43
43
  cls,
44
44
  *children,
45
- as_child: Optional[Union[Var[bool], bool]] = None,
46
- as_: Optional[
47
- Union[
48
- Literal[
49
- "abbr",
50
- "b",
51
- "cite",
52
- "del",
53
- "div",
54
- "em",
55
- "i",
56
- "ins",
57
- "kbd",
58
- "label",
59
- "mark",
60
- "p",
61
- "s",
62
- "samp",
63
- "span",
64
- "sub",
65
- "sup",
66
- "u",
67
- ],
68
- Var[
69
- Literal[
70
- "abbr",
71
- "b",
72
- "cite",
73
- "del",
74
- "div",
75
- "em",
76
- "i",
77
- "ins",
78
- "kbd",
79
- "label",
80
- "mark",
81
- "p",
82
- "s",
83
- "samp",
84
- "span",
85
- "sub",
86
- "sup",
87
- "u",
88
- ]
89
- ],
45
+ as_child: Var[bool] | bool | None = None,
46
+ as_: Literal[
47
+ "abbr",
48
+ "b",
49
+ "cite",
50
+ "del",
51
+ "div",
52
+ "em",
53
+ "i",
54
+ "ins",
55
+ "kbd",
56
+ "label",
57
+ "mark",
58
+ "p",
59
+ "s",
60
+ "samp",
61
+ "span",
62
+ "sub",
63
+ "sup",
64
+ "u",
65
+ ]
66
+ | Var[
67
+ Literal[
68
+ "abbr",
69
+ "b",
70
+ "cite",
71
+ "del",
72
+ "div",
73
+ "em",
74
+ "i",
75
+ "ins",
76
+ "kbd",
77
+ "label",
78
+ "mark",
79
+ "p",
80
+ "s",
81
+ "samp",
82
+ "span",
83
+ "sub",
84
+ "sup",
85
+ "u",
90
86
  ]
91
- ] = None,
92
- size: Optional[
93
- Union[
94
- Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
95
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
96
- Var[
97
- Union[
98
- Breakpoints[
99
- str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
100
- ],
101
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
102
- ]
103
- ],
87
+ ]
88
+ | None = None,
89
+ size: Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]
90
+ | Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
91
+ | Var[
92
+ Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]
93
+ | Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
94
+ ]
95
+ | None = None,
96
+ weight: Breakpoints[str, Literal["bold", "light", "medium", "regular"]]
97
+ | Literal["bold", "light", "medium", "regular"]
98
+ | Var[
99
+ Breakpoints[str, Literal["bold", "light", "medium", "regular"]]
100
+ | Literal["bold", "light", "medium", "regular"]
101
+ ]
102
+ | None = None,
103
+ align: Breakpoints[str, Literal["center", "left", "right"]]
104
+ | Literal["center", "left", "right"]
105
+ | Var[
106
+ Breakpoints[str, Literal["center", "left", "right"]]
107
+ | Literal["center", "left", "right"]
108
+ ]
109
+ | None = None,
110
+ trim: Breakpoints[str, Literal["both", "end", "normal", "start"]]
111
+ | Literal["both", "end", "normal", "start"]
112
+ | Var[
113
+ Breakpoints[str, Literal["both", "end", "normal", "start"]]
114
+ | Literal["both", "end", "normal", "start"]
115
+ ]
116
+ | None = None,
117
+ color_scheme: Literal[
118
+ "amber",
119
+ "blue",
120
+ "bronze",
121
+ "brown",
122
+ "crimson",
123
+ "cyan",
124
+ "gold",
125
+ "grass",
126
+ "gray",
127
+ "green",
128
+ "indigo",
129
+ "iris",
130
+ "jade",
131
+ "lime",
132
+ "mint",
133
+ "orange",
134
+ "pink",
135
+ "plum",
136
+ "purple",
137
+ "red",
138
+ "ruby",
139
+ "sky",
140
+ "teal",
141
+ "tomato",
142
+ "violet",
143
+ "yellow",
144
+ ]
145
+ | Var[
146
+ Literal[
147
+ "amber",
148
+ "blue",
149
+ "bronze",
150
+ "brown",
151
+ "crimson",
152
+ "cyan",
153
+ "gold",
154
+ "grass",
155
+ "gray",
156
+ "green",
157
+ "indigo",
158
+ "iris",
159
+ "jade",
160
+ "lime",
161
+ "mint",
162
+ "orange",
163
+ "pink",
164
+ "plum",
165
+ "purple",
166
+ "red",
167
+ "ruby",
168
+ "sky",
169
+ "teal",
170
+ "tomato",
171
+ "violet",
172
+ "yellow",
104
173
  ]
105
- ] = None,
106
- weight: Optional[
107
- Union[
108
- Breakpoints[str, Literal["bold", "light", "medium", "regular"]],
109
- Literal["bold", "light", "medium", "regular"],
110
- Var[
111
- Union[
112
- Breakpoints[str, Literal["bold", "light", "medium", "regular"]],
113
- Literal["bold", "light", "medium", "regular"],
114
- ]
115
- ],
174
+ ]
175
+ | None = None,
176
+ high_contrast: Var[bool] | bool | None = None,
177
+ access_key: Var[str] | str | None = None,
178
+ auto_capitalize: Literal[
179
+ "characters", "none", "off", "on", "sentences", "words"
180
+ ]
181
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
182
+ | None = None,
183
+ content_editable: Literal["inherit", "plaintext-only", False, True]
184
+ | Var[Literal["inherit", "plaintext-only", False, True]]
185
+ | None = None,
186
+ context_menu: Var[str] | str | None = None,
187
+ dir: Var[str] | str | None = None,
188
+ draggable: Var[bool] | bool | None = None,
189
+ enter_key_hint: Literal[
190
+ "done", "enter", "go", "next", "previous", "search", "send"
191
+ ]
192
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
193
+ | None = None,
194
+ hidden: Var[bool] | bool | None = None,
195
+ input_mode: Literal[
196
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
197
+ ]
198
+ | Var[
199
+ Literal[
200
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
116
201
  ]
117
- ] = None,
118
- align: Optional[
119
- Union[
120
- Breakpoints[str, Literal["center", "left", "right"]],
121
- Literal["center", "left", "right"],
122
- Var[
123
- Union[
124
- Breakpoints[str, Literal["center", "left", "right"]],
125
- Literal["center", "left", "right"],
126
- ]
127
- ],
202
+ ]
203
+ | None = None,
204
+ item_prop: Var[str] | str | None = None,
205
+ lang: Var[str] | str | None = None,
206
+ role: Literal[
207
+ "alert",
208
+ "alertdialog",
209
+ "application",
210
+ "article",
211
+ "banner",
212
+ "button",
213
+ "cell",
214
+ "checkbox",
215
+ "columnheader",
216
+ "combobox",
217
+ "complementary",
218
+ "contentinfo",
219
+ "definition",
220
+ "dialog",
221
+ "directory",
222
+ "document",
223
+ "feed",
224
+ "figure",
225
+ "form",
226
+ "grid",
227
+ "gridcell",
228
+ "group",
229
+ "heading",
230
+ "img",
231
+ "link",
232
+ "list",
233
+ "listbox",
234
+ "listitem",
235
+ "log",
236
+ "main",
237
+ "marquee",
238
+ "math",
239
+ "menu",
240
+ "menubar",
241
+ "menuitem",
242
+ "menuitemcheckbox",
243
+ "menuitemradio",
244
+ "navigation",
245
+ "none",
246
+ "note",
247
+ "option",
248
+ "presentation",
249
+ "progressbar",
250
+ "radio",
251
+ "radiogroup",
252
+ "region",
253
+ "row",
254
+ "rowgroup",
255
+ "rowheader",
256
+ "scrollbar",
257
+ "search",
258
+ "searchbox",
259
+ "separator",
260
+ "slider",
261
+ "spinbutton",
262
+ "status",
263
+ "switch",
264
+ "tab",
265
+ "table",
266
+ "tablist",
267
+ "tabpanel",
268
+ "term",
269
+ "textbox",
270
+ "timer",
271
+ "toolbar",
272
+ "tooltip",
273
+ "tree",
274
+ "treegrid",
275
+ "treeitem",
276
+ ]
277
+ | Var[
278
+ Literal[
279
+ "alert",
280
+ "alertdialog",
281
+ "application",
282
+ "article",
283
+ "banner",
284
+ "button",
285
+ "cell",
286
+ "checkbox",
287
+ "columnheader",
288
+ "combobox",
289
+ "complementary",
290
+ "contentinfo",
291
+ "definition",
292
+ "dialog",
293
+ "directory",
294
+ "document",
295
+ "feed",
296
+ "figure",
297
+ "form",
298
+ "grid",
299
+ "gridcell",
300
+ "group",
301
+ "heading",
302
+ "img",
303
+ "link",
304
+ "list",
305
+ "listbox",
306
+ "listitem",
307
+ "log",
308
+ "main",
309
+ "marquee",
310
+ "math",
311
+ "menu",
312
+ "menubar",
313
+ "menuitem",
314
+ "menuitemcheckbox",
315
+ "menuitemradio",
316
+ "navigation",
317
+ "none",
318
+ "note",
319
+ "option",
320
+ "presentation",
321
+ "progressbar",
322
+ "radio",
323
+ "radiogroup",
324
+ "region",
325
+ "row",
326
+ "rowgroup",
327
+ "rowheader",
328
+ "scrollbar",
329
+ "search",
330
+ "searchbox",
331
+ "separator",
332
+ "slider",
333
+ "spinbutton",
334
+ "status",
335
+ "switch",
336
+ "tab",
337
+ "table",
338
+ "tablist",
339
+ "tabpanel",
340
+ "term",
341
+ "textbox",
342
+ "timer",
343
+ "toolbar",
344
+ "tooltip",
345
+ "tree",
346
+ "treegrid",
347
+ "treeitem",
128
348
  ]
129
- ] = None,
130
- trim: Optional[
131
- Union[
132
- Breakpoints[str, Literal["both", "end", "normal", "start"]],
133
- Literal["both", "end", "normal", "start"],
134
- Var[
135
- Union[
136
- Breakpoints[str, Literal["both", "end", "normal", "start"]],
137
- Literal["both", "end", "normal", "start"],
138
- ]
139
- ],
140
- ]
141
- ] = None,
142
- color_scheme: Optional[
143
- Union[
144
- Literal[
145
- "amber",
146
- "blue",
147
- "bronze",
148
- "brown",
149
- "crimson",
150
- "cyan",
151
- "gold",
152
- "grass",
153
- "gray",
154
- "green",
155
- "indigo",
156
- "iris",
157
- "jade",
158
- "lime",
159
- "mint",
160
- "orange",
161
- "pink",
162
- "plum",
163
- "purple",
164
- "red",
165
- "ruby",
166
- "sky",
167
- "teal",
168
- "tomato",
169
- "violet",
170
- "yellow",
171
- ],
172
- Var[
173
- Literal[
174
- "amber",
175
- "blue",
176
- "bronze",
177
- "brown",
178
- "crimson",
179
- "cyan",
180
- "gold",
181
- "grass",
182
- "gray",
183
- "green",
184
- "indigo",
185
- "iris",
186
- "jade",
187
- "lime",
188
- "mint",
189
- "orange",
190
- "pink",
191
- "plum",
192
- "purple",
193
- "red",
194
- "ruby",
195
- "sky",
196
- "teal",
197
- "tomato",
198
- "violet",
199
- "yellow",
200
- ]
201
- ],
202
- ]
203
- ] = None,
204
- high_contrast: Optional[Union[Var[bool], bool]] = None,
205
- access_key: Optional[Union[Var[str], str]] = None,
206
- auto_capitalize: Optional[
207
- Union[
208
- Literal["characters", "none", "off", "on", "sentences", "words"],
209
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
210
- ]
211
- ] = None,
212
- content_editable: Optional[
213
- Union[
214
- Literal["inherit", "plaintext-only", False, True],
215
- Var[Literal["inherit", "plaintext-only", False, True]],
216
- ]
217
- ] = None,
218
- context_menu: Optional[Union[Var[str], str]] = None,
219
- dir: Optional[Union[Var[str], str]] = None,
220
- draggable: Optional[Union[Var[bool], bool]] = None,
221
- enter_key_hint: Optional[
222
- Union[
223
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
224
- Var[
225
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
226
- ],
227
- ]
228
- ] = None,
229
- hidden: Optional[Union[Var[bool], bool]] = None,
230
- input_mode: Optional[
231
- Union[
232
- Literal[
233
- "decimal",
234
- "email",
235
- "none",
236
- "numeric",
237
- "search",
238
- "tel",
239
- "text",
240
- "url",
241
- ],
242
- Var[
243
- Literal[
244
- "decimal",
245
- "email",
246
- "none",
247
- "numeric",
248
- "search",
249
- "tel",
250
- "text",
251
- "url",
252
- ]
253
- ],
254
- ]
255
- ] = None,
256
- item_prop: Optional[Union[Var[str], str]] = None,
257
- lang: Optional[Union[Var[str], str]] = None,
258
- role: Optional[
259
- Union[
260
- Literal[
261
- "alert",
262
- "alertdialog",
263
- "application",
264
- "article",
265
- "banner",
266
- "button",
267
- "cell",
268
- "checkbox",
269
- "columnheader",
270
- "combobox",
271
- "complementary",
272
- "contentinfo",
273
- "definition",
274
- "dialog",
275
- "directory",
276
- "document",
277
- "feed",
278
- "figure",
279
- "form",
280
- "grid",
281
- "gridcell",
282
- "group",
283
- "heading",
284
- "img",
285
- "link",
286
- "list",
287
- "listbox",
288
- "listitem",
289
- "log",
290
- "main",
291
- "marquee",
292
- "math",
293
- "menu",
294
- "menubar",
295
- "menuitem",
296
- "menuitemcheckbox",
297
- "menuitemradio",
298
- "navigation",
299
- "none",
300
- "note",
301
- "option",
302
- "presentation",
303
- "progressbar",
304
- "radio",
305
- "radiogroup",
306
- "region",
307
- "row",
308
- "rowgroup",
309
- "rowheader",
310
- "scrollbar",
311
- "search",
312
- "searchbox",
313
- "separator",
314
- "slider",
315
- "spinbutton",
316
- "status",
317
- "switch",
318
- "tab",
319
- "table",
320
- "tablist",
321
- "tabpanel",
322
- "term",
323
- "textbox",
324
- "timer",
325
- "toolbar",
326
- "tooltip",
327
- "tree",
328
- "treegrid",
329
- "treeitem",
330
- ],
331
- Var[
332
- Literal[
333
- "alert",
334
- "alertdialog",
335
- "application",
336
- "article",
337
- "banner",
338
- "button",
339
- "cell",
340
- "checkbox",
341
- "columnheader",
342
- "combobox",
343
- "complementary",
344
- "contentinfo",
345
- "definition",
346
- "dialog",
347
- "directory",
348
- "document",
349
- "feed",
350
- "figure",
351
- "form",
352
- "grid",
353
- "gridcell",
354
- "group",
355
- "heading",
356
- "img",
357
- "link",
358
- "list",
359
- "listbox",
360
- "listitem",
361
- "log",
362
- "main",
363
- "marquee",
364
- "math",
365
- "menu",
366
- "menubar",
367
- "menuitem",
368
- "menuitemcheckbox",
369
- "menuitemradio",
370
- "navigation",
371
- "none",
372
- "note",
373
- "option",
374
- "presentation",
375
- "progressbar",
376
- "radio",
377
- "radiogroup",
378
- "region",
379
- "row",
380
- "rowgroup",
381
- "rowheader",
382
- "scrollbar",
383
- "search",
384
- "searchbox",
385
- "separator",
386
- "slider",
387
- "spinbutton",
388
- "status",
389
- "switch",
390
- "tab",
391
- "table",
392
- "tablist",
393
- "tabpanel",
394
- "term",
395
- "textbox",
396
- "timer",
397
- "toolbar",
398
- "tooltip",
399
- "tree",
400
- "treegrid",
401
- "treeitem",
402
- ]
403
- ],
404
- ]
405
- ] = None,
406
- slot: Optional[Union[Var[str], str]] = None,
407
- spell_check: Optional[Union[Var[bool], bool]] = None,
408
- tab_index: Optional[Union[Var[int], int]] = None,
409
- title: Optional[Union[Var[str], str]] = None,
410
- style: Optional[Style] = None,
411
- key: Optional[Any] = None,
412
- id: Optional[Any] = None,
413
- class_name: Optional[Any] = None,
414
- autofocus: Optional[bool] = None,
415
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
349
+ ]
350
+ | None = None,
351
+ slot: Var[str] | str | None = None,
352
+ spell_check: Var[bool] | bool | None = None,
353
+ tab_index: Var[int] | int | None = None,
354
+ title: Var[str] | str | None = None,
355
+ style: Style | None = None,
356
+ key: Any | None = None,
357
+ id: Any | None = None,
358
+ class_name: Any | None = None,
359
+ autofocus: bool | None = None,
360
+ custom_attrs: dict[str, Var | Any] | None = None,
416
361
  on_blur: Optional[EventType[()]] = None,
417
362
  on_click: Optional[EventType[()]] = None,
418
363
  on_context_menu: Optional[EventType[()]] = None,
@@ -480,377 +425,322 @@ class Span(Text):
480
425
  def create( # type: ignore
481
426
  cls,
482
427
  *children,
483
- as_: Optional[
484
- Union[
485
- Literal[
486
- "abbr",
487
- "b",
488
- "cite",
489
- "del",
490
- "div",
491
- "em",
492
- "i",
493
- "ins",
494
- "kbd",
495
- "label",
496
- "mark",
497
- "p",
498
- "s",
499
- "samp",
500
- "span",
501
- "sub",
502
- "sup",
503
- "u",
504
- ],
505
- Var[
506
- Literal[
507
- "abbr",
508
- "b",
509
- "cite",
510
- "del",
511
- "div",
512
- "em",
513
- "i",
514
- "ins",
515
- "kbd",
516
- "label",
517
- "mark",
518
- "p",
519
- "s",
520
- "samp",
521
- "span",
522
- "sub",
523
- "sup",
524
- "u",
525
- ]
526
- ],
527
- ]
528
- ] = None,
529
- as_child: Optional[Union[Var[bool], bool]] = None,
530
- size: Optional[
531
- Union[
532
- Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
533
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
534
- Var[
535
- Union[
536
- Breakpoints[
537
- str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
538
- ],
539
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
540
- ]
541
- ],
542
- ]
543
- ] = None,
544
- weight: Optional[
545
- Union[
546
- Breakpoints[str, Literal["bold", "light", "medium", "regular"]],
547
- Literal["bold", "light", "medium", "regular"],
548
- Var[
549
- Union[
550
- Breakpoints[str, Literal["bold", "light", "medium", "regular"]],
551
- Literal["bold", "light", "medium", "regular"],
552
- ]
553
- ],
428
+ as_: Literal[
429
+ "abbr",
430
+ "b",
431
+ "cite",
432
+ "del",
433
+ "div",
434
+ "em",
435
+ "i",
436
+ "ins",
437
+ "kbd",
438
+ "label",
439
+ "mark",
440
+ "p",
441
+ "s",
442
+ "samp",
443
+ "span",
444
+ "sub",
445
+ "sup",
446
+ "u",
447
+ ]
448
+ | Var[
449
+ Literal[
450
+ "abbr",
451
+ "b",
452
+ "cite",
453
+ "del",
454
+ "div",
455
+ "em",
456
+ "i",
457
+ "ins",
458
+ "kbd",
459
+ "label",
460
+ "mark",
461
+ "p",
462
+ "s",
463
+ "samp",
464
+ "span",
465
+ "sub",
466
+ "sup",
467
+ "u",
554
468
  ]
555
- ] = None,
556
- align: Optional[
557
- Union[
558
- Breakpoints[str, Literal["center", "left", "right"]],
559
- Literal["center", "left", "right"],
560
- Var[
561
- Union[
562
- Breakpoints[str, Literal["center", "left", "right"]],
563
- Literal["center", "left", "right"],
564
- ]
565
- ],
469
+ ]
470
+ | None = None,
471
+ as_child: Var[bool] | bool | None = None,
472
+ size: Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]
473
+ | Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
474
+ | Var[
475
+ Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]
476
+ | Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
477
+ ]
478
+ | None = None,
479
+ weight: Breakpoints[str, Literal["bold", "light", "medium", "regular"]]
480
+ | Literal["bold", "light", "medium", "regular"]
481
+ | Var[
482
+ Breakpoints[str, Literal["bold", "light", "medium", "regular"]]
483
+ | Literal["bold", "light", "medium", "regular"]
484
+ ]
485
+ | None = None,
486
+ align: Breakpoints[str, Literal["center", "left", "right"]]
487
+ | Literal["center", "left", "right"]
488
+ | Var[
489
+ Breakpoints[str, Literal["center", "left", "right"]]
490
+ | Literal["center", "left", "right"]
491
+ ]
492
+ | None = None,
493
+ trim: Breakpoints[str, Literal["both", "end", "normal", "start"]]
494
+ | Literal["both", "end", "normal", "start"]
495
+ | Var[
496
+ Breakpoints[str, Literal["both", "end", "normal", "start"]]
497
+ | Literal["both", "end", "normal", "start"]
498
+ ]
499
+ | None = None,
500
+ color_scheme: Literal[
501
+ "amber",
502
+ "blue",
503
+ "bronze",
504
+ "brown",
505
+ "crimson",
506
+ "cyan",
507
+ "gold",
508
+ "grass",
509
+ "gray",
510
+ "green",
511
+ "indigo",
512
+ "iris",
513
+ "jade",
514
+ "lime",
515
+ "mint",
516
+ "orange",
517
+ "pink",
518
+ "plum",
519
+ "purple",
520
+ "red",
521
+ "ruby",
522
+ "sky",
523
+ "teal",
524
+ "tomato",
525
+ "violet",
526
+ "yellow",
527
+ ]
528
+ | Var[
529
+ Literal[
530
+ "amber",
531
+ "blue",
532
+ "bronze",
533
+ "brown",
534
+ "crimson",
535
+ "cyan",
536
+ "gold",
537
+ "grass",
538
+ "gray",
539
+ "green",
540
+ "indigo",
541
+ "iris",
542
+ "jade",
543
+ "lime",
544
+ "mint",
545
+ "orange",
546
+ "pink",
547
+ "plum",
548
+ "purple",
549
+ "red",
550
+ "ruby",
551
+ "sky",
552
+ "teal",
553
+ "tomato",
554
+ "violet",
555
+ "yellow",
566
556
  ]
567
- ] = None,
568
- trim: Optional[
569
- Union[
570
- Breakpoints[str, Literal["both", "end", "normal", "start"]],
571
- Literal["both", "end", "normal", "start"],
572
- Var[
573
- Union[
574
- Breakpoints[str, Literal["both", "end", "normal", "start"]],
575
- Literal["both", "end", "normal", "start"],
576
- ]
577
- ],
557
+ ]
558
+ | None = None,
559
+ high_contrast: Var[bool] | bool | None = None,
560
+ access_key: Var[str] | str | None = None,
561
+ auto_capitalize: Literal[
562
+ "characters", "none", "off", "on", "sentences", "words"
563
+ ]
564
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
565
+ | None = None,
566
+ content_editable: Literal["inherit", "plaintext-only", False, True]
567
+ | Var[Literal["inherit", "plaintext-only", False, True]]
568
+ | None = None,
569
+ context_menu: Var[str] | str | None = None,
570
+ dir: Var[str] | str | None = None,
571
+ draggable: Var[bool] | bool | None = None,
572
+ enter_key_hint: Literal[
573
+ "done", "enter", "go", "next", "previous", "search", "send"
574
+ ]
575
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
576
+ | None = None,
577
+ hidden: Var[bool] | bool | None = None,
578
+ input_mode: Literal[
579
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
580
+ ]
581
+ | Var[
582
+ Literal[
583
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
578
584
  ]
579
- ] = None,
580
- color_scheme: Optional[
581
- Union[
582
- Literal[
583
- "amber",
584
- "blue",
585
- "bronze",
586
- "brown",
587
- "crimson",
588
- "cyan",
589
- "gold",
590
- "grass",
591
- "gray",
592
- "green",
593
- "indigo",
594
- "iris",
595
- "jade",
596
- "lime",
597
- "mint",
598
- "orange",
599
- "pink",
600
- "plum",
601
- "purple",
602
- "red",
603
- "ruby",
604
- "sky",
605
- "teal",
606
- "tomato",
607
- "violet",
608
- "yellow",
609
- ],
610
- Var[
611
- Literal[
612
- "amber",
613
- "blue",
614
- "bronze",
615
- "brown",
616
- "crimson",
617
- "cyan",
618
- "gold",
619
- "grass",
620
- "gray",
621
- "green",
622
- "indigo",
623
- "iris",
624
- "jade",
625
- "lime",
626
- "mint",
627
- "orange",
628
- "pink",
629
- "plum",
630
- "purple",
631
- "red",
632
- "ruby",
633
- "sky",
634
- "teal",
635
- "tomato",
636
- "violet",
637
- "yellow",
638
- ]
639
- ],
585
+ ]
586
+ | None = None,
587
+ item_prop: Var[str] | str | None = None,
588
+ lang: Var[str] | str | None = None,
589
+ role: Literal[
590
+ "alert",
591
+ "alertdialog",
592
+ "application",
593
+ "article",
594
+ "banner",
595
+ "button",
596
+ "cell",
597
+ "checkbox",
598
+ "columnheader",
599
+ "combobox",
600
+ "complementary",
601
+ "contentinfo",
602
+ "definition",
603
+ "dialog",
604
+ "directory",
605
+ "document",
606
+ "feed",
607
+ "figure",
608
+ "form",
609
+ "grid",
610
+ "gridcell",
611
+ "group",
612
+ "heading",
613
+ "img",
614
+ "link",
615
+ "list",
616
+ "listbox",
617
+ "listitem",
618
+ "log",
619
+ "main",
620
+ "marquee",
621
+ "math",
622
+ "menu",
623
+ "menubar",
624
+ "menuitem",
625
+ "menuitemcheckbox",
626
+ "menuitemradio",
627
+ "navigation",
628
+ "none",
629
+ "note",
630
+ "option",
631
+ "presentation",
632
+ "progressbar",
633
+ "radio",
634
+ "radiogroup",
635
+ "region",
636
+ "row",
637
+ "rowgroup",
638
+ "rowheader",
639
+ "scrollbar",
640
+ "search",
641
+ "searchbox",
642
+ "separator",
643
+ "slider",
644
+ "spinbutton",
645
+ "status",
646
+ "switch",
647
+ "tab",
648
+ "table",
649
+ "tablist",
650
+ "tabpanel",
651
+ "term",
652
+ "textbox",
653
+ "timer",
654
+ "toolbar",
655
+ "tooltip",
656
+ "tree",
657
+ "treegrid",
658
+ "treeitem",
659
+ ]
660
+ | Var[
661
+ Literal[
662
+ "alert",
663
+ "alertdialog",
664
+ "application",
665
+ "article",
666
+ "banner",
667
+ "button",
668
+ "cell",
669
+ "checkbox",
670
+ "columnheader",
671
+ "combobox",
672
+ "complementary",
673
+ "contentinfo",
674
+ "definition",
675
+ "dialog",
676
+ "directory",
677
+ "document",
678
+ "feed",
679
+ "figure",
680
+ "form",
681
+ "grid",
682
+ "gridcell",
683
+ "group",
684
+ "heading",
685
+ "img",
686
+ "link",
687
+ "list",
688
+ "listbox",
689
+ "listitem",
690
+ "log",
691
+ "main",
692
+ "marquee",
693
+ "math",
694
+ "menu",
695
+ "menubar",
696
+ "menuitem",
697
+ "menuitemcheckbox",
698
+ "menuitemradio",
699
+ "navigation",
700
+ "none",
701
+ "note",
702
+ "option",
703
+ "presentation",
704
+ "progressbar",
705
+ "radio",
706
+ "radiogroup",
707
+ "region",
708
+ "row",
709
+ "rowgroup",
710
+ "rowheader",
711
+ "scrollbar",
712
+ "search",
713
+ "searchbox",
714
+ "separator",
715
+ "slider",
716
+ "spinbutton",
717
+ "status",
718
+ "switch",
719
+ "tab",
720
+ "table",
721
+ "tablist",
722
+ "tabpanel",
723
+ "term",
724
+ "textbox",
725
+ "timer",
726
+ "toolbar",
727
+ "tooltip",
728
+ "tree",
729
+ "treegrid",
730
+ "treeitem",
640
731
  ]
641
- ] = None,
642
- high_contrast: Optional[Union[Var[bool], bool]] = None,
643
- access_key: Optional[Union[Var[str], str]] = None,
644
- auto_capitalize: Optional[
645
- Union[
646
- Literal["characters", "none", "off", "on", "sentences", "words"],
647
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
648
- ]
649
- ] = None,
650
- content_editable: Optional[
651
- Union[
652
- Literal["inherit", "plaintext-only", False, True],
653
- Var[Literal["inherit", "plaintext-only", False, True]],
654
- ]
655
- ] = None,
656
- context_menu: Optional[Union[Var[str], str]] = None,
657
- dir: Optional[Union[Var[str], str]] = None,
658
- draggable: Optional[Union[Var[bool], bool]] = None,
659
- enter_key_hint: Optional[
660
- Union[
661
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
662
- Var[
663
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
664
- ],
665
- ]
666
- ] = None,
667
- hidden: Optional[Union[Var[bool], bool]] = None,
668
- input_mode: Optional[
669
- Union[
670
- Literal[
671
- "decimal",
672
- "email",
673
- "none",
674
- "numeric",
675
- "search",
676
- "tel",
677
- "text",
678
- "url",
679
- ],
680
- Var[
681
- Literal[
682
- "decimal",
683
- "email",
684
- "none",
685
- "numeric",
686
- "search",
687
- "tel",
688
- "text",
689
- "url",
690
- ]
691
- ],
692
- ]
693
- ] = None,
694
- item_prop: Optional[Union[Var[str], str]] = None,
695
- lang: Optional[Union[Var[str], str]] = None,
696
- role: Optional[
697
- Union[
698
- Literal[
699
- "alert",
700
- "alertdialog",
701
- "application",
702
- "article",
703
- "banner",
704
- "button",
705
- "cell",
706
- "checkbox",
707
- "columnheader",
708
- "combobox",
709
- "complementary",
710
- "contentinfo",
711
- "definition",
712
- "dialog",
713
- "directory",
714
- "document",
715
- "feed",
716
- "figure",
717
- "form",
718
- "grid",
719
- "gridcell",
720
- "group",
721
- "heading",
722
- "img",
723
- "link",
724
- "list",
725
- "listbox",
726
- "listitem",
727
- "log",
728
- "main",
729
- "marquee",
730
- "math",
731
- "menu",
732
- "menubar",
733
- "menuitem",
734
- "menuitemcheckbox",
735
- "menuitemradio",
736
- "navigation",
737
- "none",
738
- "note",
739
- "option",
740
- "presentation",
741
- "progressbar",
742
- "radio",
743
- "radiogroup",
744
- "region",
745
- "row",
746
- "rowgroup",
747
- "rowheader",
748
- "scrollbar",
749
- "search",
750
- "searchbox",
751
- "separator",
752
- "slider",
753
- "spinbutton",
754
- "status",
755
- "switch",
756
- "tab",
757
- "table",
758
- "tablist",
759
- "tabpanel",
760
- "term",
761
- "textbox",
762
- "timer",
763
- "toolbar",
764
- "tooltip",
765
- "tree",
766
- "treegrid",
767
- "treeitem",
768
- ],
769
- Var[
770
- Literal[
771
- "alert",
772
- "alertdialog",
773
- "application",
774
- "article",
775
- "banner",
776
- "button",
777
- "cell",
778
- "checkbox",
779
- "columnheader",
780
- "combobox",
781
- "complementary",
782
- "contentinfo",
783
- "definition",
784
- "dialog",
785
- "directory",
786
- "document",
787
- "feed",
788
- "figure",
789
- "form",
790
- "grid",
791
- "gridcell",
792
- "group",
793
- "heading",
794
- "img",
795
- "link",
796
- "list",
797
- "listbox",
798
- "listitem",
799
- "log",
800
- "main",
801
- "marquee",
802
- "math",
803
- "menu",
804
- "menubar",
805
- "menuitem",
806
- "menuitemcheckbox",
807
- "menuitemradio",
808
- "navigation",
809
- "none",
810
- "note",
811
- "option",
812
- "presentation",
813
- "progressbar",
814
- "radio",
815
- "radiogroup",
816
- "region",
817
- "row",
818
- "rowgroup",
819
- "rowheader",
820
- "scrollbar",
821
- "search",
822
- "searchbox",
823
- "separator",
824
- "slider",
825
- "spinbutton",
826
- "status",
827
- "switch",
828
- "tab",
829
- "table",
830
- "tablist",
831
- "tabpanel",
832
- "term",
833
- "textbox",
834
- "timer",
835
- "toolbar",
836
- "tooltip",
837
- "tree",
838
- "treegrid",
839
- "treeitem",
840
- ]
841
- ],
842
- ]
843
- ] = None,
844
- slot: Optional[Union[Var[str], str]] = None,
845
- spell_check: Optional[Union[Var[bool], bool]] = None,
846
- tab_index: Optional[Union[Var[int], int]] = None,
847
- title: Optional[Union[Var[str], str]] = None,
848
- style: Optional[Style] = None,
849
- key: Optional[Any] = None,
850
- id: Optional[Any] = None,
851
- class_name: Optional[Any] = None,
852
- autofocus: Optional[bool] = None,
853
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
732
+ ]
733
+ | None = None,
734
+ slot: Var[str] | str | None = None,
735
+ spell_check: Var[bool] | bool | None = None,
736
+ tab_index: Var[int] | int | None = None,
737
+ title: Var[str] | str | None = None,
738
+ style: Style | None = None,
739
+ key: Any | None = None,
740
+ id: Any | None = None,
741
+ class_name: Any | None = None,
742
+ autofocus: bool | None = None,
743
+ custom_attrs: dict[str, Var | Any] | None = None,
854
744
  on_blur: Optional[EventType[()]] = None,
855
745
  on_click: Optional[EventType[()]] = None,
856
746
  on_context_menu: Optional[EventType[()]] = None,
@@ -918,217 +808,190 @@ class Em(elements.Em, RadixThemesComponent):
918
808
  def create( # type: ignore
919
809
  cls,
920
810
  *children,
921
- access_key: Optional[Union[Var[str], str]] = None,
922
- auto_capitalize: Optional[
923
- Union[
924
- Literal["characters", "none", "off", "on", "sentences", "words"],
925
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
926
- ]
927
- ] = None,
928
- content_editable: Optional[
929
- Union[
930
- Literal["inherit", "plaintext-only", False, True],
931
- Var[Literal["inherit", "plaintext-only", False, True]],
932
- ]
933
- ] = None,
934
- context_menu: Optional[Union[Var[str], str]] = None,
935
- dir: Optional[Union[Var[str], str]] = None,
936
- draggable: Optional[Union[Var[bool], bool]] = None,
937
- enter_key_hint: Optional[
938
- Union[
939
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
940
- Var[
941
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
942
- ],
943
- ]
944
- ] = None,
945
- hidden: Optional[Union[Var[bool], bool]] = None,
946
- input_mode: Optional[
947
- Union[
948
- Literal[
949
- "decimal",
950
- "email",
951
- "none",
952
- "numeric",
953
- "search",
954
- "tel",
955
- "text",
956
- "url",
957
- ],
958
- Var[
959
- Literal[
960
- "decimal",
961
- "email",
962
- "none",
963
- "numeric",
964
- "search",
965
- "tel",
966
- "text",
967
- "url",
968
- ]
969
- ],
811
+ access_key: Var[str] | str | None = None,
812
+ auto_capitalize: Literal[
813
+ "characters", "none", "off", "on", "sentences", "words"
814
+ ]
815
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
816
+ | None = None,
817
+ content_editable: Literal["inherit", "plaintext-only", False, True]
818
+ | Var[Literal["inherit", "plaintext-only", False, True]]
819
+ | None = None,
820
+ context_menu: Var[str] | str | None = None,
821
+ dir: Var[str] | str | None = None,
822
+ draggable: Var[bool] | bool | None = None,
823
+ enter_key_hint: Literal[
824
+ "done", "enter", "go", "next", "previous", "search", "send"
825
+ ]
826
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
827
+ | None = None,
828
+ hidden: Var[bool] | bool | None = None,
829
+ input_mode: Literal[
830
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
831
+ ]
832
+ | Var[
833
+ Literal[
834
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
970
835
  ]
971
- ] = None,
972
- item_prop: Optional[Union[Var[str], str]] = None,
973
- lang: Optional[Union[Var[str], str]] = None,
974
- role: Optional[
975
- Union[
976
- Literal[
977
- "alert",
978
- "alertdialog",
979
- "application",
980
- "article",
981
- "banner",
982
- "button",
983
- "cell",
984
- "checkbox",
985
- "columnheader",
986
- "combobox",
987
- "complementary",
988
- "contentinfo",
989
- "definition",
990
- "dialog",
991
- "directory",
992
- "document",
993
- "feed",
994
- "figure",
995
- "form",
996
- "grid",
997
- "gridcell",
998
- "group",
999
- "heading",
1000
- "img",
1001
- "link",
1002
- "list",
1003
- "listbox",
1004
- "listitem",
1005
- "log",
1006
- "main",
1007
- "marquee",
1008
- "math",
1009
- "menu",
1010
- "menubar",
1011
- "menuitem",
1012
- "menuitemcheckbox",
1013
- "menuitemradio",
1014
- "navigation",
1015
- "none",
1016
- "note",
1017
- "option",
1018
- "presentation",
1019
- "progressbar",
1020
- "radio",
1021
- "radiogroup",
1022
- "region",
1023
- "row",
1024
- "rowgroup",
1025
- "rowheader",
1026
- "scrollbar",
1027
- "search",
1028
- "searchbox",
1029
- "separator",
1030
- "slider",
1031
- "spinbutton",
1032
- "status",
1033
- "switch",
1034
- "tab",
1035
- "table",
1036
- "tablist",
1037
- "tabpanel",
1038
- "term",
1039
- "textbox",
1040
- "timer",
1041
- "toolbar",
1042
- "tooltip",
1043
- "tree",
1044
- "treegrid",
1045
- "treeitem",
1046
- ],
1047
- Var[
1048
- Literal[
1049
- "alert",
1050
- "alertdialog",
1051
- "application",
1052
- "article",
1053
- "banner",
1054
- "button",
1055
- "cell",
1056
- "checkbox",
1057
- "columnheader",
1058
- "combobox",
1059
- "complementary",
1060
- "contentinfo",
1061
- "definition",
1062
- "dialog",
1063
- "directory",
1064
- "document",
1065
- "feed",
1066
- "figure",
1067
- "form",
1068
- "grid",
1069
- "gridcell",
1070
- "group",
1071
- "heading",
1072
- "img",
1073
- "link",
1074
- "list",
1075
- "listbox",
1076
- "listitem",
1077
- "log",
1078
- "main",
1079
- "marquee",
1080
- "math",
1081
- "menu",
1082
- "menubar",
1083
- "menuitem",
1084
- "menuitemcheckbox",
1085
- "menuitemradio",
1086
- "navigation",
1087
- "none",
1088
- "note",
1089
- "option",
1090
- "presentation",
1091
- "progressbar",
1092
- "radio",
1093
- "radiogroup",
1094
- "region",
1095
- "row",
1096
- "rowgroup",
1097
- "rowheader",
1098
- "scrollbar",
1099
- "search",
1100
- "searchbox",
1101
- "separator",
1102
- "slider",
1103
- "spinbutton",
1104
- "status",
1105
- "switch",
1106
- "tab",
1107
- "table",
1108
- "tablist",
1109
- "tabpanel",
1110
- "term",
1111
- "textbox",
1112
- "timer",
1113
- "toolbar",
1114
- "tooltip",
1115
- "tree",
1116
- "treegrid",
1117
- "treeitem",
1118
- ]
1119
- ],
836
+ ]
837
+ | None = None,
838
+ item_prop: Var[str] | str | None = None,
839
+ lang: Var[str] | str | None = None,
840
+ role: Literal[
841
+ "alert",
842
+ "alertdialog",
843
+ "application",
844
+ "article",
845
+ "banner",
846
+ "button",
847
+ "cell",
848
+ "checkbox",
849
+ "columnheader",
850
+ "combobox",
851
+ "complementary",
852
+ "contentinfo",
853
+ "definition",
854
+ "dialog",
855
+ "directory",
856
+ "document",
857
+ "feed",
858
+ "figure",
859
+ "form",
860
+ "grid",
861
+ "gridcell",
862
+ "group",
863
+ "heading",
864
+ "img",
865
+ "link",
866
+ "list",
867
+ "listbox",
868
+ "listitem",
869
+ "log",
870
+ "main",
871
+ "marquee",
872
+ "math",
873
+ "menu",
874
+ "menubar",
875
+ "menuitem",
876
+ "menuitemcheckbox",
877
+ "menuitemradio",
878
+ "navigation",
879
+ "none",
880
+ "note",
881
+ "option",
882
+ "presentation",
883
+ "progressbar",
884
+ "radio",
885
+ "radiogroup",
886
+ "region",
887
+ "row",
888
+ "rowgroup",
889
+ "rowheader",
890
+ "scrollbar",
891
+ "search",
892
+ "searchbox",
893
+ "separator",
894
+ "slider",
895
+ "spinbutton",
896
+ "status",
897
+ "switch",
898
+ "tab",
899
+ "table",
900
+ "tablist",
901
+ "tabpanel",
902
+ "term",
903
+ "textbox",
904
+ "timer",
905
+ "toolbar",
906
+ "tooltip",
907
+ "tree",
908
+ "treegrid",
909
+ "treeitem",
910
+ ]
911
+ | Var[
912
+ Literal[
913
+ "alert",
914
+ "alertdialog",
915
+ "application",
916
+ "article",
917
+ "banner",
918
+ "button",
919
+ "cell",
920
+ "checkbox",
921
+ "columnheader",
922
+ "combobox",
923
+ "complementary",
924
+ "contentinfo",
925
+ "definition",
926
+ "dialog",
927
+ "directory",
928
+ "document",
929
+ "feed",
930
+ "figure",
931
+ "form",
932
+ "grid",
933
+ "gridcell",
934
+ "group",
935
+ "heading",
936
+ "img",
937
+ "link",
938
+ "list",
939
+ "listbox",
940
+ "listitem",
941
+ "log",
942
+ "main",
943
+ "marquee",
944
+ "math",
945
+ "menu",
946
+ "menubar",
947
+ "menuitem",
948
+ "menuitemcheckbox",
949
+ "menuitemradio",
950
+ "navigation",
951
+ "none",
952
+ "note",
953
+ "option",
954
+ "presentation",
955
+ "progressbar",
956
+ "radio",
957
+ "radiogroup",
958
+ "region",
959
+ "row",
960
+ "rowgroup",
961
+ "rowheader",
962
+ "scrollbar",
963
+ "search",
964
+ "searchbox",
965
+ "separator",
966
+ "slider",
967
+ "spinbutton",
968
+ "status",
969
+ "switch",
970
+ "tab",
971
+ "table",
972
+ "tablist",
973
+ "tabpanel",
974
+ "term",
975
+ "textbox",
976
+ "timer",
977
+ "toolbar",
978
+ "tooltip",
979
+ "tree",
980
+ "treegrid",
981
+ "treeitem",
1120
982
  ]
1121
- ] = None,
1122
- slot: Optional[Union[Var[str], str]] = None,
1123
- spell_check: Optional[Union[Var[bool], bool]] = None,
1124
- tab_index: Optional[Union[Var[int], int]] = None,
1125
- title: Optional[Union[Var[str], str]] = None,
1126
- style: Optional[Style] = None,
1127
- key: Optional[Any] = None,
1128
- id: Optional[Any] = None,
1129
- class_name: Optional[Any] = None,
1130
- autofocus: Optional[bool] = None,
1131
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
983
+ ]
984
+ | None = None,
985
+ slot: Var[str] | str | None = None,
986
+ spell_check: Var[bool] | bool | None = None,
987
+ tab_index: Var[int] | int | None = None,
988
+ title: Var[str] | str | None = None,
989
+ style: Style | None = None,
990
+ key: Any | None = None,
991
+ id: Any | None = None,
992
+ class_name: Any | None = None,
993
+ autofocus: bool | None = None,
994
+ custom_attrs: dict[str, Var | Any] | None = None,
1132
995
  on_blur: Optional[EventType[()]] = None,
1133
996
  on_click: Optional[EventType[()]] = None,
1134
997
  on_context_menu: Optional[EventType[()]] = None,
@@ -1188,223 +1051,193 @@ class Kbd(elements.Kbd, RadixThemesComponent):
1188
1051
  def create( # type: ignore
1189
1052
  cls,
1190
1053
  *children,
1191
- size: Optional[
1192
- Union[
1193
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
1194
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1054
+ size: Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
1055
+ | Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]
1056
+ | None = None,
1057
+ access_key: Var[str] | str | None = None,
1058
+ auto_capitalize: Literal[
1059
+ "characters", "none", "off", "on", "sentences", "words"
1060
+ ]
1061
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
1062
+ | None = None,
1063
+ content_editable: Literal["inherit", "plaintext-only", False, True]
1064
+ | Var[Literal["inherit", "plaintext-only", False, True]]
1065
+ | None = None,
1066
+ context_menu: Var[str] | str | None = None,
1067
+ dir: Var[str] | str | None = None,
1068
+ draggable: Var[bool] | bool | None = None,
1069
+ enter_key_hint: Literal[
1070
+ "done", "enter", "go", "next", "previous", "search", "send"
1071
+ ]
1072
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
1073
+ | None = None,
1074
+ hidden: Var[bool] | bool | None = None,
1075
+ input_mode: Literal[
1076
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
1077
+ ]
1078
+ | Var[
1079
+ Literal[
1080
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
1195
1081
  ]
1196
- ] = None,
1197
- access_key: Optional[Union[Var[str], str]] = None,
1198
- auto_capitalize: Optional[
1199
- Union[
1200
- Literal["characters", "none", "off", "on", "sentences", "words"],
1201
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
1082
+ ]
1083
+ | None = None,
1084
+ item_prop: Var[str] | str | None = None,
1085
+ lang: Var[str] | str | None = None,
1086
+ role: Literal[
1087
+ "alert",
1088
+ "alertdialog",
1089
+ "application",
1090
+ "article",
1091
+ "banner",
1092
+ "button",
1093
+ "cell",
1094
+ "checkbox",
1095
+ "columnheader",
1096
+ "combobox",
1097
+ "complementary",
1098
+ "contentinfo",
1099
+ "definition",
1100
+ "dialog",
1101
+ "directory",
1102
+ "document",
1103
+ "feed",
1104
+ "figure",
1105
+ "form",
1106
+ "grid",
1107
+ "gridcell",
1108
+ "group",
1109
+ "heading",
1110
+ "img",
1111
+ "link",
1112
+ "list",
1113
+ "listbox",
1114
+ "listitem",
1115
+ "log",
1116
+ "main",
1117
+ "marquee",
1118
+ "math",
1119
+ "menu",
1120
+ "menubar",
1121
+ "menuitem",
1122
+ "menuitemcheckbox",
1123
+ "menuitemradio",
1124
+ "navigation",
1125
+ "none",
1126
+ "note",
1127
+ "option",
1128
+ "presentation",
1129
+ "progressbar",
1130
+ "radio",
1131
+ "radiogroup",
1132
+ "region",
1133
+ "row",
1134
+ "rowgroup",
1135
+ "rowheader",
1136
+ "scrollbar",
1137
+ "search",
1138
+ "searchbox",
1139
+ "separator",
1140
+ "slider",
1141
+ "spinbutton",
1142
+ "status",
1143
+ "switch",
1144
+ "tab",
1145
+ "table",
1146
+ "tablist",
1147
+ "tabpanel",
1148
+ "term",
1149
+ "textbox",
1150
+ "timer",
1151
+ "toolbar",
1152
+ "tooltip",
1153
+ "tree",
1154
+ "treegrid",
1155
+ "treeitem",
1156
+ ]
1157
+ | Var[
1158
+ Literal[
1159
+ "alert",
1160
+ "alertdialog",
1161
+ "application",
1162
+ "article",
1163
+ "banner",
1164
+ "button",
1165
+ "cell",
1166
+ "checkbox",
1167
+ "columnheader",
1168
+ "combobox",
1169
+ "complementary",
1170
+ "contentinfo",
1171
+ "definition",
1172
+ "dialog",
1173
+ "directory",
1174
+ "document",
1175
+ "feed",
1176
+ "figure",
1177
+ "form",
1178
+ "grid",
1179
+ "gridcell",
1180
+ "group",
1181
+ "heading",
1182
+ "img",
1183
+ "link",
1184
+ "list",
1185
+ "listbox",
1186
+ "listitem",
1187
+ "log",
1188
+ "main",
1189
+ "marquee",
1190
+ "math",
1191
+ "menu",
1192
+ "menubar",
1193
+ "menuitem",
1194
+ "menuitemcheckbox",
1195
+ "menuitemradio",
1196
+ "navigation",
1197
+ "none",
1198
+ "note",
1199
+ "option",
1200
+ "presentation",
1201
+ "progressbar",
1202
+ "radio",
1203
+ "radiogroup",
1204
+ "region",
1205
+ "row",
1206
+ "rowgroup",
1207
+ "rowheader",
1208
+ "scrollbar",
1209
+ "search",
1210
+ "searchbox",
1211
+ "separator",
1212
+ "slider",
1213
+ "spinbutton",
1214
+ "status",
1215
+ "switch",
1216
+ "tab",
1217
+ "table",
1218
+ "tablist",
1219
+ "tabpanel",
1220
+ "term",
1221
+ "textbox",
1222
+ "timer",
1223
+ "toolbar",
1224
+ "tooltip",
1225
+ "tree",
1226
+ "treegrid",
1227
+ "treeitem",
1202
1228
  ]
1203
- ] = None,
1204
- content_editable: Optional[
1205
- Union[
1206
- Literal["inherit", "plaintext-only", False, True],
1207
- Var[Literal["inherit", "plaintext-only", False, True]],
1208
- ]
1209
- ] = None,
1210
- context_menu: Optional[Union[Var[str], str]] = None,
1211
- dir: Optional[Union[Var[str], str]] = None,
1212
- draggable: Optional[Union[Var[bool], bool]] = None,
1213
- enter_key_hint: Optional[
1214
- Union[
1215
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
1216
- Var[
1217
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
1218
- ],
1219
- ]
1220
- ] = None,
1221
- hidden: Optional[Union[Var[bool], bool]] = None,
1222
- input_mode: Optional[
1223
- Union[
1224
- Literal[
1225
- "decimal",
1226
- "email",
1227
- "none",
1228
- "numeric",
1229
- "search",
1230
- "tel",
1231
- "text",
1232
- "url",
1233
- ],
1234
- Var[
1235
- Literal[
1236
- "decimal",
1237
- "email",
1238
- "none",
1239
- "numeric",
1240
- "search",
1241
- "tel",
1242
- "text",
1243
- "url",
1244
- ]
1245
- ],
1246
- ]
1247
- ] = None,
1248
- item_prop: Optional[Union[Var[str], str]] = None,
1249
- lang: Optional[Union[Var[str], str]] = None,
1250
- role: Optional[
1251
- Union[
1252
- Literal[
1253
- "alert",
1254
- "alertdialog",
1255
- "application",
1256
- "article",
1257
- "banner",
1258
- "button",
1259
- "cell",
1260
- "checkbox",
1261
- "columnheader",
1262
- "combobox",
1263
- "complementary",
1264
- "contentinfo",
1265
- "definition",
1266
- "dialog",
1267
- "directory",
1268
- "document",
1269
- "feed",
1270
- "figure",
1271
- "form",
1272
- "grid",
1273
- "gridcell",
1274
- "group",
1275
- "heading",
1276
- "img",
1277
- "link",
1278
- "list",
1279
- "listbox",
1280
- "listitem",
1281
- "log",
1282
- "main",
1283
- "marquee",
1284
- "math",
1285
- "menu",
1286
- "menubar",
1287
- "menuitem",
1288
- "menuitemcheckbox",
1289
- "menuitemradio",
1290
- "navigation",
1291
- "none",
1292
- "note",
1293
- "option",
1294
- "presentation",
1295
- "progressbar",
1296
- "radio",
1297
- "radiogroup",
1298
- "region",
1299
- "row",
1300
- "rowgroup",
1301
- "rowheader",
1302
- "scrollbar",
1303
- "search",
1304
- "searchbox",
1305
- "separator",
1306
- "slider",
1307
- "spinbutton",
1308
- "status",
1309
- "switch",
1310
- "tab",
1311
- "table",
1312
- "tablist",
1313
- "tabpanel",
1314
- "term",
1315
- "textbox",
1316
- "timer",
1317
- "toolbar",
1318
- "tooltip",
1319
- "tree",
1320
- "treegrid",
1321
- "treeitem",
1322
- ],
1323
- Var[
1324
- Literal[
1325
- "alert",
1326
- "alertdialog",
1327
- "application",
1328
- "article",
1329
- "banner",
1330
- "button",
1331
- "cell",
1332
- "checkbox",
1333
- "columnheader",
1334
- "combobox",
1335
- "complementary",
1336
- "contentinfo",
1337
- "definition",
1338
- "dialog",
1339
- "directory",
1340
- "document",
1341
- "feed",
1342
- "figure",
1343
- "form",
1344
- "grid",
1345
- "gridcell",
1346
- "group",
1347
- "heading",
1348
- "img",
1349
- "link",
1350
- "list",
1351
- "listbox",
1352
- "listitem",
1353
- "log",
1354
- "main",
1355
- "marquee",
1356
- "math",
1357
- "menu",
1358
- "menubar",
1359
- "menuitem",
1360
- "menuitemcheckbox",
1361
- "menuitemradio",
1362
- "navigation",
1363
- "none",
1364
- "note",
1365
- "option",
1366
- "presentation",
1367
- "progressbar",
1368
- "radio",
1369
- "radiogroup",
1370
- "region",
1371
- "row",
1372
- "rowgroup",
1373
- "rowheader",
1374
- "scrollbar",
1375
- "search",
1376
- "searchbox",
1377
- "separator",
1378
- "slider",
1379
- "spinbutton",
1380
- "status",
1381
- "switch",
1382
- "tab",
1383
- "table",
1384
- "tablist",
1385
- "tabpanel",
1386
- "term",
1387
- "textbox",
1388
- "timer",
1389
- "toolbar",
1390
- "tooltip",
1391
- "tree",
1392
- "treegrid",
1393
- "treeitem",
1394
- ]
1395
- ],
1396
- ]
1397
- ] = None,
1398
- slot: Optional[Union[Var[str], str]] = None,
1399
- spell_check: Optional[Union[Var[bool], bool]] = None,
1400
- tab_index: Optional[Union[Var[int], int]] = None,
1401
- title: Optional[Union[Var[str], str]] = None,
1402
- style: Optional[Style] = None,
1403
- key: Optional[Any] = None,
1404
- id: Optional[Any] = None,
1405
- class_name: Optional[Any] = None,
1406
- autofocus: Optional[bool] = None,
1407
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
1229
+ ]
1230
+ | None = None,
1231
+ slot: Var[str] | str | None = None,
1232
+ spell_check: Var[bool] | bool | None = None,
1233
+ tab_index: Var[int] | int | None = None,
1234
+ title: Var[str] | str | None = None,
1235
+ style: Style | None = None,
1236
+ key: Any | None = None,
1237
+ id: Any | None = None,
1238
+ class_name: Any | None = None,
1239
+ autofocus: bool | None = None,
1240
+ custom_attrs: dict[str, Var | Any] | None = None,
1408
1241
  on_blur: Optional[EventType[()]] = None,
1409
1242
  on_click: Optional[EventType[()]] = None,
1410
1243
  on_context_menu: Optional[EventType[()]] = None,
@@ -1465,218 +1298,191 @@ class Quote(elements.Q, RadixThemesComponent):
1465
1298
  def create( # type: ignore
1466
1299
  cls,
1467
1300
  *children,
1468
- cite: Optional[Union[Var[str], str]] = None,
1469
- access_key: Optional[Union[Var[str], str]] = None,
1470
- auto_capitalize: Optional[
1471
- Union[
1472
- Literal["characters", "none", "off", "on", "sentences", "words"],
1473
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
1474
- ]
1475
- ] = None,
1476
- content_editable: Optional[
1477
- Union[
1478
- Literal["inherit", "plaintext-only", False, True],
1479
- Var[Literal["inherit", "plaintext-only", False, True]],
1301
+ cite: Var[str] | str | None = None,
1302
+ access_key: Var[str] | str | None = None,
1303
+ auto_capitalize: Literal[
1304
+ "characters", "none", "off", "on", "sentences", "words"
1305
+ ]
1306
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
1307
+ | None = None,
1308
+ content_editable: Literal["inherit", "plaintext-only", False, True]
1309
+ | Var[Literal["inherit", "plaintext-only", False, True]]
1310
+ | None = None,
1311
+ context_menu: Var[str] | str | None = None,
1312
+ dir: Var[str] | str | None = None,
1313
+ draggable: Var[bool] | bool | None = None,
1314
+ enter_key_hint: Literal[
1315
+ "done", "enter", "go", "next", "previous", "search", "send"
1316
+ ]
1317
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
1318
+ | None = None,
1319
+ hidden: Var[bool] | bool | None = None,
1320
+ input_mode: Literal[
1321
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
1322
+ ]
1323
+ | Var[
1324
+ Literal[
1325
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
1480
1326
  ]
1481
- ] = None,
1482
- context_menu: Optional[Union[Var[str], str]] = None,
1483
- dir: Optional[Union[Var[str], str]] = None,
1484
- draggable: Optional[Union[Var[bool], bool]] = None,
1485
- enter_key_hint: Optional[
1486
- Union[
1487
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
1488
- Var[
1489
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
1490
- ],
1327
+ ]
1328
+ | None = None,
1329
+ item_prop: Var[str] | str | None = None,
1330
+ lang: Var[str] | str | None = None,
1331
+ role: Literal[
1332
+ "alert",
1333
+ "alertdialog",
1334
+ "application",
1335
+ "article",
1336
+ "banner",
1337
+ "button",
1338
+ "cell",
1339
+ "checkbox",
1340
+ "columnheader",
1341
+ "combobox",
1342
+ "complementary",
1343
+ "contentinfo",
1344
+ "definition",
1345
+ "dialog",
1346
+ "directory",
1347
+ "document",
1348
+ "feed",
1349
+ "figure",
1350
+ "form",
1351
+ "grid",
1352
+ "gridcell",
1353
+ "group",
1354
+ "heading",
1355
+ "img",
1356
+ "link",
1357
+ "list",
1358
+ "listbox",
1359
+ "listitem",
1360
+ "log",
1361
+ "main",
1362
+ "marquee",
1363
+ "math",
1364
+ "menu",
1365
+ "menubar",
1366
+ "menuitem",
1367
+ "menuitemcheckbox",
1368
+ "menuitemradio",
1369
+ "navigation",
1370
+ "none",
1371
+ "note",
1372
+ "option",
1373
+ "presentation",
1374
+ "progressbar",
1375
+ "radio",
1376
+ "radiogroup",
1377
+ "region",
1378
+ "row",
1379
+ "rowgroup",
1380
+ "rowheader",
1381
+ "scrollbar",
1382
+ "search",
1383
+ "searchbox",
1384
+ "separator",
1385
+ "slider",
1386
+ "spinbutton",
1387
+ "status",
1388
+ "switch",
1389
+ "tab",
1390
+ "table",
1391
+ "tablist",
1392
+ "tabpanel",
1393
+ "term",
1394
+ "textbox",
1395
+ "timer",
1396
+ "toolbar",
1397
+ "tooltip",
1398
+ "tree",
1399
+ "treegrid",
1400
+ "treeitem",
1401
+ ]
1402
+ | Var[
1403
+ Literal[
1404
+ "alert",
1405
+ "alertdialog",
1406
+ "application",
1407
+ "article",
1408
+ "banner",
1409
+ "button",
1410
+ "cell",
1411
+ "checkbox",
1412
+ "columnheader",
1413
+ "combobox",
1414
+ "complementary",
1415
+ "contentinfo",
1416
+ "definition",
1417
+ "dialog",
1418
+ "directory",
1419
+ "document",
1420
+ "feed",
1421
+ "figure",
1422
+ "form",
1423
+ "grid",
1424
+ "gridcell",
1425
+ "group",
1426
+ "heading",
1427
+ "img",
1428
+ "link",
1429
+ "list",
1430
+ "listbox",
1431
+ "listitem",
1432
+ "log",
1433
+ "main",
1434
+ "marquee",
1435
+ "math",
1436
+ "menu",
1437
+ "menubar",
1438
+ "menuitem",
1439
+ "menuitemcheckbox",
1440
+ "menuitemradio",
1441
+ "navigation",
1442
+ "none",
1443
+ "note",
1444
+ "option",
1445
+ "presentation",
1446
+ "progressbar",
1447
+ "radio",
1448
+ "radiogroup",
1449
+ "region",
1450
+ "row",
1451
+ "rowgroup",
1452
+ "rowheader",
1453
+ "scrollbar",
1454
+ "search",
1455
+ "searchbox",
1456
+ "separator",
1457
+ "slider",
1458
+ "spinbutton",
1459
+ "status",
1460
+ "switch",
1461
+ "tab",
1462
+ "table",
1463
+ "tablist",
1464
+ "tabpanel",
1465
+ "term",
1466
+ "textbox",
1467
+ "timer",
1468
+ "toolbar",
1469
+ "tooltip",
1470
+ "tree",
1471
+ "treegrid",
1472
+ "treeitem",
1491
1473
  ]
1492
- ] = None,
1493
- hidden: Optional[Union[Var[bool], bool]] = None,
1494
- input_mode: Optional[
1495
- Union[
1496
- Literal[
1497
- "decimal",
1498
- "email",
1499
- "none",
1500
- "numeric",
1501
- "search",
1502
- "tel",
1503
- "text",
1504
- "url",
1505
- ],
1506
- Var[
1507
- Literal[
1508
- "decimal",
1509
- "email",
1510
- "none",
1511
- "numeric",
1512
- "search",
1513
- "tel",
1514
- "text",
1515
- "url",
1516
- ]
1517
- ],
1518
- ]
1519
- ] = None,
1520
- item_prop: Optional[Union[Var[str], str]] = None,
1521
- lang: Optional[Union[Var[str], str]] = None,
1522
- role: Optional[
1523
- Union[
1524
- Literal[
1525
- "alert",
1526
- "alertdialog",
1527
- "application",
1528
- "article",
1529
- "banner",
1530
- "button",
1531
- "cell",
1532
- "checkbox",
1533
- "columnheader",
1534
- "combobox",
1535
- "complementary",
1536
- "contentinfo",
1537
- "definition",
1538
- "dialog",
1539
- "directory",
1540
- "document",
1541
- "feed",
1542
- "figure",
1543
- "form",
1544
- "grid",
1545
- "gridcell",
1546
- "group",
1547
- "heading",
1548
- "img",
1549
- "link",
1550
- "list",
1551
- "listbox",
1552
- "listitem",
1553
- "log",
1554
- "main",
1555
- "marquee",
1556
- "math",
1557
- "menu",
1558
- "menubar",
1559
- "menuitem",
1560
- "menuitemcheckbox",
1561
- "menuitemradio",
1562
- "navigation",
1563
- "none",
1564
- "note",
1565
- "option",
1566
- "presentation",
1567
- "progressbar",
1568
- "radio",
1569
- "radiogroup",
1570
- "region",
1571
- "row",
1572
- "rowgroup",
1573
- "rowheader",
1574
- "scrollbar",
1575
- "search",
1576
- "searchbox",
1577
- "separator",
1578
- "slider",
1579
- "spinbutton",
1580
- "status",
1581
- "switch",
1582
- "tab",
1583
- "table",
1584
- "tablist",
1585
- "tabpanel",
1586
- "term",
1587
- "textbox",
1588
- "timer",
1589
- "toolbar",
1590
- "tooltip",
1591
- "tree",
1592
- "treegrid",
1593
- "treeitem",
1594
- ],
1595
- Var[
1596
- Literal[
1597
- "alert",
1598
- "alertdialog",
1599
- "application",
1600
- "article",
1601
- "banner",
1602
- "button",
1603
- "cell",
1604
- "checkbox",
1605
- "columnheader",
1606
- "combobox",
1607
- "complementary",
1608
- "contentinfo",
1609
- "definition",
1610
- "dialog",
1611
- "directory",
1612
- "document",
1613
- "feed",
1614
- "figure",
1615
- "form",
1616
- "grid",
1617
- "gridcell",
1618
- "group",
1619
- "heading",
1620
- "img",
1621
- "link",
1622
- "list",
1623
- "listbox",
1624
- "listitem",
1625
- "log",
1626
- "main",
1627
- "marquee",
1628
- "math",
1629
- "menu",
1630
- "menubar",
1631
- "menuitem",
1632
- "menuitemcheckbox",
1633
- "menuitemradio",
1634
- "navigation",
1635
- "none",
1636
- "note",
1637
- "option",
1638
- "presentation",
1639
- "progressbar",
1640
- "radio",
1641
- "radiogroup",
1642
- "region",
1643
- "row",
1644
- "rowgroup",
1645
- "rowheader",
1646
- "scrollbar",
1647
- "search",
1648
- "searchbox",
1649
- "separator",
1650
- "slider",
1651
- "spinbutton",
1652
- "status",
1653
- "switch",
1654
- "tab",
1655
- "table",
1656
- "tablist",
1657
- "tabpanel",
1658
- "term",
1659
- "textbox",
1660
- "timer",
1661
- "toolbar",
1662
- "tooltip",
1663
- "tree",
1664
- "treegrid",
1665
- "treeitem",
1666
- ]
1667
- ],
1668
- ]
1669
- ] = None,
1670
- slot: Optional[Union[Var[str], str]] = None,
1671
- spell_check: Optional[Union[Var[bool], bool]] = None,
1672
- tab_index: Optional[Union[Var[int], int]] = None,
1673
- title: Optional[Union[Var[str], str]] = None,
1674
- style: Optional[Style] = None,
1675
- key: Optional[Any] = None,
1676
- id: Optional[Any] = None,
1677
- class_name: Optional[Any] = None,
1678
- autofocus: Optional[bool] = None,
1679
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
1474
+ ]
1475
+ | None = None,
1476
+ slot: Var[str] | str | None = None,
1477
+ spell_check: Var[bool] | bool | None = None,
1478
+ tab_index: Var[int] | int | None = None,
1479
+ title: Var[str] | str | None = None,
1480
+ style: Style | None = None,
1481
+ key: Any | None = None,
1482
+ id: Any | None = None,
1483
+ class_name: Any | None = None,
1484
+ autofocus: bool | None = None,
1485
+ custom_attrs: dict[str, Var | Any] | None = None,
1680
1486
  on_blur: Optional[EventType[()]] = None,
1681
1487
  on_click: Optional[EventType[()]] = None,
1682
1488
  on_context_menu: Optional[EventType[()]] = None,
@@ -1737,217 +1543,190 @@ class Strong(elements.Strong, RadixThemesComponent):
1737
1543
  def create( # type: ignore
1738
1544
  cls,
1739
1545
  *children,
1740
- access_key: Optional[Union[Var[str], str]] = None,
1741
- auto_capitalize: Optional[
1742
- Union[
1743
- Literal["characters", "none", "off", "on", "sentences", "words"],
1744
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
1745
- ]
1746
- ] = None,
1747
- content_editable: Optional[
1748
- Union[
1749
- Literal["inherit", "plaintext-only", False, True],
1750
- Var[Literal["inherit", "plaintext-only", False, True]],
1751
- ]
1752
- ] = None,
1753
- context_menu: Optional[Union[Var[str], str]] = None,
1754
- dir: Optional[Union[Var[str], str]] = None,
1755
- draggable: Optional[Union[Var[bool], bool]] = None,
1756
- enter_key_hint: Optional[
1757
- Union[
1758
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
1759
- Var[
1760
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
1761
- ],
1546
+ access_key: Var[str] | str | None = None,
1547
+ auto_capitalize: Literal[
1548
+ "characters", "none", "off", "on", "sentences", "words"
1549
+ ]
1550
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
1551
+ | None = None,
1552
+ content_editable: Literal["inherit", "plaintext-only", False, True]
1553
+ | Var[Literal["inherit", "plaintext-only", False, True]]
1554
+ | None = None,
1555
+ context_menu: Var[str] | str | None = None,
1556
+ dir: Var[str] | str | None = None,
1557
+ draggable: Var[bool] | bool | None = None,
1558
+ enter_key_hint: Literal[
1559
+ "done", "enter", "go", "next", "previous", "search", "send"
1560
+ ]
1561
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
1562
+ | None = None,
1563
+ hidden: Var[bool] | bool | None = None,
1564
+ input_mode: Literal[
1565
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
1566
+ ]
1567
+ | Var[
1568
+ Literal[
1569
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
1762
1570
  ]
1763
- ] = None,
1764
- hidden: Optional[Union[Var[bool], bool]] = None,
1765
- input_mode: Optional[
1766
- Union[
1767
- Literal[
1768
- "decimal",
1769
- "email",
1770
- "none",
1771
- "numeric",
1772
- "search",
1773
- "tel",
1774
- "text",
1775
- "url",
1776
- ],
1777
- Var[
1778
- Literal[
1779
- "decimal",
1780
- "email",
1781
- "none",
1782
- "numeric",
1783
- "search",
1784
- "tel",
1785
- "text",
1786
- "url",
1787
- ]
1788
- ],
1571
+ ]
1572
+ | None = None,
1573
+ item_prop: Var[str] | str | None = None,
1574
+ lang: Var[str] | str | None = None,
1575
+ role: Literal[
1576
+ "alert",
1577
+ "alertdialog",
1578
+ "application",
1579
+ "article",
1580
+ "banner",
1581
+ "button",
1582
+ "cell",
1583
+ "checkbox",
1584
+ "columnheader",
1585
+ "combobox",
1586
+ "complementary",
1587
+ "contentinfo",
1588
+ "definition",
1589
+ "dialog",
1590
+ "directory",
1591
+ "document",
1592
+ "feed",
1593
+ "figure",
1594
+ "form",
1595
+ "grid",
1596
+ "gridcell",
1597
+ "group",
1598
+ "heading",
1599
+ "img",
1600
+ "link",
1601
+ "list",
1602
+ "listbox",
1603
+ "listitem",
1604
+ "log",
1605
+ "main",
1606
+ "marquee",
1607
+ "math",
1608
+ "menu",
1609
+ "menubar",
1610
+ "menuitem",
1611
+ "menuitemcheckbox",
1612
+ "menuitemradio",
1613
+ "navigation",
1614
+ "none",
1615
+ "note",
1616
+ "option",
1617
+ "presentation",
1618
+ "progressbar",
1619
+ "radio",
1620
+ "radiogroup",
1621
+ "region",
1622
+ "row",
1623
+ "rowgroup",
1624
+ "rowheader",
1625
+ "scrollbar",
1626
+ "search",
1627
+ "searchbox",
1628
+ "separator",
1629
+ "slider",
1630
+ "spinbutton",
1631
+ "status",
1632
+ "switch",
1633
+ "tab",
1634
+ "table",
1635
+ "tablist",
1636
+ "tabpanel",
1637
+ "term",
1638
+ "textbox",
1639
+ "timer",
1640
+ "toolbar",
1641
+ "tooltip",
1642
+ "tree",
1643
+ "treegrid",
1644
+ "treeitem",
1645
+ ]
1646
+ | Var[
1647
+ Literal[
1648
+ "alert",
1649
+ "alertdialog",
1650
+ "application",
1651
+ "article",
1652
+ "banner",
1653
+ "button",
1654
+ "cell",
1655
+ "checkbox",
1656
+ "columnheader",
1657
+ "combobox",
1658
+ "complementary",
1659
+ "contentinfo",
1660
+ "definition",
1661
+ "dialog",
1662
+ "directory",
1663
+ "document",
1664
+ "feed",
1665
+ "figure",
1666
+ "form",
1667
+ "grid",
1668
+ "gridcell",
1669
+ "group",
1670
+ "heading",
1671
+ "img",
1672
+ "link",
1673
+ "list",
1674
+ "listbox",
1675
+ "listitem",
1676
+ "log",
1677
+ "main",
1678
+ "marquee",
1679
+ "math",
1680
+ "menu",
1681
+ "menubar",
1682
+ "menuitem",
1683
+ "menuitemcheckbox",
1684
+ "menuitemradio",
1685
+ "navigation",
1686
+ "none",
1687
+ "note",
1688
+ "option",
1689
+ "presentation",
1690
+ "progressbar",
1691
+ "radio",
1692
+ "radiogroup",
1693
+ "region",
1694
+ "row",
1695
+ "rowgroup",
1696
+ "rowheader",
1697
+ "scrollbar",
1698
+ "search",
1699
+ "searchbox",
1700
+ "separator",
1701
+ "slider",
1702
+ "spinbutton",
1703
+ "status",
1704
+ "switch",
1705
+ "tab",
1706
+ "table",
1707
+ "tablist",
1708
+ "tabpanel",
1709
+ "term",
1710
+ "textbox",
1711
+ "timer",
1712
+ "toolbar",
1713
+ "tooltip",
1714
+ "tree",
1715
+ "treegrid",
1716
+ "treeitem",
1789
1717
  ]
1790
- ] = None,
1791
- item_prop: Optional[Union[Var[str], str]] = None,
1792
- lang: Optional[Union[Var[str], str]] = None,
1793
- role: Optional[
1794
- Union[
1795
- Literal[
1796
- "alert",
1797
- "alertdialog",
1798
- "application",
1799
- "article",
1800
- "banner",
1801
- "button",
1802
- "cell",
1803
- "checkbox",
1804
- "columnheader",
1805
- "combobox",
1806
- "complementary",
1807
- "contentinfo",
1808
- "definition",
1809
- "dialog",
1810
- "directory",
1811
- "document",
1812
- "feed",
1813
- "figure",
1814
- "form",
1815
- "grid",
1816
- "gridcell",
1817
- "group",
1818
- "heading",
1819
- "img",
1820
- "link",
1821
- "list",
1822
- "listbox",
1823
- "listitem",
1824
- "log",
1825
- "main",
1826
- "marquee",
1827
- "math",
1828
- "menu",
1829
- "menubar",
1830
- "menuitem",
1831
- "menuitemcheckbox",
1832
- "menuitemradio",
1833
- "navigation",
1834
- "none",
1835
- "note",
1836
- "option",
1837
- "presentation",
1838
- "progressbar",
1839
- "radio",
1840
- "radiogroup",
1841
- "region",
1842
- "row",
1843
- "rowgroup",
1844
- "rowheader",
1845
- "scrollbar",
1846
- "search",
1847
- "searchbox",
1848
- "separator",
1849
- "slider",
1850
- "spinbutton",
1851
- "status",
1852
- "switch",
1853
- "tab",
1854
- "table",
1855
- "tablist",
1856
- "tabpanel",
1857
- "term",
1858
- "textbox",
1859
- "timer",
1860
- "toolbar",
1861
- "tooltip",
1862
- "tree",
1863
- "treegrid",
1864
- "treeitem",
1865
- ],
1866
- Var[
1867
- Literal[
1868
- "alert",
1869
- "alertdialog",
1870
- "application",
1871
- "article",
1872
- "banner",
1873
- "button",
1874
- "cell",
1875
- "checkbox",
1876
- "columnheader",
1877
- "combobox",
1878
- "complementary",
1879
- "contentinfo",
1880
- "definition",
1881
- "dialog",
1882
- "directory",
1883
- "document",
1884
- "feed",
1885
- "figure",
1886
- "form",
1887
- "grid",
1888
- "gridcell",
1889
- "group",
1890
- "heading",
1891
- "img",
1892
- "link",
1893
- "list",
1894
- "listbox",
1895
- "listitem",
1896
- "log",
1897
- "main",
1898
- "marquee",
1899
- "math",
1900
- "menu",
1901
- "menubar",
1902
- "menuitem",
1903
- "menuitemcheckbox",
1904
- "menuitemradio",
1905
- "navigation",
1906
- "none",
1907
- "note",
1908
- "option",
1909
- "presentation",
1910
- "progressbar",
1911
- "radio",
1912
- "radiogroup",
1913
- "region",
1914
- "row",
1915
- "rowgroup",
1916
- "rowheader",
1917
- "scrollbar",
1918
- "search",
1919
- "searchbox",
1920
- "separator",
1921
- "slider",
1922
- "spinbutton",
1923
- "status",
1924
- "switch",
1925
- "tab",
1926
- "table",
1927
- "tablist",
1928
- "tabpanel",
1929
- "term",
1930
- "textbox",
1931
- "timer",
1932
- "toolbar",
1933
- "tooltip",
1934
- "tree",
1935
- "treegrid",
1936
- "treeitem",
1937
- ]
1938
- ],
1939
- ]
1940
- ] = None,
1941
- slot: Optional[Union[Var[str], str]] = None,
1942
- spell_check: Optional[Union[Var[bool], bool]] = None,
1943
- tab_index: Optional[Union[Var[int], int]] = None,
1944
- title: Optional[Union[Var[str], str]] = None,
1945
- style: Optional[Style] = None,
1946
- key: Optional[Any] = None,
1947
- id: Optional[Any] = None,
1948
- class_name: Optional[Any] = None,
1949
- autofocus: Optional[bool] = None,
1950
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
1718
+ ]
1719
+ | None = None,
1720
+ slot: Var[str] | str | None = None,
1721
+ spell_check: Var[bool] | bool | None = None,
1722
+ tab_index: Var[int] | int | None = None,
1723
+ title: Var[str] | str | None = None,
1724
+ style: Style | None = None,
1725
+ key: Any | None = None,
1726
+ id: Any | None = None,
1727
+ class_name: Any | None = None,
1728
+ autofocus: bool | None = None,
1729
+ custom_attrs: dict[str, Var | Any] | None = None,
1951
1730
  on_blur: Optional[EventType[()]] = None,
1952
1731
  on_click: Optional[EventType[()]] = None,
1953
1732
  on_context_menu: Optional[EventType[()]] = None,
@@ -2011,377 +1790,322 @@ class TextNamespace(ComponentNamespace):
2011
1790
  @staticmethod
2012
1791
  def __call__(
2013
1792
  *children,
2014
- as_child: Optional[Union[Var[bool], bool]] = None,
2015
- as_: Optional[
2016
- Union[
2017
- Literal[
2018
- "abbr",
2019
- "b",
2020
- "cite",
2021
- "del",
2022
- "div",
2023
- "em",
2024
- "i",
2025
- "ins",
2026
- "kbd",
2027
- "label",
2028
- "mark",
2029
- "p",
2030
- "s",
2031
- "samp",
2032
- "span",
2033
- "sub",
2034
- "sup",
2035
- "u",
2036
- ],
2037
- Var[
2038
- Literal[
2039
- "abbr",
2040
- "b",
2041
- "cite",
2042
- "del",
2043
- "div",
2044
- "em",
2045
- "i",
2046
- "ins",
2047
- "kbd",
2048
- "label",
2049
- "mark",
2050
- "p",
2051
- "s",
2052
- "samp",
2053
- "span",
2054
- "sub",
2055
- "sup",
2056
- "u",
2057
- ]
2058
- ],
2059
- ]
2060
- ] = None,
2061
- size: Optional[
2062
- Union[
2063
- Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
2064
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
2065
- Var[
2066
- Union[
2067
- Breakpoints[
2068
- str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
2069
- ],
2070
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
2071
- ]
2072
- ],
2073
- ]
2074
- ] = None,
2075
- weight: Optional[
2076
- Union[
2077
- Breakpoints[str, Literal["bold", "light", "medium", "regular"]],
2078
- Literal["bold", "light", "medium", "regular"],
2079
- Var[
2080
- Union[
2081
- Breakpoints[str, Literal["bold", "light", "medium", "regular"]],
2082
- Literal["bold", "light", "medium", "regular"],
2083
- ]
2084
- ],
2085
- ]
2086
- ] = None,
2087
- align: Optional[
2088
- Union[
2089
- Breakpoints[str, Literal["center", "left", "right"]],
2090
- Literal["center", "left", "right"],
2091
- Var[
2092
- Union[
2093
- Breakpoints[str, Literal["center", "left", "right"]],
2094
- Literal["center", "left", "right"],
2095
- ]
2096
- ],
2097
- ]
2098
- ] = None,
2099
- trim: Optional[
2100
- Union[
2101
- Breakpoints[str, Literal["both", "end", "normal", "start"]],
2102
- Literal["both", "end", "normal", "start"],
2103
- Var[
2104
- Union[
2105
- Breakpoints[str, Literal["both", "end", "normal", "start"]],
2106
- Literal["both", "end", "normal", "start"],
2107
- ]
2108
- ],
2109
- ]
2110
- ] = None,
2111
- color_scheme: Optional[
2112
- Union[
2113
- Literal[
2114
- "amber",
2115
- "blue",
2116
- "bronze",
2117
- "brown",
2118
- "crimson",
2119
- "cyan",
2120
- "gold",
2121
- "grass",
2122
- "gray",
2123
- "green",
2124
- "indigo",
2125
- "iris",
2126
- "jade",
2127
- "lime",
2128
- "mint",
2129
- "orange",
2130
- "pink",
2131
- "plum",
2132
- "purple",
2133
- "red",
2134
- "ruby",
2135
- "sky",
2136
- "teal",
2137
- "tomato",
2138
- "violet",
2139
- "yellow",
2140
- ],
2141
- Var[
2142
- Literal[
2143
- "amber",
2144
- "blue",
2145
- "bronze",
2146
- "brown",
2147
- "crimson",
2148
- "cyan",
2149
- "gold",
2150
- "grass",
2151
- "gray",
2152
- "green",
2153
- "indigo",
2154
- "iris",
2155
- "jade",
2156
- "lime",
2157
- "mint",
2158
- "orange",
2159
- "pink",
2160
- "plum",
2161
- "purple",
2162
- "red",
2163
- "ruby",
2164
- "sky",
2165
- "teal",
2166
- "tomato",
2167
- "violet",
2168
- "yellow",
2169
- ]
2170
- ],
2171
- ]
2172
- ] = None,
2173
- high_contrast: Optional[Union[Var[bool], bool]] = None,
2174
- access_key: Optional[Union[Var[str], str]] = None,
2175
- auto_capitalize: Optional[
2176
- Union[
2177
- Literal["characters", "none", "off", "on", "sentences", "words"],
2178
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
2179
- ]
2180
- ] = None,
2181
- content_editable: Optional[
2182
- Union[
2183
- Literal["inherit", "plaintext-only", False, True],
2184
- Var[Literal["inherit", "plaintext-only", False, True]],
1793
+ as_child: Var[bool] | bool | None = None,
1794
+ as_: Literal[
1795
+ "abbr",
1796
+ "b",
1797
+ "cite",
1798
+ "del",
1799
+ "div",
1800
+ "em",
1801
+ "i",
1802
+ "ins",
1803
+ "kbd",
1804
+ "label",
1805
+ "mark",
1806
+ "p",
1807
+ "s",
1808
+ "samp",
1809
+ "span",
1810
+ "sub",
1811
+ "sup",
1812
+ "u",
1813
+ ]
1814
+ | Var[
1815
+ Literal[
1816
+ "abbr",
1817
+ "b",
1818
+ "cite",
1819
+ "del",
1820
+ "div",
1821
+ "em",
1822
+ "i",
1823
+ "ins",
1824
+ "kbd",
1825
+ "label",
1826
+ "mark",
1827
+ "p",
1828
+ "s",
1829
+ "samp",
1830
+ "span",
1831
+ "sub",
1832
+ "sup",
1833
+ "u",
2185
1834
  ]
2186
- ] = None,
2187
- context_menu: Optional[Union[Var[str], str]] = None,
2188
- dir: Optional[Union[Var[str], str]] = None,
2189
- draggable: Optional[Union[Var[bool], bool]] = None,
2190
- enter_key_hint: Optional[
2191
- Union[
2192
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
2193
- Var[
2194
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
2195
- ],
1835
+ ]
1836
+ | None = None,
1837
+ size: Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]
1838
+ | Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
1839
+ | Var[
1840
+ Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]
1841
+ | Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
1842
+ ]
1843
+ | None = None,
1844
+ weight: Breakpoints[str, Literal["bold", "light", "medium", "regular"]]
1845
+ | Literal["bold", "light", "medium", "regular"]
1846
+ | Var[
1847
+ Breakpoints[str, Literal["bold", "light", "medium", "regular"]]
1848
+ | Literal["bold", "light", "medium", "regular"]
1849
+ ]
1850
+ | None = None,
1851
+ align: Breakpoints[str, Literal["center", "left", "right"]]
1852
+ | Literal["center", "left", "right"]
1853
+ | Var[
1854
+ Breakpoints[str, Literal["center", "left", "right"]]
1855
+ | Literal["center", "left", "right"]
1856
+ ]
1857
+ | None = None,
1858
+ trim: Breakpoints[str, Literal["both", "end", "normal", "start"]]
1859
+ | Literal["both", "end", "normal", "start"]
1860
+ | Var[
1861
+ Breakpoints[str, Literal["both", "end", "normal", "start"]]
1862
+ | Literal["both", "end", "normal", "start"]
1863
+ ]
1864
+ | None = None,
1865
+ color_scheme: Literal[
1866
+ "amber",
1867
+ "blue",
1868
+ "bronze",
1869
+ "brown",
1870
+ "crimson",
1871
+ "cyan",
1872
+ "gold",
1873
+ "grass",
1874
+ "gray",
1875
+ "green",
1876
+ "indigo",
1877
+ "iris",
1878
+ "jade",
1879
+ "lime",
1880
+ "mint",
1881
+ "orange",
1882
+ "pink",
1883
+ "plum",
1884
+ "purple",
1885
+ "red",
1886
+ "ruby",
1887
+ "sky",
1888
+ "teal",
1889
+ "tomato",
1890
+ "violet",
1891
+ "yellow",
1892
+ ]
1893
+ | Var[
1894
+ Literal[
1895
+ "amber",
1896
+ "blue",
1897
+ "bronze",
1898
+ "brown",
1899
+ "crimson",
1900
+ "cyan",
1901
+ "gold",
1902
+ "grass",
1903
+ "gray",
1904
+ "green",
1905
+ "indigo",
1906
+ "iris",
1907
+ "jade",
1908
+ "lime",
1909
+ "mint",
1910
+ "orange",
1911
+ "pink",
1912
+ "plum",
1913
+ "purple",
1914
+ "red",
1915
+ "ruby",
1916
+ "sky",
1917
+ "teal",
1918
+ "tomato",
1919
+ "violet",
1920
+ "yellow",
2196
1921
  ]
2197
- ] = None,
2198
- hidden: Optional[Union[Var[bool], bool]] = None,
2199
- input_mode: Optional[
2200
- Union[
2201
- Literal[
2202
- "decimal",
2203
- "email",
2204
- "none",
2205
- "numeric",
2206
- "search",
2207
- "tel",
2208
- "text",
2209
- "url",
2210
- ],
2211
- Var[
2212
- Literal[
2213
- "decimal",
2214
- "email",
2215
- "none",
2216
- "numeric",
2217
- "search",
2218
- "tel",
2219
- "text",
2220
- "url",
2221
- ]
2222
- ],
1922
+ ]
1923
+ | None = None,
1924
+ high_contrast: Var[bool] | bool | None = None,
1925
+ access_key: Var[str] | str | None = None,
1926
+ auto_capitalize: Literal[
1927
+ "characters", "none", "off", "on", "sentences", "words"
1928
+ ]
1929
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
1930
+ | None = None,
1931
+ content_editable: Literal["inherit", "plaintext-only", False, True]
1932
+ | Var[Literal["inherit", "plaintext-only", False, True]]
1933
+ | None = None,
1934
+ context_menu: Var[str] | str | None = None,
1935
+ dir: Var[str] | str | None = None,
1936
+ draggable: Var[bool] | bool | None = None,
1937
+ enter_key_hint: Literal[
1938
+ "done", "enter", "go", "next", "previous", "search", "send"
1939
+ ]
1940
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
1941
+ | None = None,
1942
+ hidden: Var[bool] | bool | None = None,
1943
+ input_mode: Literal[
1944
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
1945
+ ]
1946
+ | Var[
1947
+ Literal[
1948
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
2223
1949
  ]
2224
- ] = None,
2225
- item_prop: Optional[Union[Var[str], str]] = None,
2226
- lang: Optional[Union[Var[str], str]] = None,
2227
- role: Optional[
2228
- Union[
2229
- Literal[
2230
- "alert",
2231
- "alertdialog",
2232
- "application",
2233
- "article",
2234
- "banner",
2235
- "button",
2236
- "cell",
2237
- "checkbox",
2238
- "columnheader",
2239
- "combobox",
2240
- "complementary",
2241
- "contentinfo",
2242
- "definition",
2243
- "dialog",
2244
- "directory",
2245
- "document",
2246
- "feed",
2247
- "figure",
2248
- "form",
2249
- "grid",
2250
- "gridcell",
2251
- "group",
2252
- "heading",
2253
- "img",
2254
- "link",
2255
- "list",
2256
- "listbox",
2257
- "listitem",
2258
- "log",
2259
- "main",
2260
- "marquee",
2261
- "math",
2262
- "menu",
2263
- "menubar",
2264
- "menuitem",
2265
- "menuitemcheckbox",
2266
- "menuitemradio",
2267
- "navigation",
2268
- "none",
2269
- "note",
2270
- "option",
2271
- "presentation",
2272
- "progressbar",
2273
- "radio",
2274
- "radiogroup",
2275
- "region",
2276
- "row",
2277
- "rowgroup",
2278
- "rowheader",
2279
- "scrollbar",
2280
- "search",
2281
- "searchbox",
2282
- "separator",
2283
- "slider",
2284
- "spinbutton",
2285
- "status",
2286
- "switch",
2287
- "tab",
2288
- "table",
2289
- "tablist",
2290
- "tabpanel",
2291
- "term",
2292
- "textbox",
2293
- "timer",
2294
- "toolbar",
2295
- "tooltip",
2296
- "tree",
2297
- "treegrid",
2298
- "treeitem",
2299
- ],
2300
- Var[
2301
- Literal[
2302
- "alert",
2303
- "alertdialog",
2304
- "application",
2305
- "article",
2306
- "banner",
2307
- "button",
2308
- "cell",
2309
- "checkbox",
2310
- "columnheader",
2311
- "combobox",
2312
- "complementary",
2313
- "contentinfo",
2314
- "definition",
2315
- "dialog",
2316
- "directory",
2317
- "document",
2318
- "feed",
2319
- "figure",
2320
- "form",
2321
- "grid",
2322
- "gridcell",
2323
- "group",
2324
- "heading",
2325
- "img",
2326
- "link",
2327
- "list",
2328
- "listbox",
2329
- "listitem",
2330
- "log",
2331
- "main",
2332
- "marquee",
2333
- "math",
2334
- "menu",
2335
- "menubar",
2336
- "menuitem",
2337
- "menuitemcheckbox",
2338
- "menuitemradio",
2339
- "navigation",
2340
- "none",
2341
- "note",
2342
- "option",
2343
- "presentation",
2344
- "progressbar",
2345
- "radio",
2346
- "radiogroup",
2347
- "region",
2348
- "row",
2349
- "rowgroup",
2350
- "rowheader",
2351
- "scrollbar",
2352
- "search",
2353
- "searchbox",
2354
- "separator",
2355
- "slider",
2356
- "spinbutton",
2357
- "status",
2358
- "switch",
2359
- "tab",
2360
- "table",
2361
- "tablist",
2362
- "tabpanel",
2363
- "term",
2364
- "textbox",
2365
- "timer",
2366
- "toolbar",
2367
- "tooltip",
2368
- "tree",
2369
- "treegrid",
2370
- "treeitem",
2371
- ]
2372
- ],
1950
+ ]
1951
+ | None = None,
1952
+ item_prop: Var[str] | str | None = None,
1953
+ lang: Var[str] | str | None = None,
1954
+ role: Literal[
1955
+ "alert",
1956
+ "alertdialog",
1957
+ "application",
1958
+ "article",
1959
+ "banner",
1960
+ "button",
1961
+ "cell",
1962
+ "checkbox",
1963
+ "columnheader",
1964
+ "combobox",
1965
+ "complementary",
1966
+ "contentinfo",
1967
+ "definition",
1968
+ "dialog",
1969
+ "directory",
1970
+ "document",
1971
+ "feed",
1972
+ "figure",
1973
+ "form",
1974
+ "grid",
1975
+ "gridcell",
1976
+ "group",
1977
+ "heading",
1978
+ "img",
1979
+ "link",
1980
+ "list",
1981
+ "listbox",
1982
+ "listitem",
1983
+ "log",
1984
+ "main",
1985
+ "marquee",
1986
+ "math",
1987
+ "menu",
1988
+ "menubar",
1989
+ "menuitem",
1990
+ "menuitemcheckbox",
1991
+ "menuitemradio",
1992
+ "navigation",
1993
+ "none",
1994
+ "note",
1995
+ "option",
1996
+ "presentation",
1997
+ "progressbar",
1998
+ "radio",
1999
+ "radiogroup",
2000
+ "region",
2001
+ "row",
2002
+ "rowgroup",
2003
+ "rowheader",
2004
+ "scrollbar",
2005
+ "search",
2006
+ "searchbox",
2007
+ "separator",
2008
+ "slider",
2009
+ "spinbutton",
2010
+ "status",
2011
+ "switch",
2012
+ "tab",
2013
+ "table",
2014
+ "tablist",
2015
+ "tabpanel",
2016
+ "term",
2017
+ "textbox",
2018
+ "timer",
2019
+ "toolbar",
2020
+ "tooltip",
2021
+ "tree",
2022
+ "treegrid",
2023
+ "treeitem",
2024
+ ]
2025
+ | Var[
2026
+ Literal[
2027
+ "alert",
2028
+ "alertdialog",
2029
+ "application",
2030
+ "article",
2031
+ "banner",
2032
+ "button",
2033
+ "cell",
2034
+ "checkbox",
2035
+ "columnheader",
2036
+ "combobox",
2037
+ "complementary",
2038
+ "contentinfo",
2039
+ "definition",
2040
+ "dialog",
2041
+ "directory",
2042
+ "document",
2043
+ "feed",
2044
+ "figure",
2045
+ "form",
2046
+ "grid",
2047
+ "gridcell",
2048
+ "group",
2049
+ "heading",
2050
+ "img",
2051
+ "link",
2052
+ "list",
2053
+ "listbox",
2054
+ "listitem",
2055
+ "log",
2056
+ "main",
2057
+ "marquee",
2058
+ "math",
2059
+ "menu",
2060
+ "menubar",
2061
+ "menuitem",
2062
+ "menuitemcheckbox",
2063
+ "menuitemradio",
2064
+ "navigation",
2065
+ "none",
2066
+ "note",
2067
+ "option",
2068
+ "presentation",
2069
+ "progressbar",
2070
+ "radio",
2071
+ "radiogroup",
2072
+ "region",
2073
+ "row",
2074
+ "rowgroup",
2075
+ "rowheader",
2076
+ "scrollbar",
2077
+ "search",
2078
+ "searchbox",
2079
+ "separator",
2080
+ "slider",
2081
+ "spinbutton",
2082
+ "status",
2083
+ "switch",
2084
+ "tab",
2085
+ "table",
2086
+ "tablist",
2087
+ "tabpanel",
2088
+ "term",
2089
+ "textbox",
2090
+ "timer",
2091
+ "toolbar",
2092
+ "tooltip",
2093
+ "tree",
2094
+ "treegrid",
2095
+ "treeitem",
2373
2096
  ]
2374
- ] = None,
2375
- slot: Optional[Union[Var[str], str]] = None,
2376
- spell_check: Optional[Union[Var[bool], bool]] = None,
2377
- tab_index: Optional[Union[Var[int], int]] = None,
2378
- title: Optional[Union[Var[str], str]] = None,
2379
- style: Optional[Style] = None,
2380
- key: Optional[Any] = None,
2381
- id: Optional[Any] = None,
2382
- class_name: Optional[Any] = None,
2383
- autofocus: Optional[bool] = None,
2384
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
2097
+ ]
2098
+ | None = None,
2099
+ slot: Var[str] | str | None = None,
2100
+ spell_check: Var[bool] | bool | None = None,
2101
+ tab_index: Var[int] | int | None = None,
2102
+ title: Var[str] | str | None = None,
2103
+ style: Style | None = None,
2104
+ key: Any | None = None,
2105
+ id: Any | None = None,
2106
+ class_name: Any | None = None,
2107
+ autofocus: bool | None = None,
2108
+ custom_attrs: dict[str, Var | Any] | None = None,
2385
2109
  on_blur: Optional[EventType[()]] = None,
2386
2110
  on_click: Optional[EventType[()]] = None,
2387
2111
  on_context_menu: Optional[EventType[()]] = None,