reflex 0.7.0a4__py3-none-any.whl → 0.7.1__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.
- reflex/.templates/jinja/web/package.json.jinja2 +7 -1
- reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +3 -1
- reflex/__init__.py +1 -0
- reflex/__init__.pyi +1 -0
- reflex/app.py +269 -86
- reflex/base.py +4 -10
- reflex/compiler/compiler.py +46 -12
- reflex/compiler/templates.py +1 -2
- reflex/compiler/utils.py +23 -14
- reflex/components/base/bare.py +109 -16
- reflex/components/component.py +179 -124
- reflex/components/core/__init__.py +1 -0
- reflex/components/core/__init__.pyi +1 -0
- reflex/components/core/auto_scroll.py +114 -0
- reflex/components/core/auto_scroll.pyi +284 -0
- reflex/components/core/banner.py +40 -9
- reflex/components/core/banner.pyi +400 -87
- reflex/components/core/breakpoints.py +1 -1
- reflex/components/core/cond.py +0 -8
- reflex/components/core/foreach.py +12 -2
- reflex/components/core/html.pyi +200 -19
- reflex/components/core/match.py +4 -4
- reflex/components/core/sticky.py +4 -30
- reflex/components/core/sticky.pyi +874 -90
- reflex/components/core/upload.py +3 -5
- reflex/components/core/upload.pyi +2 -4
- reflex/components/datadisplay/code.py +36 -10
- reflex/components/datadisplay/code.pyi +1 -1
- reflex/components/datadisplay/dataeditor.py +1 -3
- reflex/components/datadisplay/dataeditor.pyi +1 -3
- reflex/components/el/elements/base.py +95 -17
- reflex/components/el/elements/base.pyi +278 -19
- reflex/components/el/elements/forms.py +124 -102
- reflex/components/el/elements/forms.pyi +2787 -365
- reflex/components/el/elements/inline.py +24 -15
- reflex/components/el/elements/inline.pyi +5655 -546
- reflex/components/el/elements/media.py +79 -95
- reflex/components/el/elements/media.pyi +5167 -565
- reflex/components/el/elements/metadata.py +19 -17
- reflex/components/el/elements/metadata.pyi +841 -89
- reflex/components/el/elements/other.py +3 -5
- reflex/components/el/elements/other.pyi +1404 -137
- reflex/components/el/elements/scripts.py +10 -13
- reflex/components/el/elements/scripts.pyi +634 -65
- reflex/components/el/elements/sectioning.pyi +3001 -286
- reflex/components/el/elements/tables.py +14 -35
- reflex/components/el/elements/tables.pyi +2029 -218
- reflex/components/el/elements/typography.py +10 -13
- reflex/components/el/elements/typography.pyi +3014 -297
- reflex/components/lucide/icon.py +22 -6
- reflex/components/markdown/markdown.py +30 -10
- reflex/components/markdown/markdown.pyi +3 -2
- reflex/components/plotly/plotly.py +1 -3
- reflex/components/plotly/plotly.pyi +1 -3
- reflex/components/radix/primitives/form.pyi +624 -93
- reflex/components/radix/themes/color_mode.py +1 -1
- reflex/components/radix/themes/color_mode.pyi +213 -31
- reflex/components/radix/themes/components/alert_dialog.pyi +199 -18
- reflex/components/radix/themes/components/badge.pyi +199 -18
- reflex/components/radix/themes/components/button.pyi +213 -31
- reflex/components/radix/themes/components/callout.pyi +1000 -95
- reflex/components/radix/themes/components/card.pyi +199 -18
- reflex/components/radix/themes/components/context_menu.py +79 -1
- reflex/components/radix/themes/components/context_menu.pyi +320 -1
- reflex/components/radix/themes/components/dialog.pyi +199 -18
- reflex/components/radix/themes/components/hover_card.pyi +199 -18
- reflex/components/radix/themes/components/icon_button.pyi +213 -31
- reflex/components/radix/themes/components/inset.pyi +199 -18
- reflex/components/radix/themes/components/popover.pyi +199 -18
- reflex/components/radix/themes/components/table.pyi +1437 -154
- reflex/components/radix/themes/components/text_area.py +2 -2
- reflex/components/radix/themes/components/text_area.pyi +201 -20
- reflex/components/radix/themes/components/text_field.py +1 -1
- reflex/components/radix/themes/components/text_field.pyi +444 -88
- reflex/components/radix/themes/layout/box.pyi +200 -19
- reflex/components/radix/themes/layout/center.pyi +199 -18
- reflex/components/radix/themes/layout/container.pyi +199 -18
- reflex/components/radix/themes/layout/flex.pyi +199 -18
- reflex/components/radix/themes/layout/grid.pyi +199 -18
- reflex/components/radix/themes/layout/list.pyi +604 -57
- reflex/components/radix/themes/layout/section.pyi +199 -18
- reflex/components/radix/themes/layout/spacer.pyi +199 -18
- reflex/components/radix/themes/layout/stack.pyi +597 -54
- reflex/components/radix/themes/typography/blockquote.pyi +200 -19
- reflex/components/radix/themes/typography/code.pyi +199 -18
- reflex/components/radix/themes/typography/heading.pyi +199 -18
- reflex/components/radix/themes/typography/link.pyi +238 -28
- reflex/components/radix/themes/typography/text.pyi +1394 -127
- reflex/components/react_player/react_player.py +1 -1
- reflex/components/react_player/react_player.pyi +1 -3
- reflex/components/sonner/toast.py +41 -12
- reflex/components/sonner/toast.pyi +20 -6
- reflex/components/tags/iter_tag.py +4 -0
- reflex/components/tags/tag.py +3 -3
- reflex/config.py +187 -28
- reflex/constants/__init__.py +2 -0
- reflex/constants/base.py +6 -0
- reflex/constants/compiler.py +9 -0
- reflex/constants/event.py +1 -0
- reflex/constants/installer.py +8 -5
- reflex/constants/utils.py +1 -3
- reflex/event.py +7 -16
- reflex/experimental/layout.pyi +597 -54
- reflex/py.typed +0 -0
- reflex/reflex.py +44 -48
- reflex/state.py +49 -44
- reflex/style.py +15 -22
- reflex/testing.py +2 -0
- reflex/utils/build.py +12 -0
- reflex/utils/console.py +4 -0
- reflex/utils/decorator.py +25 -0
- reflex/utils/exec.py +92 -34
- reflex/utils/format.py +35 -6
- reflex/utils/path_ops.py +32 -1
- reflex/utils/prerequisites.py +45 -35
- reflex/utils/processes.py +12 -13
- reflex/utils/serializers.py +20 -43
- reflex/utils/telemetry.py +4 -15
- reflex/utils/types.py +36 -66
- reflex/vars/base.py +53 -76
- reflex/vars/function.py +17 -5
- reflex/vars/number.py +1 -1
- reflex/vars/sequence.py +80 -4
- {reflex-0.7.0a4.dist-info → reflex-0.7.1.dist-info}/METADATA +4 -5
- {reflex-0.7.0a4.dist-info → reflex-0.7.1.dist-info}/RECORD +128 -124
- {reflex-0.7.0a4.dist-info → reflex-0.7.1.dist-info}/LICENSE +0 -0
- {reflex-0.7.0a4.dist-info → reflex-0.7.1.dist-info}/WHEEL +0 -0
- {reflex-0.7.0a4.dist-info → reflex-0.7.1.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[
|
|
123
|
-
accept: Optional[Union[Var[
|
|
124
|
-
alt: Optional[Union[Var[
|
|
125
|
-
auto_focus: Optional[Union[Var[
|
|
126
|
-
capture: Optional[
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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[
|
|
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[
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
Union[
|
|
155
|
+
Literal["inherit", "plaintext-only", False, True],
|
|
156
|
+
Var[Literal["inherit", "plaintext-only", False, True]],
|
|
157
|
+
]
|
|
156
158
|
] = None,
|
|
157
|
-
|
|
158
|
-
|
|
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[
|
|
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
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
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[
|
|
490
|
-
accept: Optional[Union[Var[
|
|
491
|
-
alt: Optional[Union[Var[
|
|
492
|
-
auto_focus: Optional[Union[Var[
|
|
493
|
-
capture: Optional[
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
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
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
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[
|
|
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[
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
699
|
+
Union[
|
|
700
|
+
Literal["inherit", "plaintext-only", False, True],
|
|
701
|
+
Var[Literal["inherit", "plaintext-only", False, True]],
|
|
702
|
+
]
|
|
523
703
|
] = None,
|
|
524
|
-
|
|
525
|
-
|
|
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[
|
|
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
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
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.
|