reflex 0.7.7a1__py3-none-any.whl → 0.7.8a1__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 (185) hide show
  1. reflex/.templates/web/utils/state.js +26 -16
  2. reflex/admin.py +1 -1
  3. reflex/app.py +6 -17
  4. reflex/app_mixins/lifespan.py +1 -1
  5. reflex/base.py +2 -2
  6. reflex/compiler/compiler.py +8 -7
  7. reflex/compiler/utils.py +6 -5
  8. reflex/components/base/app_wrap.pyi +18 -17
  9. reflex/components/base/bare.py +2 -1
  10. reflex/components/base/body.pyi +214 -19
  11. reflex/components/base/document.pyi +82 -81
  12. reflex/components/base/error_boundary.pyi +19 -18
  13. reflex/components/base/fragment.pyi +18 -17
  14. reflex/components/base/head.pyi +34 -33
  15. reflex/components/base/link.pyi +425 -36
  16. reflex/components/base/meta.pyi +673 -92
  17. reflex/components/base/script.pyi +21 -20
  18. reflex/components/base/strict_mode.pyi +18 -17
  19. reflex/components/component.py +20 -36
  20. reflex/components/core/auto_scroll.pyi +18 -17
  21. reflex/components/core/banner.pyi +98 -97
  22. reflex/components/core/breakpoints.py +1 -1
  23. reflex/components/core/client_side_routing.pyi +34 -33
  24. reflex/components/core/clipboard.py +1 -1
  25. reflex/components/core/clipboard.pyi +19 -18
  26. reflex/components/core/cond.py +2 -2
  27. reflex/components/core/debounce.py +3 -3
  28. reflex/components/core/debounce.pyi +20 -19
  29. reflex/components/core/foreach.py +2 -1
  30. reflex/components/core/html.pyi +18 -17
  31. reflex/components/core/match.py +2 -2
  32. reflex/components/core/sticky.pyi +66 -65
  33. reflex/components/core/upload.py +7 -10
  34. reflex/components/core/upload.pyi +86 -85
  35. reflex/components/datadisplay/code.pyi +34 -33
  36. reflex/components/datadisplay/dataeditor.py +3 -2
  37. reflex/components/datadisplay/dataeditor.pyi +35 -68
  38. reflex/components/datadisplay/shiki_code_block.pyi +50 -49
  39. reflex/components/el/element.pyi +18 -17
  40. reflex/components/el/elements/base.pyi +18 -17
  41. reflex/components/el/elements/forms.py +10 -8
  42. reflex/components/el/elements/forms.pyi +290 -332
  43. reflex/components/el/elements/inline.pyi +450 -449
  44. reflex/components/el/elements/media.pyi +402 -401
  45. reflex/components/el/elements/metadata.pyi +99 -97
  46. reflex/components/el/elements/other.pyi +114 -113
  47. reflex/components/el/elements/scripts.pyi +50 -49
  48. reflex/components/el/elements/sectioning.pyi +242 -241
  49. reflex/components/el/elements/tables.pyi +162 -161
  50. reflex/components/el/elements/typography.pyi +242 -241
  51. reflex/components/gridjs/datatable.py +3 -2
  52. reflex/components/gridjs/datatable.pyi +35 -34
  53. reflex/components/lucide/icon.pyi +50 -49
  54. reflex/components/markdown/markdown.py +2 -1
  55. reflex/components/markdown/markdown.pyi +20 -19
  56. reflex/components/moment/moment.pyi +19 -18
  57. reflex/components/next/base.pyi +18 -17
  58. reflex/components/next/image.pyi +20 -19
  59. reflex/components/next/link.pyi +18 -17
  60. reflex/components/next/video.pyi +18 -17
  61. reflex/components/plotly/plotly.py +3 -3
  62. reflex/components/plotly/plotly.pyi +326 -325
  63. reflex/components/radix/primitives/accordion.py +2 -1
  64. reflex/components/radix/primitives/accordion.pyi +115 -114
  65. reflex/components/radix/primitives/base.pyi +34 -33
  66. reflex/components/radix/primitives/drawer.py +2 -1
  67. reflex/components/radix/primitives/drawer.pyi +187 -186
  68. reflex/components/radix/primitives/form.pyi +168 -182
  69. reflex/components/radix/primitives/progress.pyi +82 -81
  70. reflex/components/radix/primitives/slider.py +2 -1
  71. reflex/components/radix/primitives/slider.pyi +84 -83
  72. reflex/components/radix/themes/base.pyi +130 -129
  73. reflex/components/radix/themes/color_mode.pyi +51 -50
  74. reflex/components/radix/themes/components/alert_dialog.pyi +118 -117
  75. reflex/components/radix/themes/components/aspect_ratio.pyi +18 -17
  76. reflex/components/radix/themes/components/avatar.pyi +18 -17
  77. reflex/components/radix/themes/components/badge.pyi +18 -17
  78. reflex/components/radix/themes/components/button.pyi +18 -17
  79. reflex/components/radix/themes/components/callout.pyi +82 -81
  80. reflex/components/radix/themes/components/card.pyi +18 -17
  81. reflex/components/radix/themes/components/checkbox.pyi +53 -52
  82. reflex/components/radix/themes/components/checkbox_cards.pyi +34 -33
  83. reflex/components/radix/themes/components/checkbox_group.py +2 -1
  84. reflex/components/radix/themes/components/checkbox_group.pyi +34 -33
  85. reflex/components/radix/themes/components/context_menu.pyi +225 -224
  86. reflex/components/radix/themes/components/data_list.pyi +66 -65
  87. reflex/components/radix/themes/components/dialog.pyi +121 -120
  88. reflex/components/radix/themes/components/dropdown_menu.pyi +142 -141
  89. reflex/components/radix/themes/components/hover_card.pyi +68 -67
  90. reflex/components/radix/themes/components/icon_button.pyi +18 -17
  91. reflex/components/radix/themes/components/inset.pyi +18 -17
  92. reflex/components/radix/themes/components/popover.pyi +73 -72
  93. reflex/components/radix/themes/components/progress.pyi +18 -17
  94. reflex/components/radix/themes/components/radio.pyi +18 -17
  95. reflex/components/radix/themes/components/radio_cards.pyi +35 -34
  96. reflex/components/radix/themes/components/radio_group.py +2 -1
  97. reflex/components/radix/themes/components/radio_group.pyi +67 -66
  98. reflex/components/radix/themes/components/scroll_area.pyi +18 -17
  99. reflex/components/radix/themes/components/segmented_control.py +2 -1
  100. reflex/components/radix/themes/components/segmented_control.pyi +35 -34
  101. reflex/components/radix/themes/components/select.py +2 -1
  102. reflex/components/radix/themes/components/select.pyi +155 -154
  103. reflex/components/radix/themes/components/separator.pyi +18 -17
  104. reflex/components/radix/themes/components/skeleton.pyi +18 -17
  105. reflex/components/radix/themes/components/slider.py +2 -1
  106. reflex/components/radix/themes/components/slider.pyi +20 -31
  107. reflex/components/radix/themes/components/spinner.pyi +18 -17
  108. reflex/components/radix/themes/components/switch.pyi +19 -18
  109. reflex/components/radix/themes/components/table.pyi +114 -113
  110. reflex/components/radix/themes/components/tabs.pyi +84 -83
  111. reflex/components/radix/themes/components/text_area.pyi +21 -24
  112. reflex/components/radix/themes/components/text_field.pyi +56 -63
  113. reflex/components/radix/themes/components/tooltip.py +2 -2
  114. reflex/components/radix/themes/components/tooltip.pyi +21 -20
  115. reflex/components/radix/themes/layout/base.pyi +18 -17
  116. reflex/components/radix/themes/layout/box.pyi +18 -17
  117. reflex/components/radix/themes/layout/center.pyi +18 -17
  118. reflex/components/radix/themes/layout/container.pyi +18 -17
  119. reflex/components/radix/themes/layout/flex.pyi +18 -17
  120. reflex/components/radix/themes/layout/grid.pyi +18 -17
  121. reflex/components/radix/themes/layout/list.py +2 -1
  122. reflex/components/radix/themes/layout/list.pyi +473 -83
  123. reflex/components/radix/themes/layout/section.pyi +18 -17
  124. reflex/components/radix/themes/layout/spacer.pyi +18 -17
  125. reflex/components/radix/themes/layout/stack.pyi +50 -49
  126. reflex/components/radix/themes/typography/blockquote.pyi +18 -17
  127. reflex/components/radix/themes/typography/code.pyi +18 -17
  128. reflex/components/radix/themes/typography/heading.pyi +18 -17
  129. reflex/components/radix/themes/typography/link.pyi +18 -17
  130. reflex/components/radix/themes/typography/text.pyi +114 -113
  131. reflex/components/react_player/audio.pyi +34 -36
  132. reflex/components/react_player/react_player.pyi +34 -33
  133. reflex/components/react_player/video.pyi +34 -36
  134. reflex/components/recharts/cartesian.py +7 -6
  135. reflex/components/recharts/cartesian.pyi +302 -301
  136. reflex/components/recharts/charts.py +2 -1
  137. reflex/components/recharts/charts.pyi +177 -176
  138. reflex/components/recharts/general.py +3 -2
  139. reflex/components/recharts/general.pyi +99 -98
  140. reflex/components/recharts/polar.py +9 -8
  141. reflex/components/recharts/polar.pyi +62 -61
  142. reflex/components/recharts/recharts.pyi +34 -33
  143. reflex/components/sonner/toast.pyi +19 -18
  144. reflex/components/suneditor/editor.py +22 -24
  145. reflex/components/suneditor/editor.pyi +27 -28
  146. reflex/components/tags/cond_tag.py +3 -3
  147. reflex/components/tags/iter_tag.py +2 -1
  148. reflex/components/tags/tag.py +3 -2
  149. reflex/config.py +27 -17
  150. reflex/constants/installer.py +4 -4
  151. reflex/constants/route.py +2 -3
  152. reflex/constants/utils.py +4 -3
  153. reflex/event.py +56 -28
  154. reflex/experimental/client_state.py +3 -2
  155. reflex/experimental/layout.pyi +84 -83
  156. reflex/istate/data.py +1 -1
  157. reflex/istate/storage.py +2 -2
  158. reflex/model.py +3 -3
  159. reflex/page.py +3 -2
  160. reflex/state.py +56 -57
  161. reflex/style.py +3 -2
  162. reflex/testing.py +12 -21
  163. reflex/utils/codespaces.py +14 -15
  164. reflex/utils/decorator.py +2 -1
  165. reflex/utils/exec.py +1 -1
  166. reflex/utils/format.py +2 -2
  167. reflex/utils/imports.py +6 -8
  168. reflex/utils/misc.py +2 -1
  169. reflex/utils/net.py +2 -1
  170. reflex/utils/prerequisites.py +12 -5
  171. reflex/utils/processes.py +6 -5
  172. reflex/utils/pyi_generator.py +6 -5
  173. reflex/utils/serializers.py +13 -25
  174. reflex/utils/types.py +34 -46
  175. reflex/vars/base.py +60 -56
  176. reflex/vars/dep_tracking.py +4 -4
  177. reflex/vars/function.py +13 -36
  178. reflex/vars/number.py +5 -17
  179. reflex/vars/object.py +9 -16
  180. reflex/vars/sequence.py +11 -23
  181. {reflex-0.7.7a1.dist-info → reflex-0.7.8a1.dist-info}/METADATA +1 -1
  182. {reflex-0.7.7a1.dist-info → reflex-0.7.8a1.dist-info}/RECORD +185 -185
  183. {reflex-0.7.7a1.dist-info → reflex-0.7.8a1.dist-info}/WHEEL +0 -0
  184. {reflex-0.7.7a1.dist-info → reflex-0.7.8a1.dist-info}/entry_points.txt +0 -0
  185. {reflex-0.7.7a1.dist-info → reflex-0.7.8a1.dist-info}/licenses/LICENSE +0 -0
