reflex 0.7.0a4__py3-none-any.whl → 0.7.1__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 (128) hide show
  1. reflex/.templates/jinja/web/package.json.jinja2 +7 -1
  2. reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +3 -1
  3. reflex/__init__.py +1 -0
  4. reflex/__init__.pyi +1 -0
  5. reflex/app.py +269 -86
  6. reflex/base.py +4 -10
  7. reflex/compiler/compiler.py +46 -12
  8. reflex/compiler/templates.py +1 -2
  9. reflex/compiler/utils.py +23 -14
  10. reflex/components/base/bare.py +109 -16
  11. reflex/components/component.py +179 -124
  12. reflex/components/core/__init__.py +1 -0
  13. reflex/components/core/__init__.pyi +1 -0
  14. reflex/components/core/auto_scroll.py +114 -0
  15. reflex/components/core/auto_scroll.pyi +284 -0
  16. reflex/components/core/banner.py +40 -9
  17. reflex/components/core/banner.pyi +400 -87
  18. reflex/components/core/breakpoints.py +1 -1
  19. reflex/components/core/cond.py +0 -8
  20. reflex/components/core/foreach.py +12 -2
  21. reflex/components/core/html.pyi +200 -19
  22. reflex/components/core/match.py +4 -4
  23. reflex/components/core/sticky.py +4 -30
  24. reflex/components/core/sticky.pyi +874 -90
  25. reflex/components/core/upload.py +3 -5
  26. reflex/components/core/upload.pyi +2 -4
  27. reflex/components/datadisplay/code.py +36 -10
  28. reflex/components/datadisplay/code.pyi +1 -1
  29. reflex/components/datadisplay/dataeditor.py +1 -3
  30. reflex/components/datadisplay/dataeditor.pyi +1 -3
  31. reflex/components/el/elements/base.py +95 -17
  32. reflex/components/el/elements/base.pyi +278 -19
  33. reflex/components/el/elements/forms.py +124 -102
  34. reflex/components/el/elements/forms.pyi +2787 -365
  35. reflex/components/el/elements/inline.py +24 -15
  36. reflex/components/el/elements/inline.pyi +5655 -546
  37. reflex/components/el/elements/media.py +79 -95
  38. reflex/components/el/elements/media.pyi +5167 -565
  39. reflex/components/el/elements/metadata.py +19 -17
  40. reflex/components/el/elements/metadata.pyi +841 -89
  41. reflex/components/el/elements/other.py +3 -5
  42. reflex/components/el/elements/other.pyi +1404 -137
  43. reflex/components/el/elements/scripts.py +10 -13
  44. reflex/components/el/elements/scripts.pyi +634 -65
  45. reflex/components/el/elements/sectioning.pyi +3001 -286
  46. reflex/components/el/elements/tables.py +14 -35
  47. reflex/components/el/elements/tables.pyi +2029 -218
  48. reflex/components/el/elements/typography.py +10 -13
  49. reflex/components/el/elements/typography.pyi +3014 -297
  50. reflex/components/lucide/icon.py +22 -6
  51. reflex/components/markdown/markdown.py +30 -10
  52. reflex/components/markdown/markdown.pyi +3 -2
  53. reflex/components/plotly/plotly.py +1 -3
  54. reflex/components/plotly/plotly.pyi +1 -3
  55. reflex/components/radix/primitives/form.pyi +624 -93
  56. reflex/components/radix/themes/color_mode.py +1 -1
  57. reflex/components/radix/themes/color_mode.pyi +213 -31
  58. reflex/components/radix/themes/components/alert_dialog.pyi +199 -18
  59. reflex/components/radix/themes/components/badge.pyi +199 -18
  60. reflex/components/radix/themes/components/button.pyi +213 -31
  61. reflex/components/radix/themes/components/callout.pyi +1000 -95
  62. reflex/components/radix/themes/components/card.pyi +199 -18
  63. reflex/components/radix/themes/components/context_menu.py +79 -1
  64. reflex/components/radix/themes/components/context_menu.pyi +320 -1
  65. reflex/components/radix/themes/components/dialog.pyi +199 -18
  66. reflex/components/radix/themes/components/hover_card.pyi +199 -18
  67. reflex/components/radix/themes/components/icon_button.pyi +213 -31
  68. reflex/components/radix/themes/components/inset.pyi +199 -18
  69. reflex/components/radix/themes/components/popover.pyi +199 -18
  70. reflex/components/radix/themes/components/table.pyi +1437 -154
  71. reflex/components/radix/themes/components/text_area.py +2 -2
  72. reflex/components/radix/themes/components/text_area.pyi +201 -20
  73. reflex/components/radix/themes/components/text_field.py +1 -1
  74. reflex/components/radix/themes/components/text_field.pyi +444 -88
  75. reflex/components/radix/themes/layout/box.pyi +200 -19
  76. reflex/components/radix/themes/layout/center.pyi +199 -18
  77. reflex/components/radix/themes/layout/container.pyi +199 -18
  78. reflex/components/radix/themes/layout/flex.pyi +199 -18
  79. reflex/components/radix/themes/layout/grid.pyi +199 -18
  80. reflex/components/radix/themes/layout/list.pyi +604 -57
  81. reflex/components/radix/themes/layout/section.pyi +199 -18
  82. reflex/components/radix/themes/layout/spacer.pyi +199 -18
  83. reflex/components/radix/themes/layout/stack.pyi +597 -54
  84. reflex/components/radix/themes/typography/blockquote.pyi +200 -19
  85. reflex/components/radix/themes/typography/code.pyi +199 -18
  86. reflex/components/radix/themes/typography/heading.pyi +199 -18
  87. reflex/components/radix/themes/typography/link.pyi +238 -28
  88. reflex/components/radix/themes/typography/text.pyi +1394 -127
  89. reflex/components/react_player/react_player.py +1 -1
  90. reflex/components/react_player/react_player.pyi +1 -3
  91. reflex/components/sonner/toast.py +41 -12
  92. reflex/components/sonner/toast.pyi +20 -6
  93. reflex/components/tags/iter_tag.py +4 -0
  94. reflex/components/tags/tag.py +3 -3
  95. reflex/config.py +187 -28
  96. reflex/constants/__init__.py +2 -0
  97. reflex/constants/base.py +6 -0
  98. reflex/constants/compiler.py +9 -0
  99. reflex/constants/event.py +1 -0
  100. reflex/constants/installer.py +8 -5
  101. reflex/constants/utils.py +1 -3
  102. reflex/event.py +7 -16
  103. reflex/experimental/layout.pyi +597 -54
  104. reflex/py.typed +0 -0
  105. reflex/reflex.py +44 -48
  106. reflex/state.py +49 -44
  107. reflex/style.py +15 -22
  108. reflex/testing.py +2 -0
  109. reflex/utils/build.py +12 -0
  110. reflex/utils/console.py +4 -0
  111. reflex/utils/decorator.py +25 -0
  112. reflex/utils/exec.py +92 -34
  113. reflex/utils/format.py +35 -6
  114. reflex/utils/path_ops.py +32 -1
  115. reflex/utils/prerequisites.py +45 -35
  116. reflex/utils/processes.py +12 -13
  117. reflex/utils/serializers.py +20 -43
  118. reflex/utils/telemetry.py +4 -15
  119. reflex/utils/types.py +36 -66
  120. reflex/vars/base.py +53 -76
  121. reflex/vars/function.py +17 -5
  122. reflex/vars/number.py +1 -1
  123. reflex/vars/sequence.py +80 -4
  124. {reflex-0.7.0a4.dist-info → reflex-0.7.1.dist-info}/METADATA +4 -5
  125. {reflex-0.7.0a4.dist-info → reflex-0.7.1.dist-info}/RECORD +128 -124
  126. {reflex-0.7.0a4.dist-info → reflex-0.7.1.dist-info}/LICENSE +0 -0
  127. {reflex-0.7.0a4.dist-info → reflex-0.7.1.dist-info}/WHEEL +0 -0
  128. {reflex-0.7.0a4.dist-info → reflex-0.7.1.dist-info}/entry_points.txt +0 -0
