reflex 0.7.0a5__py3-none-any.whl → 0.7.1a1__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 +250 -67
  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 +35 -5
  16. reflex/components/core/banner.pyi +398 -36
  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 +19 -1
  90. reflex/components/sonner/toast.pyi +10 -1
  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 +6 -4
  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.1a1.dist-info}/METADATA +4 -5
  123. {reflex-0.7.0a5.dist-info → reflex-0.7.1a1.dist-info}/RECORD +126 -122
  124. {reflex-0.7.0a5.dist-info → reflex-0.7.1a1.dist-info}/LICENSE +0 -0
  125. {reflex-0.7.0a5.dist-info → reflex-0.7.1a1.dist-info}/WHEEL +0 -0
  126. {reflex-0.7.0a5.dist-info → reflex-0.7.1a1.dist-info}/entry_points.txt +0 -0
@@ -29,7 +29,7 @@ from reflex.event import (
29
29
  from reflex.utils import format
30
30
  from reflex.utils.imports import ImportVar
31
31
  from reflex.vars import VarData
32
- from reflex.vars.base import CallableVar, Var, get_unique_variable_name
32
+ from reflex.vars.base import Var, get_unique_variable_name
33
33
  from reflex.vars.sequence import LiteralStringVar
34
34
 
35
35
  DEFAULT_UPLOAD_ID: str = "default"
@@ -45,7 +45,6 @@ upload_files_context_var_data: VarData = VarData(
45
45
  )
46
46
 
47
47
 
48
- @CallableVar
49
48
  def upload_file(id_: str = DEFAULT_UPLOAD_ID) -> Var:
50
49
  """Get the file upload drop trigger.
51
50
 
@@ -75,7 +74,6 @@ def upload_file(id_: str = DEFAULT_UPLOAD_ID) -> Var:
75
74
  )
76
75
 
77
76
 
78
- @CallableVar
79
77
  def selected_files(id_: str = DEFAULT_UPLOAD_ID) -> Var:
80
78
  """Get the list of selected files.
81
79
 
@@ -149,7 +147,7 @@ uploaded_files_url_prefix = Var(
149
147
  ).to(str)
150
148
 
151
149
 
152
- def get_upload_url(file_path: str) -> Var[str]:
150
+ def get_upload_url(file_path: str | Var[str]) -> Var[str]:
153
151
  """Get the URL of an uploaded file.
154
152
 
155
153
  Args:
@@ -160,7 +158,7 @@ def get_upload_url(file_path: str) -> Var[str]:
160
158
  """
161
159
  Upload.is_used = True
162
160
 
163
- return uploaded_files_url_prefix + "/" + file_path
161
+ return Var.create(f"{uploaded_files_url_prefix}/{file_path}")
164
162
 
165
163
 
166
164
  def _on_drop_spec(files: Var) -> Tuple[Var[Any]]:
@@ -13,14 +13,12 @@ from reflex.event import CallableEventSpec, EventSpec, EventType
13
13
  from reflex.style import Style
14
14
  from reflex.utils.imports import ImportVar
15
15
  from reflex.vars import VarData
16
- from reflex.vars.base import CallableVar, Var
16
+ from reflex.vars.base import Var
17
17
 
18
18
  DEFAULT_UPLOAD_ID: str
19
19
  upload_files_context_var_data: VarData
20
20
 
21
- @CallableVar
22
21
  def upload_file(id_: str = DEFAULT_UPLOAD_ID) -> Var: ...
23
- @CallableVar
24
22
  def selected_files(id_: str = DEFAULT_UPLOAD_ID) -> Var: ...
25
23
  @CallableEventSpec
26
24
  def clear_selected_files(id_: str = DEFAULT_UPLOAD_ID) -> EventSpec: ...
@@ -37,7 +35,7 @@ uploaded_files_url_prefix = Var(
37
35
  ),
38
36
  ).to(str)
39
37
 
40
- def get_upload_url(file_path: str) -> Var[str]: ...
38
+ def get_upload_url(file_path: str | Var[str]) -> Var[str]: ...
41
39
 
42
40
  class UploadFilesProvider(Component):
43
41
  @overload
@@ -3,6 +3,7 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  import dataclasses
6
+ import typing
6
7
  from typing import ClassVar, Dict, Literal, Optional, Union
7
8
 
8
9
  from reflex.components.component import Component, ComponentNamespace