@@ -3,14 +3,15 @@
3
3
  # ------------------- DO NOT EDIT ----------------------
4
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
5
5
  # ------------------------------------------------------
6
- from typing import Any, Mapping, Optional, Sequence, overload
6
+ from collections.abc import Mapping, Sequence
7
+ from typing import Any, Literal, overload
7
8
 
8
- from reflex.components.component import Component
9
9
  from reflex.components.core.breakpoints import Breakpoints
10
+ from reflex.components.el import elements
10
11
  from reflex.event import EventType
11
12
  from reflex.vars.base import Var
12
13
 
13
- class Title(Component):
14
+ class Title(elements.Title):
14
15
  def render(self) -> dict: ...
15
16
  @overload
16
17
  @classmethod
@@ -27,23 +28,23 @@ class Title(Component):
27
28
  class_name: Any | None = None,
28
29
  autofocus: bool | None = None,
29
30
  custom_attrs: dict[str, Var | Any] | None = None,
30
- on_blur: Optional[EventType[()]] = None,
31
- on_click: Optional[EventType[()]] = None,
32
- on_context_menu: Optional[EventType[()]] = None,
33
- on_double_click: Optional[EventType[()]] = None,
34
- on_focus: Optional[EventType[()]] = None,
35
- on_mount: Optional[EventType[()]] = None,
36
- on_mouse_down: Optional[EventType[()]] = None,
37
- on_mouse_enter: Optional[EventType[()]] = None,
38
- on_mouse_leave: Optional[EventType[()]] = None,
39
- on_mouse_move: Optional[EventType[()]] = None,
40
- on_mouse_out: Optional[EventType[()]] = None,
41
- on_mouse_over: Optional[EventType[()]] = None,
42
- on_mouse_up: Optional[EventType[()]] = None,
43
- on_scroll: Optional[EventType[()]] = None,
44
- on_unmount: Optional[EventType[()]] = None,
31
+ on_blur: EventType[()] | None = None,
32
+ on_click: EventType[()] | None = None,
33
+ on_context_menu: EventType[()] | None = None,
34
+ on_double_click: EventType[()] | None = None,
35
+ on_focus: EventType[()] | None = None,
36
+ on_mount: EventType[()] | None = None,
37
+ on_mouse_down: EventType[()] | None = None,
38
+ on_mouse_enter: EventType[()] | None = None,
39
+ on_mouse_leave: EventType[()] | None = None,
40
+ on_mouse_move: EventType[()] | None = None,
41
+ on_mouse_out: EventType[()] | None = None,
42
+ on_mouse_over: EventType[()] | None = None,
43
+ on_mouse_up: EventType[()] | None = None,
44
+ on_scroll: EventType[()] | None = None,
45
+ on_unmount: EventType[()] | None = None,
45
46
  **props,
