reflex 0.7.0a5__py3-none-any.whl → 0.7.1a2__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 (126) hide show
  1. reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +3 -1
  2. reflex/__init__.py +1 -0
  3. reflex/__init__.pyi +1 -0
  4. reflex/app.py +255 -81
  5. reflex/base.py +4 -10
  6. reflex/compiler/compiler.py +46 -12
  7. reflex/compiler/templates.py +1 -2
  8. reflex/compiler/utils.py +23 -14
  9. reflex/components/base/bare.py +109 -16
  10. reflex/components/component.py +179 -124
  11. reflex/components/core/__init__.py +1 -0
  12. reflex/components/core/__init__.pyi +1 -0
  13. reflex/components/core/auto_scroll.py +111 -0
  14. reflex/components/core/auto_scroll.pyi +284 -0
  15. reflex/components/core/banner.py +40 -9
  16. reflex/components/core/banner.pyi +400 -87
  17. reflex/components/core/breakpoints.py +1 -1
  18. reflex/components/core/cond.py +0 -8
  19. reflex/components/core/foreach.py +12 -2
  20. reflex/components/core/html.pyi +200 -19
  21. reflex/components/core/match.py +4 -4
  22. reflex/components/core/sticky.pyi +874 -90
  23. reflex/components/core/upload.py +3 -5
  24. reflex/components/core/upload.pyi +2 -4
  25. reflex/components/datadisplay/code.py +36 -10
  26. reflex/components/datadisplay/code.pyi +1 -1
  27. reflex/components/datadisplay/dataeditor.py +1 -3
  28. reflex/components/datadisplay/dataeditor.pyi +1 -3
  29. reflex/components/el/elements/base.py +95 -17
  30. reflex/components/el/elements/base.pyi +278 -19
  31. reflex/components/el/elements/forms.py +124 -102
  32. reflex/components/el/elements/forms.pyi +2787 -365
  33. reflex/components/el/elements/inline.py +24 -15
  34. reflex/components/el/elements/inline.pyi +5655 -546
  35. reflex/components/el/elements/media.py +79 -95
  36. reflex/components/el/elements/media.pyi +5167 -565
  37. reflex/components/el/elements/metadata.py +19 -17
  38. reflex/components/el/elements/metadata.pyi +841 -89
  39. reflex/components/el/elements/other.py +3 -5
  40. reflex/components/el/elements/other.pyi +1404 -137
  41. reflex/components/el/elements/scripts.py +10 -13
  42. reflex/components/el/elements/scripts.pyi +634 -65
  43. reflex/components/el/elements/sectioning.pyi +3001 -286
  44. reflex/components/el/elements/tables.py +14 -35
  45. reflex/components/el/elements/tables.pyi +2029 -218
  46. reflex/components/el/elements/typography.py +10 -13
  47. reflex/components/el/elements/typography.pyi +3014 -297
  48. reflex/components/lucide/icon.py +22 -6
  49. reflex/components/markdown/markdown.py +30 -10
  50. reflex/components/markdown/markdown.pyi +3 -2
  51. reflex/components/plotly/plotly.py +1 -3
  52. reflex/components/plotly/plotly.pyi +1 -3
  53. reflex/components/radix/primitives/form.pyi +624 -93
  54. reflex/components/radix/themes/color_mode.py +1 -1
  55. reflex/components/radix/themes/color_mode.pyi +213 -31
  56. reflex/components/radix/themes/components/alert_dialog.pyi +199 -18
  57. reflex/components/radix/themes/components/badge.pyi +199 -18
  58. reflex/components/radix/themes/components/button.pyi +213 -31
  59. reflex/components/radix/themes/components/callout.pyi +1000 -95
  60. reflex/components/radix/themes/components/card.pyi +199 -18
  61. reflex/components/radix/themes/components/context_menu.py +79 -1
  62. reflex/components/radix/themes/components/context_menu.pyi +320 -1
  63. reflex/components/radix/themes/components/dialog.pyi +199 -18
  64. reflex/components/radix/themes/components/hover_card.pyi +199 -18
  65. reflex/components/radix/themes/components/icon_button.pyi +213 -31
  66. reflex/components/radix/themes/components/inset.pyi +199 -18
  67. reflex/components/radix/themes/components/popover.pyi +199 -18
  68. reflex/components/radix/themes/components/table.pyi +1437 -154
  69. reflex/components/radix/themes/components/text_area.py +2 -2
  70. reflex/components/radix/themes/components/text_area.pyi +201 -20
  71. reflex/components/radix/themes/components/text_field.py +1 -1
  72. reflex/components/radix/themes/components/text_field.pyi +444 -88
  73. reflex/components/radix/themes/layout/box.pyi +200 -19
  74. reflex/components/radix/themes/layout/center.pyi +199 -18
  75. reflex/components/radix/themes/layout/container.pyi +199 -18
  76. reflex/components/radix/themes/layout/flex.pyi +199 -18
  77. reflex/components/radix/themes/layout/grid.pyi +199 -18
  78. reflex/components/radix/themes/layout/list.pyi +604 -57
  79. reflex/components/radix/themes/layout/section.pyi +199 -18
  80. reflex/components/radix/themes/layout/spacer.pyi +199 -18
  81. reflex/components/radix/themes/layout/stack.pyi +597 -54
  82. reflex/components/radix/themes/typography/blockquote.pyi +200 -19
  83. reflex/components/radix/themes/typography/code.pyi +199 -18
  84. reflex/components/radix/themes/typography/heading.pyi +199 -18
  85. reflex/components/radix/themes/typography/link.pyi +238 -28
  86. reflex/components/radix/themes/typography/text.pyi +1394 -127
  87. reflex/components/react_player/react_player.py +1 -1
  88. reflex/components/react_player/react_player.pyi +1 -3
  89. reflex/components/sonner/toast.py +41 -12
  90. reflex/components/sonner/toast.pyi +20 -6
  91. reflex/components/tags/iter_tag.py +4 -0
  92. reflex/components/tags/tag.py +3 -3
  93. reflex/config.py +187 -28
  94. reflex/constants/__init__.py +2 -0
  95. reflex/constants/base.py +6 -0
  96. reflex/constants/compiler.py +9 -0
  97. reflex/constants/event.py +1 -0
  98. reflex/constants/installer.py +4 -5
  99. reflex/constants/utils.py +1 -3
  100. reflex/event.py +7 -16
  101. reflex/experimental/layout.pyi +597 -54
  102. reflex/py.typed +0 -0
  103. reflex/reflex.py +30 -41
  104. reflex/state.py +49 -44
  105. reflex/style.py +15 -22
  106. reflex/testing.py +2 -0
  107. reflex/utils/build.py +12 -0
  108. reflex/utils/console.py +4 -0
  109. reflex/utils/decorator.py +25 -0
  110. reflex/utils/exec.py +92 -34
  111. reflex/utils/format.py +35 -6
  112. reflex/utils/path_ops.py +16 -1
  113. reflex/utils/prerequisites.py +34 -8
  114. reflex/utils/processes.py +12 -13
  115. reflex/utils/serializers.py +20 -43
  116. reflex/utils/telemetry.py +4 -15
  117. reflex/utils/types.py +36 -66
  118. reflex/vars/base.py +53 -76
  119. reflex/vars/function.py +17 -5
  120. reflex/vars/number.py +1 -1
  121. reflex/vars/sequence.py +80 -4
  122. {reflex-0.7.0a5.dist-info → reflex-0.7.1a2.dist-info}/METADATA +4 -5
  123. {reflex-0.7.0a5.dist-info → reflex-0.7.1a2.dist-info}/RECORD +126 -122
  124. {reflex-0.7.0a5.dist-info → reflex-0.7.1a2.dist-info}/LICENSE +0 -0
  125. {reflex-0.7.0a5.dist-info → reflex-0.7.1a2.dist-info}/WHEEL +0 -0
  126. {reflex-0.7.0a5.dist-info → reflex-0.7.1a2.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, Optional, Union, overload
6
+ from typing import Any, Dict, Literal, Optional, Union, overload
7
7
 
8
8
  from reflex.event import EventType
9
9
  from reflex.style import Style
@@ -17,31 +17,212 @@ class Details(BaseHTML):
17
17
  def create( # type: ignore
18
18
  cls,
19
19
  *children,
20
- open: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
21
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
20
+ open: Optional[Union[Var[bool], bool]] = None,
21
+ access_key: Optional[Union[Var[str], str]] = None,
22
22
  auto_capitalize: Optional[
23
- Union[Var[Union[bool, int, str]], bool, int, str]
23
+ Union[
24
+ Literal["characters", "none", "off", "on", "sentences", "words"],
25
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
26
+ ]
24
27
  ] = None,
25
28
  content_editable: Optional[
26
- Union[Var[Union[bool, int, str]], bool, int, str]
29
+ Union[
30
+ Literal["inherit", "plaintext-only", False, True],
31
+ Var[Literal["inherit", "plaintext-only", False, True]],
32
+ ]
27
33
  ] = None,
28
- context_menu: Optional[
29
- Union[Var[Union[bool, int, str]], bool, int, str]
30
- ] = None,
31
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
32
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
34
+ context_menu: Optional[Union[Var[str], str]] = None,
35
+ dir: Optional[Union[Var[str], str]] = None,
36
+ draggable: Optional[Union[Var[bool], bool]] = None,
33
37
  enter_key_hint: Optional[
34
- Union[Var[Union[bool, int, str]], bool, int, str]
35
- ] = None,
36
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
37
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
38
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
39
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
40
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
41
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
42
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
43
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
44
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
38
+ Union[
39
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
40
+ Var[
41
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
42
+ ],
43
+ ]
44
+ ] = None,
45
+ hidden: Optional[Union[Var[bool], bool]] = None,
46
+ input_mode: Optional[
47
+ Union[
48
+ Literal[
49
+ "decimal",
50
+ "email",
51
+ "none",
52
+ "numeric",
53
+ "search",
54
+ "tel",
55
+ "text",
56
+ "url",
57
+ ],
58
+ Var[
59
+ Literal[
60
+ "decimal",
61
+ "email",
62
+ "none",
63
+ "numeric",
64
+ "search",
65
+ "tel",
66
+ "text",
67
+ "url",
68
+ ]
69
+ ],
70
+ ]
71
+ ] = None,
72
+ item_prop: Optional[Union[Var[str], str]] = None,
73
+ lang: Optional[Union[Var[str], str]] = None,
74
+ role: Optional[
75
+ Union[
76
+ Literal[
77
+ "alert",
78
+ "alertdialog",
79
+ "application",
80
+ "article",
81
+ "banner",
82
+ "button",
83
+ "cell",
84
+ "checkbox",
85
+ "columnheader",
86
+ "combobox",
87
+ "complementary",
88
+ "contentinfo",
89
+ "definition",
90
+ "dialog",
91
+ "directory",
92
+ "document",
93
+ "feed",
94
+ "figure",
95
+ "form",
96
+ "grid",
97
+ "gridcell",
98
+ "group",
99
+ "heading",
100
+ "img",
101
+ "link",
102
+ "list",
103
+ "listbox",
104
+ "listitem",
105
+ "log",
106
+ "main",
107
+ "marquee",
108
+ "math",
109
+ "menu",
110
+ "menubar",
111
+ "menuitem",
112
+ "menuitemcheckbox",
113
+ "menuitemradio",
114
+ "navigation",
115
+ "none",
116
+ "note",
117
+ "option",
118
+ "presentation",
119
+ "progressbar",
120
+ "radio",
121
+ "radiogroup",
122
+ "region",
123
+ "row",
124
+ "rowgroup",
125
+ "rowheader",
126
+ "scrollbar",
127
+ "search",
128
+ "searchbox",
129
+ "separator",
130
+ "slider",
131
+ "spinbutton",
132
+ "status",
133
+ "switch",
134
+ "tab",
135
+ "table",
136
+ "tablist",
137
+ "tabpanel",
138
+ "term",
139
+ "textbox",
140
+ "timer",
141
+ "toolbar",
142
+ "tooltip",
143
+ "tree",
144
+ "treegrid",
145
+ "treeitem",
146
+ ],
147
+ Var[
148
+ Literal[
149
+ "alert",
150
+ "alertdialog",
151
+ "application",
152
+ "article",
153
+ "banner",
154
+ "button",
155
+ "cell",
156
+ "checkbox",
157
+ "columnheader",
158
+ "combobox",
159
+ "complementary",
160
+ "contentinfo",
161
+ "definition",
162
+ "dialog",
163
+ "directory",
164
+ "document",
165
+ "feed",
166
+ "figure",
167
+ "form",
168
+ "grid",
169
+ "gridcell",
170
+ "group",
171
+ "heading",
172
+ "img",
173
+ "link",
174
+ "list",
175
+ "listbox",
176
+ "listitem",
177
+ "log",
178
+ "main",
179
+ "marquee",
180
+ "math",
181
+ "menu",
182
+ "menubar",
183
+ "menuitem",
184
+ "menuitemcheckbox",
185
+ "menuitemradio",
186
+ "navigation",
187
+ "none",
188
+ "note",
189
+ "option",
190
+ "presentation",
191
+ "progressbar",
192
+ "radio",
193
+ "radiogroup",
194
+ "region",
195
+ "row",
196
+ "rowgroup",
197
+ "rowheader",
198
+ "scrollbar",
199
+ "search",
200
+ "searchbox",
201
+ "separator",
202
+ "slider",
203
+ "spinbutton",
204
+ "status",
205
+ "switch",
206
+ "tab",
207
+ "table",
208
+ "tablist",
209
+ "tabpanel",
210
+ "term",
211
+ "textbox",
212
+ "timer",
213
+ "toolbar",
214
+ "tooltip",
215
+ "tree",
216
+ "treegrid",
217
+ "treeitem",
218
+ ]
219
+ ],
220
+ ]
221
+ ] = None,
222
+ slot: Optional[Union[Var[str], str]] = None,
223
+ spell_check: Optional[Union[Var[bool], bool]] = None,
224
+ tab_index: Optional[Union[Var[int], int]] = None,
225
+ title: Optional[Union[Var[str], str]] = None,
45
226
  style: Optional[Style] = None,
46
227
  key: Optional[Any] = None,
47
228
  id: Optional[Any] = None,
@@ -105,31 +286,212 @@ class Dialog(BaseHTML):
105
286
  def create( # type: ignore
106
287
  cls,
107
288
  *children,
108
- open: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
109
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
289
+ open: Optional[Union[Var[bool], bool]] = None,
290
+ access_key: Optional[Union[Var[str], str]] = None,
110
291
  auto_capitalize: Optional[
111
- Union[Var[Union[bool, int, str]], bool, int, str]
292
+ Union[
293
+ Literal["characters", "none", "off", "on", "sentences", "words"],
294
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
295
+ ]
112
296
  ] = None,
113
297
  content_editable: Optional[
114
- Union[Var[Union[bool, int, str]], bool, int, str]
298
+ Union[
299
+ Literal["inherit", "plaintext-only", False, True],
300
+ Var[Literal["inherit", "plaintext-only", False, True]],
301
+ ]
115
302
  ] = None,
116
- context_menu: Optional[
117
- Union[Var[Union[bool, int, str]], bool, int, str]
118
- ] = None,
119
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
120
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
303
+ context_menu: Optional[Union[Var[str], str]] = None,
304
+ dir: Optional[Union[Var[str], str]] = None,
305
+ draggable: Optional[Union[Var[bool], bool]] = None,
121
306
  enter_key_hint: Optional[
122
- Union[Var[Union[bool, int, str]], bool, int, str]
123
- ] = None,
124
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
125
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
126
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
127
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
128
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
129
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
130
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
131
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
132
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
307
+ Union[
308
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
309
+ Var[
310
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
311
+ ],
312
+ ]
313
+ ] = None,
314
+ hidden: Optional[Union[Var[bool], bool]] = None,
315
+ input_mode: Optional[
316
+ Union[
317
+ Literal[
318
+ "decimal",
319
+ "email",
320
+ "none",
321
+ "numeric",
322
+ "search",
323
+ "tel",
324
+ "text",
325
+ "url",
326
+ ],
327
+ Var[
328
+ Literal[
329
+ "decimal",
330
+ "email",
331
+ "none",
332
+ "numeric",
333
+ "search",
334
+ "tel",
335
+ "text",
336
+ "url",
337
+ ]
338
+ ],
339
+ ]
340
+ ] = None,
341
+ item_prop: Optional[Union[Var[str], str]] = None,
342
+ lang: Optional[Union[Var[str], str]] = None,
343
+ role: Optional[
344
+ Union[
345
+ Literal[
346
+ "alert",
347
+ "alertdialog",
348
+ "application",
349
+ "article",
350
+ "banner",
351
+ "button",
352
+ "cell",
353
+ "checkbox",
354
+ "columnheader",
355
+ "combobox",
356
+ "complementary",
357
+ "contentinfo",
358
+ "definition",
359
+ "dialog",
360
+ "directory",
361
+ "document",
362
+ "feed",
363
+ "figure",
364
+ "form",
365
+ "grid",
366
+ "gridcell",
367
+ "group",
368
+ "heading",
369
+ "img",
370
+ "link",
371
+ "list",
372
+ "listbox",
373
+ "listitem",
374
+ "log",
375
+ "main",
376
+ "marquee",
377
+ "math",
378
+ "menu",
379
+ "menubar",
380
+ "menuitem",
381
+ "menuitemcheckbox",
382
+ "menuitemradio",
383
+ "navigation",
384
+ "none",
385
+ "note",
386
+ "option",
387
+ "presentation",
388
+ "progressbar",
389
+ "radio",
390
+ "radiogroup",
391
+ "region",
392
+ "row",
393
+ "rowgroup",
394
+ "rowheader",
395
+ "scrollbar",
396
+ "search",
397
+ "searchbox",
398
+ "separator",
399
+ "slider",
400
+ "spinbutton",
401
+ "status",
402
+ "switch",
403
+ "tab",
404
+ "table",
405
+ "tablist",
406
+ "tabpanel",
407
+ "term",
408
+ "textbox",
409
+ "timer",
410
+ "toolbar",
411
+ "tooltip",
412
+ "tree",
413
+ "treegrid",
414
+ "treeitem",
415
+ ],
416
+ Var[
417
+ Literal[
418
+ "alert",
419
+ "alertdialog",
420
+ "application",
421
+ "article",
422
+ "banner",
423
+ "button",
424
+ "cell",
425
+ "checkbox",
426
+ "columnheader",
427
+ "combobox",
428
+ "complementary",
429
+ "contentinfo",
430
+ "definition",
431
+ "dialog",
432
+ "directory",
433
+ "document",
434
+ "feed",
435
+ "figure",
436
+ "form",
437
+ "grid",
438
+ "gridcell",
439
+ "group",
440
+ "heading",
441
+ "img",
442
+ "link",
443
+ "list",
444
+ "listbox",
445
+ "listitem",
446
+ "log",
447
+ "main",
448
+ "marquee",
449
+ "math",
450
+ "menu",
451
+ "menubar",
452
+ "menuitem",
453
+ "menuitemcheckbox",
454
+ "menuitemradio",
455
+ "navigation",
456
+ "none",
457
+ "note",
458
+ "option",
459
+ "presentation",
460
+ "progressbar",
461
+ "radio",
462
+ "radiogroup",
463
+ "region",
464
+ "row",
465
+ "rowgroup",
466
+ "rowheader",
467
+ "scrollbar",
468
+ "search",
469
+ "searchbox",
470
+ "separator",
471
+ "slider",
472
+ "spinbutton",
473
+ "status",
474
+ "switch",
475
+ "tab",
476
+ "table",
477
+ "tablist",
478
+ "tabpanel",
479
+ "term",
480
+ "textbox",
481
+ "timer",
482
+ "toolbar",
483
+ "tooltip",
484
+ "tree",
485
+ "treegrid",
486
+ "treeitem",
487
+ ]
488
+ ],
489
+ ]
490
+ ] = None,
491
+ slot: Optional[Union[Var[str], str]] = None,
492
+ spell_check: Optional[Union[Var[bool], bool]] = None,
493
+ tab_index: Optional[Union[Var[int], int]] = None,
494
+ title: Optional[Union[Var[str], str]] = None,
133
495
  style: Optional[Style] = None,
134
496
  key: Optional[Any] = None,
135
497
  id: Optional[Any] = None,
@@ -193,30 +555,211 @@ class Summary(BaseHTML):
193
555
  def create( # type: ignore
194
556
  cls,
195
557
  *children,
196
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
558
+ access_key: Optional[Union[Var[str], str]] = None,
197
559
  auto_capitalize: Optional[
198
- Union[Var[Union[bool, int, str]], bool, int, str]
560
+ Union[
561
+ Literal["characters", "none", "off", "on", "sentences", "words"],
562
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
563
+ ]
199
564
  ] = None,
200
565
  content_editable: Optional[
201
- Union[Var[Union[bool, int, str]], bool, int, str]
202
- ] = None,
203
- context_menu: Optional[
204
- Union[Var[Union[bool, int, str]], bool, int, str]
566
+ Union[
567
+ Literal["inherit", "plaintext-only", False, True],
568
+ Var[Literal["inherit", "plaintext-only", False, True]],
569
+ ]
205
570
  ] = None,
206
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
207
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
571
+ context_menu: Optional[Union[Var[str], str]] = None,
572
+ dir: Optional[Union[Var[str], str]] = None,
573
+ draggable: Optional[Union[Var[bool], bool]] = None,
208
574
  enter_key_hint: Optional[
209
- Union[Var[Union[bool, int, str]], bool, int, str]
210
- ] = None,
211
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
212
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
213
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
214
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
215
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
216
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
217
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
218
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
219
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
575
+ Union[
576
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
577
+ Var[
578
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
579
+ ],
580
+ ]
581
+ ] = None,
582
+ hidden: Optional[Union[Var[bool], bool]] = None,
583
+ input_mode: Optional[
584
+ Union[
585
+ Literal[
586
+ "decimal",
587
+ "email",
588
+ "none",
589
+ "numeric",
590
+ "search",
591
+ "tel",
592
+ "text",
593
+ "url",
594
+ ],
595
+ Var[
596
+ Literal[
597
+ "decimal",
598
+ "email",
599
+ "none",
600
+ "numeric",
601
+ "search",
602
+ "tel",
603
+ "text",
604
+ "url",
605
+ ]
606
+ ],
607
+ ]
608
+ ] = None,
609
+ item_prop: Optional[Union[Var[str], str]] = None,
610
+ lang: Optional[Union[Var[str], str]] = None,
611
+ role: Optional[
612
+ Union[
613
+ Literal[
614
+ "alert",
615
+ "alertdialog",
616
+ "application",
617
+ "article",
618
+ "banner",
619
+ "button",
620
+ "cell",
621
+ "checkbox",
622
+ "columnheader",
623
+ "combobox",
624
+ "complementary",
625
+ "contentinfo",
626
+ "definition",
627
+ "dialog",
628
+ "directory",
629
+ "document",
630
+ "feed",
631
+ "figure",
632
+ "form",
633
+ "grid",
634
+ "gridcell",
635
+ "group",
636
+ "heading",
637
+ "img",
638
+ "link",
639
+ "list",
640
+ "listbox",
641
+ "listitem",
642
+ "log",
643
+ "main",
644
+ "marquee",
645
+ "math",
646
+ "menu",
647
+ "menubar",
648
+ "menuitem",
649
+ "menuitemcheckbox",
650
+ "menuitemradio",
651
+ "navigation",
652
+ "none",
653
+ "note",
654
+ "option",
655
+ "presentation",
656
+ "progressbar",
657
+ "radio",
658
+ "radiogroup",
659
+ "region",
660
+ "row",
661
+ "rowgroup",
662
+ "rowheader",
663
+ "scrollbar",
664
+ "search",
665
+ "searchbox",
666
+ "separator",
667
+ "slider",
668
+ "spinbutton",
669
+ "status",
670
+ "switch",
671
+ "tab",
672
+ "table",
673
+ "tablist",
674
+ "tabpanel",
675
+ "term",
676
+ "textbox",
677
+ "timer",
678
+ "toolbar",
679
+ "tooltip",
680
+ "tree",
681
+ "treegrid",
682
+ "treeitem",
683
+ ],
684
+ Var[
685
+ Literal[
686
+ "alert",
687
+ "alertdialog",
688
+ "application",
689
+ "article",
690
+ "banner",
691
+ "button",
692
+ "cell",
693
+ "checkbox",
694
+ "columnheader",
695
+ "combobox",
696
+ "complementary",
697
+ "contentinfo",
698
+ "definition",
699
+ "dialog",
700
+ "directory",
701
+ "document",
702
+ "feed",
703
+ "figure",
704
+ "form",
705
+ "grid",
706
+ "gridcell",
707
+ "group",
708
+ "heading",
709
+ "img",
710
+ "link",
711
+ "list",
712
+ "listbox",
713
+ "listitem",
714
+ "log",
715
+ "main",
716
+ "marquee",
717
+ "math",
718
+ "menu",
719
+ "menubar",
720
+ "menuitem",
721
+ "menuitemcheckbox",
722
+ "menuitemradio",
723
+ "navigation",
724
+ "none",
725
+ "note",
726
+ "option",
727
+ "presentation",
728
+ "progressbar",
729
+ "radio",
730
+ "radiogroup",
731
+ "region",
732
+ "row",
733
+ "rowgroup",
734
+ "rowheader",
735
+ "scrollbar",
736
+ "search",
737
+ "searchbox",
738
+ "separator",
739
+ "slider",
740
+ "spinbutton",
741
+ "status",
742
+ "switch",
743
+ "tab",
744
+ "table",
745
+ "tablist",
746
+ "tabpanel",
747
+ "term",
748
+ "textbox",
749
+ "timer",
750
+ "toolbar",
751
+ "tooltip",
752
+ "tree",
753
+ "treegrid",
754
+ "treeitem",
755
+ ]
756
+ ],
757
+ ]
758
+ ] = None,
759
+ slot: Optional[Union[Var[str], str]] = None,
760
+ spell_check: Optional[Union[Var[bool], bool]] = None,
761
+ tab_index: Optional[Union[Var[int], int]] = None,
762
+ title: Optional[Union[Var[str], str]] = None,
220
763
  style: Optional[Style] = None,
221
764
  key: Optional[Any] = None,
222
765
  id: Optional[Any] = None,
@@ -279,30 +822,211 @@ class Slot(BaseHTML):
279
822
  def create( # type: ignore
280
823
  cls,
281
824
  *children,
282
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
825
+ access_key: Optional[Union[Var[str], str]] = None,
283
826
  auto_capitalize: Optional[
284
- Union[Var[Union[bool, int, str]], bool, int, str]
827
+ Union[
828
+ Literal["characters", "none", "off", "on", "sentences", "words"],
829
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
830
+ ]
285
831
  ] = None,
286
832
  content_editable: Optional[
287
- Union[Var[Union[bool, int, str]], bool, int, str]
288
- ] = None,
289
- context_menu: Optional[
290
- Union[Var[Union[bool, int, str]], bool, int, str]
833
+ Union[
834
+ Literal["inherit", "plaintext-only", False, True],
835
+ Var[Literal["inherit", "plaintext-only", False, True]],
836
+ ]
291
837
  ] = None,
292
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
293
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
838
+ context_menu: Optional[Union[Var[str], str]] = None,
839
+ dir: Optional[Union[Var[str], str]] = None,
840
+ draggable: Optional[Union[Var[bool], bool]] = None,
294
841
  enter_key_hint: Optional[
295
- Union[Var[Union[bool, int, str]], bool, int, str]
296
- ] = None,
297
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
298
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
299
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
300
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
301
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
302
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
303
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
304
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
305
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
842
+ Union[
843
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
844
+ Var[
845
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
846
+ ],
847
+ ]
848
+ ] = None,
849
+ hidden: Optional[Union[Var[bool], bool]] = None,
850
+ input_mode: Optional[
851
+ Union[
852
+ Literal[
853
+ "decimal",
854
+ "email",
855
+ "none",
856
+ "numeric",
857
+ "search",
858
+ "tel",
859
+ "text",
860
+ "url",
861
+ ],
862
+ Var[
863
+ Literal[
864
+ "decimal",
865
+ "email",
866
+ "none",
867
+ "numeric",
868
+ "search",
869
+ "tel",
870
+ "text",
871
+ "url",
872
+ ]
873
+ ],
874
+ ]
875
+ ] = None,
876
+ item_prop: Optional[Union[Var[str], str]] = None,
877
+ lang: Optional[Union[Var[str], str]] = None,
878
+ role: Optional[
879
+ Union[
880
+ Literal[
881
+ "alert",
882
+ "alertdialog",
883
+ "application",
884
+ "article",
885
+ "banner",
886
+ "button",
887
+ "cell",
888
+ "checkbox",
889
+ "columnheader",
890
+ "combobox",
891
+ "complementary",
892
+ "contentinfo",
893
+ "definition",
894
+ "dialog",
895
+ "directory",
896
+ "document",
897
+ "feed",
898
+ "figure",
899
+ "form",
900
+ "grid",
901
+ "gridcell",
902
+ "group",
903
+ "heading",
904
+ "img",
905
+ "link",
906
+ "list",
907
+ "listbox",
908
+ "listitem",
909
+ "log",
910
+ "main",
911
+ "marquee",
912
+ "math",
913
+ "menu",
914
+ "menubar",
915
+ "menuitem",
916
+ "menuitemcheckbox",
917
+ "menuitemradio",
918
+ "navigation",
919
+ "none",
920
+ "note",
921
+ "option",
922
+ "presentation",
923
+ "progressbar",
924
+ "radio",
925
+ "radiogroup",
926
+ "region",
927
+ "row",
928
+ "rowgroup",
929
+ "rowheader",
930
+ "scrollbar",
931
+ "search",
932
+ "searchbox",
933
+ "separator",
934
+ "slider",
935
+ "spinbutton",
936
+ "status",
937
+ "switch",
938
+ "tab",
939
+ "table",
940
+ "tablist",
941
+ "tabpanel",
942
+ "term",
943
+ "textbox",
944
+ "timer",
945
+ "toolbar",
946
+ "tooltip",
947
+ "tree",
948
+ "treegrid",
949
+ "treeitem",
950
+ ],
951
+ Var[
952
+ Literal[
953
+ "alert",
954
+ "alertdialog",
955
+ "application",
956
+ "article",
957
+ "banner",
958
+ "button",
959
+ "cell",
960
+ "checkbox",
961
+ "columnheader",
962
+ "combobox",
963
+ "complementary",
964
+ "contentinfo",
965
+ "definition",
966
+ "dialog",
967
+ "directory",
968
+ "document",
969
+ "feed",
970
+ "figure",
971
+ "form",
972
+ "grid",
973
+ "gridcell",
974
+ "group",
975
+ "heading",
976
+ "img",
977
+ "link",
978
+ "list",
979
+ "listbox",
980
+ "listitem",
981
+ "log",
982
+ "main",
983
+ "marquee",
984
+ "math",
985
+ "menu",
986
+ "menubar",
987
+ "menuitem",
988
+ "menuitemcheckbox",
989
+ "menuitemradio",
990
+ "navigation",
991
+ "none",
992
+ "note",
993
+ "option",
994
+ "presentation",
995
+ "progressbar",
996
+ "radio",
997
+ "radiogroup",
998
+ "region",
999
+ "row",
1000
+ "rowgroup",
1001
+ "rowheader",
1002
+ "scrollbar",
1003
+ "search",
1004
+ "searchbox",
1005
+ "separator",
1006
+ "slider",
1007
+ "spinbutton",
1008
+ "status",
1009
+ "switch",
1010
+ "tab",
1011
+ "table",
1012
+ "tablist",
1013
+ "tabpanel",
1014
+ "term",
1015
+ "textbox",
1016
+ "timer",
1017
+ "toolbar",
1018
+ "tooltip",
1019
+ "tree",
1020
+ "treegrid",
1021
+ "treeitem",
1022
+ ]
1023
+ ],
1024
+ ]
1025
+ ] = None,
1026
+ slot: Optional[Union[Var[str], str]] = None,
1027
+ spell_check: Optional[Union[Var[bool], bool]] = None,
1028
+ tab_index: Optional[Union[Var[int], int]] = None,
1029
+ title: Optional[Union[Var[str], str]] = None,
306
1030
  style: Optional[Style] = None,
307
1031
  key: Optional[Any] = None,
308
1032
  id: Optional[Any] = None,
@@ -365,30 +1089,211 @@ class Template(BaseHTML):
365
1089
  def create( # type: ignore
366
1090
  cls,
367
1091
  *children,
368
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
1092
+ access_key: Optional[Union[Var[str], str]] = None,
369
1093
  auto_capitalize: Optional[
370
- Union[Var[Union[bool, int, str]], bool, int, str]
1094
+ Union[
1095
+ Literal["characters", "none", "off", "on", "sentences", "words"],
1096
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
1097
+ ]
371
1098
  ] = None,
372
1099
  content_editable: Optional[
373
- Union[Var[Union[bool, int, str]], bool, int, str]
1100
+ Union[
1101
+ Literal["inherit", "plaintext-only", False, True],
1102
+ Var[Literal["inherit", "plaintext-only", False, True]],
1103
+ ]
374
1104
  ] = None,
375
- context_menu: Optional[
376
- Union[Var[Union[bool, int, str]], bool, int, str]
377
- ] = None,
378
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
379
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
1105
+ context_menu: Optional[Union[Var[str], str]] = None,
1106
+ dir: Optional[Union[Var[str], str]] = None,
1107
+ draggable: Optional[Union[Var[bool], bool]] = None,
380
1108
  enter_key_hint: Optional[
381
- Union[Var[Union[bool, int, str]], bool, int, str]
382
- ] = None,
383
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
384
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
385
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
386
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
387
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
388
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
389
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
390
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
391
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
1109
+ Union[
1110
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
1111
+ Var[
1112
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
1113
+ ],
1114
+ ]
1115
+ ] = None,
1116
+ hidden: Optional[Union[Var[bool], bool]] = None,
1117
+ input_mode: Optional[
1118
+ Union[
1119
+ Literal[
1120
+ "decimal",
1121
+ "email",
1122
+ "none",
1123
+ "numeric",
1124
+ "search",
1125
+ "tel",
1126
+ "text",
1127
+ "url",
1128
+ ],
1129
+ Var[
1130
+ Literal[
1131
+ "decimal",
1132
+ "email",
1133
+ "none",
1134
+ "numeric",
1135
+ "search",
1136
+ "tel",
1137
+ "text",
1138
+ "url",
1139
+ ]
1140
+ ],
1141
+ ]
1142
+ ] = None,
1143
+ item_prop: Optional[Union[Var[str], str]] = None,
1144
+ lang: Optional[Union[Var[str], str]] = None,
1145
+ role: Optional[
1146
+ Union[
1147
+ Literal[
1148
+ "alert",
1149
+ "alertdialog",
1150
+ "application",
1151
+ "article",
1152
+ "banner",
1153
+ "button",
1154
+ "cell",
1155
+ "checkbox",
1156
+ "columnheader",
1157
+ "combobox",
1158
+ "complementary",
1159
+ "contentinfo",
1160
+ "definition",
1161
+ "dialog",
1162
+ "directory",
1163
+ "document",
1164
+ "feed",
1165
+ "figure",
1166
+ "form",
1167
+ "grid",
1168
+ "gridcell",
1169
+ "group",
1170
+ "heading",
1171
+ "img",
1172
+ "link",
1173
+ "list",
1174
+ "listbox",
1175
+ "listitem",
1176
+ "log",
1177
+ "main",
1178
+ "marquee",
1179
+ "math",
1180
+ "menu",
1181
+ "menubar",
1182
+ "menuitem",
1183
+ "menuitemcheckbox",
1184
+ "menuitemradio",
1185
+ "navigation",
1186
+ "none",
1187
+ "note",
1188
+ "option",
1189
+ "presentation",
1190
+ "progressbar",
1191
+ "radio",
1192
+ "radiogroup",
1193
+ "region",
1194
+ "row",
1195
+ "rowgroup",
1196
+ "rowheader",
1197
+ "scrollbar",
1198
+ "search",
1199
+ "searchbox",
1200
+ "separator",
1201
+ "slider",
1202
+ "spinbutton",
1203
+ "status",
1204
+ "switch",
1205
+ "tab",
1206
+ "table",
1207
+ "tablist",
1208
+ "tabpanel",
1209
+ "term",
1210
+ "textbox",
1211
+ "timer",
1212
+ "toolbar",
1213
+ "tooltip",
1214
+ "tree",
1215
+ "treegrid",
1216
+ "treeitem",
1217
+ ],
1218
+ Var[
1219
+ Literal[
1220
+ "alert",
1221
+ "alertdialog",
1222
+ "application",
1223
+ "article",
1224
+ "banner",
1225
+ "button",
1226
+ "cell",
1227
+ "checkbox",
1228
+ "columnheader",
1229
+ "combobox",
1230
+ "complementary",
1231
+ "contentinfo",
1232
+ "definition",
1233
+ "dialog",
1234
+ "directory",
1235
+ "document",
1236
+ "feed",
1237
+ "figure",
1238
+ "form",
1239
+ "grid",
1240
+ "gridcell",
1241
+ "group",
1242
+ "heading",
1243
+ "img",
1244
+ "link",
1245
+ "list",
1246
+ "listbox",
1247
+ "listitem",
1248
+ "log",
1249
+ "main",
1250
+ "marquee",
1251
+ "math",
1252
+ "menu",
1253
+ "menubar",
1254
+ "menuitem",
1255
+ "menuitemcheckbox",
1256
+ "menuitemradio",
1257
+ "navigation",
1258
+ "none",
1259
+ "note",
1260
+ "option",
1261
+ "presentation",
1262
+ "progressbar",
1263
+ "radio",
1264
+ "radiogroup",
1265
+ "region",
1266
+ "row",
1267
+ "rowgroup",
1268
+ "rowheader",
1269
+ "scrollbar",
1270
+ "search",
1271
+ "searchbox",
1272
+ "separator",
1273
+ "slider",
1274
+ "spinbutton",
1275
+ "status",
1276
+ "switch",
1277
+ "tab",
1278
+ "table",
1279
+ "tablist",
1280
+ "tabpanel",
1281
+ "term",
1282
+ "textbox",
1283
+ "timer",
1284
+ "toolbar",
1285
+ "tooltip",
1286
+ "tree",
1287
+ "treegrid",
1288
+ "treeitem",
1289
+ ]
1290
+ ],
1291
+ ]
1292
+ ] = None,
1293
+ slot: Optional[Union[Var[str], str]] = None,
1294
+ spell_check: Optional[Union[Var[bool], bool]] = None,
1295
+ tab_index: Optional[Union[Var[int], int]] = None,
1296
+ title: Optional[Union[Var[str], str]] = None,
392
1297
  style: Optional[Style] = None,
393
1298
  key: Optional[Any] = None,
394
1299
  id: Optional[Any] = None,
@@ -451,30 +1356,211 @@ class Math(BaseHTML):
451
1356
  def create( # type: ignore
452
1357
  cls,
453
1358
  *children,
454
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
1359
+ access_key: Optional[Union[Var[str], str]] = None,
455
1360
  auto_capitalize: Optional[
456
- Union[Var[Union[bool, int, str]], bool, int, str]
1361
+ Union[
1362
+ Literal["characters", "none", "off", "on", "sentences", "words"],
1363
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
1364
+ ]
457
1365
  ] = None,
458
1366
  content_editable: Optional[
459
- Union[Var[Union[bool, int, str]], bool, int, str]
460
- ] = None,
461
- context_menu: Optional[
462
- Union[Var[Union[bool, int, str]], bool, int, str]
1367
+ Union[
1368
+ Literal["inherit", "plaintext-only", False, True],
1369
+ Var[Literal["inherit", "plaintext-only", False, True]],
1370
+ ]
463
1371
  ] = None,
464
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
465
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
1372
+ context_menu: Optional[Union[Var[str], str]] = None,
1373
+ dir: Optional[Union[Var[str], str]] = None,
1374
+ draggable: Optional[Union[Var[bool], bool]] = None,
466
1375
  enter_key_hint: Optional[
467
- Union[Var[Union[bool, int, str]], bool, int, str]
468
- ] = None,
469
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
470
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
471
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
472
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
473
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
474
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
475
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
476
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
477
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
1376
+ Union[
1377
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
1378
+ Var[
1379
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
1380
+ ],
1381
+ ]
1382
+ ] = None,
1383
+ hidden: Optional[Union[Var[bool], bool]] = None,
1384
+ input_mode: Optional[
1385
+ Union[
1386
+ Literal[
1387
+ "decimal",
1388
+ "email",
1389
+ "none",
1390
+ "numeric",
1391
+ "search",
1392
+ "tel",
1393
+ "text",
1394
+ "url",
1395
+ ],
1396
+ Var[
1397
+ Literal[
1398
+ "decimal",
1399
+ "email",
1400
+ "none",
1401
+ "numeric",
1402
+ "search",
1403
+ "tel",
1404
+ "text",
1405
+ "url",
1406
+ ]
1407
+ ],
1408
+ ]
1409
+ ] = None,
1410
+ item_prop: Optional[Union[Var[str], str]] = None,
1411
+ lang: Optional[Union[Var[str], str]] = None,
1412
+ role: Optional[
1413
+ Union[
1414
+ Literal[
1415
+ "alert",
1416
+ "alertdialog",
1417
+ "application",
1418
+ "article",
1419
+ "banner",
1420
+ "button",
1421
+ "cell",
1422
+ "checkbox",
1423
+ "columnheader",
1424
+ "combobox",
1425
+ "complementary",
1426
+ "contentinfo",
1427
+ "definition",
1428
+ "dialog",
1429
+ "directory",
1430
+ "document",
1431
+ "feed",
1432
+ "figure",
1433
+ "form",
1434
+ "grid",
1435
+ "gridcell",
1436
+ "group",
1437
+ "heading",
1438
+ "img",
1439
+ "link",
1440
+ "list",
1441
+ "listbox",
1442
+ "listitem",
1443
+ "log",
1444
+ "main",
1445
+ "marquee",
1446
+ "math",
1447
+ "menu",
1448
+ "menubar",
1449
+ "menuitem",
1450
+ "menuitemcheckbox",
1451
+ "menuitemradio",
1452
+ "navigation",
1453
+ "none",
1454
+ "note",
1455
+ "option",
1456
+ "presentation",
1457
+ "progressbar",
1458
+ "radio",
1459
+ "radiogroup",
1460
+ "region",
1461
+ "row",
1462
+ "rowgroup",
1463
+ "rowheader",
1464
+ "scrollbar",
1465
+ "search",
1466
+ "searchbox",
1467
+ "separator",
1468
+ "slider",
1469
+ "spinbutton",
1470
+ "status",
1471
+ "switch",
1472
+ "tab",
1473
+ "table",
1474
+ "tablist",
1475
+ "tabpanel",
1476
+ "term",
1477
+ "textbox",
1478
+ "timer",
1479
+ "toolbar",
1480
+ "tooltip",
1481
+ "tree",
1482
+ "treegrid",
1483
+ "treeitem",
1484
+ ],
1485
+ Var[
1486
+ Literal[
1487
+ "alert",
1488
+ "alertdialog",
1489
+ "application",
1490
+ "article",
1491
+ "banner",
1492
+ "button",
1493
+ "cell",
1494
+ "checkbox",
1495
+ "columnheader",
1496
+ "combobox",
1497
+ "complementary",
1498
+ "contentinfo",
1499
+ "definition",
1500
+ "dialog",
1501
+ "directory",
1502
+ "document",
1503
+ "feed",
1504
+ "figure",
1505
+ "form",
1506
+ "grid",
1507
+ "gridcell",
1508
+ "group",
1509
+ "heading",
1510
+ "img",
1511
+ "link",
1512
+ "list",
1513
+ "listbox",
1514
+ "listitem",
1515
+ "log",
1516
+ "main",
1517
+ "marquee",
1518
+ "math",
1519
+ "menu",
1520
+ "menubar",
1521
+ "menuitem",
1522
+ "menuitemcheckbox",
1523
+ "menuitemradio",
1524
+ "navigation",
1525
+ "none",
1526
+ "note",
1527
+ "option",
1528
+ "presentation",
1529
+ "progressbar",
1530
+ "radio",
1531
+ "radiogroup",
1532
+ "region",
1533
+ "row",
1534
+ "rowgroup",
1535
+ "rowheader",
1536
+ "scrollbar",
1537
+ "search",
1538
+ "searchbox",
1539
+ "separator",
1540
+ "slider",
1541
+ "spinbutton",
1542
+ "status",
1543
+ "switch",
1544
+ "tab",
1545
+ "table",
1546
+ "tablist",
1547
+ "tabpanel",
1548
+ "term",
1549
+ "textbox",
1550
+ "timer",
1551
+ "toolbar",
1552
+ "tooltip",
1553
+ "tree",
1554
+ "treegrid",
1555
+ "treeitem",
1556
+ ]
1557
+ ],
1558
+ ]
1559
+ ] = None,
1560
+ slot: Optional[Union[Var[str], str]] = None,
1561
+ spell_check: Optional[Union[Var[bool], bool]] = None,
1562
+ tab_index: Optional[Union[Var[int], int]] = None,
1563
+ title: Optional[Union[Var[str], str]] = None,
478
1564
  style: Optional[Style] = None,
479
1565
  key: Optional[Any] = None,
480
1566
  id: Optional[Any] = None,
@@ -537,31 +1623,212 @@ class Html(BaseHTML):
537
1623
  def create( # type: ignore
538
1624
  cls,
539
1625
  *children,
540
- manifest: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
541
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
1626
+ manifest: Optional[Union[Var[str], str]] = None,
1627
+ access_key: Optional[Union[Var[str], str]] = None,
542
1628
  auto_capitalize: Optional[
543
- Union[Var[Union[bool, int, str]], bool, int, str]
1629
+ Union[
1630
+ Literal["characters", "none", "off", "on", "sentences", "words"],
1631
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
1632
+ ]
544
1633
  ] = None,
545
1634
  content_editable: Optional[
546
- Union[Var[Union[bool, int, str]], bool, int, str]
547
- ] = None,
548
- context_menu: Optional[
549
- Union[Var[Union[bool, int, str]], bool, int, str]
1635
+ Union[
1636
+ Literal["inherit", "plaintext-only", False, True],
1637
+ Var[Literal["inherit", "plaintext-only", False, True]],
1638
+ ]
550
1639
  ] = None,
551
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
552
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
1640
+ context_menu: Optional[Union[Var[str], str]] = None,
1641
+ dir: Optional[Union[Var[str], str]] = None,
1642
+ draggable: Optional[Union[Var[bool], bool]] = None,
553
1643
  enter_key_hint: Optional[
554
- Union[Var[Union[bool, int, str]], bool, int, str]
555
- ] = None,
556
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
557
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
558
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
559
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
560
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
561
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
562
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
563
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
564
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
1644
+ Union[
1645
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
1646
+ Var[
1647
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
1648
+ ],
1649
+ ]
1650
+ ] = None,
1651
+ hidden: Optional[Union[Var[bool], bool]] = None,
1652
+ input_mode: Optional[
1653
+ Union[
1654
+ Literal[
1655
+ "decimal",
1656
+ "email",
1657
+ "none",
1658
+ "numeric",
1659
+ "search",
1660
+ "tel",
1661
+ "text",
1662
+ "url",
1663
+ ],
1664
+ Var[
1665
+ Literal[
1666
+ "decimal",
1667
+ "email",
1668
+ "none",
1669
+ "numeric",
1670
+ "search",
1671
+ "tel",
1672
+ "text",
1673
+ "url",
1674
+ ]
1675
+ ],
1676
+ ]
1677
+ ] = None,
1678
+ item_prop: Optional[Union[Var[str], str]] = None,
1679
+ lang: Optional[Union[Var[str], str]] = None,
1680
+ role: Optional[
1681
+ Union[
1682
+ Literal[
1683
+ "alert",
1684
+ "alertdialog",
1685
+ "application",
1686
+ "article",
1687
+ "banner",
1688
+ "button",
1689
+ "cell",
1690
+ "checkbox",
1691
+ "columnheader",
1692
+ "combobox",
1693
+ "complementary",
1694
+ "contentinfo",
1695
+ "definition",
1696
+ "dialog",
1697
+ "directory",
1698
+ "document",
1699
+ "feed",
1700
+ "figure",
1701
+ "form",
1702
+ "grid",
1703
+ "gridcell",
1704
+ "group",
1705
+ "heading",
1706
+ "img",
1707
+ "link",
1708
+ "list",
1709
+ "listbox",
1710
+ "listitem",
1711
+ "log",
1712
+ "main",
1713
+ "marquee",
1714
+ "math",
1715
+ "menu",
1716
+ "menubar",
1717
+ "menuitem",
1718
+ "menuitemcheckbox",
1719
+ "menuitemradio",
1720
+ "navigation",
1721
+ "none",
1722
+ "note",
1723
+ "option",
1724
+ "presentation",
1725
+ "progressbar",
1726
+ "radio",
1727
+ "radiogroup",
1728
+ "region",
1729
+ "row",
1730
+ "rowgroup",
1731
+ "rowheader",
1732
+ "scrollbar",
1733
+ "search",
1734
+ "searchbox",
1735
+ "separator",
1736
+ "slider",
1737
+ "spinbutton",
1738
+ "status",
1739
+ "switch",
1740
+ "tab",
1741
+ "table",
1742
+ "tablist",
1743
+ "tabpanel",
1744
+ "term",
1745
+ "textbox",
1746
+ "timer",
1747
+ "toolbar",
1748
+ "tooltip",
1749
+ "tree",
1750
+ "treegrid",
1751
+ "treeitem",
1752
+ ],
1753
+ Var[
1754
+ Literal[
1755
+ "alert",
1756
+ "alertdialog",
1757
+ "application",
1758
+ "article",
1759
+ "banner",
1760
+ "button",
1761
+ "cell",
1762
+ "checkbox",
1763
+ "columnheader",
1764
+ "combobox",
1765
+ "complementary",
1766
+ "contentinfo",
1767
+ "definition",
1768
+ "dialog",
1769
+ "directory",
1770
+ "document",
1771
+ "feed",
1772
+ "figure",
1773
+ "form",
1774
+ "grid",
1775
+ "gridcell",
1776
+ "group",
1777
+ "heading",
1778
+ "img",
1779
+ "link",
1780
+ "list",
1781
+ "listbox",
1782
+ "listitem",
1783
+ "log",
1784
+ "main",
1785
+ "marquee",
1786
+ "math",
1787
+ "menu",
1788
+ "menubar",
1789
+ "menuitem",
1790
+ "menuitemcheckbox",
1791
+ "menuitemradio",
1792
+ "navigation",
1793
+ "none",
1794
+ "note",
1795
+ "option",
1796
+ "presentation",
1797
+ "progressbar",
1798
+ "radio",
1799
+ "radiogroup",
1800
+ "region",
1801
+ "row",
1802
+ "rowgroup",
1803
+ "rowheader",
1804
+ "scrollbar",
1805
+ "search",
1806
+ "searchbox",
1807
+ "separator",
1808
+ "slider",
1809
+ "spinbutton",
1810
+ "status",
1811
+ "switch",
1812
+ "tab",
1813
+ "table",
1814
+ "tablist",
1815
+ "tabpanel",
1816
+ "term",
1817
+ "textbox",
1818
+ "timer",
1819
+ "toolbar",
1820
+ "tooltip",
1821
+ "tree",
1822
+ "treegrid",
1823
+ "treeitem",
1824
+ ]
1825
+ ],
1826
+ ]
1827
+ ] = None,
1828
+ slot: Optional[Union[Var[str], str]] = None,
1829
+ spell_check: Optional[Union[Var[bool], bool]] = None,
1830
+ tab_index: Optional[Union[Var[int], int]] = None,
1831
+ title: Optional[Union[Var[str], str]] = None,
565
1832
  style: Optional[Style] = None,
566
1833
  key: Optional[Any] = None,
567
1834
  id: Optional[Any] = None,