@@ -503,7 +504,7 @@ class CodeBlock(Component, MarkdownComponentMap):
503
504
  return ["can_copy", "copy_button"]
504
505
 
505
506
  @classmethod
506
- def _get_language_registration_hook(cls, language_var: Var = _LANGUAGE) -> str:
507
+ def _get_language_registration_hook(cls, language_var: Var = _LANGUAGE) -> Var:
507
508
  """Get the hook to register the language.
508
509
 
509
510
  Args:
@@ -514,21 +515,46 @@ class CodeBlock(Component, MarkdownComponentMap):
514
515
  Returns:
515
516
  The hook to register the language.
516
517
  """
517
- return f"""
518
- if ({language_var!s}) {{
519
- (async () => {{
520
- try {{
518
+ language_in_there = Var.create(typing.get_args(LiteralCodeLanguage)).contains(
519
+ language_var
520
+ )
521
+ async_load = f"""
522
+ (async () => {{
523
+ try {{
521
524
  const module = await import(`react-syntax-highlighter/dist/cjs/languages/prism/${{{language_var!s}}}`);
522
525
  SyntaxHighlighter.registerLanguage({language_var!s}, module.default);
523
- }} catch (error) {{
524
- console.error(`Error importing language module for ${{{language_var!s}}}:`, error);
525
- }}
526
- }})();
526
+ }} catch (error) {{
527
+ console.error(`Language ${{{language_var!s}}} is not supported for code blocks inside of markdown: `, error);
528
+ }}
529
+ }})();
530
+ """
531
+ return Var(
532
+ f"""
533
+ if ({language_var!s}) {{
534
+ if (!{language_in_there!s}) {{
535
+ console.warn(`Language \\`${{{language_var!s}}}\\` is not supported for code blocks inside of markdown.`);
536
+ {language_var!s} = '';
537
+ }} else {{
538
+ {async_load!s}
539
+ }}
527
540
  }}
528
541
  """
542
+ if not isinstance(language_var, LiteralVar)
543
+ else f"""
544
+ if ({language_var!s}) {{
545
+ {async_load!s}
546
+ }}""",
547
+ _var_data=VarData(
548
+ imports={
549
+ cls.__fields__["library"].default: [
550
+ ImportVar(tag="PrismAsyncLight", alias="SyntaxHighlighter")
551
+ ]
552
+ },
553
+ ),
554
+ )
529
555
 
530
556
  @classmethod
531
- def get_component_map_custom_code(cls) -> str:
557
+ def get_component_map_custom_code(cls) -> Var:
532
558
  """Get the custom code for the component.
533
559
 
534
560
  Returns:
@@ -984,7 +984,7 @@ class CodeBlock(Component, MarkdownComponentMap):
984
984
 
985
985
  def add_style(self): ...
986
986
  @classmethod
987
- def get_component_map_custom_code(cls) -> str: ...
987
+ def get_component_map_custom_code(cls) -> Var: ...
988
988
  def add_hooks(self) -> list[str | Var]: ...
989
989
 
990
990
  class CodeblockNamespace(ComponentNamespace):
@@ -3,9 +3,7 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  from enum import Enum
6
- from typing import Any, Dict, List, Literal, Optional, Tuple, Union
7
-
8
- from typing_extensions import TypedDict
6
+ from typing import Any, Dict, List, Literal, Optional, Tuple, TypedDict, Union
9
7
 
10
8
  from reflex.base import Base
11
9
  from reflex.components.component import Component, NoSSRComponent
@@ -4,9 +4,7 @@
4
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
5
5
  # ------------------------------------------------------
6
6
  from enum import Enum
7
- from typing import Any, Dict, List, Literal, Optional, Union, overload
8
-
9
- from typing_extensions import TypedDict
7
+ from typing import Any, Dict, List, Literal, Optional, TypedDict, Union, overload
10
8
 
11
9
  from reflex.base import Base
12
10
  from reflex.components.component import NoSSRComponent
@@ -1,58 +1,136 @@
1
1
  """Base classes."""
2
2
 
3
- from typing import Union
3
+ from typing import Literal
4
4
 
5
5
  from reflex.components.el.element import Element
6
6
  from reflex.vars.base import Var
7
7
 
