reflex 0.7.1a4__py3-none-any.whl → 0.7.2a1__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 (226) hide show
  1. reflex/.templates/jinja/web/utils/context.js.jinja2 +8 -8
  2. reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +3 -3
  3. reflex/admin.py +1 -2
  4. reflex/app.py +46 -49
  5. reflex/app_mixins/lifespan.py +2 -2
  6. reflex/app_mixins/middleware.py +1 -2
  7. reflex/assets.py +1 -2
  8. reflex/base.py +2 -2
  9. reflex/compiler/compiler.py +51 -16
  10. reflex/compiler/utils.py +4 -13
  11. reflex/components/base/app_wrap.pyi +7 -7
  12. reflex/components/base/bare.py +3 -3
  13. reflex/components/base/body.pyi +7 -7
  14. reflex/components/base/document.py +1 -3
  15. reflex/components/base/document.pyi +32 -32
  16. reflex/components/base/error_boundary.py +2 -4
  17. reflex/components/base/error_boundary.pyi +11 -13
  18. reflex/components/base/fragment.pyi +7 -7
  19. reflex/components/base/head.pyi +13 -13
  20. reflex/components/base/link.pyi +22 -22
  21. reflex/components/base/meta.py +5 -7
  22. reflex/components/base/meta.pyi +40 -40
  23. reflex/components/base/script.pyi +11 -14
  24. reflex/components/base/strict_mode.pyi +7 -7
  25. reflex/components/component.py +188 -113
  26. reflex/components/core/auto_scroll.py +8 -1
  27. reflex/components/core/auto_scroll.pyi +183 -210
  28. reflex/components/core/banner.py +2 -4
  29. reflex/components/core/banner.pyi +390 -444
  30. reflex/components/core/breakpoints.py +5 -5
  31. reflex/components/core/client_side_routing.pyi +14 -14
  32. reflex/components/core/clipboard.py +4 -4
  33. reflex/components/core/clipboard.pyi +12 -14
  34. reflex/components/core/cond.py +17 -25
  35. reflex/components/core/debounce.py +3 -3
  36. reflex/components/core/debounce.pyi +14 -14
  37. reflex/components/core/foreach.py +7 -2
  38. reflex/components/core/html.py +1 -3
  39. reflex/components/core/html.pyi +184 -213
  40. reflex/components/core/match.py +15 -19
  41. reflex/components/core/sticky.pyi +930 -1078
  42. reflex/components/core/upload.py +4 -4
  43. reflex/components/core/upload.pyi +62 -62
  44. reflex/components/datadisplay/code.py +6 -6
  45. reflex/components/datadisplay/code.pyi +1159 -1165
  46. reflex/components/datadisplay/dataeditor.py +49 -49
  47. reflex/components/datadisplay/dataeditor.pyi +95 -123
  48. reflex/components/datadisplay/logo.py +1 -3
  49. reflex/components/datadisplay/shiki_code_block.py +8 -10
  50. reflex/components/datadisplay/shiki_code_block.pyi +1678 -1720
  51. reflex/components/el/element.pyi +7 -7
  52. reflex/components/el/elements/base.pyi +183 -210
  53. reflex/components/el/elements/forms.py +23 -23
  54. reflex/components/el/elements/forms.pyi +2571 -2933
  55. reflex/components/el/elements/inline.py +4 -4
  56. reflex/components/el/elements/inline.pyi +5191 -5953
  57. reflex/components/el/elements/media.py +47 -47
  58. reflex/components/el/elements/media.pyi +4802 -5500
  59. reflex/components/el/elements/metadata.py +1 -3
  60. reflex/components/el/elements/metadata.pyi +782 -896
  61. reflex/components/el/elements/other.pyi +1278 -1467
  62. reflex/components/el/elements/scripts.pyi +580 -667
  63. reflex/components/el/elements/sectioning.pyi +2761 -3166
  64. reflex/components/el/elements/tables.pyi +1840 -2119
  65. reflex/components/el/elements/typography.pyi +2772 -3179
  66. reflex/components/gridjs/datatable.py +7 -7
  67. reflex/components/gridjs/datatable.pyi +19 -19
  68. reflex/components/lucide/icon.pyi +21 -21
  69. reflex/components/markdown/markdown.py +2 -2
  70. reflex/components/markdown/markdown.pyi +9 -9
  71. reflex/components/moment/moment.py +11 -12
  72. reflex/components/moment/moment.pyi +44 -47
  73. reflex/components/next/base.pyi +7 -7
  74. reflex/components/next/image.py +3 -3
  75. reflex/components/next/image.pyi +19 -21
  76. reflex/components/next/link.pyi +9 -9
  77. reflex/components/next/video.py +1 -3
  78. reflex/components/next/video.pyi +9 -9
  79. reflex/components/plotly/plotly.py +22 -45
  80. reflex/components/plotly/plotly.pyi +164 -164
  81. reflex/components/radix/primitives/accordion.py +14 -14
  82. reflex/components/radix/primitives/accordion.pyi +439 -487
  83. reflex/components/radix/primitives/base.py +1 -3
  84. reflex/components/radix/primitives/base.pyi +15 -15
  85. reflex/components/radix/primitives/drawer.py +3 -3
  86. reflex/components/radix/primitives/drawer.pyi +110 -116
  87. reflex/components/radix/primitives/form.py +1 -1
  88. reflex/components/radix/primitives/form.pyi +668 -752
  89. reflex/components/radix/primitives/progress.py +6 -6
  90. reflex/components/radix/primitives/progress.pyi +225 -243
  91. reflex/components/radix/primitives/slider.py +6 -6
  92. reflex/components/radix/primitives/slider.pyi +52 -55
  93. reflex/components/radix/themes/base.py +3 -6
  94. reflex/components/radix/themes/base.pyi +197 -303
  95. reflex/components/radix/themes/color_mode.py +5 -5
  96. reflex/components/radix/themes/color_mode.pyi +366 -436
  97. reflex/components/radix/themes/components/alert_dialog.pyi +229 -262
  98. reflex/components/radix/themes/components/aspect_ratio.py +1 -3
  99. reflex/components/radix/themes/components/aspect_ratio.pyi +8 -8
  100. reflex/components/radix/themes/components/avatar.pyi +79 -94
  101. reflex/components/radix/themes/components/badge.pyi +252 -295
  102. reflex/components/radix/themes/components/button.pyi +269 -314
  103. reflex/components/radix/themes/components/callout.py +2 -2
  104. reflex/components/radix/themes/components/callout.pyi +1116 -1290
  105. reflex/components/radix/themes/components/card.pyi +194 -229
  106. reflex/components/radix/themes/components/checkbox.pyi +243 -278
  107. reflex/components/radix/themes/components/checkbox_cards.py +3 -7
  108. reflex/components/radix/themes/components/checkbox_cards.pyi +101 -135
  109. reflex/components/radix/themes/components/checkbox_group.py +2 -2
  110. reflex/components/radix/themes/components/checkbox_group.pyi +83 -96
  111. reflex/components/radix/themes/components/context_menu.py +18 -15
  112. reflex/components/radix/themes/components/context_menu.pyi +408 -458
  113. reflex/components/radix/themes/components/data_list.pyi +122 -147
  114. reflex/components/radix/themes/components/dialog.pyi +231 -264
  115. reflex/components/radix/themes/components/dropdown_menu.py +16 -13
  116. reflex/components/radix/themes/components/dropdown_menu.pyi +223 -246
  117. reflex/components/radix/themes/components/hover_card.py +2 -2
  118. reflex/components/radix/themes/components/hover_card.pyi +237 -282
  119. reflex/components/radix/themes/components/icon_button.pyi +269 -314
  120. reflex/components/radix/themes/components/inset.py +8 -8
  121. reflex/components/radix/themes/components/inset.pyi +232 -292
  122. reflex/components/radix/themes/components/popover.py +2 -2
  123. reflex/components/radix/themes/components/popover.pyi +229 -271
  124. reflex/components/radix/themes/components/progress.pyi +80 -96
  125. reflex/components/radix/themes/components/radio.pyi +73 -86
  126. reflex/components/radix/themes/components/radio_cards.py +4 -8
  127. reflex/components/radix/themes/components/radio_cards.pyi +117 -154
  128. reflex/components/radix/themes/components/radio_group.py +3 -3
  129. reflex/components/radix/themes/components/radio_group.pyi +250 -291
  130. reflex/components/radix/themes/components/scroll_area.pyi +14 -20
  131. reflex/components/radix/themes/components/segmented_control.py +6 -6
  132. reflex/components/radix/themes/components/segmented_control.pyi +89 -108
  133. reflex/components/radix/themes/components/select.py +7 -7
  134. reflex/components/radix/themes/components/select.pyi +376 -444
  135. reflex/components/radix/themes/components/separator.pyi +79 -93
  136. reflex/components/radix/themes/components/skeleton.pyi +32 -26
  137. reflex/components/radix/themes/components/slider.py +8 -8
  138. reflex/components/radix/themes/components/slider.pyi +99 -122
  139. reflex/components/radix/themes/components/spinner.pyi +12 -19
  140. reflex/components/radix/themes/components/switch.pyi +84 -99
  141. reflex/components/radix/themes/components/table.py +9 -9
  142. reflex/components/radix/themes/components/table.pyi +1440 -1794
  143. reflex/components/radix/themes/components/tabs.py +4 -4
  144. reflex/components/radix/themes/components/tabs.pyi +120 -132
  145. reflex/components/radix/themes/components/text_area.pyi +281 -331
  146. reflex/components/radix/themes/components/text_field.py +2 -2
  147. reflex/components/radix/themes/components/text_field.pyi +639 -734
  148. reflex/components/radix/themes/components/tooltip.py +6 -6
  149. reflex/components/radix/themes/components/tooltip.pyi +34 -43
  150. reflex/components/radix/themes/layout/base.pyi +85 -182
  151. reflex/components/radix/themes/layout/box.pyi +183 -210
  152. reflex/components/radix/themes/layout/center.pyi +225 -286
  153. reflex/components/radix/themes/layout/container.pyi +191 -224
  154. reflex/components/radix/themes/layout/flex.py +2 -2
  155. reflex/components/radix/themes/layout/flex.pyi +225 -286
  156. reflex/components/radix/themes/layout/grid.py +2 -2
  157. reflex/components/radix/themes/layout/grid.pyi +245 -315
  158. reflex/components/radix/themes/layout/list.py +2 -2
  159. reflex/components/radix/themes/layout/list.pyi +712 -815
  160. reflex/components/radix/themes/layout/section.pyi +187 -221
  161. reflex/components/radix/themes/layout/spacer.pyi +225 -286
  162. reflex/components/radix/themes/layout/stack.pyi +625 -768
  163. reflex/components/radix/themes/typography/blockquote.pyi +257 -299
  164. reflex/components/radix/themes/typography/code.pyi +259 -304
  165. reflex/components/radix/themes/typography/heading.pyi +272 -324
  166. reflex/components/radix/themes/typography/link.pyi +302 -358
  167. reflex/components/radix/themes/typography/text.pyi +1669 -1945
  168. reflex/components/react_player/audio.pyi +20 -22
  169. reflex/components/react_player/react_player.pyi +19 -19
  170. reflex/components/react_player/video.pyi +20 -22
  171. reflex/components/recharts/cartesian.py +100 -97
  172. reflex/components/recharts/cartesian.pyi +891 -1007
  173. reflex/components/recharts/charts.py +42 -42
  174. reflex/components/recharts/charts.pyi +212 -249
  175. reflex/components/recharts/general.py +22 -21
  176. reflex/components/recharts/general.pyi +198 -223
  177. reflex/components/recharts/polar.py +42 -45
  178. reflex/components/recharts/polar.pyi +254 -288
  179. reflex/components/recharts/recharts.pyi +13 -13
  180. reflex/components/sonner/toast.py +20 -20
  181. reflex/components/sonner/toast.pyi +58 -61
  182. reflex/components/suneditor/editor.py +9 -9
  183. reflex/components/suneditor/editor.pyi +78 -83
  184. reflex/components/tags/cond_tag.py +2 -2
  185. reflex/components/tags/iter_tag.py +10 -14
  186. reflex/components/tags/match_tag.py +2 -2
  187. reflex/components/tags/tag.py +10 -10
  188. reflex/config.py +36 -35
  189. reflex/constants/__init__.py +56 -53
  190. reflex/custom_components/custom_components.py +6 -7
  191. reflex/event.py +38 -42
  192. reflex/experimental/client_state.py +2 -4
  193. reflex/experimental/layout.py +2 -2
  194. reflex/experimental/layout.pyi +579 -663
  195. reflex/istate/data.py +4 -5
  196. reflex/middleware/hydrate_middleware.py +2 -2
  197. reflex/middleware/middleware.py +2 -2
  198. reflex/model.py +3 -5
  199. reflex/page.py +2 -2
  200. reflex/reflex.py +9 -10
  201. reflex/state.py +77 -49
  202. reflex/style.py +9 -3
  203. reflex/testing.py +21 -24
  204. reflex/utils/console.py +1 -1
  205. reflex/utils/decorator.py +26 -1
  206. reflex/utils/exec.py +6 -11
  207. reflex/utils/export.py +2 -3
  208. reflex/utils/format.py +4 -4
  209. reflex/utils/imports.py +12 -12
  210. reflex/utils/prerequisites.py +35 -84
  211. reflex/utils/processes.py +5 -5
  212. reflex/utils/pyi_generator.py +33 -22
  213. reflex/utils/serializers.py +60 -15
  214. reflex/utils/types.py +237 -56
  215. reflex/vars/base.py +122 -72
  216. reflex/vars/datetime.py +2 -2
  217. reflex/vars/function.py +52 -55
  218. reflex/vars/number.py +59 -5
  219. reflex/vars/object.py +57 -26
  220. reflex/vars/sequence.py +983 -958
  221. {reflex-0.7.1a4.dist-info → reflex-0.7.2a1.dist-info}/METADATA +3 -6
  222. reflex-0.7.2a1.dist-info/RECORD +405 -0
  223. {reflex-0.7.1a4.dist-info → reflex-0.7.2a1.dist-info}/WHEEL +1 -1
  224. reflex-0.7.1a4.dist-info/RECORD +0 -405
  225. {reflex-0.7.1a4.dist-info → reflex-0.7.2a1.dist-info}/LICENSE +0 -0
  226. {reflex-0.7.1a4.dist-info → reflex-0.7.2a1.dist-info}/entry_points.txt +0 -0