@@ -103,30 +103,211 @@ class CalloutRoot(elements.Div, RadixThemesComponent):
103
103
  ]
104
104
  ] = None,
105
105
  high_contrast: Optional[Union[Var[bool], bool]] = None,
106
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
106
+ access_key: Optional[Union[Var[str], str]] = None,
107
107
  auto_capitalize: Optional[
108
- Union[Var[Union[bool, int, str]], bool, int, str]
108
+ Union[
109
+ Literal["characters", "none", "off", "on", "sentences", "words"],
110
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
111
+ ]
109
112
  ] = None,
110
113
  content_editable: Optional[
111
- Union[Var[Union[bool, int, str]], bool, int, str]
112
- ] = None,
113
- context_menu: Optional[
114
- Union[Var[Union[bool, int, str]], bool, int, str]
114
+ Union[
115
+ Literal["inherit", "plaintext-only", False, True],
116
+ Var[Literal["inherit", "plaintext-only", False, True]],
117
+ ]
115
118
  ] = None,
116
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
117
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
119
+ context_menu: Optional[Union[Var[str], str]] = None,
120
+ dir: Optional[Union[Var[str], str]] = None,
121
+ draggable: Optional[Union[Var[bool], bool]] = None,
118
122
  enter_key_hint: Optional[
119
- Union[Var[Union[bool, int, str]], bool, int, str]
120
- ] = None,
121
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
122
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
123
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
124
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
125
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
126
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
127
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
128
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
129
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
123
+ Union[
124
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
125
+ Var[
126
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
127
+ ],
128
+ ]
129
+ ] = None,
130
+ hidden: Optional[Union[Var[bool], bool]] = None,
131
+ input_mode: Optional[
132
+ Union[
133
+ Literal[
134
+ "decimal",
135
+ "email",
136
+ "none",
137
+ "numeric",
138
+ "search",
139
+ "tel",
140
+ "text",
141
+ "url",
142
+ ],
143
+ Var[
144
+ Literal[
145
+ "decimal",
146
+ "email",
147
+ "none",
148
+ "numeric",
149
+ "search",
150
+ "tel",
151
+ "text",
152
+ "url",
153
+ ]
154
+ ],
155
+ ]
156
+ ] = None,
157
+ item_prop: Optional[Union[Var[str], str]] = None,
158
+ lang: Optional[Union[Var[str], str]] = None,
159
+ role: Optional[
160
+ Union[
161
+ Literal[
162
+ "alert",
163
+ "alertdialog",
164
+ "application",
165
+ "article",
166
+ "banner",
167
+ "button",
168
+ "cell",
169
+ "checkbox",
170
+ "columnheader",
171
+ "combobox",
172
+ "complementary",
173
+ "contentinfo",
174
+ "definition",
175
+ "dialog",
176
+ "directory",
177
+ "document",
178
+ "feed",
179
+ "figure",
180
+ "form",
181
+ "grid",
182
+ "gridcell",
183
+ "group",
184
+ "heading",
185
+ "img",
186
+ "link",
187
+ "list",
188
+ "listbox",
189
+ "listitem",
190
+ "log",
191
+ "main",
192
+ "marquee",
193
+ "math",
194
+ "menu",
195
+ "menubar",
196
+ "menuitem",
197
+ "menuitemcheckbox",
198
+ "menuitemradio",
199
+ "navigation",
200
+ "none",
201
+ "note",
202
+ "option",
203
+ "presentation",
204
+ "progressbar",
205
+ "radio",
206
+ "radiogroup",
207
+ "region",
208
+ "row",
209
+ "rowgroup",
210
+ "rowheader",
211
+ "scrollbar",
212
+ "search",
213
+ "searchbox",
214
+ "separator",
215
+ "slider",
216
+ "spinbutton",
217
+ "status",
218
+ "switch",
219
+ "tab",
220
+ "table",
221
+ "tablist",
222
+ "tabpanel",
223
+ "term",
224
+ "textbox",
225
+ "timer",
226
+ "toolbar",
227
+ "tooltip",
228
+ "tree",
229
+ "treegrid",
230
+ "treeitem",
231
+ ],
232
+ Var[
233
+ Literal[
234
+ "alert",
235
+ "alertdialog",
236
+ "application",
237
+ "article",
238
+ "banner",
239
+ "button",
240
+ "cell",
241
+ "checkbox",
242
+ "columnheader",
243
+ "combobox",
244
+ "complementary",
245
+ "contentinfo",
246
+ "definition",
247
+ "dialog",
248
+ "directory",
249
+ "document",
250
+ "feed",
251
+ "figure",
252
+ "form",
253
+ "grid",
254
+ "gridcell",
255
+ "group",
256
+ "heading",
257
+ "img",
258
+ "link",
259
+ "list",
260
+ "listbox",
261
+ "listitem",
262
+ "log",
263
+ "main",
264
+ "marquee",
265
+ "math",
266
+ "menu",
267
+ "menubar",
268
+ "menuitem",
269
+ "menuitemcheckbox",
270
+ "menuitemradio",
271
+ "navigation",
272
+ "none",
273
+ "note",
274
+ "option",
275
+ "presentation",
276
+ "progressbar",
277
+ "radio",
278
+ "radiogroup",
279
+ "region",
280
+ "row",
281
+ "rowgroup",
282
+ "rowheader",
283
+ "scrollbar",
284
+ "search",
285
+ "searchbox",
286
+ "separator",
287
+ "slider",
288
+ "spinbutton",
289
+ "status",
290
+ "switch",
291
+ "tab",
292
+ "table",
293
+ "tablist",
294
+ "tabpanel",
295
+ "term",
296
+ "textbox",
297
+ "timer",
298
+ "toolbar",
299
+ "tooltip",
300
+ "tree",
301
+ "treegrid",
302
+ "treeitem",
303
+ ]
304
+ ],
305
+ ]
306
+ ] = None,
307
+ slot: Optional[Union[Var[str], str]] = None,
308
+ spell_check: Optional[Union[Var[bool], bool]] = None,
309
+ tab_index: Optional[Union[Var[int], int]] = None,
310
+ title: Optional[Union[Var[str], str]] = None,
130
311
  style: Optional[Style] = None,
