reflex 0.7.0a4__py3-none-any.whl → 0.7.1a1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of reflex might be problematic. Click here for more details.

Files changed (127) hide show
  1. reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +3 -1
  2. reflex/__init__.py +1 -0
  3. reflex/__init__.pyi +1 -0
  4. reflex/app.py +251 -68
  5. reflex/base.py +4 -10
  6. reflex/compiler/compiler.py +46 -12
  7. reflex/compiler/templates.py +1 -2
  8. reflex/compiler/utils.py +23 -14
  9. reflex/components/base/bare.py +109 -16
  10. reflex/components/component.py +179 -124
  11. reflex/components/core/__init__.py +1 -0
  12. reflex/components/core/__init__.pyi +1 -0
  13. reflex/components/core/auto_scroll.py +111 -0
  14. reflex/components/core/auto_scroll.pyi +284 -0
  15. reflex/components/core/banner.py +35 -5
  16. reflex/components/core/banner.pyi +398 -36
  17. reflex/components/core/breakpoints.py +1 -1
  18. reflex/components/core/cond.py +0 -8
  19. reflex/components/core/foreach.py +12 -2
  20. reflex/components/core/html.pyi +200 -19
  21. reflex/components/core/match.py +4 -4
  22. reflex/components/core/sticky.py +4 -30
  23. reflex/components/core/sticky.pyi +874 -90
  24. reflex/components/core/upload.py +3 -5
  25. reflex/components/core/upload.pyi +2 -4
  26. reflex/components/datadisplay/code.py +36 -10
  27. reflex/components/datadisplay/code.pyi +1 -1
  28. reflex/components/datadisplay/dataeditor.py +1 -3
  29. reflex/components/datadisplay/dataeditor.pyi +1 -3
  30. reflex/components/el/elements/base.py +95 -17
  31. reflex/components/el/elements/base.pyi +278 -19
  32. reflex/components/el/elements/forms.py +124 -102
  33. reflex/components/el/elements/forms.pyi +2787 -365
  34. reflex/components/el/elements/inline.py +24 -15
  35. reflex/components/el/elements/inline.pyi +5655 -546
  36. reflex/components/el/elements/media.py +79 -95
  37. reflex/components/el/elements/media.pyi +5167 -565
  38. reflex/components/el/elements/metadata.py +19 -17
  39. reflex/components/el/elements/metadata.pyi +841 -89
  40. reflex/components/el/elements/other.py +3 -5
  41. reflex/components/el/elements/other.pyi +1404 -137
  42. reflex/components/el/elements/scripts.py +10 -13
  43. reflex/components/el/elements/scripts.pyi +634 -65
  44. reflex/components/el/elements/sectioning.pyi +3001 -286
  45. reflex/components/el/elements/tables.py +14 -35
  46. reflex/components/el/elements/tables.pyi +2029 -218
  47. reflex/components/el/elements/typography.py +10 -13
  48. reflex/components/el/elements/typography.pyi +3014 -297
  49. reflex/components/lucide/icon.py +22 -6
  50. reflex/components/markdown/markdown.py +30 -10
  51. reflex/components/markdown/markdown.pyi +3 -2
  52. reflex/components/plotly/plotly.py +1 -3
  53. reflex/components/plotly/plotly.pyi +1 -3
  54. reflex/components/radix/primitives/form.pyi +624 -93
  55. reflex/components/radix/themes/color_mode.py +1 -1
  56. reflex/components/radix/themes/color_mode.pyi +213 -31
  57. reflex/components/radix/themes/components/alert_dialog.pyi +199 -18
  58. reflex/components/radix/themes/components/badge.pyi +199 -18
  59. reflex/components/radix/themes/components/button.pyi +213 -31
  60. reflex/components/radix/themes/components/callout.pyi +1000 -95
  61. reflex/components/radix/themes/components/card.pyi +199 -18
  62. reflex/components/radix/themes/components/context_menu.py +79 -1
  63. reflex/components/radix/themes/components/context_menu.pyi +320 -1
  64. reflex/components/radix/themes/components/dialog.pyi +199 -18
  65. reflex/components/radix/themes/components/hover_card.pyi +199 -18
  66. reflex/components/radix/themes/components/icon_button.pyi +213 -31
  67. reflex/components/radix/themes/components/inset.pyi +199 -18
  68. reflex/components/radix/themes/components/popover.pyi +199 -18
  69. reflex/components/radix/themes/components/table.pyi +1437 -154
  70. reflex/components/radix/themes/components/text_area.py +2 -2
  71. reflex/components/radix/themes/components/text_area.pyi +201 -20
  72. reflex/components/radix/themes/components/text_field.py +1 -1
  73. reflex/components/radix/themes/components/text_field.pyi +444 -88
  74. reflex/components/radix/themes/layout/box.pyi +200 -19
  75. reflex/components/radix/themes/layout/center.pyi +199 -18
  76. reflex/components/radix/themes/layout/container.pyi +199 -18
  77. reflex/components/radix/themes/layout/flex.pyi +199 -18
  78. reflex/components/radix/themes/layout/grid.pyi +199 -18
  79. reflex/components/radix/themes/layout/list.pyi +604 -57
  80. reflex/components/radix/themes/layout/section.pyi +199 -18
  81. reflex/components/radix/themes/layout/spacer.pyi +199 -18
  82. reflex/components/radix/themes/layout/stack.pyi +597 -54
  83. reflex/components/radix/themes/typography/blockquote.pyi +200 -19
  84. reflex/components/radix/themes/typography/code.pyi +199 -18
  85. reflex/components/radix/themes/typography/heading.pyi +199 -18
  86. reflex/components/radix/themes/typography/link.pyi +238 -28
  87. reflex/components/radix/themes/typography/text.pyi +1394 -127
  88. reflex/components/react_player/react_player.py +1 -1
  89. reflex/components/react_player/react_player.pyi +1 -3
  90. reflex/components/sonner/toast.py +19 -1
  91. reflex/components/sonner/toast.pyi +10 -1
  92. reflex/components/tags/iter_tag.py +4 -0
  93. reflex/components/tags/tag.py +3 -3
  94. reflex/config.py +187 -28
  95. reflex/constants/__init__.py +2 -0
  96. reflex/constants/base.py +6 -0
  97. reflex/constants/compiler.py +9 -0
  98. reflex/constants/event.py +1 -0
  99. reflex/constants/installer.py +4 -5
  100. reflex/constants/utils.py +1 -3
  101. reflex/event.py +7 -16
  102. reflex/experimental/layout.pyi +597 -54
  103. reflex/py.typed +0 -0
  104. reflex/reflex.py +44 -48
  105. reflex/state.py +49 -44
  106. reflex/style.py +6 -4
  107. reflex/testing.py +2 -0
  108. reflex/utils/build.py +12 -0
  109. reflex/utils/console.py +4 -0
  110. reflex/utils/decorator.py +25 -0
  111. reflex/utils/exec.py +92 -34
  112. reflex/utils/format.py +35 -6
  113. reflex/utils/path_ops.py +32 -1
  114. reflex/utils/prerequisites.py +54 -10
  115. reflex/utils/processes.py +12 -13
  116. reflex/utils/serializers.py +20 -43
  117. reflex/utils/telemetry.py +4 -15
  118. reflex/utils/types.py +36 -66
  119. reflex/vars/base.py +53 -76
  120. reflex/vars/function.py +17 -5
  121. reflex/vars/number.py +1 -1
  122. reflex/vars/sequence.py +80 -4
  123. {reflex-0.7.0a4.dist-info → reflex-0.7.1a1.dist-info}/METADATA +4 -5
  124. {reflex-0.7.0a4.dist-info → reflex-0.7.1a1.dist-info}/RECORD +127 -123
  125. {reflex-0.7.0a4.dist-info → reflex-0.7.1a1.dist-info}/LICENSE +0 -0
  126. {reflex-0.7.0a4.dist-info → reflex-0.7.1a1.dist-info}/WHEEL +0 -0
  127. {reflex-0.7.0a4.dist-info → reflex-0.7.1a1.dist-info}/entry_points.txt +0 -0