8
+ AutoCapitalize = Literal["off", "none", "on", "sentences", "words", "characters"]
9
+ ContentEditable = Literal[True, False, "inherit", "plaintext-only"]
10
+ EnterKeyHint = Literal["enter", "done", "go", "next", "previous", "search", "send"]
11
+ InputMode = Literal[
12
+ "none", "text", "tel", "url", "email", "numeric", "decimal", "search", "search"
13
+ ]
14
+ AriaRole = Literal[
15
+ "alert",
16
+ "alertdialog",
17
+ "application",
18
+ "article",
19
+ "banner",
20
+ "button",
21
+ "cell",
22
+ "checkbox",
23
+ "columnheader",
24
+ "combobox",
25
+ "complementary",
26
+ "contentinfo",
27
+ "definition",
28
+ "dialog",
29
+ "directory",
30
+ "document",
31
+ "feed",
32
+ "figure",
33
+ "form",
34
+ "grid",
35
+ "gridcell",
36
+ "group",
37
+ "heading",
38
+ "img",
39
+ "link",
40
+ "list",
41
+ "listbox",
42
+ "listitem",
43
+ "log",
44
+ "main",
45
+ "marquee",
46
+ "math",
47
+ "menu",
48
+ "menubar",
49
+ "menuitem",
50
+ "menuitemcheckbox",
51
+ "menuitemradio",
52
+ "navigation",
53
+ "none",
54
+ "note",
55
+ "option",
56
+ "presentation",
57
+ "progressbar",
58
+ "radio",
59
+ "radiogroup",
60
+ "region",
61
+ "row",
62
+ "rowgroup",
63
+ "rowheader",
64
+ "scrollbar",
65
+ "search",
66
+ "searchbox",
67
+ "separator",
68
+ "slider",
69
+ "spinbutton",
70
+ "status",
71
+ "switch",
72
+ "tab",
73
+ "table",
74
+ "tablist",
75
+ "tabpanel",
76
+ "term",
77
+ "textbox",
78
+ "timer",
79
+ "toolbar",
80
+ "tooltip",
81
+ "tree",
82
+ "treegrid",
83
+ "treeitem",
84
+ ]
85
+
8
86
 
9
87
  class BaseHTML(Element):
10
88
  """Base class for common attributes."""
11
89
 
12
90
  # Provides a hint for generating a keyboard shortcut for the current element.
13
- access_key: Var[Union[str, int, bool]]
91
+ access_key: Var[str]
14
92
 
15
93
  # Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
16
- auto_capitalize: Var[Union[str, int, bool]]
94
+ auto_capitalize: Var[AutoCapitalize]
17
95
 
18
96
  # Indicates whether the element's content is editable.
19
- content_editable: Var[Union[str, int, bool]]
97
+ content_editable: Var[ContentEditable]
20
98
 
21
99
  # Defines the ID of a <menu> element which will serve as the element's context menu.
22
- context_menu: Var[Union[str, int, bool]]
100
+ context_menu: Var[str]
23
101
 
24
102
  # Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
25
- dir: Var[Union[str, int, bool]]
103
+ dir: Var[str]
26
104
 
27
105
  # Defines whether the element can be dragged.
28
- draggable: Var[Union[str, int, bool]]
106
+ draggable: Var[bool]
29
107
 
30
108
  # Hints what media types the media element is able to play.
31
- enter_key_hint: Var[Union[str, int, bool]]
109
+ enter_key_hint: Var[EnterKeyHint]
32
110
 
33
111
  # Defines whether the element is hidden.
34
- hidden: Var[Union[str, int, bool]]
112
+ hidden: Var[bool]
35
113
 
36
114
  # Defines the type of the element.
37
- input_mode: Var[Union[str, int, bool]]
115
+ input_mode: Var[InputMode]
38
116
 
39
117
  # Defines the name of the element for metadata purposes.
40
- item_prop: Var[Union[str, int, bool]]
118
+ item_prop: Var[str]
41
119
 
42
120
  # Defines the language used in the element.
43
- lang: Var[Union[str, int, bool]]
121
+ lang: Var[str]
44
122
 
45
123
  # Defines the role of the element.
46
- role: Var[Union[str, int, bool]]
124
+ role: Var[AriaRole]
47
125
 
48
126
  # Assigns a slot in a shadow DOM shadow tree to an element.
49
- slot: Var[Union[str, int, bool]]
127
+ slot: Var[str]
50
128
 
51
129
  # Defines whether the element may be checked for spelling errors.
52
- spell_check: Var[Union[str, int, bool]]
130
+ spell_check: Var[bool]
53
131
 
54
132
  # Defines the position of the current element in the tabbing order.