131
312
  key: Optional[Any] = None,
132
313
  id: Optional[Any] = None,
@@ -197,30 +378,211 @@ class CalloutIcon(elements.Div, RadixThemesComponent):
197
378
  def create( # type: ignore
198
379
  cls,
199
380
  *children,
200
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
381
+ access_key: Optional[Union[Var[str], str]] = None,
201
382
  auto_capitalize: Optional[
202
- Union[Var[Union[bool, int, str]], bool, int, str]
383
+ Union[
384
+ Literal["characters", "none", "off", "on", "sentences", "words"],
385
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
386
+ ]
203
387
  ] = None,
204
388
  content_editable: Optional[
205
- Union[Var[Union[bool, int, str]], bool, int, str]
206
- ] = None,
207
- context_menu: Optional[
208
- Union[Var[Union[bool, int, str]], bool, int, str]
389
+ Union[
390
+ Literal["inherit", "plaintext-only", False, True],
391
+ Var[Literal["inherit", "plaintext-only", False, True]],
392
+ ]
209
393
  ] = None,
210
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
211
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
394
+ context_menu: Optional[Union[Var[str], str]] = None,
395
+ dir: Optional[Union[Var[str], str]] = None,
396
+ draggable: Optional[Union[Var[bool], bool]] = None,
212
397
  enter_key_hint: Optional[
213
- Union[Var[Union[bool, int, str]], bool, int, str]
214
- ] = None,
215
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
216
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
217
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
218
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
219
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
220
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
221
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
222
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
223
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
398
+ Union[
399
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
400
+ Var[
401
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
402
+ ],
403
+ ]
404
+ ] = None,
405
+ hidden: Optional[Union[Var[bool], bool]] = None,
406
+ input_mode: Optional[
407
+ Union[
408
+ Literal[
409
+ "decimal",
410
+ "email",
411
+ "none",
412
+ "numeric",
413
+ "search",
414
+ "tel",
415
+ "text",
416
+ "url",
417
+ ],
418
+ Var[
419
+ Literal[
420
+ "decimal",
421
+ "email",
422
+ "none",
423
+ "numeric",
424
+ "search",
425
+ "tel",
426
+ "text",
427
+ "url",
428
+ ]
429
+ ],
430
+ ]
431
+ ] = None,
432
+ item_prop: Optional[Union[Var[str], str]] = None,
433
+ lang: Optional[Union[Var[str], str]] = None,
434
+ role: Optional[
435
+ Union[
436
+ Literal[
437
+ "alert",
438
+ "alertdialog",
439
+ "application",
440
+ "article",
441
+ "banner",
442
+ "button",
443
+ "cell",
444
+ "checkbox",
445
+ "columnheader",
446
+ "combobox",
447
+ "complementary",
448
+ "contentinfo",
449
+ "definition",
450
+ "dialog",
451
+ "directory",
452
+ "document",
453
+ "feed",
454
+ "figure",
455
+ "form",
456
+ "grid",
457
+ "gridcell",
458
+ "group",
459
+ "heading",
460
+ "img",
461
+ "link",
462
+ "list",
463
+ "listbox",
464
+ "listitem",
465
+ "log",
466
+ "main",
467
+ "marquee",
468
+ "math",
469
+ "menu",
470
+ "menubar",
471
+ "menuitem",
472
+ "menuitemcheckbox",
473
+ "menuitemradio",
474
+ "navigation",
475
+ "none",
476
+ "note",
477
+ "option",
478
+ "presentation",
479
+ "progressbar",
480
+ "radio",
481
+ "radiogroup",
482
+ "region",
483
+ "row",
484
+ "rowgroup",
485
+ "rowheader",
486
+ "scrollbar",
487
+ "search",
488
+ "searchbox",
489
+ "separator",
490
+ "slider",
491
+ "spinbutton",
492
+ "status",
493
+ "switch",
494
+ "tab",
495
+ "table",
496
+ "tablist",
497
+ "tabpanel",
498
+ "term",
499
+ "textbox",
500
+ "timer",
501
+ "toolbar",
502
+ "tooltip",
503
+ "tree",
504
+ "treegrid",
505
+ "treeitem",
506
+ ],
507
+ Var[
508
+ Literal[
509
+ "alert",
510
+ "alertdialog",
511
+ "application",
512
+ "article",
513
+ "banner",
514
+ "button",
515
+ "cell",
516
+ "checkbox",
517
+ "columnheader",
518
+ "combobox",
519
+ "complementary",
520
+ "contentinfo",
521
+ "definition",
522
+ "dialog",
523
+ "directory",
524
+ "document",
525
+ "feed",
526
+ "figure",
527
+ "form",
528
+ "grid",
529
+ "gridcell",
530
+ "group",
531
+ "heading",
532
+ "img",
533
+ "link",
534
+ "list",
535
+ "listbox",
536
+ "listitem",
537
+ "log",
538
+ "main",
539
+ "marquee",
540
+ "math",
541
+ "menu",
542
+ "menubar",
543
+ "menuitem",
544
+ "menuitemcheckbox",
545
+ "menuitemradio",
546
+ "navigation",
547
+ "none",
548
+ "note",
549
+ "option",
550
+ "presentation",
551
+ "progressbar",
552
+ "radio",
553
+ "radiogroup",
554
+ "region",
555
+ "row",
556
+ "rowgroup",
557
+ "rowheader",
558
+ "scrollbar",
559
+ "search",
560
+ "searchbox",
561
+ "separator",
562
+ "slider",
563
+ "spinbutton",
564
+ "status",
565
+ "switch",
566
+ "tab",
567
+ "table",
568
+ "tablist",
569
+ "tabpanel",
570
+ "term",
571
+ "textbox",
572
+ "timer",
573
+ "toolbar",
574
+ "tooltip",
575
+ "tree",
576
+ "treegrid",
577
+ "treeitem",
578
+ ]
579
+ ],
580
+ ]
581
+ ] = None,
582
+ slot: Optional[Union[Var[str], str]] = None,
583
+ spell_check: Optional[Union[Var[bool], bool]] = None,
584
+ tab_index: Optional[Union[Var[int], int]] = None,
585
+ title: Optional[Union[Var[str], str]] = None,
224
586
  style: Optional[Style] = None,