@@ -3,7 +3,7 @@
3
3
  # ------------------- DO NOT EDIT ----------------------
4
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
5
5
  # ------------------------------------------------------
6
- from typing import Any, Dict, Literal, Optional, Union, overload
6
+ from typing import Any, Literal, Optional, overload
7
7
 
8
8
  from reflex.components.component import ComponentNamespace
9
9
  from reflex.components.core.breakpoints import Breakpoints
@@ -20,220 +20,193 @@ class StickyLogo(Svg):
20
20
  def create( # type: ignore
21
21
  cls,
22
22
  *children,
23
- width: Optional[Union[Var[Union[int, str]], int, str]] = None,
24
- height: Optional[Union[Var[Union[int, str]], int, str]] = None,
25
- xmlns: Optional[Union[Var[str], str]] = None,
26
- access_key: Optional[Union[Var[str], str]] = None,
27
- auto_capitalize: Optional[
28
- Union[
29
- Literal["characters", "none", "off", "on", "sentences", "words"],
30
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
23
+ width: Var[int | str] | int | str | None = None,
24
+ height: Var[int | str] | int | str | None = None,
25
+ xmlns: Var[str] | str | None = None,
26
+ access_key: Var[str] | str | None = None,
27
+ auto_capitalize: Literal[
28
+ "characters", "none", "off", "on", "sentences", "words"
29
+ ]
30
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
31
+ | None = None,
32
+ content_editable: Literal["inherit", "plaintext-only", False, True]
33
+ | Var[Literal["inherit", "plaintext-only", False, True]]
34
+ | None = None,
35
+ context_menu: Var[str] | str | None = None,
36
+ dir: Var[str] | str | None = None,
37
+ draggable: Var[bool] | bool | None = None,
38
+ enter_key_hint: Literal[
39
+ "done", "enter", "go", "next", "previous", "search", "send"
40
+ ]
41
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
42
+ | None = None,
43
+ hidden: Var[bool] | bool | None = None,
44
+ input_mode: Literal[
45
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
46
+ ]
47
+ | Var[
48
+ Literal[
49
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
31
50
  ]
32
- ] = None,
33
- content_editable: Optional[
34
- Union[
35
- Literal["inherit", "plaintext-only", False, True],
36
- Var[Literal["inherit", "plaintext-only", False, True]],
51
+ ]
52
+ | None = None,
53
+ item_prop: Var[str] | str | None = None,
54
+ lang: Var[str] | str | None = None,
55
+ role: Literal[
56
+ "alert",
57
+ "alertdialog",
58
+ "application",
59
+ "article",
60
+ "banner",
61
+ "button",
62
+ "cell",
63
+ "checkbox",
64
+ "columnheader",
65
+ "combobox",
66
+ "complementary",
67
+ "contentinfo",
68
+ "definition",
69
+ "dialog",
70
+ "directory",
71
+ "document",
72
+ "feed",
73
+ "figure",
74
+ "form",
75
+ "grid",
76
+ "gridcell",
77
+ "group",
78
+ "heading",
79
+ "img",
80
+ "link",
81
+ "list",
82
+ "listbox",
83
+ "listitem",
84
+ "log",
85
+ "main",
86
+ "marquee",
87
+ "math",
88
+ "menu",
89
+ "menubar",
90
+ "menuitem",
91
+ "menuitemcheckbox",
92
+ "menuitemradio",
93
+ "navigation",
94
+ "none",
95
+ "note",
96
+ "option",
97
+ "presentation",
98
+ "progressbar",
99
+ "radio",
100
+ "radiogroup",
101
+ "region",
102
+ "row",
103
+ "rowgroup",
104
+ "rowheader",
105
+ "scrollbar",
106
+ "search",
107
+ "searchbox",
108
+ "separator",
109
+ "slider",
110
+ "spinbutton",
111
+ "status",
112
+ "switch",
113
+ "tab",
114
+ "table",
115
+ "tablist",
116
+ "tabpanel",
117
+ "term",
118
+ "textbox",
119
+ "timer",
120
+ "toolbar",
121
+ "tooltip",
122
+ "tree",
123
+ "treegrid",
124
+ "treeitem",
125
+ ]
126
+ | Var[
127
+ Literal[
128
+ "alert",
129
+ "alertdialog",
130
+ "application",
131
+ "article",
132
+ "banner",
133
+ "button",
134
+ "cell",
135
+ "checkbox",
136
+ "columnheader",
137
+ "combobox",
138
+ "complementary",
139
+ "contentinfo",
140
+ "definition",
141
+ "dialog",
142
+ "directory",
143
+ "document",
144
+ "feed",
145
+ "figure",
146
+ "form",
147
+ "grid",
148
+ "gridcell",
149
+ "group",
150
+ "heading",
151
+ "img",
152
+ "link",
153
+ "list",
154
+ "listbox",
155
+ "listitem",
156
+ "log",
157
+ "main",
158
+ "marquee",
159
+ "math",
160
+ "menu",
161
+ "menubar",
162
+ "menuitem",
163
+ "menuitemcheckbox",
164
+ "menuitemradio",
165
+ "navigation",
166
+ "none",
167
+ "note",
168
+ "option",
169
+ "presentation",
170
+ "progressbar",
171
+ "radio",
172
+ "radiogroup",
173
+ "region",
174
+ "row",
175
+ "rowgroup",
176
+ "rowheader",
177
+ "scrollbar",
178
+ "search",
179
+ "searchbox",
180
+ "separator",
181
+ "slider",
182
+ "spinbutton",
183
+ "status",
184
+ "switch",
185
+ "tab",
186
+ "table",
187
+ "tablist",
188
+ "tabpanel",
189
+ "term",
190
+ "textbox",
191
+ "timer",
192
+ "toolbar",
193
+ "tooltip",
194
+ "tree",
195
+ "treegrid",
196
+ "treeitem",
37
197
  ]
38
- ] = None,
39
- context_menu: Optional[Union[Var[str], str]] = None,
40
- dir: Optional[Union[Var[str], str]] = None,
41
- draggable: Optional[Union[Var[bool], bool]] = None,
42
- enter_key_hint: Optional[
43
- Union[
44
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
45
- Var[
46
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
47
- ],
48
- ]
49
- ] = None,
50
- hidden: Optional[Union[Var[bool], bool]] = None,
51
- input_mode: Optional[
52
- Union[
53
- Literal[
54
- "decimal",
55
- "email",
56
- "none",
57
- "numeric",
58
- "search",
59
- "tel",
60
- "text",
61
- "url",
62
- ],
63
- Var[
64
- Literal[
65
- "decimal",
66
- "email",
67
- "none",
68
- "numeric",
69
- "search",
70
- "tel",
71
- "text",
72
- "url",
73
- ]
74
- ],
75
- ]
76
- ] = None,
77
- item_prop: Optional[Union[Var[str], str]] = None,
78
- lang: Optional[Union[Var[str], str]] = None,
79
- role: Optional[
80
- Union[
81
- Literal[
82
- "alert",
83
- "alertdialog",
84
- "application",
85
- "article",
86
- "banner",
87
- "button",
88
- "cell",
89
- "checkbox",
90
- "columnheader",
91
- "combobox",
92
- "complementary",
93
- "contentinfo",
94
- "definition",
95
- "dialog",
96
- "directory",
97
- "document",
98
- "feed",
99
- "figure",
100
- "form",
101
- "grid",
102
- "gridcell",
103
- "group",
104
- "heading",
105
- "img",
106
- "link",
107
- "list",
108
- "listbox",
109
- "listitem",
110
- "log",
111
- "main",
112
- "marquee",
113
- "math",
114
- "menu",
115
- "menubar",
116
- "menuitem",
117
- "menuitemcheckbox",
118
- "menuitemradio",
119
- "navigation",
120
- "none",
121
- "note",
122
- "option",
123
- "presentation",
124
- "progressbar",
125
- "radio",
126
- "radiogroup",
127
- "region",
128
- "row",
129
- "rowgroup",
130
- "rowheader",
131
- "scrollbar",
132
- "search",
133
- "searchbox",
134
- "separator",
135
- "slider",
136
- "spinbutton",
137
- "status",
138
- "switch",
139
- "tab",
140
- "table",
141
- "tablist",
142
- "tabpanel",
143
- "term",
144
- "textbox",
145
- "timer",
146
- "toolbar",
147
- "tooltip",
148
- "tree",
149
- "treegrid",
150
- "treeitem",
151
- ],
152
- Var[
153
- Literal[
154
- "alert",
155
- "alertdialog",
156
- "application",
157
- "article",
158
- "banner",
159
- "button",
160
- "cell",
161
- "checkbox",
162
- "columnheader",
163
- "combobox",
164
- "complementary",
165
- "contentinfo",
166
- "definition",
167
- "dialog",
168
- "directory",
169
- "document",
170
- "feed",
171
- "figure",
172
- "form",
173
- "grid",
174
- "gridcell",
175
- "group",
176
- "heading",
177
- "img",
178
- "link",
179
- "list",
180
- "listbox",
181
- "listitem",
182
- "log",
183
- "main",
184
- "marquee",
185
- "math",
186
- "menu",
187
- "menubar",
188
- "menuitem",
189
- "menuitemcheckbox",
190
- "menuitemradio",
191
- "navigation",
192
- "none",
193
- "note",
194
- "option",
195
- "presentation",
196
- "progressbar",
197
- "radio",
198
- "radiogroup",
199
- "region",
200
- "row",
201
- "rowgroup",
202
- "rowheader",
203
- "scrollbar",
204
- "search",
205
- "searchbox",
206
- "separator",
207
- "slider",
208
- "spinbutton",
209
- "status",
210
- "switch",
211
- "tab",
212
- "table",
213
- "tablist",
214
- "tabpanel",
215
- "term",
216
- "textbox",
217
- "timer",
218
- "toolbar",
219
- "tooltip",
220
- "tree",
221
- "treegrid",
222
- "treeitem",
223
- ]
224
- ],
225
- ]
226
- ] = None,
227
- slot: Optional[Union[Var[str], str]] = None,
228
- spell_check: Optional[Union[Var[bool], bool]] = None,
229
- tab_index: Optional[Union[Var[int], int]] = None,
230
- title: Optional[Union[Var[str], str]] = None,
231
- style: Optional[Style] = None,
232
- key: Optional[Any] = None,
233
- id: Optional[Any] = None,
234
- class_name: Optional[Any] = None,
235
- autofocus: Optional[bool] = None,
236
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
198
+ ]
199
+ | None = None,
200
+ slot: Var[str] | str | None = None,
201
+ spell_check: Var[bool] | bool | None = None,
202
+ tab_index: Var[int] | int | None = None,
203
+ title: Var[str] | str | None = None,
204
+ style: Style | None = None,
205
+ key: Any | None = None,
206
+ id: Any | None = None,
207
+ class_name: Any | None = None,
208
+ autofocus: bool | None = None,
209
+ custom_attrs: dict[str, Var | Any] | None = None,
237
210
  on_blur: Optional[EventType[()]] = None,
238
211
  on_click: Optional[EventType[()]] = None,
239
212
  on_context_menu: Optional[EventType[()]] = None,
@@ -266,377 +239,322 @@ class StickyLabel(Text):
266
239
  def create( # type: ignore
267
240
  cls,
268
241
  *children,
269
- as_child: Optional[Union[Var[bool], bool]] = None,
270
- as_: Optional[
271
- Union[
272
- Literal[
273
- "abbr",
274
- "b",
275
- "cite",
276
- "del",
277
- "div",
278
- "em",
279
- "i",
280
- "ins",
281
- "kbd",
282
- "label",
283
- "mark",
284
- "p",
285
- "s",
286
- "samp",
287
- "span",
288
- "sub",
289
- "sup",
290
- "u",
291
- ],
292
- Var[
293
- Literal[
294
- "abbr",
295
- "b",
296
- "cite",
297
- "del",
298
- "div",
299
- "em",
300
- "i",
301
- "ins",
302
- "kbd",
303
- "label",
304
- "mark",
305
- "p",
306
- "s",
307
- "samp",
308
- "span",
309
- "sub",
310
- "sup",
311
- "u",
312
- ]
313
- ],
314
- ]
315
- ] = None,
316
- size: Optional[
317
- Union[
318
- Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
319
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
320
- Var[
321
- Union[
322
- Breakpoints[
323
- str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
324
- ],
325
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
326
- ]
327
- ],
328
- ]
329
- ] = None,
330
- weight: Optional[
331
- Union[
332
- Breakpoints[str, Literal["bold", "light", "medium", "regular"]],
333
- Literal["bold", "light", "medium", "regular"],
334
- Var[
335
- Union[
336
- Breakpoints[str, Literal["bold", "light", "medium", "regular"]],
337
- Literal["bold", "light", "medium", "regular"],
338
- ]
339
- ],
340
- ]
341
- ] = None,
342
- align: Optional[
343
- Union[
344
- Breakpoints[str, Literal["center", "left", "right"]],
345
- Literal["center", "left", "right"],
346
- Var[
347
- Union[
348
- Breakpoints[str, Literal["center", "left", "right"]],
349
- Literal["center", "left", "right"],
350
- ]
351
- ],
352
- ]
353
- ] = None,
354
- trim: Optional[
355
- Union[
356
- Breakpoints[str, Literal["both", "end", "normal", "start"]],
357
- Literal["both", "end", "normal", "start"],
358
- Var[
359
- Union[
360
- Breakpoints[str, Literal["both", "end", "normal", "start"]],
361
- Literal["both", "end", "normal", "start"],
362
- ]
363
- ],
364
- ]
365
- ] = None,
366
- color_scheme: Optional[
367
- Union[
368
- Literal[
369
- "amber",
370
- "blue",
371
- "bronze",
372
- "brown",
373
- "crimson",
374
- "cyan",
375
- "gold",
376
- "grass",
377
- "gray",
378
- "green",
379
- "indigo",
380
- "iris",
381
- "jade",
382
- "lime",
383
- "mint",
384
- "orange",
385
- "pink",
386
- "plum",
387
- "purple",
388
- "red",
389
- "ruby",
390
- "sky",
391
- "teal",
392
- "tomato",
393
- "violet",
394
- "yellow",
395
- ],
396
- Var[
397
- Literal[
398
- "amber",
399
- "blue",
400
- "bronze",
401
- "brown",
402
- "crimson",
403
- "cyan",
404
- "gold",
405
- "grass",
406
- "gray",
407
- "green",
408
- "indigo",
409
- "iris",
410
- "jade",
411
- "lime",
412
- "mint",
413
- "orange",
414
- "pink",
415
- "plum",
416
- "purple",
417
- "red",
418
- "ruby",
419
- "sky",
420
- "teal",
421
- "tomato",
422
- "violet",
423
- "yellow",
424
- ]
425
- ],
426
- ]
427
- ] = None,
428
- high_contrast: Optional[Union[Var[bool], bool]] = None,
429
- access_key: Optional[Union[Var[str], str]] = None,
430
- auto_capitalize: Optional[
431
- Union[
432
- Literal["characters", "none", "off", "on", "sentences", "words"],
433
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
242
+ as_child: Var[bool] | bool | None = None,
243
+ as_: Literal[
244
+ "abbr",
245
+ "b",
246
+ "cite",
247
+ "del",
248
+ "div",
249
+ "em",
250
+ "i",
251
+ "ins",
252
+ "kbd",
253
+ "label",
254
+ "mark",
255
+ "p",
256
+ "s",
257
+ "samp",
258
+ "span",
259
+ "sub",
260
+ "sup",
261
+ "u",
262
+ ]
263
+ | Var[
264
+ Literal[
265
+ "abbr",
266
+ "b",
267
+ "cite",
268
+ "del",
269
+ "div",
270
+ "em",
271
+ "i",
272
+ "ins",
273
+ "kbd",
274
+ "label",
275
+ "mark",
276
+ "p",
277
+ "s",
278
+ "samp",
279
+ "span",
280
+ "sub",
281
+ "sup",
282
+ "u",
434
283
  ]
435
- ] = None,
436
- content_editable: Optional[
437
- Union[
438
- Literal["inherit", "plaintext-only", False, True],
439
- Var[Literal["inherit", "plaintext-only", False, True]],
284
+ ]
285
+ | None = None,
286
+ size: Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]
287
+ | Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
288
+ | Var[
289
+ Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]
290
+ | Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
291
+ ]
292
+ | None = None,
293
+ weight: Breakpoints[str, Literal["bold", "light", "medium", "regular"]]
294
+ | Literal["bold", "light", "medium", "regular"]
295
+ | Var[
296
+ Breakpoints[str, Literal["bold", "light", "medium", "regular"]]
297
+ | Literal["bold", "light", "medium", "regular"]
298
+ ]
299
+ | None = None,
300
+ align: Breakpoints[str, Literal["center", "left", "right"]]
301
+ | Literal["center", "left", "right"]
302
+ | Var[
303
+ Breakpoints[str, Literal["center", "left", "right"]]
304
+ | Literal["center", "left", "right"]
305
+ ]
306
+ | None = None,
307
+ trim: Breakpoints[str, Literal["both", "end", "normal", "start"]]
308
+ | Literal["both", "end", "normal", "start"]
309
+ | Var[
310
+ Breakpoints[str, Literal["both", "end", "normal", "start"]]
311
+ | Literal["both", "end", "normal", "start"]
312
+ ]
313
+ | None = None,
314
+ color_scheme: Literal[
315
+ "amber",
316
+ "blue",
317
+ "bronze",
318
+ "brown",
319
+ "crimson",
320
+ "cyan",
321
+ "gold",
322
+ "grass",
323
+ "gray",
324
+ "green",
325
+ "indigo",
326
+ "iris",
327
+ "jade",
328
+ "lime",
329
+ "mint",
330
+ "orange",
331
+ "pink",
332
+ "plum",
333
+ "purple",
334
+ "red",
335
+ "ruby",
336
+ "sky",
337
+ "teal",
338
+ "tomato",
339
+ "violet",
340
+ "yellow",
341
+ ]
342
+ | Var[
343
+ Literal[
344
+ "amber",
345
+ "blue",
346
+ "bronze",
347
+ "brown",
348
+ "crimson",
349
+ "cyan",
350
+ "gold",
351
+ "grass",
352
+ "gray",
353
+ "green",
354
+ "indigo",
355
+ "iris",
356
+ "jade",
357
+ "lime",
358
+ "mint",
359
+ "orange",
360
+ "pink",
361
+ "plum",
362
+ "purple",
363
+ "red",
364
+ "ruby",
365
+ "sky",
366
+ "teal",
367
+ "tomato",
368
+ "violet",
369
+ "yellow",
440
370
  ]
441
- ] = None,
442
- context_menu: Optional[Union[Var[str], str]] = None,
443
- dir: Optional[Union[Var[str], str]] = None,
444
- draggable: Optional[Union[Var[bool], bool]] = None,
445
- enter_key_hint: Optional[
446
- Union[
447
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
448
- Var[
449
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
450
- ],
371
+ ]
372
+ | None = None,
373
+ high_contrast: Var[bool] | bool | None = None,
374
+ access_key: Var[str] | str | None = None,
375
+ auto_capitalize: Literal[
376
+ "characters", "none", "off", "on", "sentences", "words"
377
+ ]
378
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
379
+ | None = None,
380
+ content_editable: Literal["inherit", "plaintext-only", False, True]
381
+ | Var[Literal["inherit", "plaintext-only", False, True]]
382
+ | None = None,
383
+ context_menu: Var[str] | str | None = None,
384
+ dir: Var[str] | str | None = None,
385
+ draggable: Var[bool] | bool | None = None,
386
+ enter_key_hint: Literal[
387
+ "done", "enter", "go", "next", "previous", "search", "send"
388
+ ]
389
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
390
+ | None = None,
391
+ hidden: Var[bool] | bool | None = None,
392
+ input_mode: Literal[
393
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
394
+ ]
395
+ | Var[
396
+ Literal[
397
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
451
398
  ]
452
- ] = None,
453
- hidden: Optional[Union[Var[bool], bool]] = None,
454
- input_mode: Optional[
455
- Union[
456
- Literal[
457
- "decimal",
458
- "email",
459
- "none",
460
- "numeric",
461
- "search",
462
- "tel",
463
- "text",
464
- "url",
465
- ],
466
- Var[
467
- Literal[
468
- "decimal",
469
- "email",
470
- "none",
471
- "numeric",
472
- "search",
473
- "tel",
474
- "text",
475
- "url",
476
- ]
477
- ],
399
+ ]
400
+ | None = None,
401
+ item_prop: Var[str] | str | None = None,
402
+ lang: Var[str] | str | None = None,
403
+ role: Literal[
404
+ "alert",
405
+ "alertdialog",
406
+ "application",
407
+ "article",
408
+ "banner",
409
+ "button",
410
+ "cell",
411
+ "checkbox",
412
+ "columnheader",
413
+ "combobox",
414
+ "complementary",
415
+ "contentinfo",
416
+ "definition",
417
+ "dialog",
418
+ "directory",
419
+ "document",
420
+ "feed",
421
+ "figure",
422
+ "form",
423
+ "grid",
424
+ "gridcell",
425
+ "group",
426
+ "heading",
427
+ "img",
428
+ "link",
429
+ "list",
430
+ "listbox",
431
+ "listitem",
432
+ "log",
433
+ "main",
434
+ "marquee",
435
+ "math",
436
+ "menu",
437
+ "menubar",
438
+ "menuitem",
439
+ "menuitemcheckbox",
440
+ "menuitemradio",
441
+ "navigation",
442
+ "none",
443
+ "note",
444
+ "option",
445
+ "presentation",
446
+ "progressbar",
447
+ "radio",
448
+ "radiogroup",
449
+ "region",
450
+ "row",
451
+ "rowgroup",
452
+ "rowheader",
453
+ "scrollbar",
454
+ "search",
455
+ "searchbox",
456
+ "separator",
457
+ "slider",
458
+ "spinbutton",
459
+ "status",
460
+ "switch",
461
+ "tab",
462
+ "table",
463
+ "tablist",
464
+ "tabpanel",
465
+ "term",
466
+ "textbox",
467
+ "timer",
468
+ "toolbar",
469
+ "tooltip",
470
+ "tree",
471
+ "treegrid",
472
+ "treeitem",
473
+ ]
474
+ | Var[
475
+ Literal[
476
+ "alert",
477
+ "alertdialog",
478
+ "application",
479
+ "article",
480
+ "banner",
481
+ "button",
482
+ "cell",
483
+ "checkbox",
484
+ "columnheader",
485
+ "combobox",
486
+ "complementary",
487
+ "contentinfo",
488
+ "definition",
489
+ "dialog",
490
+ "directory",
491
+ "document",
492
+ "feed",
493
+ "figure",
494
+ "form",
495
+ "grid",
496
+ "gridcell",
497
+ "group",
498
+ "heading",
499
+ "img",
500
+ "link",
501
+ "list",
502
+ "listbox",
503
+ "listitem",
504
+ "log",
505
+ "main",
506
+ "marquee",
507
+ "math",
508
+ "menu",
509
+ "menubar",
510
+ "menuitem",
511
+ "menuitemcheckbox",
512
+ "menuitemradio",
513
+ "navigation",
514
+ "none",
515
+ "note",
516
+ "option",
517
+ "presentation",
518
+ "progressbar",
519
+ "radio",
520
+ "radiogroup",
521
+ "region",
522
+ "row",
523
+ "rowgroup",
524
+ "rowheader",
525
+ "scrollbar",
526
+ "search",
527
+ "searchbox",
528
+ "separator",
529
+ "slider",
530
+ "spinbutton",
531
+ "status",
532
+ "switch",
533
+ "tab",
534
+ "table",
535
+ "tablist",
536
+ "tabpanel",
537
+ "term",
538
+ "textbox",
539
+ "timer",
540
+ "toolbar",
541
+ "tooltip",
542
+ "tree",
543
+ "treegrid",
544
+ "treeitem",
478
545
  ]
479
- ] = None,
480
- item_prop: Optional[Union[Var[str], str]] = None,
481
- lang: Optional[Union[Var[str], str]] = None,
482
- role: Optional[
483
- Union[
484
- Literal[
485
- "alert",
486
- "alertdialog",
487
- "application",
488
- "article",
489
- "banner",
490
- "button",
491
- "cell",
492
- "checkbox",
493
- "columnheader",
494
- "combobox",
495
- "complementary",
496
- "contentinfo",
497
- "definition",
498
- "dialog",
499
- "directory",
500
- "document",
501
- "feed",
502
- "figure",
503
- "form",
504
- "grid",
505
- "gridcell",
506
- "group",
507
- "heading",
508
- "img",
509
- "link",
510
- "list",
511
- "listbox",
512
- "listitem",
513
- "log",
514
- "main",
515
- "marquee",
516
- "math",
517
- "menu",
518
- "menubar",
519
- "menuitem",
520
- "menuitemcheckbox",
521
- "menuitemradio",
522
- "navigation",
523
- "none",
524
- "note",
525
- "option",
526
- "presentation",
527
- "progressbar",
528
- "radio",
529
- "radiogroup",
530
- "region",
531
- "row",
532
- "rowgroup",
533
- "rowheader",
534
- "scrollbar",
535
- "search",
536
- "searchbox",
537
- "separator",
538
- "slider",
539
- "spinbutton",
540
- "status",
541
- "switch",
542
- "tab",
543
- "table",
544
- "tablist",
545
- "tabpanel",
546
- "term",
547
- "textbox",
548
- "timer",
549
- "toolbar",
550
- "tooltip",
551
- "tree",
552
- "treegrid",
553
- "treeitem",
554
- ],
555
- Var[
556
- Literal[
557
- "alert",
558
- "alertdialog",
559
- "application",
560
- "article",
561
- "banner",
562
- "button",
563
- "cell",
564
- "checkbox",
565
- "columnheader",
566
- "combobox",
567
- "complementary",
568
- "contentinfo",
569
- "definition",
570
- "dialog",
571
- "directory",
572
- "document",
573
- "feed",
574
- "figure",
575
- "form",
576
- "grid",
577
- "gridcell",
578
- "group",
579
- "heading",
580
- "img",
581
- "link",
582
- "list",
583
- "listbox",
584
- "listitem",
585
- "log",
586
- "main",
587
- "marquee",
588
- "math",
589
- "menu",
590
- "menubar",
591
- "menuitem",
592
- "menuitemcheckbox",
593
- "menuitemradio",
594
- "navigation",
595
- "none",
596
- "note",
597
- "option",
598
- "presentation",
599
- "progressbar",
600
- "radio",
601
- "radiogroup",
602
- "region",
603
- "row",
604
- "rowgroup",
605
- "rowheader",
606
- "scrollbar",
607
- "search",
608
- "searchbox",
609
- "separator",
610
- "slider",
611
- "spinbutton",
612
- "status",
613
- "switch",
614
- "tab",
615
- "table",
616
- "tablist",
617
- "tabpanel",
618
- "term",
619
- "textbox",
620
- "timer",
621
- "toolbar",
622
- "tooltip",
623
- "tree",
624
- "treegrid",
625
- "treeitem",
626
- ]
627
- ],
628
- ]
629
- ] = None,
630
- slot: Optional[Union[Var[str], str]] = None,
631
- spell_check: Optional[Union[Var[bool], bool]] = None,
632
- tab_index: Optional[Union[Var[int], int]] = None,
633
- title: Optional[Union[Var[str], str]] = None,
634
- style: Optional[Style] = None,
635
- key: Optional[Any] = None,
636
- id: Optional[Any] = None,
637
- class_name: Optional[Any] = None,
638
- autofocus: Optional[bool] = None,
639
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
546
+ ]
547
+ | None = None,
548
+ slot: Var[str] | str | None = None,
549
+ spell_check: Var[bool] | bool | None = None,
550
+ tab_index: Var[int] | int | None = None,
551
+ title: Var[str] | str | None = None,
552
+ style: Style | None = None,
553
+ key: Any | None = None,
554
+ id: Any | None = None,
555
+ class_name: Any | None = None,
556
+ autofocus: bool | None = None,
557
+ custom_attrs: dict[str, Var | Any] | None = None,
640
558
  on_blur: Optional[EventType[()]] = None,
641
559
  on_click: Optional[EventType[()]] = None,
642
560
  on_context_menu: Optional[EventType[()]] = None,
@@ -669,258 +587,225 @@ class StickyBadge(A):
669
587
  def create( # type: ignore
670
588
  cls,
671
589
  *children,
672
- download: Optional[Union[Var[Union[bool, str]], bool, str]] = None,
673
- href: Optional[Union[Var[str], str]] = None,
674
- href_lang: Optional[Union[Var[str], str]] = None,
675
- media: Optional[Union[Var[str], str]] = None,
676
- ping: Optional[Union[Var[str], str]] = None,
677
- referrer_policy: Optional[
678
- Union[
679
- Literal[
680
- "",
681
- "no-referrer",
682
- "no-referrer-when-downgrade",
683
- "origin",
684
- "origin-when-cross-origin",
685
- "same-origin",
686
- "strict-origin",
687
- "strict-origin-when-cross-origin",
688
- "unsafe-url",
689
- ],
690
- Var[
691
- Literal[
692
- "",
693
- "no-referrer",
694
- "no-referrer-when-downgrade",
695
- "origin",
696
- "origin-when-cross-origin",
697
- "same-origin",
698
- "strict-origin",
699
- "strict-origin-when-cross-origin",
700
- "unsafe-url",
701
- ]
702
- ],
703
- ]
704
- ] = None,
705
- rel: Optional[Union[Var[str], str]] = None,
706
- target: Optional[
707
- Union[
708
- Literal["_blank", "_parent", "_self", "_top"],
709
- Var[Union[Literal["_blank", "_parent", "_self", "_top"], str]],
710
- str,
711
- ]
712
- ] = None,
713
- access_key: Optional[Union[Var[str], str]] = None,
714
- auto_capitalize: Optional[
715
- Union[
716
- Literal["characters", "none", "off", "on", "sentences", "words"],
717
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
718
- ]
719
- ] = None,
720
- content_editable: Optional[
721
- Union[
722
- Literal["inherit", "plaintext-only", False, True],
723
- Var[Literal["inherit", "plaintext-only", False, True]],
724
- ]
725
- ] = None,
726
- context_menu: Optional[Union[Var[str], str]] = None,
727
- dir: Optional[Union[Var[str], str]] = None,
728
- draggable: Optional[Union[Var[bool], bool]] = None,
729
- enter_key_hint: Optional[
730
- Union[
731
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
732
- Var[
733
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
734
- ],
590
+ download: Var[bool | str] | bool | str | None = None,
591
+ href: Var[str] | str | None = None,
592
+ href_lang: Var[str] | str | None = None,
593
+ media: Var[str] | str | None = None,
594
+ ping: Var[str] | str | None = None,
595
+ referrer_policy: Literal[
596
+ "",
597
+ "no-referrer",
598
+ "no-referrer-when-downgrade",
599
+ "origin",
600
+ "origin-when-cross-origin",
601
+ "same-origin",
602
+ "strict-origin",
603
+ "strict-origin-when-cross-origin",
604
+ "unsafe-url",
605
+ ]
606
+ | Var[
607
+ Literal[
608
+ "",
609
+ "no-referrer",
610
+ "no-referrer-when-downgrade",
611
+ "origin",
612
+ "origin-when-cross-origin",
613
+ "same-origin",
614
+ "strict-origin",
615
+ "strict-origin-when-cross-origin",
616
+ "unsafe-url",
735
617
  ]
736
- ] = None,
737
- hidden: Optional[Union[Var[bool], bool]] = None,
738
- input_mode: Optional[
739
- Union[
740
- Literal[
741
- "decimal",
742
- "email",
743
- "none",
744
- "numeric",
745
- "search",
746
- "tel",
747
- "text",
748
- "url",
749
- ],
750
- Var[
751
- Literal[
752
- "decimal",
753
- "email",
754
- "none",
755
- "numeric",
756
- "search",
757
- "tel",
758
- "text",
759
- "url",
760
- ]
761
- ],
618
+ ]
619
+ | None = None,
620
+ rel: Var[str] | str | None = None,
621
+ target: Literal["_blank", "_parent", "_self", "_top"]
622
+ | Var[Literal["_blank", "_parent", "_self", "_top"] | str]
623
+ | str
624
+ | None = None,
625
+ access_key: Var[str] | str | None = None,
626
+ auto_capitalize: Literal[
627
+ "characters", "none", "off", "on", "sentences", "words"
628
+ ]
629
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
630
+ | None = None,
631
+ content_editable: Literal["inherit", "plaintext-only", False, True]
632
+ | Var[Literal["inherit", "plaintext-only", False, True]]
633
+ | None = None,
634
+ context_menu: Var[str] | str | None = None,
635
+ dir: Var[str] | str | None = None,
636
+ draggable: Var[bool] | bool | None = None,
637
+ enter_key_hint: Literal[
638
+ "done", "enter", "go", "next", "previous", "search", "send"
639
+ ]
640
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
641
+ | None = None,
642
+ hidden: Var[bool] | bool | None = None,
643
+ input_mode: Literal[
644
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
645
+ ]
646
+ | Var[
647
+ Literal[
648
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
762
649
  ]
763
- ] = None,
764
- item_prop: Optional[Union[Var[str], str]] = None,
765
- lang: Optional[Union[Var[str], str]] = None,
766
- role: Optional[
767
- Union[
768
- Literal[
769
- "alert",
770
- "alertdialog",
771
- "application",
772
- "article",
773
- "banner",
774
- "button",
775
- "cell",
776
- "checkbox",
777
- "columnheader",
778
- "combobox",
779
- "complementary",
780
- "contentinfo",
781
- "definition",
782
- "dialog",
783
- "directory",
784
- "document",
785
- "feed",
786
- "figure",
787
- "form",
788
- "grid",
789
- "gridcell",
790
- "group",
791
- "heading",
792
- "img",
793
- "link",
794
- "list",
795
- "listbox",
796
- "listitem",
797
- "log",
798
- "main",
799
- "marquee",
800
- "math",
801
- "menu",
802
- "menubar",
803
- "menuitem",
804
- "menuitemcheckbox",
805
- "menuitemradio",
806
- "navigation",
807
- "none",
808
- "note",
809
- "option",
810
- "presentation",
811
- "progressbar",
812
- "radio",
813
- "radiogroup",
814
- "region",
815
- "row",
816
- "rowgroup",
817
- "rowheader",
818
- "scrollbar",
819
- "search",
820
- "searchbox",
821
- "separator",
822
- "slider",
823
- "spinbutton",
824
- "status",
825
- "switch",
826
- "tab",
827
- "table",
828
- "tablist",
829
- "tabpanel",
830
- "term",
831
- "textbox",
832
- "timer",
833
- "toolbar",
834
- "tooltip",
835
- "tree",
836
- "treegrid",
837
- "treeitem",
838
- ],
839
- Var[
840
- Literal[
841
- "alert",
842
- "alertdialog",
843
- "application",
844
- "article",
845
- "banner",
846
- "button",
847
- "cell",
848
- "checkbox",
849
- "columnheader",
850
- "combobox",
851
- "complementary",
852
- "contentinfo",
853
- "definition",
854
- "dialog",
855
- "directory",
856
- "document",
857
- "feed",
858
- "figure",
859
- "form",
860
- "grid",
861
- "gridcell",
862
- "group",
863
- "heading",
864
- "img",
865
- "link",
866
- "list",
867
- "listbox",
868
- "listitem",
869
- "log",
870
- "main",
871
- "marquee",
872
- "math",
873
- "menu",
874
- "menubar",
875
- "menuitem",
876
- "menuitemcheckbox",
877
- "menuitemradio",
878
- "navigation",
879
- "none",
880
- "note",
881
- "option",
882
- "presentation",
883
- "progressbar",
884
- "radio",
885
- "radiogroup",
886
- "region",
887
- "row",
888
- "rowgroup",
889
- "rowheader",
890
- "scrollbar",
891
- "search",
892
- "searchbox",
893
- "separator",
894
- "slider",
895
- "spinbutton",
896
- "status",
897
- "switch",
898
- "tab",
899
- "table",
900
- "tablist",
901
- "tabpanel",
902
- "term",
903
- "textbox",
904
- "timer",
905
- "toolbar",
906
- "tooltip",
907
- "tree",
908
- "treegrid",
909
- "treeitem",
910
- ]
911
- ],
650
+ ]
651
+ | None = None,
652
+ item_prop: Var[str] | str | None = None,
653
+ lang: Var[str] | str | None = None,
654
+ role: Literal[
655
+ "alert",
656
+ "alertdialog",
657
+ "application",
658
+ "article",
659
+ "banner",
660
+ "button",
661
+ "cell",
662
+ "checkbox",
663
+ "columnheader",
664
+ "combobox",
665
+ "complementary",
666
+ "contentinfo",
667
+ "definition",
668
+ "dialog",
669
+ "directory",
670
+ "document",
671
+ "feed",
672
+ "figure",
673
+ "form",
674
+ "grid",
675
+ "gridcell",
676
+ "group",
677
+ "heading",
678
+ "img",
679
+ "link",
680
+ "list",
681
+ "listbox",
682
+ "listitem",
683
+ "log",
684
+ "main",
685
+ "marquee",
686
+ "math",
687
+ "menu",
688
+ "menubar",
689
+ "menuitem",
690
+ "menuitemcheckbox",
691
+ "menuitemradio",
692
+ "navigation",
693
+ "none",
694
+ "note",
695
+ "option",
696
+ "presentation",
697
+ "progressbar",
698
+ "radio",
699
+ "radiogroup",
700
+ "region",
701
+ "row",
702
+ "rowgroup",
703
+ "rowheader",
704
+ "scrollbar",
705
+ "search",
706
+ "searchbox",
707
+ "separator",
708
+ "slider",
709
+ "spinbutton",
710
+ "status",
711
+ "switch",
712
+ "tab",
713
+ "table",
714
+ "tablist",
715
+ "tabpanel",
716
+ "term",
717
+ "textbox",
718
+ "timer",
719
+ "toolbar",
720
+ "tooltip",
721
+ "tree",
722
+ "treegrid",
723
+ "treeitem",
724
+ ]
725
+ | Var[
726
+ Literal[
727
+ "alert",
728
+ "alertdialog",
729
+ "application",
730
+ "article",
731
+ "banner",
732
+ "button",
733
+ "cell",
734
+ "checkbox",
735
+ "columnheader",
736
+ "combobox",
737
+ "complementary",
738
+ "contentinfo",
739
+ "definition",
740
+ "dialog",
741
+ "directory",
742
+ "document",
743
+ "feed",
744
+ "figure",
745
+ "form",
746
+ "grid",
747
+ "gridcell",
748
+ "group",
749
+ "heading",
750
+ "img",
751
+ "link",
752
+ "list",
753
+ "listbox",
754
+ "listitem",
755
+ "log",
756
+ "main",
757
+ "marquee",
758
+ "math",
759
+ "menu",
760
+ "menubar",
761
+ "menuitem",
762
+ "menuitemcheckbox",
763
+ "menuitemradio",
764
+ "navigation",
765
+ "none",
766
+ "note",
767
+ "option",
768
+ "presentation",
769
+ "progressbar",
770
+ "radio",
771
+ "radiogroup",
772
+ "region",
773
+ "row",
774
+ "rowgroup",
775
+ "rowheader",
776
+ "scrollbar",
777
+ "search",
778
+ "searchbox",
779
+ "separator",
780
+ "slider",
781
+ "spinbutton",
782
+ "status",
783
+ "switch",
784
+ "tab",
785
+ "table",
786
+ "tablist",
787
+ "tabpanel",
788
+ "term",
789
+ "textbox",
790
+ "timer",
791
+ "toolbar",
792
+ "tooltip",
793
+ "tree",
794
+ "treegrid",
795
+ "treeitem",
912
796
  ]
913
- ] = None,
914
- slot: Optional[Union[Var[str], str]] = None,
915
- spell_check: Optional[Union[Var[bool], bool]] = None,
916
- tab_index: Optional[Union[Var[int], int]] = None,
917
- title: Optional[Union[Var[str], str]] = None,
918
- style: Optional[Style] = None,
919
- key: Optional[Any] = None,
920
- id: Optional[Any] = None,
921
- class_name: Optional[Any] = None,
922
- autofocus: Optional[bool] = None,
923
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
797
+ ]
798
+ | None = None,
799
+ slot: Var[str] | str | None = None,
800
+ spell_check: Var[bool] | bool | None = None,
801
+ tab_index: Var[int] | int | None = None,
802
+ title: Var[str] | str | None = None,
803
+ style: Style | None = None,
804
+ key: Any | None = None,
805
+ id: Any | None = None,
806
+ class_name: Any | None = None,
807
+ autofocus: bool | None = None,
808
+ custom_attrs: dict[str, Var | Any] | None = None,
924
809
  on_blur: Optional[EventType[()]] = None,
925
810
  on_click: Optional[EventType[()]] = None,
926
811
  on_context_menu: Optional[EventType[()]] = None,
@@ -954,258 +839,225 @@ class StickyNamespace(ComponentNamespace):
954
839
  @staticmethod
955
840
  def __call__(
956
841
  *children,
957
- download: Optional[Union[Var[Union[bool, str]], bool, str]] = None,
958
- href: Optional[Union[Var[str], str]] = None,
959
- href_lang: Optional[Union[Var[str], str]] = None,
960
- media: Optional[Union[Var[str], str]] = None,
961
- ping: Optional[Union[Var[str], str]] = None,
962
- referrer_policy: Optional[
963
- Union[
964
- Literal[
965
- "",
966
- "no-referrer",
967
- "no-referrer-when-downgrade",
968
- "origin",
969
- "origin-when-cross-origin",
970
- "same-origin",
971
- "strict-origin",
972
- "strict-origin-when-cross-origin",
973
- "unsafe-url",
974
- ],
975
- Var[
976
- Literal[
977
- "",
978
- "no-referrer",
979
- "no-referrer-when-downgrade",
980
- "origin",
981
- "origin-when-cross-origin",
982
- "same-origin",
983
- "strict-origin",
984
- "strict-origin-when-cross-origin",
985
- "unsafe-url",
986
- ]
987
- ],
988
- ]
989
- ] = None,
990
- rel: Optional[Union[Var[str], str]] = None,
991
- target: Optional[
992
- Union[
993
- Literal["_blank", "_parent", "_self", "_top"],
994
- Var[Union[Literal["_blank", "_parent", "_self", "_top"], str]],
995
- str,
996
- ]
997
- ] = None,
998
- access_key: Optional[Union[Var[str], str]] = None,
999
- auto_capitalize: Optional[
1000
- Union[
1001
- Literal["characters", "none", "off", "on", "sentences", "words"],
1002
- Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
1003
- ]
1004
- ] = None,
1005
- content_editable: Optional[
1006
- Union[
1007
- Literal["inherit", "plaintext-only", False, True],
1008
- Var[Literal["inherit", "plaintext-only", False, True]],
1009
- ]
1010
- ] = None,
1011
- context_menu: Optional[Union[Var[str], str]] = None,
1012
- dir: Optional[Union[Var[str], str]] = None,
1013
- draggable: Optional[Union[Var[bool], bool]] = None,
1014
- enter_key_hint: Optional[
1015
- Union[
1016
- Literal["done", "enter", "go", "next", "previous", "search", "send"],
1017
- Var[
1018
- Literal["done", "enter", "go", "next", "previous", "search", "send"]
1019
- ],
842
+ download: Var[bool | str] | bool | str | None = None,
843
+ href: Var[str] | str | None = None,
844
+ href_lang: Var[str] | str | None = None,
845
+ media: Var[str] | str | None = None,
846
+ ping: Var[str] | str | None = None,
847
+ referrer_policy: Literal[
848
+ "",
849
+ "no-referrer",
850
+ "no-referrer-when-downgrade",
851
+ "origin",
852
+ "origin-when-cross-origin",
853
+ "same-origin",
854
+ "strict-origin",
855
+ "strict-origin-when-cross-origin",
856
+ "unsafe-url",
857
+ ]
858
+ | Var[
859
+ Literal[
860
+ "",
861
+ "no-referrer",
862
+ "no-referrer-when-downgrade",
863
+ "origin",
864
+ "origin-when-cross-origin",
865
+ "same-origin",
866
+ "strict-origin",
867
+ "strict-origin-when-cross-origin",
868
+ "unsafe-url",
1020
869
  ]
1021
- ] = None,
1022
- hidden: Optional[Union[Var[bool], bool]] = None,
1023
- input_mode: Optional[
1024
- Union[
1025
- Literal[
1026
- "decimal",
1027
- "email",
1028
- "none",
1029
- "numeric",
1030
- "search",
1031
- "tel",
1032
- "text",
1033
- "url",
1034
- ],
1035
- Var[
1036
- Literal[
1037
- "decimal",
1038
- "email",
1039
- "none",
1040
- "numeric",
1041
- "search",
1042
- "tel",
1043
- "text",
1044
- "url",
1045
- ]
1046
- ],
870
+ ]
871
+ | None = None,
872
+ rel: Var[str] | str | None = None,
873
+ target: Literal["_blank", "_parent", "_self", "_top"]
874
+ | Var[Literal["_blank", "_parent", "_self", "_top"] | str]
875
+ | str
876
+ | None = None,
877
+ access_key: Var[str] | str | None = None,
878
+ auto_capitalize: Literal[
879
+ "characters", "none", "off", "on", "sentences", "words"
880
+ ]
881
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
882
+ | None = None,
883
+ content_editable: Literal["inherit", "plaintext-only", False, True]
884
+ | Var[Literal["inherit", "plaintext-only", False, True]]
885
+ | None = None,
886
+ context_menu: Var[str] | str | None = None,
887
+ dir: Var[str] | str | None = None,
888
+ draggable: Var[bool] | bool | None = None,
889
+ enter_key_hint: Literal[
890
+ "done", "enter", "go", "next", "previous", "search", "send"
891
+ ]
892
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
893
+ | None = None,
894
+ hidden: Var[bool] | bool | None = None,
895
+ input_mode: Literal[
896
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
897
+ ]
898
+ | Var[
899
+ Literal[
900
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
1047
901
  ]
1048
- ] = None,
1049
- item_prop: Optional[Union[Var[str], str]] = None,
1050
- lang: Optional[Union[Var[str], str]] = None,
1051
- role: Optional[
1052
- Union[
1053
- Literal[
1054
- "alert",
1055
- "alertdialog",
1056
- "application",
1057
- "article",
1058
- "banner",
1059
- "button",
1060
- "cell",
1061
- "checkbox",
1062
- "columnheader",
1063
- "combobox",
1064
- "complementary",
1065
- "contentinfo",
1066
- "definition",
1067
- "dialog",
1068
- "directory",
1069
- "document",
1070
- "feed",
1071
- "figure",
1072
- "form",
1073
- "grid",
1074
- "gridcell",
1075
- "group",
1076
- "heading",
1077
- "img",
1078
- "link",
1079
- "list",
1080
- "listbox",
1081
- "listitem",
1082
- "log",
1083
- "main",
1084
- "marquee",
1085
- "math",
1086
- "menu",
1087
- "menubar",
1088
- "menuitem",
1089
- "menuitemcheckbox",
1090
- "menuitemradio",
1091
- "navigation",
1092
- "none",
1093
- "note",
1094
- "option",
1095
- "presentation",
1096
- "progressbar",
1097
- "radio",
1098
- "radiogroup",
1099
- "region",
1100
- "row",
1101
- "rowgroup",
1102
- "rowheader",
1103
- "scrollbar",
1104
- "search",
1105
- "searchbox",
1106
- "separator",
1107
- "slider",
1108
- "spinbutton",
1109
- "status",
1110
- "switch",
1111
- "tab",
1112
- "table",
1113
- "tablist",
1114
- "tabpanel",
1115
- "term",
1116
- "textbox",
1117
- "timer",
1118
- "toolbar",
1119
- "tooltip",
1120
- "tree",
1121
- "treegrid",
1122
- "treeitem",
1123
- ],
1124
- Var[
1125
- Literal[
1126
- "alert",
1127
- "alertdialog",
1128
- "application",
1129
- "article",
1130
- "banner",
1131
- "button",
1132
- "cell",
1133
- "checkbox",
1134
- "columnheader",
1135
- "combobox",
1136
- "complementary",
1137
- "contentinfo",
1138
- "definition",
1139
- "dialog",
1140
- "directory",
1141
- "document",
1142
- "feed",
1143
- "figure",
1144
- "form",
1145
- "grid",
1146
- "gridcell",
1147
- "group",
1148
- "heading",
1149
- "img",
1150
- "link",
1151
- "list",
1152
- "listbox",
1153
- "listitem",
1154
- "log",
1155
- "main",
1156
- "marquee",
1157
- "math",
1158
- "menu",
1159
- "menubar",
1160
- "menuitem",
1161
- "menuitemcheckbox",
1162
- "menuitemradio",
1163
- "navigation",
1164
- "none",
1165
- "note",
1166
- "option",
1167
- "presentation",
1168
- "progressbar",
1169
- "radio",
1170
- "radiogroup",
1171
- "region",
1172
- "row",
1173
- "rowgroup",
1174
- "rowheader",
1175
- "scrollbar",
1176
- "search",
1177
- "searchbox",
1178
- "separator",
1179
- "slider",
1180
- "spinbutton",
1181
- "status",
1182
- "switch",
1183
- "tab",
1184
- "table",
1185
- "tablist",
1186
- "tabpanel",
1187
- "term",
1188
- "textbox",
1189
- "timer",
1190
- "toolbar",
1191
- "tooltip",
1192
- "tree",
1193
- "treegrid",
1194
- "treeitem",
1195
- ]
1196
- ],
902
+ ]
903
+ | None = None,
904
+ item_prop: Var[str] | str | None = None,
905
+ lang: Var[str] | str | None = None,
906
+ role: Literal[
907
+ "alert",
908
+ "alertdialog",
909
+ "application",
910
+ "article",
911
+ "banner",
912
+ "button",
913
+ "cell",
914
+ "checkbox",
915
+ "columnheader",
916
+ "combobox",
917
+ "complementary",
918
+ "contentinfo",
919
+ "definition",
920
+ "dialog",
921
+ "directory",
922
+ "document",
923
+ "feed",
924
+ "figure",
925
+ "form",
926
+ "grid",
927
+ "gridcell",
928
+ "group",
929
+ "heading",
930
+ "img",
931
+ "link",
932
+ "list",
933
+ "listbox",
934
+ "listitem",
935
+ "log",
936
+ "main",
937
+ "marquee",
938
+ "math",
939
+ "menu",
940
+ "menubar",
941
+ "menuitem",
942
+ "menuitemcheckbox",
943
+ "menuitemradio",
944
+ "navigation",
945
+ "none",
946
+ "note",
947
+ "option",
948
+ "presentation",
949
+ "progressbar",
950
+ "radio",
951
+ "radiogroup",
952
+ "region",
953
+ "row",
954
+ "rowgroup",
955
+ "rowheader",
956
+ "scrollbar",
957
+ "search",
958
+ "searchbox",
959
+ "separator",
960
+ "slider",
961
+ "spinbutton",
962
+ "status",
963
+ "switch",
964
+ "tab",
965
+ "table",
966
+ "tablist",
967
+ "tabpanel",
968
+ "term",
969
+ "textbox",
970
+ "timer",
971
+ "toolbar",
972
+ "tooltip",
973
+ "tree",
974
+ "treegrid",
975
+ "treeitem",
976
+ ]
977
+ | Var[
978
+ Literal[
979
+ "alert",
980
+ "alertdialog",
981
+ "application",
982
+ "article",
983
+ "banner",
984
+ "button",
985
+ "cell",
986
+ "checkbox",
987
+ "columnheader",
988
+ "combobox",
989
+ "complementary",
990
+ "contentinfo",
991
+ "definition",
992
+ "dialog",
993
+ "directory",
994
+ "document",
995
+ "feed",
996
+ "figure",
997
+ "form",
998
+ "grid",
999
+ "gridcell",
1000
+ "group",
1001
+ "heading",
1002
+ "img",
1003
+ "link",
1004
+ "list",
1005
+ "listbox",
1006
+ "listitem",
1007
+ "log",
1008
+ "main",
1009
+ "marquee",
1010
+ "math",
1011
+ "menu",
1012
+ "menubar",
1013
+ "menuitem",
1014
+ "menuitemcheckbox",
1015
+ "menuitemradio",
1016
+ "navigation",
1017
+ "none",
1018
+ "note",
1019
+ "option",
1020
+ "presentation",
1021
+ "progressbar",
1022
+ "radio",
1023
+ "radiogroup",
1024
+ "region",
1025
+ "row",
1026
+ "rowgroup",
1027
+ "rowheader",
1028
+ "scrollbar",
1029
+ "search",
1030
+ "searchbox",
1031
+ "separator",
1032
+ "slider",
1033
+ "spinbutton",
1034
+ "status",
1035
+ "switch",
1036
+ "tab",
1037
+ "table",
1038
+ "tablist",
1039
+ "tabpanel",
1040
+ "term",
1041
+ "textbox",
1042
+ "timer",
1043
+ "toolbar",
1044
+ "tooltip",
1045
+ "tree",
1046
+ "treegrid",
1047
+ "treeitem",
1197
1048
  ]
1198
- ] = None,
1199
- slot: Optional[Union[Var[str], str]] = None,
1200
- spell_check: Optional[Union[Var[bool], bool]] = None,
1201
- tab_index: Optional[Union[Var[int], int]] = None,
1202
- title: Optional[Union[Var[str], str]] = None,
1203
- style: Optional[Style] = None,
1204
- key: Optional[Any] = None,
1205
- id: Optional[Any] = None,
1206
- class_name: Optional[Any] = None,
1207
- autofocus: Optional[bool] = None,
1208
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
1049
+ ]
1050
+ | None = None,
1051
+ slot: Var[str] | str | None = None,
1052
+ spell_check: Var[bool] | bool | None = None,
1053
+ tab_index: Var[int] | int | None = None,
1054
+ title: Var[str] | str | None = None,
1055
+ style: Style | None = None,
1056
+ key: Any | None = None,
1057
+ id: Any | None = None,
1058
+ class_name: Any | None = None,
1059
+ autofocus: bool | None = None,
1060
+ custom_attrs: dict[str, Var | Any] | None = None,
1209
1061
  on_blur: Optional[EventType[()]] = None,
1210
1062
  on_click: Optional[EventType[()]] = None,
1211
1063
  on_context_menu: Optional[EventType[()]] = None,