55
- tab_index: Var[Union[str, int, bool]]
133
+ tab_index: Var[int]
56
134
 
57
135
  # Defines a tooltip for the element.
58
- title: Var[Union[str, int, bool]]
136
+ title: Var[str]
@@ -3,43 +3,302 @@
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.components.el.element import Element
9
9
  from reflex.event import EventType
10
10
  from reflex.style import Style
11
11
  from reflex.vars.base import Var
12
12
 
13
+ AutoCapitalize = Literal["off", "none", "on", "sentences", "words", "characters"]
14
+ ContentEditable = Literal[True, False, "inherit", "plaintext-only"]
15
+ EnterKeyHint = Literal["enter", "done", "go", "next", "previous", "search", "send"]
16
+ InputMode = Literal[
17
+ "none", "text", "tel", "url", "email", "numeric", "decimal", "search", "search"
18
+ ]
19
+ AriaRole = Literal[
20
+ "alert",
21
+ "alertdialog",
22
+ "application",
23
+ "article",
24
+ "banner",
25
+ "button",
26
+ "cell",
27
+ "checkbox",
28
+ "columnheader",
29
+ "combobox",
30
+ "complementary",
31
+ "contentinfo",
32
+ "definition",
33
+ "dialog",
34
+ "directory",
35
+ "document",
36
+ "feed",
37
+ "figure",
38
+ "form",
39
+ "grid",
40
+ "gridcell",
41
+ "group",
42
+ "heading",
43
+ "img",
44
+ "link",
45
+ "list",
46
+ "listbox",
47
+ "listitem",
48
+ "log",
49
+ "main",
50
+ "marquee",
51
+ "math",
52
+ "menu",
53
+ "menubar",
54
+ "menuitem",
55
+ "menuitemcheckbox",
56
+ "menuitemradio",
57
+ "navigation",
58
+ "none",
59
+ "note",
60
+ "option",
61
+ "presentation",
62
+ "progressbar",
63
+ "radio",
64
+ "radiogroup",
65
+ "region",
66
+ "row",
67
+ "rowgroup",
68
+ "rowheader",
69
+ "scrollbar",
70
+ "search",
71
+ "searchbox",
72
+ "separator",
73
+ "slider",
74
+ "spinbutton",
75
+ "status",
76
+ "switch",
77
+ "tab",
78
+ "table",
79
+ "tablist",
80
+ "tabpanel",
81
+ "term",
82
+ "textbox",
83
+ "timer",
84
+ "toolbar",
85
+ "tooltip",
86
+ "tree",
87
+ "treegrid",
88
+ "treeitem",
89
+ ]
90
+
13
91
  class BaseHTML(Element):
14
92
  @overload
15
93
  @classmethod