225
587
  key: Optional[Any] = None,
226
588
  id: Optional[Any] = None,
@@ -286,30 +648,211 @@ class CalloutText(elements.P, RadixThemesComponent):
286
648
  def create( # type: ignore
287
649
  cls,
288
650
  *children,
289
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
651
+ access_key: Optional[Union[Var[str], str]] = None,
290
652
  auto_capitalize: Optional[
291
- Union[Var[Union[bool, int, str]], bool, int, str]
653
+ Union[
654
+ Literal["characters", "none", "off", "on", "sentences", "words"],
655
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
656
+ ]
292
657
  ] = None,
293
658
  content_editable: Optional[
294
- Union[Var[Union[bool, int, str]], bool, int, str]
295
- ] = None,
296
- context_menu: Optional[
297
- Union[Var[Union[bool, int, str]], bool, int, str]
659
+ Union[
660
+ Literal["inherit", "plaintext-only", False, True],
661
+ Var[Literal["inherit", "plaintext-only", False, True]],
662
+ ]
298
663
  ] = None,
299
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
300
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
664
+ context_menu: Optional[Union[Var[str], str]] = None,
665
+ dir: Optional[Union[Var[str], str]] = None,
666
+ draggable: Optional[Union[Var[bool], bool]] = None,
301
667
  enter_key_hint: Optional[
302
- Union[Var[Union[bool, int, str]], bool, int, str]
303
- ] = None,
304
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
305
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
306
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
307
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
308
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
309
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
310
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
311
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
312
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
668
+ Union[
669
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
670
+ Var[
671
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
672
+ ],
673
+ ]
674
+ ] = None,
675
+ hidden: Optional[Union[Var[bool], bool]] = None,
676
+ input_mode: Optional[
677
+ Union[
678
+ Literal[
679
+ "decimal",
680
+ "email",
681
+ "none",
682
+ "numeric",
683
+ "search",
684
+ "tel",
685
+ "text",
686
+ "url",
687
+ ],
688
+ Var[
689
+ Literal[
690
+ "decimal",
691
+ "email",
692
+ "none",
693
+ "numeric",
694
+ "search",
695
+ "tel",
696
+ "text",
697
+ "url",
698
+ ]
699
+ ],
700
+ ]
701
+ ] = None,
702
+ item_prop: Optional[Union[Var[str], str]] = None,
703
+ lang: Optional[Union[Var[str], str]] = None,
704
+ role: Optional[
705
+ Union[
706
+ Literal[
707
+ "alert",
708
+ "alertdialog",
709
+ "application",
710
+ "article",
711
+ "banner",
712
+ "button",
713
+ "cell",
714
+ "checkbox",
715
+ "columnheader",
716
+ "combobox",
717
+ "complementary",
718
+ "contentinfo",
719
+ "definition",
720
+ "dialog",
721
+ "directory",
722
+ "document",
723
+ "feed",
724
+ "figure",
725
+ "form",
726
+ "grid",
727
+ "gridcell",
728
+ "group",
729
+ "heading",
730
+ "img",
731
+ "link",
732
+ "list",
733
+ "listbox",
734
+ "listitem",
735
+ "log",
736
+ "main",
737
+ "marquee",
738
+ "math",
739
+ "menu",
740
+ "menubar",
741
+ "menuitem",
742
+ "menuitemcheckbox",
743
+ "menuitemradio",
744
+ "navigation",
745
+ "none",
746
+ "note",
747
+ "option",
748
+ "presentation",
749
+ "progressbar",
750
+ "radio",
751
+ "radiogroup",
752
+ "region",
753
+ "row",
754
+ "rowgroup",
755
+ "rowheader",
756
+ "scrollbar",
757
+ "search",
758
+ "searchbox",
759
+ "separator",
760
+ "slider",
761
+ "spinbutton",
762
+ "status",
763
+ "switch",
764
+ "tab",
765
+ "table",
766
+ "tablist",
767
+ "tabpanel",
768
+ "term",
769
+ "textbox",
770
+ "timer",
771
+ "toolbar",
772
+ "tooltip",
773
+ "tree",
774
+ "treegrid",
775
+ "treeitem",
776
+ ],
777
+ Var[
778
+ Literal[
779
+ "alert",
780
+ "alertdialog",
781
+ "application",
782
+ "article",
783
+ "banner",
784
+ "button",
785
+ "cell",
786
+ "checkbox",
787
+ "columnheader",
788
+ "combobox",
789
+ "complementary",
790
+ "contentinfo",
791
+ "definition",
792
+ "dialog",
793
+ "directory",
794
+ "document",
795
+ "feed",
796
+ "figure",
797
+ "form",
798
+ "grid",
799
+ "gridcell",
800
+ "group",
801
+ "heading",
802
+ "img",
803
+ "link",
804
+ "list",
805
+ "listbox",
806
+ "listitem",
807
+ "log",
808
+ "main",
809
+ "marquee",
810
+ "math",
811
+ "menu",
812
+ "menubar",
813
+ "menuitem",
814
+ "menuitemcheckbox",
815
+ "menuitemradio",
816
+ "navigation",
817
+ "none",
818
+ "note",
819
+ "option",
820
+ "presentation",
821
+ "progressbar",
822
+ "radio",
823
+ "radiogroup",
824
+ "region",
825
+ "row",
826
+ "rowgroup",
827
+ "rowheader",
828
+ "scrollbar",
829
+ "search",
830
+ "searchbox",
831
+ "separator",
832
+ "slider",
833
+ "spinbutton",
834
+ "status",
835
+ "switch",
836
+ "tab",
837
+ "table",
838
+ "tablist",
839
+ "tabpanel",
840
+ "term",
841
+ "textbox",
842
+ "timer",
843
+ "toolbar",
844
+ "tooltip",
845
+ "tree",
846
+ "treegrid",
847
+ "treeitem",
848
+ ]
849
+ ],
850
+ ]
851
+ ] = None,
852
+ slot: Optional[Union[Var[str], str]] = None,
853
+ spell_check: Optional[Union[Var[bool], bool]] = None,
854
+ tab_index: Optional[Union[Var[int], int]] = None,
855
+ title: Optional[Union[Var[str], str]] = None,
313
856
  style: Optional[Style] = None,
