reflex 0.8.15a1__py3-none-any.whl → 0.8.16__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 (140) hide show
  1. reflex/.templates/web/utils/state.js +68 -8
  2. reflex/app.py +45 -51
  3. reflex/app_mixins/lifespan.py +12 -5
  4. reflex/base.py +1 -0
  5. reflex/compiler/compiler.py +4 -6
  6. reflex/compiler/templates.py +25 -31
  7. reflex/compiler/utils.py +6 -5
  8. reflex/components/base/body.pyi +1 -195
  9. reflex/components/base/link.pyi +1 -407
  10. reflex/components/base/meta.pyi +1 -405
  11. reflex/components/base/script.pyi +1 -237
  12. reflex/components/component.py +41 -46
  13. reflex/components/core/auto_scroll.pyi +1 -195
  14. reflex/components/core/banner.pyi +1 -391
  15. reflex/components/core/breakpoints.py +14 -18
  16. reflex/components/core/html.pyi +1 -197
  17. reflex/components/core/match.py +2 -2
  18. reflex/components/core/sticky.py +11 -15
  19. reflex/components/core/sticky.pyi +0 -788
  20. reflex/components/core/upload.py +1 -3
  21. reflex/components/core/window_events.pyi +6 -5
  22. reflex/components/datadisplay/code.pyi +1 -0
  23. reflex/components/datadisplay/dataeditor.py +4 -6
  24. reflex/components/datadisplay/shiki_code_block.py +106 -110
  25. reflex/components/dynamic.py +4 -6
  26. reflex/components/el/elements/__init__.py +5 -7
  27. reflex/components/el/elements/__init__.pyi +5 -7
  28. reflex/components/el/elements/base.py +1 -1
  29. reflex/components/el/elements/base.pyi +1 -195
  30. reflex/components/el/elements/forms.py +7 -9
  31. reflex/components/el/elements/forms.pyi +12 -3112
  32. reflex/components/el/elements/inline.pyi +0 -5481
  33. reflex/components/el/elements/media.pyi +0 -10280
  34. reflex/components/el/elements/metadata.pyi +1 -835
  35. reflex/components/el/elements/other.pyi +1 -1365
  36. reflex/components/el/elements/scripts.pyi +1 -625
  37. reflex/components/el/elements/sectioning.pyi +1 -2911
  38. reflex/components/el/elements/tables.pyi +1 -1973
  39. reflex/components/el/elements/typography.pyi +1 -3125
  40. reflex/components/lucide/icon.py +4 -4
  41. reflex/components/lucide/icon.pyi +0 -4
  42. reflex/components/markdown/markdown.py +15 -19
  43. reflex/components/markdown/markdown.pyi +1 -0
  44. reflex/components/moment/moment.pyi +0 -49
  45. reflex/components/props.py +3 -3
  46. reflex/components/radix/primitives/accordion.py +4 -6
  47. reflex/components/radix/primitives/accordion.pyi +0 -14
  48. reflex/components/radix/primitives/base.pyi +0 -5
  49. reflex/components/radix/primitives/dialog.py +2 -0
  50. reflex/components/radix/primitives/dialog.pyi +1 -233
  51. reflex/components/radix/primitives/drawer.pyi +0 -18
  52. reflex/components/radix/primitives/form.pyi +30 -632
  53. reflex/components/radix/primitives/progress.pyi +0 -10
  54. reflex/components/radix/primitives/slider.pyi +0 -10
  55. reflex/components/radix/themes/color_mode.pyi +1 -284
  56. reflex/components/radix/themes/components/alert_dialog.pyi +0 -207
  57. reflex/components/radix/themes/components/aspect_ratio.pyi +0 -2
  58. reflex/components/radix/themes/components/avatar.pyi +0 -80
  59. reflex/components/radix/themes/components/badge.pyi +1 -270
  60. reflex/components/radix/themes/components/button.pyi +1 -274
  61. reflex/components/radix/themes/components/callout.pyi +0 -1197
  62. reflex/components/radix/themes/components/card.pyi +1 -209
  63. reflex/components/radix/themes/components/checkbox.pyi +0 -261
  64. reflex/components/radix/themes/components/checkbox_cards.pyi +1 -96
  65. reflex/components/radix/themes/components/checkbox_group.pyi +1 -80
  66. reflex/components/radix/themes/components/context_menu.pyi +13 -321
  67. reflex/components/radix/themes/components/data_list.pyi +1 -107
  68. reflex/components/radix/themes/components/dialog.pyi +1 -210
  69. reflex/components/radix/themes/components/dropdown_menu.pyi +0 -209
  70. reflex/components/radix/themes/components/hover_card.pyi +1 -246
  71. reflex/components/radix/themes/components/icon_button.pyi +1 -195
  72. reflex/components/radix/themes/components/inset.pyi +0 -252
  73. reflex/components/radix/themes/components/popover.pyi +1 -234
  74. reflex/components/radix/themes/components/progress.pyi +1 -84
  75. reflex/components/radix/themes/components/radio.pyi +1 -72
  76. reflex/components/radix/themes/components/radio_cards.pyi +1 -123
  77. reflex/components/radix/themes/components/scroll_area.pyi +1 -11
  78. reflex/components/radix/themes/components/select.pyi +1 -376
  79. reflex/components/radix/themes/components/separator.pyi +0 -77
  80. reflex/components/radix/themes/components/skeleton.pyi +0 -30
  81. reflex/components/radix/themes/components/slider.py +3 -5
  82. reflex/components/radix/themes/components/spinner.pyi +0 -5
  83. reflex/components/radix/themes/components/switch.pyi +0 -89
  84. reflex/components/radix/themes/components/table.pyi +0 -1453
  85. reflex/components/radix/themes/components/text_area.pyi +7 -282
  86. reflex/components/radix/themes/components/text_field.pyi +6 -392
  87. reflex/components/radix/themes/components/tooltip.pyi +0 -42
  88. reflex/components/radix/themes/layout/box.pyi +1 -195
  89. reflex/components/radix/themes/layout/center.pyi +0 -194
  90. reflex/components/radix/themes/layout/container.pyi +0 -178
  91. reflex/components/radix/themes/layout/flex.pyi +0 -194
  92. reflex/components/radix/themes/layout/grid.pyi +0 -194
  93. reflex/components/radix/themes/layout/list.pyi +0 -978
  94. reflex/components/radix/themes/layout/section.pyi +0 -194
  95. reflex/components/radix/themes/layout/spacer.pyi +0 -194
  96. reflex/components/radix/themes/layout/stack.pyi +0 -582
  97. reflex/components/radix/themes/typography/blockquote.pyi +0 -196
  98. reflex/components/radix/themes/typography/code.pyi +0 -194
  99. reflex/components/radix/themes/typography/heading.pyi +0 -194
  100. reflex/components/radix/themes/typography/link.pyi +0 -237
  101. reflex/components/radix/themes/typography/text.pyi +0 -1360
  102. reflex/components/react_router/dom.pyi +0 -237
  103. reflex/components/recharts/cartesian.py +12 -18
  104. reflex/components/recharts/general.py +12 -18
  105. reflex/constants/installer.py +5 -5
  106. reflex/custom_components/custom_components.py +6 -5
  107. reflex/environment.py +30 -7
  108. reflex/event.py +14 -12
  109. reflex/experimental/client_state.py +11 -12
  110. reflex/istate/data.py +8 -10
  111. reflex/istate/manager/__init__.py +3 -0
  112. reflex/istate/manager/disk.py +151 -5
  113. reflex/model.py +1 -1
  114. reflex/plugins/_screenshot.py +2 -2
  115. reflex/plugins/shared_tailwind.py +9 -14
  116. reflex/reflex.py +7 -9
  117. reflex/state.py +30 -37
  118. reflex/style.py +6 -6
  119. reflex/testing.py +54 -30
  120. reflex/utils/codespaces.py +31 -2
  121. reflex/utils/compat.py +1 -0
  122. reflex/utils/decorator.py +3 -3
  123. reflex/utils/format.py +18 -22
  124. reflex/utils/prerequisites.py +1 -1
  125. reflex/utils/pyi_generator.py +51 -57
  126. reflex/utils/serializers.py +1 -1
  127. reflex/utils/telemetry.py +1 -1
  128. reflex/utils/templates.py +4 -4
  129. reflex/utils/types.py +11 -4
  130. reflex/vars/base.py +26 -29
  131. reflex/vars/color.py +6 -8
  132. reflex/vars/dep_tracking.py +5 -3
  133. reflex/vars/function.py +3 -3
  134. reflex/vars/object.py +9 -13
  135. reflex/vars/sequence.py +18 -24
  136. {reflex-0.8.15a1.dist-info → reflex-0.8.16.dist-info}/METADATA +1 -1
  137. {reflex-0.8.15a1.dist-info → reflex-0.8.16.dist-info}/RECORD +140 -140
  138. {reflex-0.8.15a1.dist-info → reflex-0.8.16.dist-info}/WHEEL +0 -0
  139. {reflex-0.8.15a1.dist-info → reflex-0.8.16.dist-info}/entry_points.txt +0 -0
  140. {reflex-0.8.15a1.dist-info → reflex-0.8.16.dist-info}/licenses/LICENSE +0 -0