16
94
  def create( # type: ignore
17
95
  cls,
18
96
  *children,
19
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
97
+ access_key: Optional[Union[Var[str], str]] = None,
20
98
  auto_capitalize: Optional[
21
- Union[Var[Union[bool, int, str]], bool, int, str]
99
+ Union[
100
+ Literal["characters", "none", "off", "on", "sentences", "words"],
101
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
102
+ ]
22
103
  ] = None,
23
104
  content_editable: Optional[
24
- Union[Var[Union[bool, int, str]], bool, int, str]
25
- ] = None,
26
- context_menu: Optional[
27
- Union[Var[Union[bool, int, str]], bool, int, str]
105
+ Union[
106
+ Literal["inherit", "plaintext-only", False, True],
107
+ Var[Literal["inherit", "plaintext-only", False, True]],
108
+ ]
28
109
  ] = None,
29
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
30
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
110
+ context_menu: Optional[Union[Var[str], str]] = None,
111
+ dir: Optional[Union[Var[str], str]] = None,
112
+ draggable: Optional[Union[Var[bool], bool]] = None,
31
113
  enter_key_hint: Optional[
32
- Union[Var[Union[bool, int, str]], bool, int, str]
114
+ Union[
115
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
116
+ Var[
117
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
118
+ ],
119
+ ]
120
+ ] = None,
121
+ hidden: Optional[Union[Var[bool], bool]] = None,
122
+ input_mode: Optional[
123
+ Union[
124
+ Literal[
125
+ "decimal",
126
+ "email",
127
+ "none",
128
+ "numeric",
129
+ "search",
130
+ "tel",
131
+ "text",
132
+ "url",
133
+ ],
134
+ Var[
135
+ Literal[
136
+ "decimal",
137
+ "email",
138
+ "none",
139
+ "numeric",
140
+ "search",
141
+ "tel",
142
+ "text",
143
+ "url",
144
+ ]
145
+ ],
146
+ ]
147
+ ] = None,
148
+ item_prop: Optional[Union[Var[str], str]] = None,
149
+ lang: Optional[Union[Var[str], str]] = None,
150
+ role: Optional[
151
+ Union[
152
+ Literal[
153
+ "alert",
154
+ "alertdialog",
155
+ "application",
156
+ "article",
157
+ "banner",
158
+ "button",
159
+ "cell",
160
+ "checkbox",
161
+ "columnheader",
162
+ "combobox",
163
+ "complementary",
164
+ "contentinfo",
165
+ "definition",
166
+ "dialog",
167
+ "directory",
168
+ "document",
169
+ "feed",
170
+ "figure",
171
+ "form",
172
+ "grid",
173
+ "gridcell",
174
+ "group",
175
+ "heading",
176
+ "img",
177
+ "link",
178
+ "list",
179
+ "listbox",
180
+ "listitem",
181
+ "log",
182
+ "main",
183
+ "marquee",
184
+ "math",
185
+ "menu",
186
+ "menubar",
187
+ "menuitem",
188
+ "menuitemcheckbox",
189
+ "menuitemradio",
190
+ "navigation",
191
+ "none",
192
+ "note",
193
+ "option",
194
+ "presentation",
195
+ "progressbar",
196
+ "radio",
197
+ "radiogroup",
198
+ "region",
199
+ "row",
200
+ "rowgroup",
201
+ "rowheader",
202
+ "scrollbar",
203
+ "search",
204
+ "searchbox",
205
+ "separator",
206
+ "slider",
207
+ "spinbutton",
208
+ "status",
209
+ "switch",
210
+ "tab",
211
+ "table",
212
+ "tablist",
213
+ "tabpanel",
214
+ "term",
215
+ "textbox",
216
+ "timer",
217
+ "toolbar",
218
+ "tooltip",
219
+ "tree",
220
+ "treegrid",
221
+ "treeitem",
222
+ ],
223
+ Var[
224
+ Literal[
225
+ "alert",
226
+ "alertdialog",
227
+ "application",
228
+ "article",
229
+ "banner",
230
+ "button",
231
+ "cell",
232
+ "checkbox",
233
+ "columnheader",
234
+ "combobox",
235
+ "complementary",
236
+ "contentinfo",
237
+ "definition",
238
+ "dialog",
239
+ "directory",
240
+ "document",
241
+ "feed",
242
+ "figure",
243
+ "form",
244
+ "grid",
245
+ "gridcell",
246
+ "group",
247
+ "heading",
248
+ "img",
249
+ "link",
250
+ "list",
251
+ "listbox",
252
+ "listitem",
253
+ "log",
254
+ "main",
255
+ "marquee",
256
+ "math",
257
+ "menu",
258
+ "menubar",
259
+ "menuitem",
260
+ "menuitemcheckbox",
261
+ "menuitemradio",
262
+ "navigation",
263
+ "none",
264
+ "note",
265
+ "option",
266
+ "presentation",
267
+ "progressbar",
268
+ "radio",
269
+ "radiogroup",
270
+ "region",
271
+ "row",
272
+ "rowgroup",
273
+ "rowheader",
274
+ "scrollbar",
275
+ "search",
276
+ "searchbox",
277
+ "separator",
278
+ "slider",
279
+ "spinbutton",
280
+ "status",
281
+ "switch",
282
+ "tab",
283
+ "table",
284
+ "tablist",
285
+ "tabpanel",
286
+ "term",
287
+ "textbox",
288
+ "timer",
289
+ "toolbar",
290
+ "tooltip",
291
+ "tree",
292
+ "treegrid",
293
+ "treeitem",
294
+ ]
295
+ ],
296
+ ]
33
297
  ] = None,
34
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
35
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
36
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
37
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
38
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
39
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
40
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
41
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
42
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
298
+ slot: Optional[Union[Var[str], str]] = None,
299
+ spell_check: Optional[Union[Var[bool], bool]] = None,
300
+ tab_index: Optional[Union[Var[int], int]] = None,
301
+ title: Optional[Union[Var[str], str]] = None,
43
302
  style: Optional[Style] = None,
44
303
  key: Optional[Any] = None,
45
304
  id: Optional[Any] = None,