46
- ) -> "Title":
47
+ ) -> Title:
47
48
  """Create the component.
48
49
 
49
50
  Args:
@@ -61,7 +62,7 @@ class Title(Component):
61
62
  """
62
63
  ...
63
64
 
64
- class Meta(Component):
65
+ class Meta(elements.Meta):
65
66
  @overload
66
67
  @classmethod
67
68
  def create( # type: ignore
@@ -72,6 +73,184 @@ class Meta(Component):
72
73
  name: str | None = None,
73
74
  property: str | None = None,
74
75
  http_equiv: str | None = None,
76
+ access_key: Var[str] | str | None = None,
77
+ auto_capitalize: Literal[
78
+ "characters", "none", "off", "on", "sentences", "words"
79
+ ]
80
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
81
+ | None = None,
82
+ content_editable: Literal["inherit", "plaintext-only", False, True]
83
+ | Var[Literal["inherit", "plaintext-only", False, True]]
84
+ | None = None,
85
+ context_menu: Var[str] | str | None = None,
86
+ dir: Var[str] | str | None = None,
87
+ draggable: Var[bool] | bool | None = None,
88
+ enter_key_hint: Literal[
89
+ "done", "enter", "go", "next", "previous", "search", "send"
90
+ ]
91
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
92
+ | None = None,
93
+ hidden: Var[bool] | bool | None = None,
94
+ input_mode: Literal[
95
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
96
+ ]
97
+ | Var[
98
+ Literal[
99
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
100
+ ]
101
+ ]
102
+ | None = None,
103
+ item_prop: Var[str] | str | None = None,
104
+ lang: Var[str] | str | None = None,
105
+ role: Literal[
106
+ "alert",
107
+ "alertdialog",
108
+ "application",
109
+ "article",
110
+ "banner",
111
+ "button",
112
+ "cell",
113
+ "checkbox",
114
+ "columnheader",
115
+ "combobox",
116
+ "complementary",
117
+ "contentinfo",
118
+ "definition",
119
+ "dialog",
120
+ "directory",
121
+ "document",
122
+ "feed",
123
+ "figure",
124
+ "form",
125
+ "grid",
126
+ "gridcell",
127
+ "group",
128
+ "heading",
129
+ "img",
130
+ "link",
131
+ "list",
132
+ "listbox",
133
+ "listitem",
134
+ "log",
135
+ "main",
136
+ "marquee",
137
+ "math",
138
+ "menu",
139
+ "menubar",
140
+ "menuitem",
141
+ "menuitemcheckbox",
142
+ "menuitemradio",
143
+ "navigation",
144
+ "none",
145
+ "note",
146
+ "option",
147
+ "presentation",
148
+ "progressbar",
149
+ "radio",
150
+ "radiogroup",
151
+ "region",
152
+ "row",
153
+ "rowgroup",
154
+ "rowheader",
155
+ "scrollbar",
156
+ "search",
157
+ "searchbox",
158
+ "separator",
159
+ "slider",
160
+ "spinbutton",
161
+ "status",
162
+ "switch",
163
+ "tab",
164
+ "table",
165
+ "tablist",
166
+ "tabpanel",
167
+ "term",
168
+ "textbox",
169
+ "timer",
170
+ "toolbar",
171
+ "tooltip",
172
+ "tree",
173
+ "treegrid",
174
+ "treeitem",
175
+ ]
176
+ | Var[
177
+ Literal[
178
+ "alert",
179
+ "alertdialog",
180
+ "application",
181
+ "article",
182
+ "banner",
183
+ "button",
184
+ "cell",
185
+ "checkbox",
186
+ "columnheader",
187
+ "combobox",
188
+ "complementary",
189
+ "contentinfo",
190
+ "definition",
191
+ "dialog",
192
+ "directory",
193
+ "document",
194
+ "feed",
195
+ "figure",
196
+ "form",
197
+ "grid",
198
+ "gridcell",
199
+ "group",
200
+ "heading",
201
+ "img",
202
+ "link",
203
+ "list",
204
+ "listbox",
205
+ "listitem",
206
+ "log",
207
+ "main",
208
+ "marquee",
209
+ "math",
210
+ "menu",
211
+ "menubar",
212
+ "menuitem",
213
+ "menuitemcheckbox",
214
+ "menuitemradio",
215
+ "navigation",
216
+ "none",
217
+ "note",
218
+ "option",
219
+ "presentation",
220
+ "progressbar",
221
+ "radio",
222
+ "radiogroup",
223
+ "region",
224
+ "row",
225
+ "rowgroup",
226
+ "rowheader",
227
+ "scrollbar",
228
+ "search",
229
+ "searchbox",
230
+ "separator",
231
+ "slider",
232
+ "spinbutton",
233
+ "status",
234
+ "switch",
235
+ "tab",
236
+ "table",
237
+ "tablist",
238
+ "tabpanel",
239
+ "term",
240
+ "textbox",
241
+ "timer",
242
+ "toolbar",
243
+ "tooltip",
244
+ "tree",
245
+ "treegrid",
246
+ "treeitem",
247
+ ]
248
+ ]
249
+ | None = None,
250
+ slot: Var[str] | str | None = None,
251
+ spell_check: Var[bool] | bool | None = None,
252
+ tab_index: Var[int] | int | None = None,
253
+ title: Var[str] | str | None = None,
75
254
  style: Sequence[Mapping[str, Any]]
76
255
  | Mapping[str, Any]
77
256
  | Var[Mapping[str, Any]]
@@ -82,32 +261,48 @@ class Meta(Component):
82
261
  class_name: Any | None = None,
83
262
  autofocus: bool | None = None,
84
263
  custom_attrs: dict[str, Var | Any] | None = None,
85
- on_blur: Optional[EventType[()]] = None,
86
- on_click: Optional[EventType[()]] = None,
87
- on_context_menu: Optional[EventType[()]] = None,
88
- on_double_click: Optional[EventType[()]] = None,
89
- on_focus: Optional[EventType[()]] = None,
90
- on_mount: Optional[EventType[()]] = None,
91
- on_mouse_down: Optional[EventType[()]] = None,
92
- on_mouse_enter: Optional[EventType[()]] = None,
93
- on_mouse_leave: Optional[EventType[()]] = None,
94
- on_mouse_move: Optional[EventType[()]] = None,
95
- on_mouse_out: Optional[EventType[()]] = None,
96
- on_mouse_over: Optional[EventType[()]] = None,
97
- on_mouse_up: Optional[EventType[()]] = None,
98
- on_scroll: Optional[EventType[()]] = None,
99
- on_unmount: Optional[EventType[()]] = None,
264
+ on_blur: EventType[()] | None = None,
265
+ on_click: EventType[()] | None = None,
266
+ on_context_menu: EventType[()] | None = None,
267
+ on_double_click: EventType[()] | None = None,
268
+ on_focus: EventType[()] | None = None,
269
+ on_mount: EventType[()] | None = None,
270
+ on_mouse_down: EventType[()] | None = None,
271
+ on_mouse_enter: EventType[()] | None = None,
272
+ on_mouse_leave: EventType[()] | None = None,
273
+ on_mouse_move: EventType[()] | None = None,
274
+ on_mouse_out: EventType[()] | None = None,
275
+ on_mouse_over: EventType[()] | None = None,
276
+ on_mouse_up: EventType[()] | None = None,
277
+ on_scroll: EventType[()] | None = None,
278
+ on_unmount: EventType[()] | None = None,
100
279
  **props,
101
- ) -> "Meta":
280
+ ) -> Meta:
102
281
  """Create the component.
103
282
 
104
283
  Args:
105
284
  *children: The children of the component.
106
- char_set: The description of character encoding.
107
- content: The value of meta.
108
- name: The name of metadata.
285
+ char_set: Specifies the character encoding for the HTML document
286
+ content: Defines the content of the metadata
287
+ name: Specifies a name for the metadata
109
288
  property: The type of metadata value.
110
- http_equiv: The type of metadata value.
289
+ http_equiv: Provides an HTTP header for the information/value of the content attribute
290
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
291
+ auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
292
+ content_editable: Indicates whether the element's content is editable.
293
+ context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
294
+ dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
295
+ draggable: Defines whether the element can be dragged.
296
+ enter_key_hint: Hints what media types the media element is able to play.
297
+ hidden: Defines whether the element is hidden.
298
+ input_mode: Defines the type of the element.
299
+ item_prop: Defines the name of the element for metadata purposes.
300
+ lang: Defines the language used in the element.
301
+ role: Defines the role of the element.
302
+ slot: Assigns a slot in a shadow DOM shadow tree to an element.
303
+ spell_check: Defines whether the element may be checked for spelling errors.
304
+ tab_index: Defines the position of the current element in the tabbing order.
305
+ title: Defines a tooltip for the element.
111
306
  style: The style of the component.
112
307
  key: A unique key for the component.
113
308
  id: The id for the component.
@@ -121,17 +316,194 @@ class Meta(Component):
121
316
  """