@@ -19,7 +19,6 @@ class FormComponent(RadixPrimitiveComponentWithClassName):
19
19
  def create(
20
20
  cls,
21
21
  *children,
22
- as_child: Var[bool] | bool | None = None,
23
22
  style: Sequence[Mapping[str, Any]]
24
23
  | Mapping[str, Any]
25
24
  | Var[Mapping[str, Any]]
@@ -52,7 +51,6 @@ class FormComponent(RadixPrimitiveComponentWithClassName):
52
51
 
53
52
  Args:
54
53
  *children: The children of the component.
55
- as_child: Change the default rendered element for the one passed as a child.
56
54
  style: The style of the component.
57
55
  key: A unique key for the component.
58
56
  id: The id for the component.
@@ -71,7 +69,16 @@ class FormRoot(FormComponent, HTMLForm):
71
69
  def create(
72
70
  cls,
73
71
  *children,
74
- as_child: Var[bool] | bool | None = None,
72
+ style: Sequence[Mapping[str, Any]]
73
+ | Mapping[str, Any]
74
+ | Var[Mapping[str, Any]]
75
+ | Breakpoints
76
+ | None = None,
77
+ key: Any | None = None,
78
+ id: Any | None = None,
79
+ ref: Var | None = None,
80
+ class_name: Any | None = None,
81
+ custom_attrs: dict[str, Var | Any] | None = None,
75
82
  accept: Var[str] | str | None = None,
76
83
  accept_charset: Var[str] | str | None = None,
77
84
  action: Var[str] | str | None = None,
@@ -83,194 +90,6 @@ class FormRoot(FormComponent, HTMLForm):
83
90
  target: Var[str] | str | None = None,
84
91
  reset_on_submit: Var[bool] | bool | None = None,
85
92
  handle_submit_unique_name: Var[str] | str | None = None,
86
- access_key: Var[str] | str | None = None,
87
- auto_capitalize: Literal[
88
- "characters", "none", "off", "on", "sentences", "words"
89
- ]
90
- | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
91
- | None = None,
92
- content_editable: Literal["inherit", "plaintext-only", False, True]
93
- | Var[Literal["inherit", "plaintext-only", False, True]]
94
- | None = None,
95
- context_menu: Var[str] | str | None = None,
96
- dir: Var[str] | str | None = None,
97
- draggable: Var[bool] | bool | None = None,
98
- enter_key_hint: Literal[
99
- "done", "enter", "go", "next", "previous", "search", "send"
100
- ]
101
- | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
102
- | None = None,
103
- hidden: Var[bool] | bool | None = None,
104
- input_mode: Literal[
105
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
106
- ]
107
- | Var[
108
- Literal[
109
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
110
- ]
111
- ]
112
- | None = None,
113
- item_prop: Var[str] | str | None = None,
114
- lang: Var[str] | str | None = None,
115
- role: Literal[
116
- "alert",
117
- "alertdialog",
118
- "application",
119
- "article",
120
- "banner",
121
- "button",
122
- "cell",
123
- "checkbox",
124
- "columnheader",
125
- "combobox",
126
- "complementary",
127
- "contentinfo",
128
- "definition",
129
- "dialog",
130
- "directory",
131
- "document",
132
- "feed",
133
- "figure",
134
- "form",
135
- "grid",
136
- "gridcell",
137
- "group",
138
- "heading",
139
- "img",
140
- "link",
141
- "list",
142
- "listbox",
143
- "listitem",
144
- "log",
145
- "main",
146
- "marquee",
147
- "math",
148
- "menu",
149
- "menubar",
150
- "menuitem",
151
- "menuitemcheckbox",
152
- "menuitemradio",
153
- "navigation",
154
- "none",
155
- "note",
156
- "option",
157
- "presentation",
158
- "progressbar",
159
- "radio",
160
- "radiogroup",
161
- "region",
162
- "row",
163
- "rowgroup",
164
- "rowheader",
165
- "scrollbar",
166
- "search",
167
- "searchbox",
168
- "separator",
169
- "slider",
170
- "spinbutton",
171
- "status",
172
- "switch",
173
- "tab",
174
- "table",
175
- "tablist",
176
- "tabpanel",
177
- "term",
178
- "textbox",
179
- "timer",
180
- "toolbar",
181
- "tooltip",
182
- "tree",
183
- "treegrid",
184
- "treeitem",
185
- ]
186
- | Var[
187
- Literal[
188
- "alert",
189
- "alertdialog",
190
- "application",
191
- "article",
192
- "banner",
193
- "button",
194
- "cell",
195
- "checkbox",
196
- "columnheader",
197
- "combobox",
198
- "complementary",
199
- "contentinfo",
200
- "definition",
201
- "dialog",
202
- "directory",
203
- "document",
204
- "feed",
205
- "figure",
206
- "form",
207
- "grid",
208
- "gridcell",
209
- "group",
210
- "heading",
211
- "img",
212
- "link",
213
- "list",
214
- "listbox",
215
- "listitem",
216
- "log",
217
- "main",
218
- "marquee",
219
- "math",
220
- "menu",
221
- "menubar",
222
- "menuitem",
223
- "menuitemcheckbox",
224
- "menuitemradio",
225
- "navigation",
226
- "none",
227
- "note",
228
- "option",
229
- "presentation",
230
- "progressbar",
231
- "radio",
232
- "radiogroup",
233
- "region",
234
- "row",
235
- "rowgroup",
236
- "rowheader",
237
- "scrollbar",
238
- "search",
239
- "searchbox",
240
- "separator",
241
- "slider",
242
- "spinbutton",
243
- "status",
244
- "switch",
245
- "tab",
246
- "table",
247
- "tablist",
248
- "tabpanel",
249
- "term",
250
- "textbox",
251
- "timer",
252
- "toolbar",
253
- "tooltip",
254
- "tree",
255
- "treegrid",
256
- "treeitem",
257
- ]
258
- ]
259
- | None = None,
260
- slot: Var[str] | str | None = None,
261
- spell_check: Var[bool] | bool | None = None,
262
- tab_index: Var[int] | int | None = None,
263
- title: Var[str] | str | None = None,
264
- style: Sequence[Mapping[str, Any]]
265
- | Mapping[str, Any]
266
- | Var[Mapping[str, Any]]
267
- | Breakpoints
268
- | None = None,
269
- key: Any | None = None,
270
- id: Any | None = None,
271
- ref: Var | None = None,
272
- class_name: Any | None = None,
273
- custom_attrs: dict[str, Var | Any] | None = None,
274
93
  on_blur: EventType[()] | None = None,
275
94
  on_clear_server_errors: EventType[()] | None = None,
276
95
  on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
@@ -299,7 +118,6 @@ class FormRoot(FormComponent, HTMLForm):
299
118
  Args:
300
119
  *children: The children of the form.
301
120
  on_clear_server_errors: Fired when the errors are cleared.
302
- as_child: Change the default rendered element for the one passed as a child.
303
121
  accept: MIME types the server accepts for file upload
304
122
  accept_charset: Character encodings to be used for form submission
305
123
  action: URL where the form's data should be submitted
@@ -312,22 +130,6 @@ class FormRoot(FormComponent, HTMLForm):
312
130
  reset_on_submit: If true, the form will be cleared after submit.
313
131
  handle_submit_unique_name: The name used to make this form's submit handler function unique.
314
132
  on_submit: Fired when the form is submitted
315
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
316
- auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
317
- content_editable: Indicates whether the element's content is editable.
318
- context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
319
- dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
320
- draggable: Defines whether the element can be dragged.
321
- enter_key_hint: Hints what media types the media element is able to play.
322
- hidden: Defines whether the element is hidden.
323
- input_mode: Defines the type of the element.
324
- item_prop: Defines the name of the element for metadata purposes.
325
- lang: Defines the language used in the element.
326
- role: Defines the role of the element.
327
- slot: Assigns a slot in a shadow DOM shadow tree to an element.
328
- spell_check: Defines whether the element may be checked for spelling errors.
329
- tab_index: Defines the position of the current element in the tabbing order.
330
- title: Defines a tooltip for the element.
331
133
  style: The style of the component.
332
134
  key: A unique key for the component.
333
135
  id: The id for the component.
@@ -348,7 +150,6 @@ class FormField(FormComponent):
348
150
  *children,
349
151
  name: Var[str] | str | None = None,
350
152
  server_invalid: Var[bool] | bool | None = None,
351
- as_child: Var[bool] | bool | None = None,
352
153
  style: Sequence[Mapping[str, Any]]
353
154
  | Mapping[str, Any]
354
155
  | Var[Mapping[str, Any]]
@@ -383,7 +184,6 @@ class FormField(FormComponent):
383
184
  *children: The children of the component.
384
185
  name: The name of the form field, that is passed down to the control and used to match with validation messages.
385
186
  server_invalid: Flag to mark the form field as invalid, for server side validation.
386
- as_child: Change the default rendered element for the one passed as a child.
387
187
  style: The style of the component.
388
188
  key: A unique key for the component.
389
189
  id: The id for the component.
@@ -402,7 +202,6 @@ class FormLabel(FormComponent):
402
202
  def create(
403
203
  cls,
404
204
  *children,
405
- as_child: Var[bool] | bool | None = None,
406
205
  style: Sequence[Mapping[str, Any]]
407
206
  | Mapping[str, Any]
408
207
  | Var[Mapping[str, Any]]
@@ -435,7 +234,6 @@ class FormLabel(FormComponent):
435
234
 
436
235
  Args:
437
236
  *children: The children of the component.
438
- as_child: Change the default rendered element for the one passed as a child.
439
237
  style: The style of the component.
440
238
  key: A unique key for the component.
441
239
  id: The id for the component.
@@ -453,7 +251,6 @@ class FormControl(FormComponent):
453
251
  def create(
454
252
  cls,
455
253
  *children,
456
- as_child: Var[bool] | bool | None = None,
457
254
  style: Sequence[Mapping[str, Any]]
458
255
  | Mapping[str, Any]
459
256
  | Var[Mapping[str, Any]]
@@ -486,7 +283,6 @@ class FormControl(FormComponent):
486
283
 
487
284
  Args:
488
285
  *children: The children of the form.
489
- as_child: Change the default rendered element for the one passed as a child.
490
286
  style: The style of the component.
491
287
  key: A unique key for the component.
492
288
  id: The id for the component.
@@ -551,7 +347,6 @@ class FormMessage(FormComponent):
551
347
  ]
552
348
  | None = None,
553
349
  force_match: Var[bool] | bool | None = None,
554
- as_child: Var[bool] | bool | None = None,
555
350
  style: Sequence[Mapping[str, Any]]
556
351
  | Mapping[str, Any]
557
352
  | Var[Mapping[str, Any]]
@@ -587,7 +382,6 @@ class FormMessage(FormComponent):
587
382
  name: Used to target a specific field by name when rendering outside of a Field part.
588
383
  match: Used to indicate on which condition the message should be visible.
589
384
  force_match: Forces the message to be shown. This is useful when using server-side validation.
590
- as_child: Change the default rendered element for the one passed as a child.
591
385
  style: The style of the component.
592
386
  key: A unique key for the component.
593
387
  id: The id for the component.
@@ -605,7 +399,6 @@ class FormValidityState(FormComponent):
605
399
  def create(
606
400
  cls,
607
401
  *children,
608
- as_child: Var[bool] | bool | None = None,
609
402
  style: Sequence[Mapping[str, Any]]
610
403
  | Mapping[str, Any]
611
404
  | Var[Mapping[str, Any]]
@@ -638,7 +431,6 @@ class FormValidityState(FormComponent):
638
431
 
639
432
  Args:
640
433
  *children: The children of the component.
641
- as_child: Change the default rendered element for the one passed as a child.
642
434
  style: The style of the component.
643
435
  key: A unique key for the component.
644
436
  id: The id for the component.
@@ -656,7 +448,6 @@ class FormSubmit(FormComponent):
656
448
  def create(
657
449
  cls,
658
450
  *children,
659
- as_child: Var[bool] | bool | None = None,
660
451
  style: Sequence[Mapping[str, Any]]
661
452
  | Mapping[str, Any]
662
453
  | Var[Mapping[str, Any]]
@@ -689,7 +480,6 @@ class FormSubmit(FormComponent):
689
480
 
690
481
  Args:
691
482
  *children: The children of the component.
692
- as_child: Change the default rendered element for the one passed as a child.
693
483
  style: The style of the component.
694
484
  key: A unique key for the component.
695
485
  id: The id for the component.
@@ -707,7 +497,16 @@ class Form(FormRoot):
707
497
  def create(
708
498
  cls,
709
499
  *children,
710
- as_child: Var[bool] | bool | None = None,
500
+ style: Sequence[Mapping[str, Any]]
501
+ | Mapping[str, Any]
502
+ | Var[Mapping[str, Any]]
503
+ | Breakpoints
504
+ | None = None,
505
+ key: Any | None = None,
506
+ id: Any | None = None,
507
+ ref: Var | None = None,
508
+ class_name: Any | None = None,
509
+ custom_attrs: dict[str, Var | Any] | None = None,
711
510
  accept: Var[str] | str | None = None,
712
511
  accept_charset: Var[str] | str | None = None,
713
512
  action: Var[str] | str | None = None,
@@ -719,194 +518,6 @@ class Form(FormRoot):
719
518
  target: Var[str] | str | None = None,
720
519
  reset_on_submit: Var[bool] | bool | None = None,
721
520
  handle_submit_unique_name: Var[str] | str | None = None,
722
- access_key: Var[str] | str | None = None,
723
- auto_capitalize: Literal[
724
- "characters", "none", "off", "on", "sentences", "words"
725
- ]
726
- | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
727
- | None = None,
728
- content_editable: Literal["inherit", "plaintext-only", False, True]
729
- | Var[Literal["inherit", "plaintext-only", False, True]]
730
- | None = None,
731
- context_menu: Var[str] | str | None = None,
732
- dir: Var[str] | str | None = None,
733
- draggable: Var[bool] | bool | None = None,
734
- enter_key_hint: Literal[
735
- "done", "enter", "go", "next", "previous", "search", "send"
736
- ]
737
- | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
738
- | None = None,
739
- hidden: Var[bool] | bool | None = None,
740
- input_mode: Literal[
741
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
742
- ]
743
- | Var[
744
- Literal[
745
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
746
- ]
747
- ]
748
- | None = None,
749
- item_prop: Var[str] | str | None = None,
750
- lang: Var[str] | str | None = None,
751
- role: Literal[
752
- "alert",
753
- "alertdialog",
754
- "application",
755
- "article",
756
- "banner",
757
- "button",
758
- "cell",
759
- "checkbox",
760
- "columnheader",
761
- "combobox",
762
- "complementary",
763
- "contentinfo",
764
- "definition",
765
- "dialog",
766
- "directory",
767
- "document",
768
- "feed",
769
- "figure",
770
- "form",
771
- "grid",
772
- "gridcell",
773
- "group",
774
- "heading",
775
- "img",
776
- "link",
777
- "list",
778
- "listbox",
779
- "listitem",
780
- "log",
781
- "main",
782
- "marquee",
783
- "math",
784
- "menu",
785
- "menubar",
786
- "menuitem",
787
- "menuitemcheckbox",
788
- "menuitemradio",
789
- "navigation",
790
- "none",
791
- "note",
792
- "option",
793
- "presentation",
794
- "progressbar",
795
- "radio",
796
- "radiogroup",
797
- "region",
798
- "row",
799
- "rowgroup",
800
- "rowheader",
801
- "scrollbar",
802
- "search",
803
- "searchbox",
804
- "separator",
805
- "slider",
806
- "spinbutton",
807
- "status",
808
- "switch",
809
- "tab",
810
- "table",
811
- "tablist",
812
- "tabpanel",
813
- "term",
814
- "textbox",
815
- "timer",
816
- "toolbar",
817
- "tooltip",
818
- "tree",
819
- "treegrid",
820
- "treeitem",
821
- ]
822
- | Var[
823
- Literal[
824
- "alert",
825
- "alertdialog",
826
- "application",
827
- "article",
828
- "banner",
829
- "button",
830
- "cell",
831
- "checkbox",
832
- "columnheader",
833
- "combobox",
834
- "complementary",
835
- "contentinfo",
836
- "definition",
837
- "dialog",
838
- "directory",
839
- "document",
840
- "feed",
841
- "figure",
842
- "form",
843
- "grid",
844
- "gridcell",
845
- "group",
846
- "heading",
847
- "img",
848
- "link",
849
- "list",
850
- "listbox",
851
- "listitem",
852
- "log",
853
- "main",
854
- "marquee",
855
- "math",
856
- "menu",
857
- "menubar",
858
- "menuitem",
859
- "menuitemcheckbox",
860
- "menuitemradio",
861
- "navigation",
862
- "none",
863
- "note",
864
- "option",
865
- "presentation",
866
- "progressbar",
867
- "radio",
868
- "radiogroup",
869
- "region",
870
- "row",
871
- "rowgroup",
872
- "rowheader",
873
- "scrollbar",
874
- "search",
875
- "searchbox",
876
- "separator",
877
- "slider",
878
- "spinbutton",
879
- "status",
880
- "switch",
881
- "tab",
882
- "table",
883
- "tablist",
884
- "tabpanel",
885
- "term",
886
- "textbox",
887
- "timer",
888
- "toolbar",
889
- "tooltip",
890
- "tree",
891
- "treegrid",
892
- "treeitem",
893
- ]
894
- ]
895
- | None = None,
896
- slot: Var[str] | str | None = None,
897
- spell_check: Var[bool] | bool | None = None,
898
- tab_index: Var[int] | int | None = None,
899
- title: Var[str] | str | None = None,
900
- style: Sequence[Mapping[str, Any]]
901
- | Mapping[str, Any]
902
- | Var[Mapping[str, Any]]
903
- | Breakpoints
904
- | None = None,
905
- key: Any | None = None,
906
- id: Any | None = None,
907
- ref: Var | None = None,
908
- class_name: Any | None = None,
909
- custom_attrs: dict[str, Var | Any] | None = None,
910
521
  on_blur: EventType[()] | None = None,
911
522
  on_clear_server_errors: EventType[()] | None = None,
912
523
  on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
@@ -935,7 +546,6 @@ class Form(FormRoot):
935
546
  Args:
936
547
  *children: The children of the form.
937
548
  on_clear_server_errors: Fired when the errors are cleared.
938
- as_child: Change the default rendered element for the one passed as a child.
939
549
  accept: MIME types the server accepts for file upload
940
550
  accept_charset: Character encodings to be used for form submission
941
551
  action: URL where the form's data should be submitted
@@ -948,22 +558,6 @@ class Form(FormRoot):
948
558
  reset_on_submit: If true, the form will be cleared after submit.
949
559
  handle_submit_unique_name: The name used to make this form's submit handler function unique.
950
560
  on_submit: Fired when the form is submitted
951
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
952
- auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
953
- content_editable: Indicates whether the element's content is editable.
954
- context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
955
- dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
956
- draggable: Defines whether the element can be dragged.
957
- enter_key_hint: Hints what media types the media element is able to play.
958
- hidden: Defines whether the element is hidden.
959
- input_mode: Defines the type of the element.
960
- item_prop: Defines the name of the element for metadata purposes.
961
- lang: Defines the language used in the element.
962
- role: Defines the role of the element.
963
- slot: Assigns a slot in a shadow DOM shadow tree to an element.
964
- spell_check: Defines whether the element may be checked for spelling errors.
965
- tab_index: Defines the position of the current element in the tabbing order.
966
- title: Defines a tooltip for the element.
967
561
  style: The style of the component.
968
562
  key: A unique key for the component.
969
563
  id: The id for the component.
@@ -988,7 +582,16 @@ class FormNamespace(ComponentNamespace):
988
582
  @staticmethod
989
583
  def __call__(
990
584
  *children,
991
- as_child: Var[bool] | bool | None = None,
585
+ style: Sequence[Mapping[str, Any]]
586
+ | Mapping[str, Any]
587
+ | Var[Mapping[str, Any]]
588
+ | Breakpoints
589
+ | None = None,
590
+ key: Any | None = None,
591
+ id: Any | None = None,
592
+ ref: Var | None = None,
593
+ class_name: Any | None = None,
594
+ custom_attrs: dict[str, Var | Any] | None = None,
992
595
  accept: Var[str] | str | None = None,
993
596
  accept_charset: Var[str] | str | None = None,
994
597
  action: Var[str] | str | None = None,
@@ -1000,194 +603,6 @@ class FormNamespace(ComponentNamespace):
1000
603
  target: Var[str] | str | None = None,
1001
604
  reset_on_submit: Var[bool] | bool | None = None,
1002
605
  handle_submit_unique_name: Var[str] | str | None = None,
1003
- access_key: Var[str] | str | None = None,
1004
- auto_capitalize: Literal[
1005
- "characters", "none", "off", "on", "sentences", "words"
1006
- ]
1007
- | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
1008
- | None = None,
1009
- content_editable: Literal["inherit", "plaintext-only", False, True]
1010
- | Var[Literal["inherit", "plaintext-only", False, True]]
1011
- | None = None,
1012
- context_menu: Var[str] | str | None = None,
1013
- dir: Var[str] | str | None = None,
1014
- draggable: Var[bool] | bool | None = None,
1015
- enter_key_hint: Literal[
1016
- "done", "enter", "go", "next", "previous", "search", "send"
1017
- ]
1018
- | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
1019
- | None = None,
1020
- hidden: Var[bool] | bool | None = None,
1021
- input_mode: Literal[
1022
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
1023
- ]
1024
- | Var[
1025
- Literal[
1026
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
1027
- ]
1028
- ]
1029
- | None = None,
1030
- item_prop: Var[str] | str | None = None,
1031
- lang: Var[str] | str | None = None,
1032
- role: Literal[
1033
- "alert",
1034
- "alertdialog",
1035
- "application",
1036
- "article",
1037
- "banner",
1038
- "button",
1039
- "cell",
1040
- "checkbox",
1041
- "columnheader",
1042
- "combobox",
1043
- "complementary",
1044
- "contentinfo",
1045
- "definition",
1046
- "dialog",
1047
- "directory",
1048
- "document",
1049
- "feed",
1050
- "figure",
1051
- "form",
1052
- "grid",
1053
- "gridcell",
1054
- "group",
1055
- "heading",
1056
- "img",
1057
- "link",
1058
- "list",
1059
- "listbox",
1060
- "listitem",
1061
- "log",
1062
- "main",
1063
- "marquee",
1064
- "math",
1065
- "menu",
1066
- "menubar",
1067
- "menuitem",
1068
- "menuitemcheckbox",
1069
- "menuitemradio",
1070
- "navigation",
1071
- "none",
1072
- "note",
1073
- "option",
1074
- "presentation",
1075
- "progressbar",
1076
- "radio",
1077
- "radiogroup",
1078
- "region",
1079
- "row",
1080
- "rowgroup",
1081
- "rowheader",
1082
- "scrollbar",
1083
- "search",
1084
- "searchbox",
1085
- "separator",
1086
- "slider",
1087
- "spinbutton",
1088
- "status",
1089
- "switch",
1090
- "tab",
1091
- "table",
1092
- "tablist",
1093
- "tabpanel",
1094
- "term",
1095
- "textbox",
1096
- "timer",
1097
- "toolbar",
1098
- "tooltip",
1099
- "tree",
1100
- "treegrid",
1101
- "treeitem",
1102
- ]
1103
- | Var[
1104
- Literal[
1105
- "alert",
1106
- "alertdialog",
1107
- "application",
1108
- "article",
1109
- "banner",
1110
- "button",
1111
- "cell",
1112
- "checkbox",
1113
- "columnheader",
1114
- "combobox",
1115
- "complementary",
1116
- "contentinfo",
1117
- "definition",
1118
- "dialog",
1119
- "directory",
1120
- "document",
1121
- "feed",
1122
- "figure",
1123
- "form",
1124
- "grid",
1125
- "gridcell",
1126
- "group",
1127
- "heading",
1128
- "img",
1129
- "link",
1130
- "list",
1131
- "listbox",
1132
- "listitem",
1133
- "log",
1134
- "main",
1135
- "marquee",
1136
- "math",
1137
- "menu",
1138
- "menubar",
1139
- "menuitem",
1140
- "menuitemcheckbox",
1141
- "menuitemradio",
1142
- "navigation",
1143
- "none",
1144
- "note",
1145
- "option",
1146
- "presentation",
1147
- "progressbar",
1148
- "radio",
1149
- "radiogroup",
1150
- "region",
1151
- "row",
1152
- "rowgroup",
1153
- "rowheader",
1154
- "scrollbar",
1155
- "search",
1156
- "searchbox",
1157
- "separator",
1158
- "slider",
1159
- "spinbutton",
1160
- "status",
1161
- "switch",
1162
- "tab",
1163
- "table",
1164
- "tablist",
1165
- "tabpanel",
1166
- "term",
1167
- "textbox",
1168
- "timer",
1169
- "toolbar",
1170
- "tooltip",
1171
- "tree",
1172
- "treegrid",
1173
- "treeitem",
1174
- ]
1175
- ]
1176
- | None = None,
1177
- slot: Var[str] | str | None = None,
1178
- spell_check: Var[bool] | bool | None = None,
1179
- tab_index: Var[int] | int | None = None,
1180
- title: Var[str] | str | None = None,
1181
- style: Sequence[Mapping[str, Any]]
1182
- | Mapping[str, Any]
1183
- | Var[Mapping[str, Any]]
1184
- | Breakpoints
1185
- | None = None,
1186
- key: Any | None = None,
1187
- id: Any | None = None,
1188
- ref: Var | None = None,
1189
- class_name: Any | None = None,
1190
- custom_attrs: dict[str, Var | Any] | None = None,
1191
606
  on_blur: EventType[()] | None = None,
1192
607
  on_clear_server_errors: EventType[()] | None = None,
1193
608
  on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
@@ -1216,7 +631,6 @@ class FormNamespace(ComponentNamespace):
1216
631
  Args:
1217
632
  *children: The children of the form.
1218
633
  on_clear_server_errors: Fired when the errors are cleared.
1219
- as_child: Change the default rendered element for the one passed as a child.
1220
634
  accept: MIME types the server accepts for file upload
1221
635
  accept_charset: Character encodings to be used for form submission
1222
636
  action: URL where the form's data should be submitted
@@ -1229,22 +643,6 @@ class FormNamespace(ComponentNamespace):
1229
643
  reset_on_submit: If true, the form will be cleared after submit.
1230
644
  handle_submit_unique_name: The name used to make this form's submit handler function unique.
1231
645
  on_submit: Fired when the form is submitted
1232
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1233
- auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1234
- content_editable: Indicates whether the element's content is editable.
1235
- context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
1236
- dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
1237
- draggable: Defines whether the element can be dragged.
1238
- enter_key_hint: Hints what media types the media element is able to play.
1239
- hidden: Defines whether the element is hidden.
1240
- input_mode: Defines the type of the element.
1241
- item_prop: Defines the name of the element for metadata purposes.
1242
- lang: Defines the language used in the element.
1243
- role: Defines the role of the element.
1244
- slot: Assigns a slot in a shadow DOM shadow tree to an element.
1245
- spell_check: Defines whether the element may be checked for spelling errors.
1246
- tab_index: Defines the position of the current element in the tabbing order.
1247
- title: Defines a tooltip for the element.
1248
646
  style: The style of the component.
1249
647
  key: A unique key for the component.
1250
648
  id: The id for the component.