@@ -119,55 +119,235 @@ class TextFieldRoot(elements.Input, RadixThemesComponent):
119
119
  required: Optional[Union[Var[bool], bool]] = None,
120
120
  type: Optional[Union[Var[str], str]] = None,
121
121
  value: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
122
- list: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
123
- accept: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
124
- alt: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
125
- auto_focus: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
126
- capture: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
127
- checked: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
128
- default_checked: Optional[Union[Var[bool], bool]] = None,
129
- dirname: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
130
- form: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
131
- form_action: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
132
- form_enc_type: Optional[
133
- Union[Var[Union[bool, int, str]], bool, int, str]
134
- ] = None,
135
- form_method: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
136
- form_no_validate: Optional[
137
- Union[Var[Union[bool, int, str]], bool, int, str]
122
+ list: Optional[Union[Var[str], str]] = None,
123
+ accept: Optional[Union[Var[str], str]] = None,
124
+ alt: Optional[Union[Var[str], str]] = None,
125
+ auto_focus: Optional[Union[Var[bool], bool]] = None,
126
+ capture: Optional[
127
+ Union[
128
+ Literal["environment", "user", False, True],
129
+ Var[Literal["environment", "user", False, True]],
130
+ ]
138
131
  ] = None,
139
- form_target: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
140
- max: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
141
- min: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
142
- multiple: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
143
- pattern: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
144
- src: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
145
- step: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
146
- use_map: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
147
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
132
+ checked: Optional[Union[Var[bool], bool]] = None,
133
+ default_checked: Optional[Union[Var[bool], bool]] = None,
134
+ form: Optional[Union[Var[str], str]] = None,
135
+ form_action: Optional[Union[Var[str], str]] = None,
136
+ form_enc_type: Optional[Union[Var[str], str]] = None,
137
+ form_method: Optional[Union[Var[str], str]] = None,
138
+ form_no_validate: Optional[Union[Var[bool], bool]] = None,
139
+ form_target: Optional[Union[Var[str], str]] = None,
140
+ max: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
141
+ min: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
142
+ multiple: Optional[Union[Var[bool], bool]] = None,
143
+ pattern: Optional[Union[Var[str], str]] = None,
144
+ src: Optional[Union[Var[str], str]] = None,
145
+ step: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
146
+ access_key: Optional[Union[Var[str], str]] = None,
148
147
  auto_capitalize: Optional[
149
- Union[Var[Union[bool, int, str]], bool, int, str]
148
+ Union[
149
+ Literal["characters", "none", "off", "on", "sentences", "words"],
150
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
151
+ ]
150
152
  ] = None,
151
153
  content_editable: Optional[
152
- Union[Var[Union[bool, int, str]], bool, int, str]
153
- ] = None,
154
- context_menu: Optional[
155
- Union[Var[Union[bool, int, str]], bool, int, str]
154
+ Union[
155
+ Literal["inherit", "plaintext-only", False, True],
156
+ Var[Literal["inherit", "plaintext-only", False, True]],
157
+ ]
156
158
  ] = None,
157
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
158
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
159
+ context_menu: Optional[Union[Var[str], str]] = None,
160
+ dir: Optional[Union[Var[str], str]] = None,
161
+ draggable: Optional[Union[Var[bool], bool]] = None,
159
162
  enter_key_hint: Optional[
160
- Union[Var[Union[bool, int, str]], bool, int, str]
163
+ Union[
164
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
165
+ Var[
166
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
167
+ ],
168
+ ]
169
+ ] = None,
170
+ hidden: Optional[Union[Var[bool], bool]] = None,
171
+ input_mode: Optional[
172
+ Union[
173
+ Literal[
174
+ "decimal",
175
+ "email",
176
+ "none",
177
+ "numeric",
178
+ "search",
179
+ "tel",
180
+ "text",
181
+ "url",
182
+ ],
183
+ Var[
184
+ Literal[
185
+ "decimal",
186
+ "email",
187
+ "none",
188
+ "numeric",
189
+ "search",
190
+ "tel",
191
+ "text",
192
+ "url",
193
+ ]
194
+ ],
195
+ ]
196
+ ] = None,
197
+ item_prop: Optional[Union[Var[str], str]] = None,
198
+ lang: Optional[Union[Var[str], str]] = None,
199
+ role: Optional[
200
+ Union[
201
+ Literal[
202
+ "alert",
203
+ "alertdialog",
204
+ "application",
205
+ "article",
206
+ "banner",
207
+ "button",
208
+ "cell",
209
+ "checkbox",
210
+ "columnheader",
211
+ "combobox",
212
+ "complementary",
213
+ "contentinfo",
214
+ "definition",
215
+ "dialog",
216
+ "directory",
217
+ "document",
218
+ "feed",
219
+ "figure",
220
+ "form",
221
+ "grid",
222
+ "gridcell",
223
+ "group",
224
+ "heading",
225
+ "img",
226
+ "link",
227
+ "list",
228
+ "listbox",
229
+ "listitem",
230
+ "log",
231
+ "main",
232
+ "marquee",
233
+ "math",
234
+ "menu",
235
+ "menubar",
236
+ "menuitem",
237
+ "menuitemcheckbox",
238
+ "menuitemradio",
239
+ "navigation",
240
+ "none",
241
+ "note",
242
+ "option",
243
+ "presentation",
244
+ "progressbar",
245
+ "radio",
246
+ "radiogroup",
247
+ "region",
248
+ "row",
249
+ "rowgroup",
250
+ "rowheader",
251
+ "scrollbar",
252
+ "search",
253
+ "searchbox",
254
+ "separator",
255
+ "slider",
256
+ "spinbutton",
257
+ "status",
258
+ "switch",
259
+ "tab",
260
+ "table",
261
+ "tablist",
262
+ "tabpanel",
263
+ "term",
264
+ "textbox",
265
+ "timer",
266
+ "toolbar",
267
+ "tooltip",
268
+ "tree",
269
+ "treegrid",
270
+ "treeitem",
271
+ ],
272
+ Var[
273
+ Literal[
274
+ "alert",
275
+ "alertdialog",
276
+ "application",
277
+ "article",
278
+ "banner",
279
+ "button",
280
+ "cell",
281
+ "checkbox",
282
+ "columnheader",
283
+ "combobox",
284
+ "complementary",
285
+ "contentinfo",
286
+ "definition",
287
+ "dialog",
288
+ "directory",
289
+ "document",
290
+ "feed",
291
+ "figure",
292
+ "form",
293
+ "grid",
294
+ "gridcell",
295
+ "group",
296
+ "heading",
297
+ "img",
298
+ "link",
299
+ "list",
300
+ "listbox",
301
+ "listitem",
302
+ "log",
303
+ "main",
304
+ "marquee",
305
+ "math",
306
+ "menu",
307
+ "menubar",
308
+ "menuitem",
309
+ "menuitemcheckbox",
310
+ "menuitemradio",
311
+ "navigation",
312
+ "none",
313
+ "note",
314
+ "option",
315
+ "presentation",
316
+ "progressbar",
317
+ "radio",
318
+ "radiogroup",
319
+ "region",
320
+ "row",
321
+ "rowgroup",
322
+ "rowheader",
323
+ "scrollbar",
324
+ "search",
325
+ "searchbox",
326
+ "separator",
327
+ "slider",
328
+ "spinbutton",
329
+ "status",
330
+ "switch",
331
+ "tab",
332
+ "table",
333
+ "tablist",
334
+ "tabpanel",
335
+ "term",
336
+ "textbox",
337
+ "timer",
338
+ "toolbar",
339
+ "tooltip",
340
+ "tree",
341
+ "treegrid",
342
+ "treeitem",
343
+ ]
344
+ ],
345
+ ]
161
346
  ] = None,
162
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
163
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
164
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
165
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
166
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
167
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
168
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
169
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
170
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
347
+ slot: Optional[Union[Var[str], str]] = None,
348
+ spell_check: Optional[Union[Var[bool], bool]] = None,
349
+ tab_index: Optional[Union[Var[int], int]] = None,
350
+ title: Optional[Union[Var[str], str]] = None,
171
351
  style: Optional[Style] = None,
172
352
  key: Optional[Any] = None,
173
353
  id: Optional[Any] = None,
@@ -229,7 +409,6 @@ class TextFieldRoot(elements.Input, RadixThemesComponent):
229
409
  capture: Captures media from the user (camera or microphone)
230
410
  checked: Indicates whether the input is checked (for checkboxes and radio buttons)
231
411
  default_checked: The initial value (for checkboxes and radio buttons)
232
- dirname: Name part of the input to submit in 'dir' and 'name' pair when form is submitted
233
412
  form: Associates the input with a form (by id)
234
413
  form_action: URL to send the form data to (for type="submit" buttons)
235
414
  form_enc_type: How the form data should be encoded when submitting to the server (for type="submit" buttons)
@@ -242,7 +421,6 @@ class TextFieldRoot(elements.Input, RadixThemesComponent):
242
421
  pattern: Regex pattern the input's value must match to be valid
243
422
  src: URL for image inputs
244
423
  step: Specifies the legal number intervals for an input
245
- use_map: Name of the image map used with the input
246
424
  access_key: Provides a hint for generating a keyboard shortcut for the current element.
247
425
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
248
426
  content_editable: Indicates whether the element's content is editable.
@@ -486,55 +664,235 @@ class TextField(ComponentNamespace):
486
664
  required: Optional[Union[Var[bool], bool]] = None,
487
665
  type: Optional[Union[Var[str], str]] = None,
488
666
  value: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
489
- list: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
490
- accept: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
491
- alt: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
492
- auto_focus: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
493
- capture: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
494
- checked: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
495
- default_checked: Optional[Union[Var[bool], bool]] = None,
496
- dirname: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
497
- form: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
498
- form_action: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
499
- form_enc_type: Optional[
500
- Union[Var[Union[bool, int, str]], bool, int, str]
501
- ] = None,
502
- form_method: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
503
- form_no_validate: Optional[
504
- Union[Var[Union[bool, int, str]], bool, int, str]
667
+ list: Optional[Union[Var[str], str]] = None,
668
+ accept: Optional[Union[Var[str], str]] = None,
669
+ alt: Optional[Union[Var[str], str]] = None,
670
+ auto_focus: Optional[Union[Var[bool], bool]] = None,
671
+ capture: Optional[
672
+ Union[
673
+ Literal["environment", "user", False, True],
674
+ Var[Literal["environment", "user", False, True]],
675
+ ]
505
676
  ] = None,
506
- form_target: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
507
- max: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
508
- min: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
509
- multiple: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
510
- pattern: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
511
- src: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
512
- step: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
513
- use_map: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
514
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
677
+ checked: Optional[Union[Var[bool], bool]] = None,
678
+ default_checked: Optional[Union[Var[bool], bool]] = None,
679
+ form: Optional[Union[Var[str], str]] = None,
680
+ form_action: Optional[Union[Var[str], str]] = None,
681
+ form_enc_type: Optional[Union[Var[str], str]] = None,
682
+ form_method: Optional[Union[Var[str], str]] = None,
683
+ form_no_validate: Optional[Union[Var[bool], bool]] = None,
684
+ form_target: Optional[Union[Var[str], str]] = None,
685
+ max: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
686
+ min: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
687
+ multiple: Optional[Union[Var[bool], bool]] = None,
688
+ pattern: Optional[Union[Var[str], str]] = None,
689
+ src: Optional[Union[Var[str], str]] = None,
690
+ step: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
691
+ access_key: Optional[Union[Var[str], str]] = None,
515
692
  auto_capitalize: Optional[
516
- Union[Var[Union[bool, int, str]], bool, int, str]
693
+ Union[
694
+ Literal["characters", "none", "off", "on", "sentences", "words"],
695
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
696
+ ]
517
697
  ] = None,
518
698
  content_editable: Optional[
519
- Union[Var[Union[bool, int, str]], bool, int, str]
520
- ] = None,
521
- context_menu: Optional[
522
- Union[Var[Union[bool, int, str]], bool, int, str]
699
+ Union[
700
+ Literal["inherit", "plaintext-only", False, True],
701
+ Var[Literal["inherit", "plaintext-only", False, True]],
702
+ ]
523
703
  ] = None,
524
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
525
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
704
+ context_menu: Optional[Union[Var[str], str]] = None,
705
+ dir: Optional[Union[Var[str], str]] = None,
706
+ draggable: Optional[Union[Var[bool], bool]] = None,
526
707
  enter_key_hint: Optional[
527
- Union[Var[Union[bool, int, str]], bool, int, str]
708
+ Union[
709
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
710
+ Var[
711
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
712
+ ],
713
+ ]
714
+ ] = None,
715
+ hidden: Optional[Union[Var[bool], bool]] = None,
716
+ input_mode: Optional[
717
+ Union[
718
+ Literal[
719
+ "decimal",
720
+ "email",
721
+ "none",
722
+ "numeric",
723
+ "search",
724
+ "tel",
725
+ "text",
726
+ "url",
727
+ ],
728
+ Var[
729
+ Literal[
730
+ "decimal",
731
+ "email",
732
+ "none",
733
+ "numeric",
734
+ "search",
735
+ "tel",
736
+ "text",
737
+ "url",
738
+ ]
739
+ ],
740
+ ]
741
+ ] = None,
742
+ item_prop: Optional[Union[Var[str], str]] = None,
743
+ lang: Optional[Union[Var[str], str]] = None,
744
+ role: Optional[
745
+ Union[
746
+ Literal[
747
+ "alert",
748
+ "alertdialog",
749
+ "application",
750
+ "article",
751
+ "banner",
752
+ "button",
753
+ "cell",
754
+ "checkbox",
755
+ "columnheader",
756
+ "combobox",
757
+ "complementary",
758
+ "contentinfo",
759
+ "definition",
760
+ "dialog",
761
+ "directory",
762
+ "document",
763
+ "feed",
764
+ "figure",
765
+ "form",
766
+ "grid",
767
+ "gridcell",
768
+ "group",
769
+ "heading",
770
+ "img",
771
+ "link",
772
+ "list",
773
+ "listbox",
774
+ "listitem",
775
+ "log",
776
+ "main",
777
+ "marquee",
778
+ "math",
779
+ "menu",
780
+ "menubar",
781
+ "menuitem",
782
+ "menuitemcheckbox",
783
+ "menuitemradio",
784
+ "navigation",
785
+ "none",
786
+ "note",
787
+ "option",
788
+ "presentation",
789
+ "progressbar",
790
+ "radio",
791
+ "radiogroup",
792
+ "region",
793
+ "row",
794
+ "rowgroup",
795
+ "rowheader",
796
+ "scrollbar",
797
+ "search",
798
+ "searchbox",
799
+ "separator",
800
+ "slider",
801
+ "spinbutton",
802
+ "status",
803
+ "switch",
804
+ "tab",
805
+ "table",
806
+ "tablist",
807
+ "tabpanel",
808
+ "term",
809
+ "textbox",
810
+ "timer",
811
+ "toolbar",
812
+ "tooltip",
813
+ "tree",
814
+ "treegrid",
815
+ "treeitem",
816
+ ],
817
+ Var[
818
+ Literal[
819
+ "alert",
820
+ "alertdialog",
821
+ "application",
822
+ "article",
823
+ "banner",
824
+ "button",
825
+ "cell",
826
+ "checkbox",
827
+ "columnheader",
828
+ "combobox",
829
+ "complementary",
830
+ "contentinfo",
831
+ "definition",
832
+ "dialog",
833
+ "directory",
834
+ "document",
835
+ "feed",
836
+ "figure",
837
+ "form",
838
+ "grid",
839
+ "gridcell",
840
+ "group",
841
+ "heading",
842
+ "img",
843
+ "link",
844
+ "list",
845
+ "listbox",
846
+ "listitem",
847
+ "log",
848
+ "main",
849
+ "marquee",
850
+ "math",
851
+ "menu",
852
+ "menubar",
853
+ "menuitem",
854
+ "menuitemcheckbox",
855
+ "menuitemradio",
856
+ "navigation",
857
+ "none",
858
+ "note",
859
+ "option",
860
+ "presentation",
861
+ "progressbar",
862
+ "radio",
863
+ "radiogroup",
864
+ "region",
865
+ "row",
866
+ "rowgroup",
867
+ "rowheader",
868
+ "scrollbar",
869
+ "search",
870
+ "searchbox",
871
+ "separator",
872
+ "slider",
873
+ "spinbutton",
874
+ "status",
875
+ "switch",
876
+ "tab",
877
+ "table",
878
+ "tablist",
879
+ "tabpanel",
880
+ "term",
881
+ "textbox",
882
+ "timer",
883
+ "toolbar",
884
+ "tooltip",
885
+ "tree",
886
+ "treegrid",
887
+ "treeitem",
888
+ ]
889
+ ],
890
+ ]
528
891
  ] = None,
529
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
530
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
531
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
532
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
533
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
534
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
535
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
536
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
537
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
892
+ slot: Optional[Union[Var[str], str]] = None,
893
+ spell_check: Optional[Union[Var[bool], bool]] = None,
894
+ tab_index: Optional[Union[Var[int], int]] = None,
895
+ title: Optional[Union[Var[str], str]] = None,
538
896
  style: Optional[Style] = None,
539
897
  key: Optional[Any] = None,
540
898
  id: Optional[Any] = None,
@@ -596,7 +954,6 @@ class TextField(ComponentNamespace):
596
954
  capture: Captures media from the user (camera or microphone)
597
955
  checked: Indicates whether the input is checked (for checkboxes and radio buttons)
598
956
  default_checked: The initial value (for checkboxes and radio buttons)
599
- dirname: Name part of the input to submit in 'dir' and 'name' pair when form is submitted
600
957
  form: Associates the input with a form (by id)
601
958
  form_action: URL to send the form data to (for type="submit" buttons)
602
959
  form_enc_type: How the form data should be encoded when submitting to the server (for type="submit" buttons)
@@ -609,7 +966,6 @@ class TextField(ComponentNamespace):
609
966
  pattern: Regex pattern the input's value must match to be valid
610
967
  src: URL for image inputs
611
968
  step: Specifies the legal number intervals for an input
612
- use_map: Name of the image map used with the input
613
969
  access_key: Provides a hint for generating a keyboard shortcut for the current element.
614
970
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
615
971
  content_editable: Indicates whether the element's content is editable.