122
317
  ...
123
318
 
124
- class Description(Meta):
319
+ class Description(elements.Meta):
125
320
  @overload
126
321
  @classmethod
127
322
  def create( # type: ignore
128
323
  cls,
129
324
  *children,
130
325
  name: str | None = None,
131
- char_set: str | None = None,
132
- content: str | None = None,
133
- property: str | None = None,
134
- http_equiv: str | None = None,
326
+ char_set: Var[str] | str | None = None,
327
+ content: Var[str] | str | None = None,
328
+ http_equiv: Var[str] | str | None = None,
329
+ access_key: Var[str] | str | None = None,
330
+ auto_capitalize: Literal[
331
+ "characters", "none", "off", "on", "sentences", "words"
332
+ ]
333
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
334
+ | None = None,
335
+ content_editable: Literal["inherit", "plaintext-only", False, True]
336
+ | Var[Literal["inherit", "plaintext-only", False, True]]
337
+ | None = None,
338
+ context_menu: Var[str] | str | None = None,
339
+ dir: Var[str] | str | None = None,
340
+ draggable: Var[bool] | bool | None = None,
341
+ enter_key_hint: Literal[
342
+ "done", "enter", "go", "next", "previous", "search", "send"
343
+ ]
344
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
345
+ | None = None,
346
+ hidden: Var[bool] | bool | None = None,
347
+ input_mode: Literal[
348
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
349
+ ]
350
+ | Var[
351
+ Literal[
352
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
353
+ ]
354
+ ]
355
+ | None = None,
356
+ item_prop: Var[str] | str | None = None,
357
+ lang: Var[str] | str | None = None,
358
+ role: Literal[
359
+ "alert",
360
+ "alertdialog",
361
+ "application",
362
+ "article",
363
+ "banner",
364
+ "button",
365
+ "cell",
366
+ "checkbox",
367
+ "columnheader",
368
+ "combobox",
369
+ "complementary",
370
+ "contentinfo",
371
+ "definition",
372
+ "dialog",
373
+ "directory",
374
+ "document",
375
+ "feed",
376
+ "figure",
377
+ "form",
378
+ "grid",
379
+ "gridcell",
380
+ "group",
381
+ "heading",
382
+ "img",
383
+ "link",
384
+ "list",
385
+ "listbox",
386
+ "listitem",
387
+ "log",
388
+ "main",
389
+ "marquee",
390
+ "math",
391
+ "menu",
392
+ "menubar",
393
+ "menuitem",
394
+ "menuitemcheckbox",
395
+ "menuitemradio",
396
+ "navigation",
397
+ "none",
398
+ "note",
399
+ "option",
400
+ "presentation",
401
+ "progressbar",
402
+ "radio",
403
+ "radiogroup",
404
+ "region",
405
+ "row",
406
+ "rowgroup",
407
+ "rowheader",
408
+ "scrollbar",
409
+ "search",
410
+ "searchbox",
411
+ "separator",
412
+ "slider",
413
+ "spinbutton",
414
+ "status",
415
+ "switch",
416
+ "tab",
417
+ "table",
418
+ "tablist",
419
+ "tabpanel",
420
+ "term",
421
+ "textbox",
422
+ "timer",
423
+ "toolbar",
424
+ "tooltip",
425
+ "tree",
426
+ "treegrid",
427
+ "treeitem",
428
+ ]
429
+ | Var[
430
+ Literal[
431
+ "alert",
432
+ "alertdialog",
433
+ "application",
434
+ "article",
435
+ "banner",
436
+ "button",
437
+ "cell",
438
+ "checkbox",
439
+ "columnheader",
440
+ "combobox",
441
+ "complementary",
442
+ "contentinfo",
443
+ "definition",
444
+ "dialog",
445
+ "directory",
446
+ "document",
447
+ "feed",
448
+ "figure",
449
+ "form",
450
+ "grid",
451
+ "gridcell",
452
+ "group",
453
+ "heading",
454
+ "img",
455
+ "link",
456
+ "list",
457
+ "listbox",
458
+ "listitem",
459
+ "log",
460
+ "main",
461
+ "marquee",
462
+ "math",
463
+ "menu",
464
+ "menubar",
465
+ "menuitem",
466
+ "menuitemcheckbox",
467
+ "menuitemradio",
468
+ "navigation",
469
+ "none",
470
+ "note",
471
+ "option",
472
+ "presentation",
473
+ "progressbar",
474
+ "radio",
475
+ "radiogroup",
476
+ "region",
477
+ "row",
478
+ "rowgroup",
479
+ "rowheader",
480
+ "scrollbar",
481
+ "search",
482
+ "searchbox",
483
+ "separator",
484
+ "slider",
485
+ "spinbutton",
486
+ "status",
487
+ "switch",
488
+ "tab",
489
+ "table",
490
+ "tablist",
491
+ "tabpanel",
492
+ "term",
493
+ "textbox",
494
+ "timer",
495
+ "toolbar",
496
+ "tooltip",
497
+ "tree",
498
+ "treegrid",
499
+ "treeitem",
500
+ ]
501
+ ]
502
+ | None = None,
503
+ slot: Var[str] | str | None = None,
504
+ spell_check: Var[bool] | bool | None = None,
505
+ tab_index: Var[int] | int | None = None,
506
+ title: Var[str] | str | None = None,
135
507
  style: Sequence[Mapping[str, Any]]
136
508
  | Mapping[str, Any]
137
509
  | Var[Mapping[str, Any]]
@@ -142,32 +514,47 @@ class Description(Meta):
142
514
  class_name: Any | None = None,
143
515
  autofocus: bool | None = None,
144
516
  custom_attrs: dict[str, Var | Any] | None = None,
145
- on_blur: Optional[EventType[()]] = None,
146
- on_click: Optional[EventType[()]] = None,
147
- on_context_menu: Optional[EventType[()]] = None,
148
- on_double_click: Optional[EventType[()]] = None,
149
- on_focus: Optional[EventType[()]] = None,
150
- on_mount: Optional[EventType[()]] = None,
151
- on_mouse_down: Optional[EventType[()]] = None,
152
- on_mouse_enter: Optional[EventType[()]] = None,
153
- on_mouse_leave: Optional[EventType[()]] = None,
154
- on_mouse_move: Optional[EventType[()]] = None,
155
- on_mouse_out: Optional[EventType[()]] = None,
156
- on_mouse_over: Optional[EventType[()]] = None,
157
- on_mouse_up: Optional[EventType[()]] = None,
158
- on_scroll: Optional[EventType[()]] = None,
159
- on_unmount: Optional[EventType[()]] = None,
517
+ on_blur: EventType[()] | None = None,
518
+ on_click: EventType[()] | None = None,
519
+ on_context_menu: EventType[()] | None = None,
520
+ on_double_click: EventType[()] | None = None,
521
+ on_focus: EventType[()] | None = None,
522
+ on_mount: EventType[()] | None = None,
523
+ on_mouse_down: EventType[()] | None = None,
524
+ on_mouse_enter: EventType[()] | None = None,
525
+ on_mouse_leave: EventType[()] | None = None,
526
+ on_mouse_move: EventType[()] | None = None,
527
+ on_mouse_out: EventType[()] | None = None,
528
+ on_mouse_over: EventType[()] | None = None,
529
+ on_mouse_up: EventType[()] | None = None,
530
+ on_scroll: EventType[()] | None = None,
531
+ on_unmount: EventType[()] | None = None,
160
532
  **props,
161
- ) -> "Description":
533
+ ) -> Description:
162
534
  """Create the component.
163
535
 
164
536
  Args:
165
537
  *children: The children of the component.
166
- name: The name of metadata.
167
- char_set: The description of character encoding.
168
- content: The value of meta.
169
- property: The type of metadata value.
170
- http_equiv: The type of metadata value.
538
+ name: Specifies a name for the metadata
539
+ char_set: Specifies the character encoding for the HTML document
540
+ content: Defines the content of the metadata
541
+ http_equiv: Provides an HTTP header for the information/value of the content attribute
542
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
543
+ auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
544
+ content_editable: Indicates whether the element's content is editable.
545
+ context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
546
+ dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
547
+ draggable: Defines whether the element can be dragged.
548
+ enter_key_hint: Hints what media types the media element is able to play.
549
+ hidden: Defines whether the element is hidden.
550
+ input_mode: Defines the type of the element.
551
+ item_prop: Defines the name of the element for metadata purposes.
552
+ lang: Defines the language used in the element.
553
+ role: Defines the role of the element.
554
+ slot: Assigns a slot in a shadow DOM shadow tree to an element.
555
+ spell_check: Defines whether the element may be checked for spelling errors.
556
+ tab_index: Defines the position of the current element in the tabbing order.
557
+ title: Defines a tooltip for the element.
171
558
  style: The style of the component.
172
559
  key: A unique key for the component.
173
560
  id: The id for the component.
@@ -181,17 +568,195 @@ class Description(Meta):
181
568
  """
