reflex 0.7.0a5__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 (127) 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 +268 -85
  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.pyi +874 -90
  24. reflex/components/core/upload.py +3 -5
  25. reflex/components/core/upload.pyi +2 -4
  26. reflex/components/datadisplay/code.py +36 -10
  27. reflex/components/datadisplay/code.pyi +1 -1
  28. reflex/components/datadisplay/dataeditor.py +1 -3
  29. reflex/components/datadisplay/dataeditor.pyi +1 -3
  30. reflex/components/el/elements/base.py +95 -17
  31. reflex/components/el/elements/base.pyi +278 -19
  32. reflex/components/el/elements/forms.py +124 -102
  33. reflex/components/el/elements/forms.pyi +2787 -365
  34. reflex/components/el/elements/inline.py +24 -15
  35. reflex/components/el/elements/inline.pyi +5655 -546
  36. reflex/components/el/elements/media.py +79 -95
  37. reflex/components/el/elements/media.pyi +5167 -565
  38. reflex/components/el/elements/metadata.py +19 -17
  39. reflex/components/el/elements/metadata.pyi +841 -89
  40. reflex/components/el/elements/other.py +3 -5
  41. reflex/components/el/elements/other.pyi +1404 -137
  42. reflex/components/el/elements/scripts.py +10 -13
  43. reflex/components/el/elements/scripts.pyi +634 -65
  44. reflex/components/el/elements/sectioning.pyi +3001 -286
  45. reflex/components/el/elements/tables.py +14 -35
  46. reflex/components/el/elements/tables.pyi +2029 -218
  47. reflex/components/el/elements/typography.py +10 -13
  48. reflex/components/el/elements/typography.pyi +3014 -297
  49. reflex/components/lucide/icon.py +22 -6
  50. reflex/components/markdown/markdown.py +30 -10
  51. reflex/components/markdown/markdown.pyi +3 -2
  52. reflex/components/plotly/plotly.py +1 -3
  53. reflex/components/plotly/plotly.pyi +1 -3
  54. reflex/components/radix/primitives/form.pyi +624 -93
  55. reflex/components/radix/themes/color_mode.py +1 -1
  56. reflex/components/radix/themes/color_mode.pyi +213 -31
  57. reflex/components/radix/themes/components/alert_dialog.pyi +199 -18
  58. reflex/components/radix/themes/components/badge.pyi +199 -18
  59. reflex/components/radix/themes/components/button.pyi +213 -31
  60. reflex/components/radix/themes/components/callout.pyi +1000 -95
  61. reflex/components/radix/themes/components/card.pyi +199 -18
  62. reflex/components/radix/themes/components/context_menu.py +79 -1
  63. reflex/components/radix/themes/components/context_menu.pyi +320 -1
  64. reflex/components/radix/themes/components/dialog.pyi +199 -18
  65. reflex/components/radix/themes/components/hover_card.pyi +199 -18
  66. reflex/components/radix/themes/components/icon_button.pyi +213 -31
  67. reflex/components/radix/themes/components/inset.pyi +199 -18
  68. reflex/components/radix/themes/components/popover.pyi +199 -18
  69. reflex/components/radix/themes/components/table.pyi +1437 -154
  70. reflex/components/radix/themes/components/text_area.py +2 -2
  71. reflex/components/radix/themes/components/text_area.pyi +201 -20
  72. reflex/components/radix/themes/components/text_field.py +1 -1
  73. reflex/components/radix/themes/components/text_field.pyi +444 -88
  74. reflex/components/radix/themes/layout/box.pyi +200 -19
  75. reflex/components/radix/themes/layout/center.pyi +199 -18
  76. reflex/components/radix/themes/layout/container.pyi +199 -18
  77. reflex/components/radix/themes/layout/flex.pyi +199 -18
  78. reflex/components/radix/themes/layout/grid.pyi +199 -18
  79. reflex/components/radix/themes/layout/list.pyi +604 -57
  80. reflex/components/radix/themes/layout/section.pyi +199 -18
  81. reflex/components/radix/themes/layout/spacer.pyi +199 -18
  82. reflex/components/radix/themes/layout/stack.pyi +597 -54
  83. reflex/components/radix/themes/typography/blockquote.pyi +200 -19
  84. reflex/components/radix/themes/typography/code.pyi +199 -18
  85. reflex/components/radix/themes/typography/heading.pyi +199 -18
  86. reflex/components/radix/themes/typography/link.pyi +238 -28
  87. reflex/components/radix/themes/typography/text.pyi +1394 -127
  88. reflex/components/react_player/react_player.py +1 -1
  89. reflex/components/react_player/react_player.pyi +1 -3
  90. reflex/components/sonner/toast.py +41 -12
  91. reflex/components/sonner/toast.pyi +20 -6
  92. reflex/components/tags/iter_tag.py +4 -0
  93. reflex/components/tags/tag.py +3 -3
  94. reflex/config.py +187 -28
  95. reflex/constants/__init__.py +2 -0
  96. reflex/constants/base.py +6 -0
  97. reflex/constants/compiler.py +9 -0
  98. reflex/constants/event.py +1 -0
  99. reflex/constants/installer.py +8 -5
  100. reflex/constants/utils.py +1 -3
  101. reflex/event.py +7 -16
  102. reflex/experimental/layout.pyi +597 -54
  103. reflex/py.typed +0 -0
  104. reflex/reflex.py +30 -41
  105. reflex/state.py +49 -44
  106. reflex/style.py +15 -22
  107. reflex/testing.py +2 -0
  108. reflex/utils/build.py +12 -0
  109. reflex/utils/console.py +4 -0
  110. reflex/utils/decorator.py +25 -0
  111. reflex/utils/exec.py +92 -34
  112. reflex/utils/format.py +35 -6
  113. reflex/utils/path_ops.py +16 -1
  114. reflex/utils/prerequisites.py +25 -33
  115. reflex/utils/processes.py +12 -13
  116. reflex/utils/serializers.py +20 -43
  117. reflex/utils/telemetry.py +4 -15
  118. reflex/utils/types.py +36 -66
  119. reflex/vars/base.py +53 -76
  120. reflex/vars/function.py +17 -5
  121. reflex/vars/number.py +1 -1
  122. reflex/vars/sequence.py +80 -4
  123. {reflex-0.7.0a5.dist-info → reflex-0.7.1.dist-info}/METADATA +4 -5
  124. {reflex-0.7.0a5.dist-info → reflex-0.7.1.dist-info}/RECORD +127 -123
  125. {reflex-0.7.0a5.dist-info → reflex-0.7.1.dist-info}/LICENSE +0 -0
  126. {reflex-0.7.0a5.dist-info → reflex-0.7.1.dist-info}/WHEEL +0 -0
  127. {reflex-0.7.0a5.dist-info → reflex-0.7.1.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,30 +17,211 @@ class Canvas(BaseHTML):
17
17
  def create( # type: ignore
18
18
  cls,
19
19
  *children,
20
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
20
+ access_key: Optional[Union[Var[str], str]] = None,
21
21
  auto_capitalize: Optional[
22
- Union[Var[Union[bool, int, str]], bool, int, str]
22
+ Union[
23
+ Literal["characters", "none", "off", "on", "sentences", "words"],
24
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
25
+ ]
23
26
  ] = None,
24
27
  content_editable: Optional[
25
- Union[Var[Union[bool, int, str]], bool, int, str]
28
+ Union[
29
+ Literal["inherit", "plaintext-only", False, True],
30
+ Var[Literal["inherit", "plaintext-only", False, True]],
31
+ ]
26
32
  ] = None,
27
- context_menu: Optional[
28
- Union[Var[Union[bool, int, str]], bool, int, str]
29
- ] = None,
30
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
31
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
33
+ context_menu: Optional[Union[Var[str], str]] = None,
34
+ dir: Optional[Union[Var[str], str]] = None,
35
+ draggable: Optional[Union[Var[bool], bool]] = None,
32
36
  enter_key_hint: Optional[
33
- Union[Var[Union[bool, int, str]], bool, int, str]
37
+ Union[
38
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
39
+ Var[
40
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
41
+ ],
42
+ ]
43
+ ] = None,
44
+ hidden: Optional[Union[Var[bool], bool]] = None,
45
+ input_mode: Optional[
46
+ Union[
47
+ Literal[
48
+ "decimal",
49
+ "email",
50
+ "none",
51
+ "numeric",
52
+ "search",
53
+ "tel",
54
+ "text",
55
+ "url",
56
+ ],
57
+ Var[
58
+ Literal[
59
+ "decimal",
60
+ "email",
61
+ "none",
62
+ "numeric",
63
+ "search",
64
+ "tel",
65
+ "text",
66
+ "url",
67
+ ]
68
+ ],
69
+ ]
70
+ ] = None,
71
+ item_prop: Optional[Union[Var[str], str]] = None,
72
+ lang: Optional[Union[Var[str], str]] = None,
73
+ role: Optional[
74
+ Union[
75
+ Literal[
76
+ "alert",
77
+ "alertdialog",
78
+ "application",
79
+ "article",
80
+ "banner",
81
+ "button",
82
+ "cell",
83
+ "checkbox",
84
+ "columnheader",
85
+ "combobox",
86
+ "complementary",
87
+ "contentinfo",
88
+ "definition",
89
+ "dialog",
90
+ "directory",
91
+ "document",
92
+ "feed",
93
+ "figure",
94
+ "form",
95
+ "grid",
96
+ "gridcell",
97
+ "group",
98
+ "heading",
99
+ "img",
100
+ "link",
101
+ "list",
102
+ "listbox",
103
+ "listitem",
104
+ "log",
105
+ "main",
106
+ "marquee",
107
+ "math",
108
+ "menu",
109
+ "menubar",
110
+ "menuitem",
111
+ "menuitemcheckbox",
112
+ "menuitemradio",
113
+ "navigation",
114
+ "none",
115
+ "note",
116
+ "option",
117
+ "presentation",
118
+ "progressbar",
119
+ "radio",
120
+ "radiogroup",
121
+ "region",
122
+ "row",
123
+ "rowgroup",
124
+ "rowheader",
125
+ "scrollbar",
126
+ "search",
127
+ "searchbox",
128
+ "separator",
129
+ "slider",
130
+ "spinbutton",
131
+ "status",
132
+ "switch",
133
+ "tab",
134
+ "table",
135
+ "tablist",
136
+ "tabpanel",
137
+ "term",
138
+ "textbox",
139
+ "timer",
140
+ "toolbar",
141
+ "tooltip",
142
+ "tree",
143
+ "treegrid",
144
+ "treeitem",
145
+ ],
146
+ Var[
147
+ Literal[
148
+ "alert",
149
+ "alertdialog",
150
+ "application",
151
+ "article",
152
+ "banner",
153
+ "button",
154
+ "cell",
155
+ "checkbox",
156
+ "columnheader",
157
+ "combobox",
158
+ "complementary",
159
+ "contentinfo",
160
+ "definition",
161
+ "dialog",
162
+ "directory",
163
+ "document",
164
+ "feed",
165
+ "figure",
166
+ "form",
167
+ "grid",
168
+ "gridcell",
169
+ "group",
170
+ "heading",
171
+ "img",
172
+ "link",
173
+ "list",
174
+ "listbox",
175
+ "listitem",
176
+ "log",
177
+ "main",
178
+ "marquee",
179
+ "math",
180
+ "menu",
181
+ "menubar",
182
+ "menuitem",
183
+ "menuitemcheckbox",
184
+ "menuitemradio",
185
+ "navigation",
186
+ "none",
187
+ "note",
188
+ "option",
189
+ "presentation",
190
+ "progressbar",
191
+ "radio",
192
+ "radiogroup",
193
+ "region",
194
+ "row",
195
+ "rowgroup",
196
+ "rowheader",
197
+ "scrollbar",
198
+ "search",
199
+ "searchbox",
200
+ "separator",
201
+ "slider",
202
+ "spinbutton",
203
+ "status",
204
+ "switch",
205
+ "tab",
206
+ "table",
207
+ "tablist",
208
+ "tabpanel",
209
+ "term",
210
+ "textbox",
211
+ "timer",
212
+ "toolbar",
213
+ "tooltip",
214
+ "tree",
215
+ "treegrid",
216
+ "treeitem",
217
+ ]
218
+ ],
219
+ ]
34
220
  ] = None,
35
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
36
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
37
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
38
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
39
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
40
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
41
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
42
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
43
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
221
+ slot: Optional[Union[Var[str], str]] = None,
222
+ spell_check: Optional[Union[Var[bool], bool]] = None,
223
+ tab_index: Optional[Union[Var[int], int]] = None,
224
+ title: Optional[Union[Var[str], str]] = None,
44
225
  style: Optional[Style] = None,
45
226
  key: Optional[Any] = None,
46
227
  id: Optional[Any] = None,
@@ -103,30 +284,211 @@ class Noscript(BaseHTML):
103
284
  def create( # type: ignore
104
285
  cls,
105
286
  *children,
106
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
287
+ access_key: Optional[Union[Var[str], str]] = None,
107
288
  auto_capitalize: Optional[
108
- Union[Var[Union[bool, int, str]], bool, int, str]
289
+ Union[
290
+ Literal["characters", "none", "off", "on", "sentences", "words"],
291
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
292
+ ]
109
293
  ] = None,
110
294
  content_editable: Optional[
111
- Union[Var[Union[bool, int, str]], bool, int, str]
295
+ Union[
296
+ Literal["inherit", "plaintext-only", False, True],
297
+ Var[Literal["inherit", "plaintext-only", False, True]],
298
+ ]
112
299
  ] = None,
113
- context_menu: Optional[
114
- Union[Var[Union[bool, int, str]], bool, int, str]
115
- ] = 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,
300
+ context_menu: Optional[Union[Var[str], str]] = None,
301
+ dir: Optional[Union[Var[str], str]] = None,
302
+ draggable: Optional[Union[Var[bool], bool]] = None,
118
303
  enter_key_hint: Optional[
119
- Union[Var[Union[bool, int, str]], bool, int, str]
304
+ Union[
305
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
306
+ Var[
307
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
308
+ ],
309
+ ]
310
+ ] = None,
311
+ hidden: Optional[Union[Var[bool], bool]] = None,
312
+ input_mode: Optional[
313
+ Union[
314
+ Literal[
315
+ "decimal",
316
+ "email",
317
+ "none",
318
+ "numeric",
319
+ "search",
320
+ "tel",
321
+ "text",
322
+ "url",
323
+ ],
324
+ Var[
325
+ Literal[
326
+ "decimal",
327
+ "email",
328
+ "none",
329
+ "numeric",
330
+ "search",
331
+ "tel",
332
+ "text",
333
+ "url",
334
+ ]
335
+ ],
336
+ ]
120
337
  ] = 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,
338
+ item_prop: Optional[Union[Var[str], str]] = None,
339
+ lang: Optional[Union[Var[str], str]] = None,
340
+ role: Optional[
341
+ Union[
342
+ Literal[
343
+ "alert",
344
+ "alertdialog",
345
+ "application",
346
+ "article",
347
+ "banner",
348
+ "button",
349
+ "cell",
350
+ "checkbox",
351
+ "columnheader",
352
+ "combobox",
353
+ "complementary",
354
+ "contentinfo",
355
+ "definition",
356
+ "dialog",
357
+ "directory",
358
+ "document",
359
+ "feed",
360
+ "figure",
361
+ "form",
362
+ "grid",
363
+ "gridcell",
364
+ "group",
365
+ "heading",
366
+ "img",
367
+ "link",
368
+ "list",
369
+ "listbox",
370
+ "listitem",
371
+ "log",
372
+ "main",
373
+ "marquee",
374
+ "math",
375
+ "menu",
376
+ "menubar",
377
+ "menuitem",
378
+ "menuitemcheckbox",
379
+ "menuitemradio",
380
+ "navigation",
381
+ "none",
382
+ "note",
383
+ "option",
384
+ "presentation",
385
+ "progressbar",
386
+ "radio",
387
+ "radiogroup",
388
+ "region",
389
+ "row",
390
+ "rowgroup",
391
+ "rowheader",
392
+ "scrollbar",
393
+ "search",
394
+ "searchbox",
395
+ "separator",
396
+ "slider",
397
+ "spinbutton",
398
+ "status",
399
+ "switch",
400
+ "tab",
401
+ "table",
402
+ "tablist",
403
+ "tabpanel",
404
+ "term",
405
+ "textbox",
406
+ "timer",
407
+ "toolbar",
408
+ "tooltip",
409
+ "tree",
410
+ "treegrid",
411
+ "treeitem",
412
+ ],
413
+ Var[
414
+ Literal[
415
+ "alert",
416
+ "alertdialog",
417
+ "application",
418
+ "article",
419
+ "banner",
420
+ "button",
421
+ "cell",
422
+ "checkbox",
423
+ "columnheader",
424
+ "combobox",
425
+ "complementary",
426
+ "contentinfo",
427
+ "definition",
428
+ "dialog",
429
+ "directory",
430
+ "document",
431
+ "feed",
432
+ "figure",
433
+ "form",
434
+ "grid",
435
+ "gridcell",
436
+ "group",
437
+ "heading",
438
+ "img",
439
+ "link",
440
+ "list",
441
+ "listbox",
442
+ "listitem",
443
+ "log",
444
+ "main",
445
+ "marquee",
446
+ "math",
447
+ "menu",
448
+ "menubar",
449
+ "menuitem",
450
+ "menuitemcheckbox",
451
+ "menuitemradio",
452
+ "navigation",
453
+ "none",
454
+ "note",
455
+ "option",
456
+ "presentation",
457
+ "progressbar",
458
+ "radio",
459
+ "radiogroup",
460
+ "region",
461
+ "row",
462
+ "rowgroup",
463
+ "rowheader",
464
+ "scrollbar",
465
+ "search",
466
+ "searchbox",
467
+ "separator",
468
+ "slider",
469
+ "spinbutton",
470
+ "status",
471
+ "switch",
472
+ "tab",
473
+ "table",
474
+ "tablist",
475
+ "tabpanel",
476
+ "term",
477
+ "textbox",
478
+ "timer",
479
+ "toolbar",
480
+ "tooltip",
481
+ "tree",
482
+ "treegrid",
483
+ "treeitem",
484
+ ]
485
+ ],
486
+ ]
487
+ ] = None,
488
+ slot: Optional[Union[Var[str], str]] = None,
489
+ spell_check: Optional[Union[Var[bool], bool]] = None,
490
+ tab_index: Optional[Union[Var[int], int]] = None,
491
+ title: Optional[Union[Var[str], str]] = None,
130
492
  style: Optional[Style] = None,
131
493
  key: Optional[Any] = None,
132
494
  id: Optional[Any] = None,
@@ -189,43 +551,251 @@ class Script(BaseHTML):
189
551
  def create( # type: ignore
190
552
  cls,
191
553
  *children,
192
- async_: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
193
- char_set: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
554
+ async_: Optional[Union[Var[bool], bool]] = None,
555
+ char_set: Optional[Union[Var[str], str]] = None,
194
556
  cross_origin: Optional[
195
- Union[Var[Union[bool, int, str]], bool, int, str]
557
+ Union[
558
+ Literal["", "anonymous", "use-credentials"],
559
+ Var[Literal["", "anonymous", "use-credentials"]],
560
+ ]
196
561
  ] = None,
197
- defer: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
198
- integrity: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
199
- language: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
562
+ defer: Optional[Union[Var[bool], bool]] = None,
563
+ integrity: Optional[Union[Var[str], str]] = None,
200
564
  referrer_policy: Optional[
201
- Union[Var[Union[bool, int, str]], bool, int, str]
565
+ Union[
566
+ Literal[
567
+ "",
568
+ "no-referrer",
569
+ "no-referrer-when-downgrade",
570
+ "origin",
571
+ "origin-when-cross-origin",
572
+ "same-origin",
573
+ "strict-origin",
574
+ "strict-origin-when-cross-origin",
575
+ "unsafe-url",
576
+ ],
577
+ Var[
578
+ Literal[
579
+ "",
580
+ "no-referrer",
581
+ "no-referrer-when-downgrade",
582
+ "origin",
583
+ "origin-when-cross-origin",
584
+ "same-origin",
585
+ "strict-origin",
586
+ "strict-origin-when-cross-origin",
587
+ "unsafe-url",
588
+ ]
589
+ ],
590
+ ]
202
591
  ] = None,
203
- src: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
204
- type: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
205
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
592
+ src: Optional[Union[Var[str], str]] = None,
593
+ type: Optional[Union[Var[str], str]] = None,
594
+ access_key: Optional[Union[Var[str], str]] = None,
206
595
  auto_capitalize: Optional[
207
- Union[Var[Union[bool, int, str]], bool, int, str]
596
+ Union[
597
+ Literal["characters", "none", "off", "on", "sentences", "words"],
598
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
599
+ ]
208
600
  ] = None,
209
601
  content_editable: Optional[
210
- Union[Var[Union[bool, int, str]], bool, int, str]
211
- ] = None,
212
- context_menu: Optional[
213
- Union[Var[Union[bool, int, str]], bool, int, str]
602
+ Union[
603
+ Literal["inherit", "plaintext-only", False, True],
604
+ Var[Literal["inherit", "plaintext-only", False, True]],
605
+ ]
214
606
  ] = None,
215
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
216
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
607
+ context_menu: Optional[Union[Var[str], str]] = None,
608
+ dir: Optional[Union[Var[str], str]] = None,
609
+ draggable: Optional[Union[Var[bool], bool]] = None,
217
610
  enter_key_hint: Optional[
218
- Union[Var[Union[bool, int, str]], bool, int, str]
611
+ Union[
612
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
613
+ Var[
614
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
615
+ ],
616
+ ]
617
+ ] = None,
618
+ hidden: Optional[Union[Var[bool], bool]] = None,
619
+ input_mode: Optional[
620
+ Union[
621
+ Literal[
622
+ "decimal",
623
+ "email",
624
+ "none",
625
+ "numeric",
626
+ "search",
627
+ "tel",
628
+ "text",
629
+ "url",
630
+ ],
631
+ Var[
632
+ Literal[
633
+ "decimal",
634
+ "email",
635
+ "none",
636
+ "numeric",
637
+ "search",
638
+ "tel",
639
+ "text",
640
+ "url",
641
+ ]
642
+ ],
643
+ ]
644
+ ] = None,
645
+ item_prop: Optional[Union[Var[str], str]] = None,
646
+ lang: Optional[Union[Var[str], str]] = None,
647
+ role: Optional[
648
+ Union[
649
+ Literal[
650
+ "alert",
651
+ "alertdialog",
652
+ "application",
653
+ "article",
654
+ "banner",
655
+ "button",
656
+ "cell",
657
+ "checkbox",
658
+ "columnheader",
659
+ "combobox",
660
+ "complementary",
661
+ "contentinfo",
662
+ "definition",
663
+ "dialog",
664
+ "directory",
665
+ "document",
666
+ "feed",
667
+ "figure",
668
+ "form",
669
+ "grid",
670
+ "gridcell",
671
+ "group",
672
+ "heading",
673
+ "img",
674
+ "link",
675
+ "list",
676
+ "listbox",
677
+ "listitem",
678
+ "log",
679
+ "main",
680
+ "marquee",
681
+ "math",
682
+ "menu",
683
+ "menubar",
684
+ "menuitem",
685
+ "menuitemcheckbox",
686
+ "menuitemradio",
687
+ "navigation",
688
+ "none",
689
+ "note",
690
+ "option",
691
+ "presentation",
692
+ "progressbar",
693
+ "radio",
694
+ "radiogroup",
695
+ "region",
696
+ "row",
697
+ "rowgroup",
698
+ "rowheader",
699
+ "scrollbar",
700
+ "search",
701
+ "searchbox",
702
+ "separator",
703
+ "slider",
704
+ "spinbutton",
705
+ "status",
706
+ "switch",
707
+ "tab",
708
+ "table",
709
+ "tablist",
710
+ "tabpanel",
711
+ "term",
712
+ "textbox",
713
+ "timer",
714
+ "toolbar",
715
+ "tooltip",
716
+ "tree",
717
+ "treegrid",
718
+ "treeitem",
719
+ ],
720
+ Var[
721
+ Literal[
722
+ "alert",
723
+ "alertdialog",
724
+ "application",
725
+ "article",
726
+ "banner",
727
+ "button",
728
+ "cell",
729
+ "checkbox",
730
+ "columnheader",
731
+ "combobox",
732
+ "complementary",
733
+ "contentinfo",
734
+ "definition",
735
+ "dialog",
736
+ "directory",
737
+ "document",
738
+ "feed",
739
+ "figure",
740
+ "form",
741
+ "grid",
742
+ "gridcell",
743
+ "group",
744
+ "heading",
745
+ "img",
746
+ "link",
747
+ "list",
748
+ "listbox",
749
+ "listitem",
750
+ "log",
751
+ "main",
752
+ "marquee",
753
+ "math",
754
+ "menu",
755
+ "menubar",
756
+ "menuitem",
757
+ "menuitemcheckbox",
758
+ "menuitemradio",
759
+ "navigation",
760
+ "none",
761
+ "note",
762
+ "option",
763
+ "presentation",
764
+ "progressbar",
765
+ "radio",
766
+ "radiogroup",
767
+ "region",
768
+ "row",
769
+ "rowgroup",
770
+ "rowheader",
771
+ "scrollbar",
772
+ "search",
773
+ "searchbox",
774
+ "separator",
775
+ "slider",
776
+ "spinbutton",
777
+ "status",
778
+ "switch",
779
+ "tab",
780
+ "table",
781
+ "tablist",
782
+ "tabpanel",
783
+ "term",
784
+ "textbox",
785
+ "timer",
786
+ "toolbar",
787
+ "tooltip",
788
+ "tree",
789
+ "treegrid",
790
+ "treeitem",
791
+ ]
792
+ ],
793
+ ]
219
794
  ] = None,
220
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
221
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
222
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
223
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
224
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
225
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
226
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
227
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
228
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
795
+ slot: Optional[Union[Var[str], str]] = None,
796
+ spell_check: Optional[Union[Var[bool], bool]] = None,
797
+ tab_index: Optional[Union[Var[int], int]] = None,
798
+ title: Optional[Union[Var[str], str]] = None,
229
799
  style: Optional[Style] = None,
230
800
  key: Optional[Any] = None,
231
801
  id: Optional[Any] = None,
@@ -258,7 +828,6 @@ class Script(BaseHTML):
258
828
  cross_origin: Configures the CORS requests for the script
259
829
  defer: Indicates that the script should be executed after the page has finished parsing
260
830
  integrity: Security feature allowing browsers to verify what they fetch
261
- language: Specifies the scripting language used in the type attribute
262
831
  referrer_policy: Specifies which referrer information to send when fetching the script
263
832
  src: URL of an external script
264
833
  type: Specifies the MIME type of the script