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.
- reflex/.templates/web/utils/state.js +68 -8
- reflex/app.py +45 -51
- reflex/app_mixins/lifespan.py +12 -5
- reflex/base.py +1 -0
- reflex/compiler/compiler.py +4 -6
- reflex/compiler/templates.py +25 -31
- reflex/compiler/utils.py +6 -5
- reflex/components/base/body.pyi +1 -195
- reflex/components/base/link.pyi +1 -407
- reflex/components/base/meta.pyi +1 -405
- reflex/components/base/script.pyi +1 -237
- reflex/components/component.py +41 -46
- reflex/components/core/auto_scroll.pyi +1 -195
- reflex/components/core/banner.pyi +1 -391
- reflex/components/core/breakpoints.py +14 -18
- reflex/components/core/html.pyi +1 -197
- reflex/components/core/match.py +2 -2
- reflex/components/core/sticky.py +11 -15
- reflex/components/core/sticky.pyi +0 -788
- reflex/components/core/upload.py +1 -3
- reflex/components/core/window_events.pyi +6 -5
- reflex/components/datadisplay/code.pyi +1 -0
- reflex/components/datadisplay/dataeditor.py +4 -6
- reflex/components/datadisplay/shiki_code_block.py +106 -110
- reflex/components/dynamic.py +4 -6
- reflex/components/el/elements/__init__.py +5 -7
- reflex/components/el/elements/__init__.pyi +5 -7
- reflex/components/el/elements/base.py +1 -1
- reflex/components/el/elements/base.pyi +1 -195
- reflex/components/el/elements/forms.py +7 -9
- reflex/components/el/elements/forms.pyi +12 -3112
- reflex/components/el/elements/inline.pyi +0 -5481
- reflex/components/el/elements/media.pyi +0 -10280
- reflex/components/el/elements/metadata.pyi +1 -835
- reflex/components/el/elements/other.pyi +1 -1365
- reflex/components/el/elements/scripts.pyi +1 -625
- reflex/components/el/elements/sectioning.pyi +1 -2911
- reflex/components/el/elements/tables.pyi +1 -1973
- reflex/components/el/elements/typography.pyi +1 -3125
- reflex/components/lucide/icon.py +4 -4
- reflex/components/lucide/icon.pyi +0 -4
- reflex/components/markdown/markdown.py +15 -19
- reflex/components/markdown/markdown.pyi +1 -0
- reflex/components/moment/moment.pyi +0 -49
- reflex/components/props.py +3 -3
- reflex/components/radix/primitives/accordion.py +4 -6
- reflex/components/radix/primitives/accordion.pyi +0 -14
- reflex/components/radix/primitives/base.pyi +0 -5
- reflex/components/radix/primitives/dialog.py +2 -0
- reflex/components/radix/primitives/dialog.pyi +1 -233
- reflex/components/radix/primitives/drawer.pyi +0 -18
- reflex/components/radix/primitives/form.pyi +30 -632
- reflex/components/radix/primitives/progress.pyi +0 -10
- reflex/components/radix/primitives/slider.pyi +0 -10
- reflex/components/radix/themes/color_mode.pyi +1 -284
- reflex/components/radix/themes/components/alert_dialog.pyi +0 -207
- reflex/components/radix/themes/components/aspect_ratio.pyi +0 -2
- reflex/components/radix/themes/components/avatar.pyi +0 -80
- reflex/components/radix/themes/components/badge.pyi +1 -270
- reflex/components/radix/themes/components/button.pyi +1 -274
- reflex/components/radix/themes/components/callout.pyi +0 -1197
- reflex/components/radix/themes/components/card.pyi +1 -209
- reflex/components/radix/themes/components/checkbox.pyi +0 -261
- reflex/components/radix/themes/components/checkbox_cards.pyi +1 -96
- reflex/components/radix/themes/components/checkbox_group.pyi +1 -80
- reflex/components/radix/themes/components/context_menu.pyi +13 -321
- reflex/components/radix/themes/components/data_list.pyi +1 -107
- reflex/components/radix/themes/components/dialog.pyi +1 -210
- reflex/components/radix/themes/components/dropdown_menu.pyi +0 -209
- reflex/components/radix/themes/components/hover_card.pyi +1 -246
- reflex/components/radix/themes/components/icon_button.pyi +1 -195
- reflex/components/radix/themes/components/inset.pyi +0 -252
- reflex/components/radix/themes/components/popover.pyi +1 -234
- reflex/components/radix/themes/components/progress.pyi +1 -84
- reflex/components/radix/themes/components/radio.pyi +1 -72
- reflex/components/radix/themes/components/radio_cards.pyi +1 -123
- reflex/components/radix/themes/components/scroll_area.pyi +1 -11
- reflex/components/radix/themes/components/select.pyi +1 -376
- reflex/components/radix/themes/components/separator.pyi +0 -77
- reflex/components/radix/themes/components/skeleton.pyi +0 -30
- reflex/components/radix/themes/components/slider.py +3 -5
- reflex/components/radix/themes/components/spinner.pyi +0 -5
- reflex/components/radix/themes/components/switch.pyi +0 -89
- reflex/components/radix/themes/components/table.pyi +0 -1453
- reflex/components/radix/themes/components/text_area.pyi +7 -282
- reflex/components/radix/themes/components/text_field.pyi +6 -392
- reflex/components/radix/themes/components/tooltip.pyi +0 -42
- reflex/components/radix/themes/layout/box.pyi +1 -195
- reflex/components/radix/themes/layout/center.pyi +0 -194
- reflex/components/radix/themes/layout/container.pyi +0 -178
- reflex/components/radix/themes/layout/flex.pyi +0 -194
- reflex/components/radix/themes/layout/grid.pyi +0 -194
- reflex/components/radix/themes/layout/list.pyi +0 -978
- reflex/components/radix/themes/layout/section.pyi +0 -194
- reflex/components/radix/themes/layout/spacer.pyi +0 -194
- reflex/components/radix/themes/layout/stack.pyi +0 -582
- reflex/components/radix/themes/typography/blockquote.pyi +0 -196
- reflex/components/radix/themes/typography/code.pyi +0 -194
- reflex/components/radix/themes/typography/heading.pyi +0 -194
- reflex/components/radix/themes/typography/link.pyi +0 -237
- reflex/components/radix/themes/typography/text.pyi +0 -1360
- reflex/components/react_router/dom.pyi +0 -237
- reflex/components/recharts/cartesian.py +12 -18
- reflex/components/recharts/general.py +12 -18
- reflex/constants/installer.py +5 -5
- reflex/custom_components/custom_components.py +6 -5
- reflex/environment.py +30 -7
- reflex/event.py +14 -12
- reflex/experimental/client_state.py +11 -12
- reflex/istate/data.py +8 -10
- reflex/istate/manager/__init__.py +3 -0
- reflex/istate/manager/disk.py +151 -5
- reflex/model.py +1 -1
- reflex/plugins/_screenshot.py +2 -2
- reflex/plugins/shared_tailwind.py +9 -14
- reflex/reflex.py +7 -9
- reflex/state.py +30 -37
- reflex/style.py +6 -6
- reflex/testing.py +54 -30
- reflex/utils/codespaces.py +31 -2
- reflex/utils/compat.py +1 -0
- reflex/utils/decorator.py +3 -3
- reflex/utils/format.py +18 -22
- reflex/utils/prerequisites.py +1 -1
- reflex/utils/pyi_generator.py +51 -57
- reflex/utils/serializers.py +1 -1
- reflex/utils/telemetry.py +1 -1
- reflex/utils/templates.py +4 -4
- reflex/utils/types.py +11 -4
- reflex/vars/base.py +26 -29
- reflex/vars/color.py +6 -8
- reflex/vars/dep_tracking.py +5 -3
- reflex/vars/function.py +3 -3
- reflex/vars/object.py +9 -13
- reflex/vars/sequence.py +18 -24
- {reflex-0.8.15a1.dist-info → reflex-0.8.16.dist-info}/METADATA +1 -1
- {reflex-0.8.15a1.dist-info → reflex-0.8.16.dist-info}/RECORD +140 -140
- {reflex-0.8.15a1.dist-info → reflex-0.8.16.dist-info}/WHEEL +0 -0
- {reflex-0.8.15a1.dist-info → reflex-0.8.16.dist-info}/entry_points.txt +0 -0
- {reflex-0.8.15a1.dist-info → reflex-0.8.16.dist-info}/licenses/LICENSE +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
6
|
from collections.abc import Mapping, Sequence
|
|
7
|
-
from typing import Any
|
|
7
|
+
from typing import Any
|
|
8
8
|
|
|
9
9
|
from reflex.components.base.fragment import Fragment
|
|
10
10
|
from reflex.components.component import Component
|
|
@@ -181,7 +181,6 @@ class WifiOffPulse(Icon):
|
|
|
181
181
|
def create(
|
|
182
182
|
cls,
|
|
183
183
|
*children,
|
|
184
|
-
size: Var[int] | int | None = None,
|
|
185
184
|
style: Sequence[Mapping[str, Any]]
|
|
186
185
|
| Mapping[str, Any]
|
|
187
186
|
| Var[Mapping[str, Any]]
|
|
@@ -214,7 +213,6 @@ class WifiOffPulse(Icon):
|
|
|
214
213
|
|
|
215
214
|
Args:
|
|
216
215
|
*children: The children of the component.
|
|
217
|
-
size: The size of the icon in pixels.
|
|
218
216
|
style: The style of the component.
|
|
219
217
|
key: A unique key for the component.
|
|
220
218
|
id: The id for the component.
|
|
@@ -234,184 +232,6 @@ class ConnectionPulser(Div):
|
|
|
234
232
|
def create(
|
|
235
233
|
cls,
|
|
236
234
|
*children,
|
|
237
|
-
access_key: Var[str] | str | None = None,
|
|
238
|
-
auto_capitalize: Literal[
|
|
239
|
-
"characters", "none", "off", "on", "sentences", "words"
|
|
240
|
-
]
|
|
241
|
-
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
242
|
-
| None = None,
|
|
243
|
-
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
244
|
-
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
245
|
-
| None = None,
|
|
246
|
-
context_menu: Var[str] | str | None = None,
|
|
247
|
-
dir: Var[str] | str | None = None,
|
|
248
|
-
draggable: Var[bool] | bool | None = None,
|
|
249
|
-
enter_key_hint: Literal[
|
|
250
|
-
"done", "enter", "go", "next", "previous", "search", "send"
|
|
251
|
-
]
|
|
252
|
-
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
253
|
-
| None = None,
|
|
254
|
-
hidden: Var[bool] | bool | None = None,
|
|
255
|
-
input_mode: Literal[
|
|
256
|
-
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
257
|
-
]
|
|
258
|
-
| Var[
|
|
259
|
-
Literal[
|
|
260
|
-
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
261
|
-
]
|
|
262
|
-
]
|
|
263
|
-
| None = None,
|
|
264
|
-
item_prop: Var[str] | str | None = None,
|
|
265
|
-
lang: Var[str] | str | None = None,
|
|
266
|
-
role: Literal[
|
|
267
|
-
"alert",
|
|
268
|
-
"alertdialog",
|
|
269
|
-
"application",
|
|
270
|
-
"article",
|
|
271
|
-
"banner",
|
|
272
|
-
"button",
|
|
273
|
-
"cell",
|
|
274
|
-
"checkbox",
|
|
275
|
-
"columnheader",
|
|
276
|
-
"combobox",
|
|
277
|
-
"complementary",
|
|
278
|
-
"contentinfo",
|
|
279
|
-
"definition",
|
|
280
|
-
"dialog",
|
|
281
|
-
"directory",
|
|
282
|
-
"document",
|
|
283
|
-
"feed",
|
|
284
|
-
"figure",
|
|
285
|
-
"form",
|
|
286
|
-
"grid",
|
|
287
|
-
"gridcell",
|
|
288
|
-
"group",
|
|
289
|
-
"heading",
|
|
290
|
-
"img",
|
|
291
|
-
"link",
|
|
292
|
-
"list",
|
|
293
|
-
"listbox",
|
|
294
|
-
"listitem",
|
|
295
|
-
"log",
|
|
296
|
-
"main",
|
|
297
|
-
"marquee",
|
|
298
|
-
"math",
|
|
299
|
-
"menu",
|
|
300
|
-
"menubar",
|
|
301
|
-
"menuitem",
|
|
302
|
-
"menuitemcheckbox",
|
|
303
|
-
"menuitemradio",
|
|
304
|
-
"navigation",
|
|
305
|
-
"none",
|
|
306
|
-
"note",
|
|
307
|
-
"option",
|
|
308
|
-
"presentation",
|
|
309
|
-
"progressbar",
|
|
310
|
-
"radio",
|
|
311
|
-
"radiogroup",
|
|
312
|
-
"region",
|
|
313
|
-
"row",
|
|
314
|
-
"rowgroup",
|
|
315
|
-
"rowheader",
|
|
316
|
-
"scrollbar",
|
|
317
|
-
"search",
|
|
318
|
-
"searchbox",
|
|
319
|
-
"separator",
|
|
320
|
-
"slider",
|
|
321
|
-
"spinbutton",
|
|
322
|
-
"status",
|
|
323
|
-
"switch",
|
|
324
|
-
"tab",
|
|
325
|
-
"table",
|
|
326
|
-
"tablist",
|
|
327
|
-
"tabpanel",
|
|
328
|
-
"term",
|
|
329
|
-
"textbox",
|
|
330
|
-
"timer",
|
|
331
|
-
"toolbar",
|
|
332
|
-
"tooltip",
|
|
333
|
-
"tree",
|
|
334
|
-
"treegrid",
|
|
335
|
-
"treeitem",
|
|
336
|
-
]
|
|
337
|
-
| Var[
|
|
338
|
-
Literal[
|
|
339
|
-
"alert",
|
|
340
|
-
"alertdialog",
|
|
341
|
-
"application",
|
|
342
|
-
"article",
|
|
343
|
-
"banner",
|
|
344
|
-
"button",
|
|
345
|
-
"cell",
|
|
346
|
-
"checkbox",
|
|
347
|
-
"columnheader",
|
|
348
|
-
"combobox",
|
|
349
|
-
"complementary",
|
|
350
|
-
"contentinfo",
|
|
351
|
-
"definition",
|
|
352
|
-
"dialog",
|
|
353
|
-
"directory",
|
|
354
|
-
"document",
|
|
355
|
-
"feed",
|
|
356
|
-
"figure",
|
|
357
|
-
"form",
|
|
358
|
-
"grid",
|
|
359
|
-
"gridcell",
|
|
360
|
-
"group",
|
|
361
|
-
"heading",
|
|
362
|
-
"img",
|
|
363
|
-
"link",
|
|
364
|
-
"list",
|
|
365
|
-
"listbox",
|
|
366
|
-
"listitem",
|
|
367
|
-
"log",
|
|
368
|
-
"main",
|
|
369
|
-
"marquee",
|
|
370
|
-
"math",
|
|
371
|
-
"menu",
|
|
372
|
-
"menubar",
|
|
373
|
-
"menuitem",
|
|
374
|
-
"menuitemcheckbox",
|
|
375
|
-
"menuitemradio",
|
|
376
|
-
"navigation",
|
|
377
|
-
"none",
|
|
378
|
-
"note",
|
|
379
|
-
"option",
|
|
380
|
-
"presentation",
|
|
381
|
-
"progressbar",
|
|
382
|
-
"radio",
|
|
383
|
-
"radiogroup",
|
|
384
|
-
"region",
|
|
385
|
-
"row",
|
|
386
|
-
"rowgroup",
|
|
387
|
-
"rowheader",
|
|
388
|
-
"scrollbar",
|
|
389
|
-
"search",
|
|
390
|
-
"searchbox",
|
|
391
|
-
"separator",
|
|
392
|
-
"slider",
|
|
393
|
-
"spinbutton",
|
|
394
|
-
"status",
|
|
395
|
-
"switch",
|
|
396
|
-
"tab",
|
|
397
|
-
"table",
|
|
398
|
-
"tablist",
|
|
399
|
-
"tabpanel",
|
|
400
|
-
"term",
|
|
401
|
-
"textbox",
|
|
402
|
-
"timer",
|
|
403
|
-
"toolbar",
|
|
404
|
-
"tooltip",
|
|
405
|
-
"tree",
|
|
406
|
-
"treegrid",
|
|
407
|
-
"treeitem",
|
|
408
|
-
]
|
|
409
|
-
]
|
|
410
|
-
| None = None,
|
|
411
|
-
slot: Var[str] | str | None = None,
|
|
412
|
-
spell_check: Var[bool] | bool | None = None,
|
|
413
|
-
tab_index: Var[int] | int | None = None,
|
|
414
|
-
title: Var[str] | str | None = None,
|
|
415
235
|
style: Sequence[Mapping[str, Any]]
|
|
416
236
|
| Mapping[str, Any]
|
|
417
237
|
| Var[Mapping[str, Any]]
|
|
@@ -443,22 +263,6 @@ class ConnectionPulser(Div):
|
|
|
443
263
|
"""Create a connection pulser component.
|
|
444
264
|
|
|
445
265
|
Args:
|
|
446
|
-
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
447
|
-
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
448
|
-
content_editable: Indicates whether the element's content is editable.
|
|
449
|
-
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
450
|
-
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
451
|
-
draggable: Defines whether the element can be dragged.
|
|
452
|
-
enter_key_hint: Hints what media types the media element is able to play.
|
|
453
|
-
hidden: Defines whether the element is hidden.
|
|
454
|
-
input_mode: Defines the type of the element.
|
|
455
|
-
item_prop: Defines the name of the element for metadata purposes.
|
|
456
|
-
lang: Defines the language used in the element.
|
|
457
|
-
role: Defines the role of the element.
|
|
458
|
-
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
459
|
-
spell_check: Defines whether the element may be checked for spelling errors.
|
|
460
|
-
tab_index: Defines the position of the current element in the tabbing order.
|
|
461
|
-
title: Defines a tooltip for the element.
|
|
462
266
|
style: The style of the component.
|
|
463
267
|
key: A unique key for the component.
|
|
464
268
|
id: The id for the component.
|
|
@@ -476,184 +280,6 @@ class BackendDisabled(Div):
|
|
|
476
280
|
def create(
|
|
477
281
|
cls,
|
|
478
282
|
*children,
|
|
479
|
-
access_key: Var[str] | str | None = None,
|
|
480
|
-
auto_capitalize: Literal[
|
|
481
|
-
"characters", "none", "off", "on", "sentences", "words"
|
|
482
|
-
]
|
|
483
|
-
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
484
|
-
| None = None,
|
|
485
|
-
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
486
|
-
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
487
|
-
| None = None,
|
|
488
|
-
context_menu: Var[str] | str | None = None,
|
|
489
|
-
dir: Var[str] | str | None = None,
|
|
490
|
-
draggable: Var[bool] | bool | None = None,
|
|
491
|
-
enter_key_hint: Literal[
|
|
492
|
-
"done", "enter", "go", "next", "previous", "search", "send"
|
|
493
|
-
]
|
|
494
|
-
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
495
|
-
| None = None,
|
|
496
|
-
hidden: Var[bool] | bool | None = None,
|
|
497
|
-
input_mode: Literal[
|
|
498
|
-
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
499
|
-
]
|
|
500
|
-
| Var[
|
|
501
|
-
Literal[
|
|
502
|
-
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
503
|
-
]
|
|
504
|
-
]
|
|
505
|
-
| None = None,
|
|
506
|
-
item_prop: Var[str] | str | None = None,
|
|
507
|
-
lang: Var[str] | str | None = None,
|
|
508
|
-
role: Literal[
|
|
509
|
-
"alert",
|
|
510
|
-
"alertdialog",
|
|
511
|
-
"application",
|
|
512
|
-
"article",
|
|
513
|
-
"banner",
|
|
514
|
-
"button",
|
|
515
|
-
"cell",
|
|
516
|
-
"checkbox",
|
|
517
|
-
"columnheader",
|
|
518
|
-
"combobox",
|
|
519
|
-
"complementary",
|
|
520
|
-
"contentinfo",
|
|
521
|
-
"definition",
|
|
522
|
-
"dialog",
|
|
523
|
-
"directory",
|
|
524
|
-
"document",
|
|
525
|
-
"feed",
|
|
526
|
-
"figure",
|
|
527
|
-
"form",
|
|
528
|
-
"grid",
|
|
529
|
-
"gridcell",
|
|
530
|
-
"group",
|
|
531
|
-
"heading",
|
|
532
|
-
"img",
|
|
533
|
-
"link",
|
|
534
|
-
"list",
|
|
535
|
-
"listbox",
|
|
536
|
-
"listitem",
|
|
537
|
-
"log",
|
|
538
|
-
"main",
|
|
539
|
-
"marquee",
|
|
540
|
-
"math",
|
|
541
|
-
"menu",
|
|
542
|
-
"menubar",
|
|
543
|
-
"menuitem",
|
|
544
|
-
"menuitemcheckbox",
|
|
545
|
-
"menuitemradio",
|
|
546
|
-
"navigation",
|
|
547
|
-
"none",
|
|
548
|
-
"note",
|
|
549
|
-
"option",
|
|
550
|
-
"presentation",
|
|
551
|
-
"progressbar",
|
|
552
|
-
"radio",
|
|
553
|
-
"radiogroup",
|
|
554
|
-
"region",
|
|
555
|
-
"row",
|
|
556
|
-
"rowgroup",
|
|
557
|
-
"rowheader",
|
|
558
|
-
"scrollbar",
|
|
559
|
-
"search",
|
|
560
|
-
"searchbox",
|
|
561
|
-
"separator",
|
|
562
|
-
"slider",
|
|
563
|
-
"spinbutton",
|
|
564
|
-
"status",
|
|
565
|
-
"switch",
|
|
566
|
-
"tab",
|
|
567
|
-
"table",
|
|
568
|
-
"tablist",
|
|
569
|
-
"tabpanel",
|
|
570
|
-
"term",
|
|
571
|
-
"textbox",
|
|
572
|
-
"timer",
|
|
573
|
-
"toolbar",
|
|
574
|
-
"tooltip",
|
|
575
|
-
"tree",
|
|
576
|
-
"treegrid",
|
|
577
|
-
"treeitem",
|
|
578
|
-
]
|
|
579
|
-
| Var[
|
|
580
|
-
Literal[
|
|
581
|
-
"alert",
|
|
582
|
-
"alertdialog",
|
|
583
|
-
"application",
|
|
584
|
-
"article",
|
|
585
|
-
"banner",
|
|
586
|
-
"button",
|
|
587
|
-
"cell",
|
|
588
|
-
"checkbox",
|
|
589
|
-
"columnheader",
|
|
590
|
-
"combobox",
|
|
591
|
-
"complementary",
|
|
592
|
-
"contentinfo",
|
|
593
|
-
"definition",
|
|
594
|
-
"dialog",
|
|
595
|
-
"directory",
|
|
596
|
-
"document",
|
|
597
|
-
"feed",
|
|
598
|
-
"figure",
|
|
599
|
-
"form",
|
|
600
|
-
"grid",
|
|
601
|
-
"gridcell",
|
|
602
|
-
"group",
|
|
603
|
-
"heading",
|
|
604
|
-
"img",
|
|
605
|
-
"link",
|
|
606
|
-
"list",
|
|
607
|
-
"listbox",
|
|
608
|
-
"listitem",
|
|
609
|
-
"log",
|
|
610
|
-
"main",
|
|
611
|
-
"marquee",
|
|
612
|
-
"math",
|
|
613
|
-
"menu",
|
|
614
|
-
"menubar",
|
|
615
|
-
"menuitem",
|
|
616
|
-
"menuitemcheckbox",
|
|
617
|
-
"menuitemradio",
|
|
618
|
-
"navigation",
|
|
619
|
-
"none",
|
|
620
|
-
"note",
|
|
621
|
-
"option",
|
|
622
|
-
"presentation",
|
|
623
|
-
"progressbar",
|
|
624
|
-
"radio",
|
|
625
|
-
"radiogroup",
|
|
626
|
-
"region",
|
|
627
|
-
"row",
|
|
628
|
-
"rowgroup",
|
|
629
|
-
"rowheader",
|
|
630
|
-
"scrollbar",
|
|
631
|
-
"search",
|
|
632
|
-
"searchbox",
|
|
633
|
-
"separator",
|
|
634
|
-
"slider",
|
|
635
|
-
"spinbutton",
|
|
636
|
-
"status",
|
|
637
|
-
"switch",
|
|
638
|
-
"tab",
|
|
639
|
-
"table",
|
|
640
|
-
"tablist",
|
|
641
|
-
"tabpanel",
|
|
642
|
-
"term",
|
|
643
|
-
"textbox",
|
|
644
|
-
"timer",
|
|
645
|
-
"toolbar",
|
|
646
|
-
"tooltip",
|
|
647
|
-
"tree",
|
|
648
|
-
"treegrid",
|
|
649
|
-
"treeitem",
|
|
650
|
-
]
|
|
651
|
-
]
|
|
652
|
-
| None = None,
|
|
653
|
-
slot: Var[str] | str | None = None,
|
|
654
|
-
spell_check: Var[bool] | bool | None = None,
|
|
655
|
-
tab_index: Var[int] | int | None = None,
|
|
656
|
-
title: Var[str] | str | None = None,
|
|
657
283
|
style: Sequence[Mapping[str, Any]]
|
|
658
284
|
| Mapping[str, Any]
|
|
659
285
|
| Var[Mapping[str, Any]]
|
|
@@ -685,22 +311,6 @@ class BackendDisabled(Div):
|
|
|
685
311
|
"""Create a backend disabled component.
|
|
686
312
|
|
|
687
313
|
Args:
|
|
688
|
-
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
689
|
-
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
690
|
-
content_editable: Indicates whether the element's content is editable.
|
|
691
|
-
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
692
|
-
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
693
|
-
draggable: Defines whether the element can be dragged.
|
|
694
|
-
enter_key_hint: Hints what media types the media element is able to play.
|
|
695
|
-
hidden: Defines whether the element is hidden.
|
|
696
|
-
input_mode: Defines the type of the element.
|
|
697
|
-
item_prop: Defines the name of the element for metadata purposes.
|
|
698
|
-
lang: Defines the language used in the element.
|
|
699
|
-
role: Defines the role of the element.
|
|
700
|
-
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
701
|
-
spell_check: Defines whether the element may be checked for spelling errors.
|
|
702
|
-
tab_index: Defines the position of the current element in the tabbing order.
|
|
703
|
-
title: Defines a tooltip for the element.
|
|
704
314
|
style: The style of the component.
|
|
705
315
|
key: A unique key for the component.
|
|
706
316
|
id: The id for the component.
|
|
@@ -31,17 +31,15 @@ class Breakpoints(dict[K, V]):
|
|
|
31
31
|
Returns:
|
|
32
32
|
The factorized breakpoints.
|
|
33
33
|
"""
|
|
34
|
-
return Breakpoints(
|
|
35
|
-
|
|
36
|
-
(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
)
|
|
34
|
+
return Breakpoints({
|
|
35
|
+
(
|
|
36
|
+
breakpoints_values[breakpoint_names.index(k)]
|
|
37
|
+
if k in breakpoint_names
|
|
38
|
+
else ("0px" if k == "initial" else k)
|
|
39
|
+
): v
|
|
40
|
+
for k, v in self.items()
|
|
41
|
+
if v is not None
|
|
42
|
+
})
|
|
45
43
|
|
|
46
44
|
@classmethod
|
|
47
45
|
def create(
|
|
@@ -79,13 +77,11 @@ class Breakpoints(dict[K, V]):
|
|
|
79
77
|
raise ValueError(msg)
|
|
80
78
|
|
|
81
79
|
return Breakpoints(custom)
|
|
82
|
-
return Breakpoints(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
)
|
|
80
|
+
return Breakpoints({
|
|
81
|
+
k: v
|
|
82
|
+
for k, v in zip(["initial", *breakpoint_names], thresholds, strict=True)
|
|
83
|
+
if v is not None
|
|
84
|
+
})
|
|
89
85
|
|
|
90
86
|
|
|
91
87
|
breakpoints = Breakpoints.create
|
reflex/components/core/html.pyi
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
6
|
from collections.abc import Mapping, Sequence
|
|
7
|
-
from typing import Any
|
|
7
|
+
from typing import Any
|
|
8
8
|
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
10
|
from reflex.components.el.elements.typography import Div
|
|
@@ -16,185 +16,6 @@ class Html(Div):
|
|
|
16
16
|
def create(
|
|
17
17
|
cls,
|
|
18
18
|
*children,
|
|
19
|
-
dangerouslySetInnerHTML: Var[dict[str, str]] | dict[str, str] | None = None,
|
|
20
|
-
access_key: Var[str] | str | None = None,
|
|
21
|
-
auto_capitalize: Literal[
|
|
22
|
-
"characters", "none", "off", "on", "sentences", "words"
|
|
23
|
-
]
|
|
24
|
-
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
25
|
-
| None = None,
|
|
26
|
-
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
27
|
-
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
28
|
-
| None = None,
|
|
29
|
-
context_menu: Var[str] | str | None = None,
|
|
30
|
-
dir: Var[str] | str | None = None,
|
|
31
|
-
draggable: Var[bool] | bool | None = None,
|
|
32
|
-
enter_key_hint: Literal[
|
|
33
|
-
"done", "enter", "go", "next", "previous", "search", "send"
|
|
34
|
-
]
|
|
35
|
-
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
36
|
-
| None = None,
|
|
37
|
-
hidden: Var[bool] | bool | None = None,
|
|
38
|
-
input_mode: Literal[
|
|
39
|
-
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
40
|
-
]
|
|
41
|
-
| Var[
|
|
42
|
-
Literal[
|
|
43
|
-
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
44
|
-
]
|
|
45
|
-
]
|
|
46
|
-
| None = None,
|
|
47
|
-
item_prop: Var[str] | str | None = None,
|
|
48
|
-
lang: Var[str] | str | None = None,
|
|
49
|
-
role: Literal[
|
|
50
|
-
"alert",
|
|
51
|
-
"alertdialog",
|
|
52
|
-
"application",
|
|
53
|
-
"article",
|
|
54
|
-
"banner",
|
|
55
|
-
"button",
|
|
56
|
-
"cell",
|
|
57
|
-
"checkbox",
|
|
58
|
-
"columnheader",
|
|
59
|
-
"combobox",
|
|
60
|
-
"complementary",
|
|
61
|
-
"contentinfo",
|
|
62
|
-
"definition",
|
|
63
|
-
"dialog",
|
|
64
|
-
"directory",
|
|
65
|
-
"document",
|
|
66
|
-
"feed",
|
|
67
|
-
"figure",
|
|
68
|
-
"form",
|
|
69
|
-
"grid",
|
|
70
|
-
"gridcell",
|
|
71
|
-
"group",
|
|
72
|
-
"heading",
|
|
73
|
-
"img",
|
|
74
|
-
"link",
|
|
75
|
-
"list",
|
|
76
|
-
"listbox",
|
|
77
|
-
"listitem",
|
|
78
|
-
"log",
|
|
79
|
-
"main",
|
|
80
|
-
"marquee",
|
|
81
|
-
"math",
|
|
82
|
-
"menu",
|
|
83
|
-
"menubar",
|
|
84
|
-
"menuitem",
|
|
85
|
-
"menuitemcheckbox",
|
|
86
|
-
"menuitemradio",
|
|
87
|
-
"navigation",
|
|
88
|
-
"none",
|
|
89
|
-
"note",
|
|
90
|
-
"option",
|
|
91
|
-
"presentation",
|
|
92
|
-
"progressbar",
|
|
93
|
-
"radio",
|
|
94
|
-
"radiogroup",
|
|
95
|
-
"region",
|
|
96
|
-
"row",
|
|
97
|
-
"rowgroup",
|
|
98
|
-
"rowheader",
|
|
99
|
-
"scrollbar",
|
|
100
|
-
"search",
|
|
101
|
-
"searchbox",
|
|
102
|
-
"separator",
|
|
103
|
-
"slider",
|
|
104
|
-
"spinbutton",
|
|
105
|
-
"status",
|
|
106
|
-
"switch",
|
|
107
|
-
"tab",
|
|
108
|
-
"table",
|
|
109
|
-
"tablist",
|
|
110
|
-
"tabpanel",
|
|
111
|
-
"term",
|
|
112
|
-
"textbox",
|
|
113
|
-
"timer",
|
|
114
|
-
"toolbar",
|
|
115
|
-
"tooltip",
|
|
116
|
-
"tree",
|
|
117
|
-
"treegrid",
|
|
118
|
-
"treeitem",
|
|
119
|
-
]
|
|
120
|
-
| Var[
|
|
121
|
-
Literal[
|
|
122
|
-
"alert",
|
|
123
|
-
"alertdialog",
|
|
124
|
-
"application",
|
|
125
|
-
"article",
|
|
126
|
-
"banner",
|
|
127
|
-
"button",
|
|
128
|
-
"cell",
|
|
129
|
-
"checkbox",
|
|
130
|
-
"columnheader",
|
|
131
|
-
"combobox",
|
|
132
|
-
"complementary",
|
|
133
|
-
"contentinfo",
|
|
134
|
-
"definition",
|
|
135
|
-
"dialog",
|
|
136
|
-
"directory",
|
|
137
|
-
"document",
|
|
138
|
-
"feed",
|
|
139
|
-
"figure",
|
|
140
|
-
"form",
|
|
141
|
-
"grid",
|
|
142
|
-
"gridcell",
|
|
143
|
-
"group",
|
|
144
|
-
"heading",
|
|
145
|
-
"img",
|
|
146
|
-
"link",
|
|
147
|
-
"list",
|
|
148
|
-
"listbox",
|
|
149
|
-
"listitem",
|
|
150
|
-
"log",
|
|
151
|
-
"main",
|
|
152
|
-
"marquee",
|
|
153
|
-
"math",
|
|
154
|
-
"menu",
|
|
155
|
-
"menubar",
|
|
156
|
-
"menuitem",
|
|
157
|
-
"menuitemcheckbox",
|
|
158
|
-
"menuitemradio",
|
|
159
|
-
"navigation",
|
|
160
|
-
"none",
|
|
161
|
-
"note",
|
|
162
|
-
"option",
|
|
163
|
-
"presentation",
|
|
164
|
-
"progressbar",
|
|
165
|
-
"radio",
|
|
166
|
-
"radiogroup",
|
|
167
|
-
"region",
|
|
168
|
-
"row",
|
|
169
|
-
"rowgroup",
|
|
170
|
-
"rowheader",
|
|
171
|
-
"scrollbar",
|
|
172
|
-
"search",
|
|
173
|
-
"searchbox",
|
|
174
|
-
"separator",
|
|
175
|
-
"slider",
|
|
176
|
-
"spinbutton",
|
|
177
|
-
"status",
|
|
178
|
-
"switch",
|
|
179
|
-
"tab",
|
|
180
|
-
"table",
|
|
181
|
-
"tablist",
|
|
182
|
-
"tabpanel",
|
|
183
|
-
"term",
|
|
184
|
-
"textbox",
|
|
185
|
-
"timer",
|
|
186
|
-
"toolbar",
|
|
187
|
-
"tooltip",
|
|
188
|
-
"tree",
|
|
189
|
-
"treegrid",
|
|
190
|
-
"treeitem",
|
|
191
|
-
]
|
|
192
|
-
]
|
|
193
|
-
| None = None,
|
|
194
|
-
slot: Var[str] | str | None = None,
|
|
195
|
-
spell_check: Var[bool] | bool | None = None,
|
|
196
|
-
tab_index: Var[int] | int | None = None,
|
|
197
|
-
title: Var[str] | str | None = None,
|
|
198
19
|
style: Sequence[Mapping[str, Any]]
|
|
199
20
|
| Mapping[str, Any]
|
|
200
21
|
| Var[Mapping[str, Any]]
|
|
@@ -227,23 +48,6 @@ class Html(Div):
|
|
|
227
48
|
|
|
228
49
|
Args:
|
|
229
50
|
*children: The children of the component.
|
|
230
|
-
dangerouslySetInnerHTML: The HTML to render.
|
|
231
|
-
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
232
|
-
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
233
|
-
content_editable: Indicates whether the element's content is editable.
|
|
234
|
-
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
235
|
-
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
236
|
-
draggable: Defines whether the element can be dragged.
|
|
237
|
-
enter_key_hint: Hints what media types the media element is able to play.
|
|
238
|
-
hidden: Defines whether the element is hidden.
|
|
239
|
-
input_mode: Defines the type of the element.
|
|
240
|
-
item_prop: Defines the name of the element for metadata purposes.
|
|
241
|
-
lang: Defines the language used in the element.
|
|
242
|
-
role: Defines the role of the element.
|
|
243
|
-
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
244
|
-
spell_check: Defines whether the element may be checked for spelling errors.
|
|
245
|
-
tab_index: Defines the position of the current element in the tabbing order.
|
|
246
|
-
title: Defines a tooltip for the element.
|
|
247
51
|
style: The style of the component.
|
|
248
52
|
key: A unique key for the component.
|
|
249
53
|
id: The id for the component.
|