182
569
  ...
183
570
 
184
- class Image(Meta):
571
+ class Image(elements.Meta):
185
572
  @overload
186
573
  @classmethod
187
574
  def create( # type: ignore
188
575
  cls,
189
576
  *children,
190
577
  property: str | None = None,
191
- char_set: str | None = None,
192
- content: str | None = None,
193
- name: str | None = None,
194
- http_equiv: str | None = None,
578
+ char_set: Var[str] | str | None = None,
579
+ content: Var[str] | str | None = None,
580
+ http_equiv: Var[str] | str | None = None,
581
+ name: Var[str] | str | None = None,
582
+ access_key: Var[str] | str | None = None,
583
+ auto_capitalize: Literal[
584
+ "characters", "none", "off", "on", "sentences", "words"
585
+ ]
586
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
587
+ | None = None,
588
+ content_editable: Literal["inherit", "plaintext-only", False, True]
589
+ | Var[Literal["inherit", "plaintext-only", False, True]]
590
+ | None = None,
591
+ context_menu: Var[str] | str | None = None,
592
+ dir: Var[str] | str | None = None,
593
+ draggable: Var[bool] | bool | None = None,
594
+ enter_key_hint: Literal[
595
+ "done", "enter", "go", "next", "previous", "search", "send"
596
+ ]
597
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
598
+ | None = None,
599
+ hidden: Var[bool] | bool | None = None,
600
+ input_mode: Literal[
601
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
602
+ ]
603
+ | Var[
604
+ Literal[
605
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
606
+ ]
607
+ ]
608
+ | None = None,
609
+ item_prop: Var[str] | str | None = None,
610
+ lang: Var[str] | str | None = None,
611
+ role: Literal[
612
+ "alert",
613
+ "alertdialog",
614
+ "application",
615
+ "article",
616
+ "banner",
617
+ "button",
618
+ "cell",
619
+ "checkbox",
620
+ "columnheader",
621
+ "combobox",
622
+ "complementary",
623
+ "contentinfo",
624
+ "definition",
625
+ "dialog",
626
+ "directory",
627
+ "document",
628
+ "feed",
629
+ "figure",
630
+ "form",
631
+ "grid",
632
+ "gridcell",
633
+ "group",
634
+ "heading",
635
+ "img",
636
+ "link",
637
+ "list",
638
+ "listbox",
639
+ "listitem",
640
+ "log",
641
+ "main",
642
+ "marquee",
643
+ "math",
644
+ "menu",
645
+ "menubar",
646
+ "menuitem",
647
+ "menuitemcheckbox",
648
+ "menuitemradio",
649
+ "navigation",
650
+ "none",
651
+ "note",
652
+ "option",
653
+ "presentation",
654
+ "progressbar",
655
+ "radio",
656
+ "radiogroup",
657
+ "region",
658
+ "row",
659
+ "rowgroup",
660
+ "rowheader",
661
+ "scrollbar",
662
+ "search",
663
+ "searchbox",
664
+ "separator",
665
+ "slider",
666
+ "spinbutton",
667
+ "status",
668
+ "switch",
669
+ "tab",
670
+ "table",
671
+ "tablist",
672
+ "tabpanel",
673
+ "term",
674
+ "textbox",
675
+ "timer",
676
+ "toolbar",
677
+ "tooltip",
678
+ "tree",
679
+ "treegrid",
680
+ "treeitem",
681
+ ]
682
+ | Var[
683
+ Literal[
684
+ "alert",
685
+ "alertdialog",
686
+ "application",
687
+ "article",
688
+ "banner",
689
+ "button",
690
+ "cell",
691
+ "checkbox",
692
+ "columnheader",
693
+ "combobox",
694
+ "complementary",
695
+ "contentinfo",
696
+ "definition",
697
+ "dialog",
698
+ "directory",
699
+ "document",
700
+ "feed",
701
+ "figure",
702
+ "form",
703
+ "grid",
704
+ "gridcell",
705
+ "group",
706
+ "heading",
707
+ "img",
708
+ "link",
709
+ "list",
710
+ "listbox",
711
+ "listitem",
712
+ "log",
713
+ "main",
714
+ "marquee",
715
+ "math",
716
+ "menu",
717
+ "menubar",
718
+ "menuitem",
719
+ "menuitemcheckbox",
720
+ "menuitemradio",
721
+ "navigation",
722
+ "none",
723
+ "note",
724
+ "option",
725
+ "presentation",
726
+ "progressbar",
727
+ "radio",
728
+ "radiogroup",
729
+ "region",
730
+ "row",
731
+ "rowgroup",
732
+ "rowheader",
733
+ "scrollbar",
734
+ "search",
735
+ "searchbox",
736
+ "separator",
737
+ "slider",
738
+ "spinbutton",
739
+ "status",
740
+ "switch",
741
+ "tab",
742
+ "table",
743
+ "tablist",
744
+ "tabpanel",
745
+ "term",
746
+ "textbox",
747
+ "timer",
748
+ "toolbar",
749
+ "tooltip",
750
+ "tree",
751
+ "treegrid",
752
+ "treeitem",
753
+ ]
754
+ ]
755
+ | None = None,
756
+ slot: Var[str] | str | None = None,
757
+ spell_check: Var[bool] | bool | None = None,
758
+ tab_index: Var[int] | int | None = None,
759
+ title: Var[str] | str | None = None,
195
760
  style: Sequence[Mapping[str, Any]]
196
761
  | Mapping[str, Any]
197
762
  | Var[Mapping[str, Any]]
@@ -202,32 +767,48 @@ class Image(Meta):
202
767
  class_name: Any | None = None,
203
768
  autofocus: bool | None = None,
204
769
  custom_attrs: dict[str, Var | Any] | None = None,
205
- on_blur: Optional[EventType[()]] = None,
206
- on_click: Optional[EventType[()]] = None,
207
- on_context_menu: Optional[EventType[()]] = None,
208
- on_double_click: Optional[EventType[()]] = None,
209
- on_focus: Optional[EventType[()]] = None,
210
- on_mount: Optional[EventType[()]] = None,
211
- on_mouse_down: Optional[EventType[()]] = None,
212
- on_mouse_enter: Optional[EventType[()]] = None,
213
- on_mouse_leave: Optional[EventType[()]] = None,
214
- on_mouse_move: Optional[EventType[()]] = None,
215
- on_mouse_out: Optional[EventType[()]] = None,
216
- on_mouse_over: Optional[EventType[()]] = None,
217
- on_mouse_up: Optional[EventType[()]] = None,
218
- on_scroll: Optional[EventType[()]] = None,
219
- on_unmount: Optional[EventType[()]] = None,
770
+ on_blur: EventType[()] | None = None,
771
+ on_click: EventType[()] | None = None,
772
+ on_context_menu: EventType[()] | None = None,
773
+ on_double_click: EventType[()] | None = None,
774
+ on_focus: EventType[()] | None = None,
775
+ on_mount: EventType[()] | None = None,
776
+ on_mouse_down: EventType[()] | None = None,
777
+ on_mouse_enter: EventType[()] | None = None,
778
+ on_mouse_leave: EventType[()] | None = None,
779
+ on_mouse_move: EventType[()] | None = None,
780
+ on_mouse_out: EventType[()] | None = None,
781
+ on_mouse_over: EventType[()] | None = None,
782
+ on_mouse_up: EventType[()] | None = None,
783
+ on_scroll: EventType[()] | None = None,
784
+ on_unmount: EventType[()] | None = None,
220
785
  **props,
221
- ) -> "Image":
786
+ ) -> Image:
222
787
  """Create the component.
223
788
 
224
789
  Args:
225
790
  *children: The children of the component.
226
- property: The type of metadata value.
227
- char_set: The description of character encoding.
228
- content: The value of meta.
229
- name: The name of metadata.
230
- http_equiv: The type of metadata value.
791
+ property: The type of the image.
792
+ char_set: Specifies the character encoding for the HTML document
793
+ content: Defines the content of the metadata
794
+ http_equiv: Provides an HTTP header for the information/value of the content attribute
795
+ name: Specifies a name for the metadata
796
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
797
+ auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
798
+ content_editable: Indicates whether the element's content is editable.
799
+ context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
800
+ dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
801
+ draggable: Defines whether the element can be dragged.
802
+ enter_key_hint: Hints what media types the media element is able to play.
803
+ hidden: Defines whether the element is hidden.
804
+ input_mode: Defines the type of the element.
805
+ item_prop: Defines the name of the element for metadata purposes.
806
+ lang: Defines the language used in the element.
807
+ role: Defines the role of the element.
808
+ slot: Assigns a slot in a shadow DOM shadow tree to an element.
809
+ spell_check: Defines whether the element may be checked for spelling errors.
810
+ tab_index: Defines the position of the current element in the tabbing order.
811
+ title: Defines a tooltip for the element.
231
812
  style: The style of the component.
232
813
  key: A unique key for the component.
233
814
  id: The id for the component.