314
857
  key: Optional[Any] = None,
315
858
  id: Optional[Any] = None,
@@ -458,30 +1001,211 @@ class Callout(CalloutRoot):
458
1001
  ]
459
1002
  ] = None,
460
1003
  high_contrast: Optional[Union[Var[bool], bool]] = None,
461
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
1004
+ access_key: Optional[Union[Var[str], str]] = None,
462
1005
  auto_capitalize: Optional[
463
- Union[Var[Union[bool, int, str]], bool, int, str]
1006
+ Union[
1007
+ Literal["characters", "none", "off", "on", "sentences", "words"],
1008
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
1009
+ ]
464
1010
  ] = None,
465
1011
  content_editable: Optional[
466
- Union[Var[Union[bool, int, str]], bool, int, str]
467
- ] = None,
468
- context_menu: Optional[
469
- Union[Var[Union[bool, int, str]], bool, int, str]
1012
+ Union[
1013
+ Literal["inherit", "plaintext-only", False, True],
1014
+ Var[Literal["inherit", "plaintext-only", False, True]],
1015
+ ]
470
1016
  ] = None,
471
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
472
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
1017
+ context_menu: Optional[Union[Var[str], str]] = None,
1018
+ dir: Optional[Union[Var[str], str]] = None,
1019
+ draggable: Optional[Union[Var[bool], bool]] = None,
473
1020
  enter_key_hint: Optional[
474
- Union[Var[Union[bool, int, str]], bool, int, str]
475
- ] = None,
476
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
477
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
478
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
479
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
480
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
481
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
482
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
483
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
484
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
1021
+ Union[
1022
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
1023
+ Var[
1024
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
1025
+ ],
1026
+ ]
1027
+ ] = None,
1028
+ hidden: Optional[Union[Var[bool], bool]] = None,
1029
+ input_mode: Optional[
1030
+ Union[
1031
+ Literal[
1032
+ "decimal",
1033
+ "email",
1034
+ "none",
1035
+ "numeric",
1036
+ "search",
1037
+ "tel",
1038
+ "text",
1039
+ "url",
1040
+ ],
1041
+ Var[
1042
+ Literal[
1043
+ "decimal",
1044
+ "email",
1045
+ "none",
1046
+ "numeric",
1047
+ "search",
1048
+ "tel",
1049
+ "text",
1050
+ "url",
1051
+ ]
1052
+ ],
1053
+ ]
1054
+ ] = None,
1055
+ item_prop: Optional[Union[Var[str], str]] = None,
1056
+ lang: Optional[Union[Var[str], str]] = None,
1057
+ role: Optional[
1058
+ Union[
1059
+ Literal[
1060
+ "alert",
1061
+ "alertdialog",
1062
+ "application",
1063
+ "article",
1064
+ "banner",
1065
+ "button",
1066
+ "cell",
1067
+ "checkbox",
1068
+ "columnheader",
1069
+ "combobox",
1070
+ "complementary",
1071
+ "contentinfo",
1072
+ "definition",
1073
+ "dialog",
1074
+ "directory",
1075
+ "document",
1076
+ "feed",
1077
+ "figure",
1078
+ "form",
1079
+ "grid",
1080
+ "gridcell",
1081
+ "group",
1082
+ "heading",
1083
+ "img",
1084
+ "link",
1085
+ "list",
1086
+ "listbox",
1087
+ "listitem",
1088
+ "log",
1089
+ "main",
1090
+ "marquee",
1091
+ "math",
1092
+ "menu",
1093
+ "menubar",
1094
+ "menuitem",
1095
+ "menuitemcheckbox",
1096
+ "menuitemradio",
1097
+ "navigation",
1098
+ "none",
1099
+ "note",
1100
+ "option",
1101
+ "presentation",
1102
+ "progressbar",
1103
+ "radio",
1104
+ "radiogroup",
1105
+ "region",
1106
+ "row",
1107
+ "rowgroup",
1108
+ "rowheader",
1109
+ "scrollbar",
1110
+ "search",
1111
+ "searchbox",
1112
+ "separator",
1113
+ "slider",
1114
+ "spinbutton",
1115
+ "status",
1116
+ "switch",
1117
+ "tab",
1118
+ "table",
1119
+ "tablist",
1120
+ "tabpanel",
1121
+ "term",
1122
+ "textbox",
1123
+ "timer",
1124
+ "toolbar",
1125
+ "tooltip",
1126
+ "tree",
1127
+ "treegrid",
1128
+ "treeitem",
1129
+ ],
1130
+ Var[
1131
+ Literal[
1132
+ "alert",
1133
+ "alertdialog",
1134
+ "application",
1135
+ "article",
1136
+ "banner",
1137
+ "button",
1138
+ "cell",
1139
+ "checkbox",
1140
+ "columnheader",
1141
+ "combobox",
1142
+ "complementary",
1143
+ "contentinfo",
1144
+ "definition",
1145
+ "dialog",
1146
+ "directory",
1147
+ "document",
1148
+ "feed",
1149
+ "figure",
1150
+ "form",
1151
+ "grid",
1152
+ "gridcell",
1153
+ "group",
1154
+ "heading",
1155
+ "img",
1156
+ "link",
1157
+ "list",
1158
+ "listbox",
1159
+ "listitem",
1160
+ "log",
1161
+ "main",
1162
+ "marquee",
1163
+ "math",
1164
+ "menu",
1165
+ "menubar",
1166
+ "menuitem",
1167
+ "menuitemcheckbox",
1168
+ "menuitemradio",
1169
+ "navigation",
1170
+ "none",
1171
+ "note",
1172
+ "option",
1173
+ "presentation",
1174
+ "progressbar",
1175
+ "radio",
1176
+ "radiogroup",
1177
+ "region",
1178
+ "row",
1179
+ "rowgroup",
1180
+ "rowheader",
1181
+ "scrollbar",
1182
+ "search",
1183
+ "searchbox",
1184
+ "separator",
1185
+ "slider",
1186
+ "spinbutton",
1187
+ "status",
1188
+ "switch",
1189
+ "tab",
1190
+ "table",
1191
+ "tablist",
1192
+ "tabpanel",
1193
+ "term",
1194
+ "textbox",
1195
+ "timer",
1196
+ "toolbar",
1197
+ "tooltip",
1198
+ "tree",
1199
+ "treegrid",
1200
+ "treeitem",
1201
+ ]
1202
+ ],
1203
+ ]
1204
+ ] = None,
1205
+ slot: Optional[Union[Var[str], str]] = None,
1206
+ spell_check: Optional[Union[Var[bool], bool]] = None,
1207
+ tab_index: Optional[Union[Var[int], int]] = None,
1208
+ title: Optional[Union[Var[str], str]] = None,
485
1209
  style: Optional[Style] = None,
486
1210
  key: Optional[Any] = None,
487
1211
  id: Optional[Any] = None,
@@ -636,30 +1360,211 @@ class CalloutNamespace(ComponentNamespace):
636
1360
  ]
637
1361
  ] = None,
638
1362
  high_contrast: Optional[Union[Var[bool], bool]] = None,
639
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
1363
+ access_key: Optional[Union[Var[str], str]] = None,
640
1364
  auto_capitalize: Optional[
641
- Union[Var[Union[bool, int, str]], bool, int, str]
1365
+ Union[
1366
+ Literal["characters", "none", "off", "on", "sentences", "words"],
1367
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
1368
+ ]
642
1369
  ] = None,
643
1370
  content_editable: Optional[
644
- Union[Var[Union[bool, int, str]], bool, int, str]
645
- ] = None,
646
- context_menu: Optional[
647
- Union[Var[Union[bool, int, str]], bool, int, str]
1371
+ Union[
1372
+ Literal["inherit", "plaintext-only", False, True],
1373
+ Var[Literal["inherit", "plaintext-only", False, True]],
1374
+ ]
648
1375
  ] = None,
649
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
650
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
1376
+ context_menu: Optional[Union[Var[str], str]] = None,
1377
+ dir: Optional[Union[Var[str], str]] = None,
1378
+ draggable: Optional[Union[Var[bool], bool]] = None,
651
1379
  enter_key_hint: Optional[
652
- Union[Var[Union[bool, int, str]], bool, int, str]
653
- ] = None,
654
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
655
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
656
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
657
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
658
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
659
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
660
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
661
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
662
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
1380
+ Union[
1381
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
1382
+ Var[
1383
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
1384
+ ],
1385
+ ]
1386
+ ] = None,
1387
+ hidden: Optional[Union[Var[bool], bool]] = None,
1388
+ input_mode: Optional[
1389
+ Union[
1390
+ Literal[
1391
+ "decimal",
1392
+ "email",
1393
+ "none",
1394
+ "numeric",
1395
+ "search",
1396
+ "tel",
1397
+ "text",
1398
+ "url",
1399
+ ],
1400
+ Var[
1401
+ Literal[
1402
+ "decimal",
1403
+ "email",
1404
+ "none",
1405
+ "numeric",
1406
+ "search",
1407
+ "tel",
1408
+ "text",
1409
+ "url",
1410
+ ]
1411
+ ],
1412
+ ]
1413
+ ] = None,
1414
+ item_prop: Optional[Union[Var[str], str]] = None,
1415
+ lang: Optional[Union[Var[str], str]] = None,
1416
+ role: Optional[
1417
+ Union[
1418
+ Literal[
1419
+ "alert",
1420
+ "alertdialog",
1421
+ "application",
1422
+ "article",
1423
+ "banner",
1424
+ "button",
1425
+ "cell",
1426
+ "checkbox",
1427
+ "columnheader",
1428
+ "combobox",
1429
+ "complementary",
1430
+ "contentinfo",
1431
+ "definition",
1432
+ "dialog",
1433
+ "directory",
1434
+ "document",
1435
+ "feed",
1436
+ "figure",
1437
+ "form",
1438
+ "grid",
1439
+ "gridcell",
1440
+ "group",
1441
+ "heading",
1442
+ "img",
1443
+ "link",
1444
+ "list",
1445
+ "listbox",
1446
+ "listitem",
1447
+ "log",
1448
+ "main",
1449
+ "marquee",
1450
+ "math",
1451
+ "menu",
1452
+ "menubar",
1453
+ "menuitem",
1454
+ "menuitemcheckbox",
1455
+ "menuitemradio",
1456
+ "navigation",
1457
+ "none",
1458
+ "note",
1459
+ "option",
1460
+ "presentation",
1461
+ "progressbar",
1462
+ "radio",
1463
+ "radiogroup",
1464
+ "region",
1465
+ "row",
1466
+ "rowgroup",
1467
+ "rowheader",
1468
+ "scrollbar",
1469
+ "search",
1470
+ "searchbox",
1471
+ "separator",
1472
+ "slider",
1473
+ "spinbutton",
1474
+ "status",
1475
+ "switch",
1476
+ "tab",
1477
+ "table",
1478
+ "tablist",
1479
+ "tabpanel",
1480
+ "term",
1481
+ "textbox",
1482
+ "timer",
1483
+ "toolbar",
1484
+ "tooltip",
1485
+ "tree",
1486
+ "treegrid",
1487
+ "treeitem",
1488
+ ],
1489
+ Var[
1490
+ Literal[
1491
+ "alert",
1492
+ "alertdialog",
1493
+ "application",
1494
+ "article",
1495
+ "banner",
1496
+ "button",
1497
+ "cell",
1498
+ "checkbox",
1499
+ "columnheader",
1500
+ "combobox",
1501
+ "complementary",
1502
+ "contentinfo",
1503
+ "definition",
1504
+ "dialog",
1505
+ "directory",
1506
+ "document",
1507
+ "feed",
1508
+ "figure",
1509
+ "form",
1510
+ "grid",
1511
+ "gridcell",
1512
+ "group",
1513
+ "heading",
1514
+ "img",
1515
+ "link",
1516
+ "list",
1517
+ "listbox",
1518
+ "listitem",
1519
+ "log",
1520
+ "main",
1521
+ "marquee",
1522
+ "math",
1523
+ "menu",
1524
+ "menubar",
1525
+ "menuitem",
1526
+ "menuitemcheckbox",
1527
+ "menuitemradio",
1528
+ "navigation",
1529
+ "none",
1530
+ "note",
1531
+ "option",
1532
+ "presentation",
1533
+ "progressbar",
1534
+ "radio",
1535
+ "radiogroup",
1536
+ "region",
1537
+ "row",
1538
+ "rowgroup",
1539
+ "rowheader",
1540
+ "scrollbar",
1541
+ "search",
1542
+ "searchbox",
1543
+ "separator",
1544
+ "slider",
1545
+ "spinbutton",
1546
+ "status",
1547
+ "switch",
1548
+ "tab",
1549
+ "table",
1550
+ "tablist",
1551
+ "tabpanel",
1552
+ "term",
1553
+ "textbox",
1554
+ "timer",
1555
+ "toolbar",
1556
+ "tooltip",
1557
+ "tree",
1558
+ "treegrid",
1559
+ "treeitem",
1560
+ ]
1561
+ ],
1562
+ ]
1563
+ ] = None,
1564
+ slot: Optional[Union[Var[str], str]] = None,
1565
+ spell_check: Optional[Union[Var[bool], bool]] = None,
1566
+ tab_index: Optional[Union[Var[int], int]] = None,
1567
+ title: Optional[Union[Var[str], str]] = None,
663
1568
  style: Optional[Style] = None,
664
1569
  key: Optional[Any] = None,
665
1570
  id: Optional[Any] = None,