reflex 0.6.6.post3__py3-none-any.whl → 0.6.7a1__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/pages/stateful_component.js.jinja2 +5 -1
- reflex/.templates/web/utils/state.js +36 -28
- reflex/__init__.py +1 -1
- reflex/__init__.pyi +1 -0
- reflex/app.py +41 -16
- reflex/assets.py +2 -2
- reflex/base.py +8 -7
- reflex/compiler/templates.py +1 -0
- reflex/compiler/utils.py +2 -3
- reflex/components/base/bare.py +2 -2
- reflex/components/component.py +54 -29
- reflex/components/core/banner.py +2 -2
- reflex/components/core/banner.pyi +1 -1
- reflex/components/core/client_side_routing.py +2 -2
- reflex/components/core/client_side_routing.pyi +1 -1
- reflex/components/core/clipboard.py +11 -9
- reflex/components/core/clipboard.pyi +1 -1
- reflex/components/core/cond.py +3 -3
- reflex/components/core/foreach.py +1 -1
- reflex/components/core/html.pyi +1 -1
- reflex/components/core/upload.py +8 -8
- reflex/components/datadisplay/code.py +5 -5
- reflex/components/datadisplay/dataeditor.py +8 -28
- reflex/components/datadisplay/dataeditor.pyi +1 -1
- reflex/components/datadisplay/shiki_code_block.py +7 -7
- reflex/components/dynamic.py +2 -2
- reflex/components/el/elements/__init__.py +1 -1
- reflex/components/el/elements/__init__.pyi +1 -1
- reflex/components/el/elements/base.py +2 -2
- reflex/components/el/elements/base.pyi +1 -1
- reflex/components/el/elements/forms.py +40 -10
- reflex/components/el/elements/forms.pyi +17 -15
- reflex/components/el/elements/inline.py +1 -1
- reflex/components/el/elements/inline.pyi +28 -28
- reflex/components/el/elements/media.py +1 -4
- reflex/components/el/elements/media.pyi +25 -26
- reflex/components/el/elements/metadata.py +6 -6
- reflex/components/el/elements/metadata.pyi +4 -4
- reflex/components/el/elements/other.py +17 -9
- reflex/components/el/elements/other.pyi +7 -7
- reflex/components/el/elements/scripts.py +1 -2
- reflex/components/el/elements/scripts.pyi +3 -3
- reflex/components/el/elements/sectioning.py +16 -16
- reflex/components/el/elements/sectioning.pyi +15 -15
- reflex/components/el/elements/tables.py +1 -1
- reflex/components/el/elements/tables.pyi +10 -10
- reflex/components/el/elements/typography.py +1 -1
- reflex/components/el/elements/typography.pyi +15 -15
- reflex/components/markdown/markdown.py +3 -3
- reflex/components/next/image.py +1 -1
- reflex/components/next/image.pyi +1 -1
- reflex/components/plotly/plotly.py +2 -2
- reflex/components/radix/primitives/accordion.py +2 -1
- reflex/components/radix/primitives/form.pyi +3 -3
- reflex/components/radix/primitives/slider.py +1 -1
- reflex/components/radix/themes/base.py +4 -10
- reflex/components/radix/themes/color_mode.pyi +2 -2
- reflex/components/radix/themes/components/alert_dialog.pyi +1 -1
- reflex/components/radix/themes/components/badge.pyi +1 -1
- reflex/components/radix/themes/components/button.pyi +1 -1
- reflex/components/radix/themes/components/callout.pyi +5 -5
- reflex/components/radix/themes/components/card.pyi +1 -1
- reflex/components/radix/themes/components/checkbox.pyi +3 -3
- reflex/components/radix/themes/components/context_menu.py +11 -0
- reflex/components/radix/themes/components/context_menu.pyi +155 -0
- reflex/components/radix/themes/components/dialog.pyi +1 -1
- reflex/components/radix/themes/components/hover_card.pyi +1 -1
- reflex/components/radix/themes/components/icon_button.py +1 -1
- reflex/components/radix/themes/components/icon_button.pyi +1 -1
- reflex/components/radix/themes/components/inset.pyi +1 -1
- reflex/components/radix/themes/components/popover.pyi +1 -1
- reflex/components/radix/themes/components/radio_group.py +2 -4
- reflex/components/radix/themes/components/radio_group.pyi +1 -1
- reflex/components/radix/themes/components/select.pyi +3 -3
- reflex/components/radix/themes/components/slider.pyi +1 -1
- reflex/components/radix/themes/components/switch.pyi +1 -1
- reflex/components/radix/themes/components/table.pyi +7 -7
- reflex/components/radix/themes/components/tabs.pyi +2 -2
- reflex/components/radix/themes/components/text_area.py +3 -0
- reflex/components/radix/themes/components/text_area.pyi +3 -1
- reflex/components/radix/themes/components/text_field.py +16 -1
- reflex/components/radix/themes/components/text_field.pyi +105 -17
- reflex/components/radix/themes/layout/box.pyi +1 -1
- reflex/components/radix/themes/layout/center.pyi +1 -1
- reflex/components/radix/themes/layout/flex.pyi +1 -1
- reflex/components/radix/themes/layout/grid.pyi +1 -1
- reflex/components/radix/themes/layout/list.py +0 -4
- reflex/components/radix/themes/layout/list.pyi +3 -8
- reflex/components/radix/themes/layout/section.pyi +1 -1
- reflex/components/radix/themes/layout/spacer.pyi +1 -1
- reflex/components/radix/themes/layout/stack.pyi +3 -3
- reflex/components/radix/themes/typography/blockquote.pyi +1 -1
- reflex/components/radix/themes/typography/code.pyi +1 -1
- reflex/components/radix/themes/typography/heading.pyi +1 -1
- reflex/components/radix/themes/typography/link.py +5 -1
- reflex/components/radix/themes/typography/link.pyi +1 -1
- reflex/components/radix/themes/typography/text.pyi +7 -7
- reflex/components/recharts/cartesian.py +1 -1
- reflex/components/recharts/charts.py +4 -4
- reflex/components/recharts/polar.py +1 -1
- reflex/components/recharts/polar.pyi +1 -1
- reflex/components/sonner/toast.py +4 -7
- reflex/components/suneditor/editor.py +6 -6
- reflex/components/suneditor/editor.pyi +6 -6
- reflex/config.py +25 -10
- reflex/constants/compiler.py +6 -0
- reflex/constants/config.py +2 -0
- reflex/constants/custom_components.py +1 -1
- reflex/constants/route.py +1 -1
- reflex/custom_components/custom_components.py +21 -21
- reflex/event.py +57 -22
- reflex/experimental/client_state.py +2 -1
- reflex/experimental/layout.py +0 -6
- reflex/model.py +125 -9
- reflex/reflex.py +5 -6
- reflex/state.py +203 -88
- reflex/style.py +1 -4
- reflex/testing.py +10 -11
- reflex/utils/build.py +1 -1
- reflex/utils/console.py +75 -6
- reflex/utils/exceptions.py +12 -0
- reflex/utils/exec.py +10 -10
- reflex/utils/export.py +1 -2
- reflex/utils/format.py +11 -8
- reflex/utils/path_ops.py +2 -2
- reflex/utils/prerequisites.py +31 -28
- reflex/utils/processes.py +4 -4
- reflex/utils/pyi_generator.py +12 -11
- reflex/utils/types.py +6 -3
- reflex/vars/__init__.py +1 -0
- reflex/vars/base.py +75 -38
- reflex/vars/datetime.py +222 -0
- reflex/vars/function.py +3 -3
- reflex/vars/number.py +3 -3
- reflex/vars/object.py +5 -5
- reflex/vars/sequence.py +7 -7
- {reflex-0.6.6.post3.dist-info → reflex-0.6.7a1.dist-info}/METADATA +2 -2
- {reflex-0.6.6.post3.dist-info → reflex-0.6.7a1.dist-info}/RECORD +141 -140
- {reflex-0.6.6.post3.dist-info → reflex-0.6.7a1.dist-info}/LICENSE +0 -0
- {reflex-0.6.6.post3.dist-info → reflex-0.6.7a1.dist-info}/WHEEL +0 -0
- {reflex-0.6.6.post3.dist-info → reflex-0.6.7a1.dist-info}/entry_points.txt +0 -0
|
@@ -70,7 +70,7 @@ class Details(BaseHTML):
|
|
|
70
70
|
Args:
|
|
71
71
|
*children: The children of the component.
|
|
72
72
|
open: Indicates whether the details will be visible (expanded) to the user
|
|
73
|
-
access_key:
|
|
73
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
74
74
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
75
75
|
content_editable: Indicates whether the element's content is editable.
|
|
76
76
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -158,7 +158,7 @@ class Dialog(BaseHTML):
|
|
|
158
158
|
Args:
|
|
159
159
|
*children: The children of the component.
|
|
160
160
|
open: Indicates whether the dialog is active and can be interacted with
|
|
161
|
-
access_key:
|
|
161
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
162
162
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
163
163
|
content_editable: Indicates whether the element's content is editable.
|
|
164
164
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -244,7 +244,7 @@ class Summary(BaseHTML):
|
|
|
244
244
|
|
|
245
245
|
Args:
|
|
246
246
|
*children: The children of the component.
|
|
247
|
-
access_key:
|
|
247
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
248
248
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
249
249
|
content_editable: Indicates whether the element's content is editable.
|
|
250
250
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -330,7 +330,7 @@ class Slot(BaseHTML):
|
|
|
330
330
|
|
|
331
331
|
Args:
|
|
332
332
|
*children: The children of the component.
|
|
333
|
-
access_key:
|
|
333
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
334
334
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
335
335
|
content_editable: Indicates whether the element's content is editable.
|
|
336
336
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -416,7 +416,7 @@ class Template(BaseHTML):
|
|
|
416
416
|
|
|
417
417
|
Args:
|
|
418
418
|
*children: The children of the component.
|
|
419
|
-
access_key:
|
|
419
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
420
420
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
421
421
|
content_editable: Indicates whether the element's content is editable.
|
|
422
422
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -502,7 +502,7 @@ class Math(BaseHTML):
|
|
|
502
502
|
|
|
503
503
|
Args:
|
|
504
504
|
*children: The children of the component.
|
|
505
|
-
access_key:
|
|
505
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
506
506
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
507
507
|
content_editable: Indicates whether the element's content is editable.
|
|
508
508
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -590,7 +590,7 @@ class Html(BaseHTML):
|
|
|
590
590
|
Args:
|
|
591
591
|
*children: The children of the component.
|
|
592
592
|
manifest: Specifies the URL of the document's cache manifest (obsolete in HTML5)
|
|
593
|
-
access_key:
|
|
593
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
594
594
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
595
595
|
content_editable: Indicates whether the element's content is editable.
|
|
596
596
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""
|
|
1
|
+
"""Scripts classes."""
|
|
2
2
|
|
|
3
3
|
from typing import Union
|
|
4
4
|
|
|
@@ -17,7 +17,6 @@ class Noscript(BaseHTML):
|
|
|
17
17
|
"""Display the noscript element."""
|
|
18
18
|
|
|
19
19
|
tag = "noscript"
|
|
20
|
-
# No unique attributes, only common ones are inherited
|
|
21
20
|
|
|
22
21
|
|
|
23
22
|
class Script(BaseHTML):
|
|
@@ -68,7 +68,7 @@ class Canvas(BaseHTML):
|
|
|
68
68
|
|
|
69
69
|
Args:
|
|
70
70
|
*children: The children of the component.
|
|
71
|
-
access_key:
|
|
71
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
72
72
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
73
73
|
content_editable: Indicates whether the element's content is editable.
|
|
74
74
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -154,7 +154,7 @@ class Noscript(BaseHTML):
|
|
|
154
154
|
|
|
155
155
|
Args:
|
|
156
156
|
*children: The children of the component.
|
|
157
|
-
access_key:
|
|
157
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
158
158
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
159
159
|
content_editable: Indicates whether the element's content is editable.
|
|
160
160
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -262,7 +262,7 @@ class Script(BaseHTML):
|
|
|
262
262
|
referrer_policy: Specifies which referrer information to send when fetching the script
|
|
263
263
|
src: URL of an external script
|
|
264
264
|
type: Specifies the MIME type of the script
|
|
265
|
-
access_key:
|
|
265
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
266
266
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
267
267
|
content_editable: Indicates whether the element's content is editable.
|
|
268
268
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
"""
|
|
1
|
+
"""Sectioning classes."""
|
|
2
2
|
|
|
3
3
|
from .base import BaseHTML
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
class Body(BaseHTML):
|
|
6
|
+
class Body(BaseHTML):
|
|
7
7
|
"""Display the body element."""
|
|
8
8
|
|
|
9
9
|
tag = "body"
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
class Address(BaseHTML):
|
|
12
|
+
class Address(BaseHTML):
|
|
13
13
|
"""Display the address element."""
|
|
14
14
|
|
|
15
15
|
tag = "address"
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
class Article(BaseHTML):
|
|
18
|
+
class Article(BaseHTML):
|
|
19
19
|
"""Display the article element."""
|
|
20
20
|
|
|
21
21
|
tag = "article"
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
class Aside(BaseHTML):
|
|
24
|
+
class Aside(BaseHTML):
|
|
25
25
|
"""Display the aside element."""
|
|
26
26
|
|
|
27
27
|
tag = "aside"
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
class Footer(BaseHTML):
|
|
30
|
+
class Footer(BaseHTML):
|
|
31
31
|
"""Display the footer element."""
|
|
32
32
|
|
|
33
33
|
tag = "footer"
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
class Header(BaseHTML):
|
|
36
|
+
class Header(BaseHTML):
|
|
37
37
|
"""Display the header element."""
|
|
38
38
|
|
|
39
39
|
tag = "header"
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
class H1(BaseHTML):
|
|
42
|
+
class H1(BaseHTML):
|
|
43
43
|
"""Display the h1 element."""
|
|
44
44
|
|
|
45
45
|
tag = "h1"
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
class H2(BaseHTML):
|
|
48
|
+
class H2(BaseHTML):
|
|
49
49
|
"""Display the h1 element."""
|
|
50
50
|
|
|
51
51
|
tag = "h2"
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
class H3(BaseHTML):
|
|
54
|
+
class H3(BaseHTML):
|
|
55
55
|
"""Display the h1 element."""
|
|
56
56
|
|
|
57
57
|
tag = "h3"
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
class H4(BaseHTML):
|
|
60
|
+
class H4(BaseHTML):
|
|
61
61
|
"""Display the h1 element."""
|
|
62
62
|
|
|
63
63
|
tag = "h4"
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
class H5(BaseHTML):
|
|
66
|
+
class H5(BaseHTML):
|
|
67
67
|
"""Display the h1 element."""
|
|
68
68
|
|
|
69
69
|
tag = "h5"
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
class H6(BaseHTML):
|
|
72
|
+
class H6(BaseHTML):
|
|
73
73
|
"""Display the h1 element."""
|
|
74
74
|
|
|
75
75
|
tag = "h6"
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
class Main(BaseHTML):
|
|
78
|
+
class Main(BaseHTML):
|
|
79
79
|
"""Display the main element."""
|
|
80
80
|
|
|
81
81
|
tag = "main"
|
|
82
82
|
|
|
83
83
|
|
|
84
|
-
class Nav(BaseHTML):
|
|
84
|
+
class Nav(BaseHTML):
|
|
85
85
|
"""Display the nav element."""
|
|
86
86
|
|
|
87
87
|
tag = "nav"
|
|
88
88
|
|
|
89
89
|
|
|
90
|
-
class Section(BaseHTML):
|
|
90
|
+
class Section(BaseHTML):
|
|
91
91
|
"""Display the section element."""
|
|
92
92
|
|
|
93
93
|
tag = "section"
|
|
@@ -68,7 +68,7 @@ class Body(BaseHTML):
|
|
|
68
68
|
|
|
69
69
|
Args:
|
|
70
70
|
*children: The children of the component.
|
|
71
|
-
access_key:
|
|
71
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
72
72
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
73
73
|
content_editable: Indicates whether the element's content is editable.
|
|
74
74
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -154,7 +154,7 @@ class Address(BaseHTML):
|
|
|
154
154
|
|
|
155
155
|
Args:
|
|
156
156
|
*children: The children of the component.
|
|
157
|
-
access_key:
|
|
157
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
158
158
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
159
159
|
content_editable: Indicates whether the element's content is editable.
|
|
160
160
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -240,7 +240,7 @@ class Article(BaseHTML):
|
|
|
240
240
|
|
|
241
241
|
Args:
|
|
242
242
|
*children: The children of the component.
|
|
243
|
-
access_key:
|
|
243
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
244
244
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
245
245
|
content_editable: Indicates whether the element's content is editable.
|
|
246
246
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -326,7 +326,7 @@ class Aside(BaseHTML):
|
|
|
326
326
|
|
|
327
327
|
Args:
|
|
328
328
|
*children: The children of the component.
|
|
329
|
-
access_key:
|
|
329
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
330
330
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
331
331
|
content_editable: Indicates whether the element's content is editable.
|
|
332
332
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -412,7 +412,7 @@ class Footer(BaseHTML):
|
|
|
412
412
|
|
|
413
413
|
Args:
|
|
414
414
|
*children: The children of the component.
|
|
415
|
-
access_key:
|
|
415
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
416
416
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
417
417
|
content_editable: Indicates whether the element's content is editable.
|
|
418
418
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -498,7 +498,7 @@ class Header(BaseHTML):
|
|
|
498
498
|
|
|
499
499
|
Args:
|
|
500
500
|
*children: The children of the component.
|
|
501
|
-
access_key:
|
|
501
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
502
502
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
503
503
|
content_editable: Indicates whether the element's content is editable.
|
|
504
504
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -584,7 +584,7 @@ class H1(BaseHTML):
|
|
|
584
584
|
|
|
585
585
|
Args:
|
|
586
586
|
*children: The children of the component.
|
|
587
|
-
access_key:
|
|
587
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
588
588
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
589
589
|
content_editable: Indicates whether the element's content is editable.
|
|
590
590
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -670,7 +670,7 @@ class H2(BaseHTML):
|
|
|
670
670
|
|
|
671
671
|
Args:
|
|
672
672
|
*children: The children of the component.
|
|
673
|
-
access_key:
|
|
673
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
674
674
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
675
675
|
content_editable: Indicates whether the element's content is editable.
|
|
676
676
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -756,7 +756,7 @@ class H3(BaseHTML):
|
|
|
756
756
|
|
|
757
757
|
Args:
|
|
758
758
|
*children: The children of the component.
|
|
759
|
-
access_key:
|
|
759
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
760
760
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
761
761
|
content_editable: Indicates whether the element's content is editable.
|
|
762
762
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -842,7 +842,7 @@ class H4(BaseHTML):
|
|
|
842
842
|
|
|
843
843
|
Args:
|
|
844
844
|
*children: The children of the component.
|
|
845
|
-
access_key:
|
|
845
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
846
846
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
847
847
|
content_editable: Indicates whether the element's content is editable.
|
|
848
848
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -928,7 +928,7 @@ class H5(BaseHTML):
|
|
|
928
928
|
|
|
929
929
|
Args:
|
|
930
930
|
*children: The children of the component.
|
|
931
|
-
access_key:
|
|
931
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
932
932
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
933
933
|
content_editable: Indicates whether the element's content is editable.
|
|
934
934
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -1014,7 +1014,7 @@ class H6(BaseHTML):
|
|
|
1014
1014
|
|
|
1015
1015
|
Args:
|
|
1016
1016
|
*children: The children of the component.
|
|
1017
|
-
access_key:
|
|
1017
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
1018
1018
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
1019
1019
|
content_editable: Indicates whether the element's content is editable.
|
|
1020
1020
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -1100,7 +1100,7 @@ class Main(BaseHTML):
|
|
|
1100
1100
|
|
|
1101
1101
|
Args:
|
|
1102
1102
|
*children: The children of the component.
|
|
1103
|
-
access_key:
|
|
1103
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
1104
1104
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
1105
1105
|
content_editable: Indicates whether the element's content is editable.
|
|
1106
1106
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -1186,7 +1186,7 @@ class Nav(BaseHTML):
|
|
|
1186
1186
|
|
|
1187
1187
|
Args:
|
|
1188
1188
|
*children: The children of the component.
|
|
1189
|
-
access_key:
|
|
1189
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
1190
1190
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
1191
1191
|
content_editable: Indicates whether the element's content is editable.
|
|
1192
1192
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -1272,7 +1272,7 @@ class Section(BaseHTML):
|
|
|
1272
1272
|
|
|
1273
1273
|
Args:
|
|
1274
1274
|
*children: The children of the component.
|
|
1275
|
-
access_key:
|
|
1275
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
1276
1276
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
1277
1277
|
content_editable: Indicates whether the element's content is editable.
|
|
1278
1278
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -70,7 +70,7 @@ class Caption(BaseHTML):
|
|
|
70
70
|
Args:
|
|
71
71
|
*children: The children of the component.
|
|
72
72
|
align: Alignment of the caption
|
|
73
|
-
access_key:
|
|
73
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
74
74
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
75
75
|
content_editable: Indicates whether the element's content is editable.
|
|
76
76
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -160,7 +160,7 @@ class Col(BaseHTML):
|
|
|
160
160
|
*children: The children of the component.
|
|
161
161
|
align: Alignment of the content within the column
|
|
162
162
|
span: Number of columns the col element spans
|
|
163
|
-
access_key:
|
|
163
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
164
164
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
165
165
|
content_editable: Indicates whether the element's content is editable.
|
|
166
166
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -250,7 +250,7 @@ class Colgroup(BaseHTML):
|
|
|
250
250
|
*children: The children of the component.
|
|
251
251
|
align: Alignment of the content within the column group
|
|
252
252
|
span: Number of columns the colgroup element spans
|
|
253
|
-
access_key:
|
|
253
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
254
254
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
255
255
|
content_editable: Indicates whether the element's content is editable.
|
|
256
256
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -340,7 +340,7 @@ class Table(BaseHTML):
|
|
|
340
340
|
*children: The children of the component.
|
|
341
341
|
align: Alignment of the table
|
|
342
342
|
summary: Provides a summary of the table's purpose and structure
|
|
343
|
-
access_key:
|
|
343
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
344
344
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
345
345
|
content_editable: Indicates whether the element's content is editable.
|
|
346
346
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -428,7 +428,7 @@ class Tbody(BaseHTML):
|
|
|
428
428
|
Args:
|
|
429
429
|
*children: The children of the component.
|
|
430
430
|
align: Alignment of the content within the table body
|
|
431
|
-
access_key:
|
|
431
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
432
432
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
433
433
|
content_editable: Indicates whether the element's content is editable.
|
|
434
434
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -522,7 +522,7 @@ class Td(BaseHTML):
|
|
|
522
522
|
col_span: Number of columns a cell should span
|
|
523
523
|
headers: IDs of the headers associated with this cell
|
|
524
524
|
row_span: Number of rows a cell should span
|
|
525
|
-
access_key:
|
|
525
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
526
526
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
527
527
|
content_editable: Indicates whether the element's content is editable.
|
|
528
528
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -610,7 +610,7 @@ class Tfoot(BaseHTML):
|
|
|
610
610
|
Args:
|
|
611
611
|
*children: The children of the component.
|
|
612
612
|
align: Alignment of the content within the table footer
|
|
613
|
-
access_key:
|
|
613
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
614
614
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
615
615
|
content_editable: Indicates whether the element's content is editable.
|
|
616
616
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -706,7 +706,7 @@ class Th(BaseHTML):
|
|
|
706
706
|
headers: IDs of the headers associated with this header cell
|
|
707
707
|
row_span: Number of rows a header cell should span
|
|
708
708
|
scope: Scope of the header cell (row, col, rowgroup, colgroup)
|
|
709
|
-
access_key:
|
|
709
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
710
710
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
711
711
|
content_editable: Indicates whether the element's content is editable.
|
|
712
712
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -794,7 +794,7 @@ class Thead(BaseHTML):
|
|
|
794
794
|
Args:
|
|
795
795
|
*children: The children of the component.
|
|
796
796
|
align: Alignment of the content within the table header
|
|
797
|
-
access_key:
|
|
797
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
798
798
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
799
799
|
content_editable: Indicates whether the element's content is editable.
|
|
800
800
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -882,7 +882,7 @@ class Tr(BaseHTML):
|
|
|
882
882
|
Args:
|
|
883
883
|
*children: The children of the component.
|
|
884
884
|
align: Alignment of the content within the table row
|
|
885
|
-
access_key:
|
|
885
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
886
886
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
887
887
|
content_editable: Indicates whether the element's content is editable.
|
|
888
888
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -70,7 +70,7 @@ class Blockquote(BaseHTML):
|
|
|
70
70
|
Args:
|
|
71
71
|
*children: The children of the component.
|
|
72
72
|
cite: Define the title of a work.
|
|
73
|
-
access_key:
|
|
73
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
74
74
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
75
75
|
content_editable: Indicates whether the element's content is editable.
|
|
76
76
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -156,7 +156,7 @@ class Dd(BaseHTML):
|
|
|
156
156
|
|
|
157
157
|
Args:
|
|
158
158
|
*children: The children of the component.
|
|
159
|
-
access_key:
|
|
159
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
160
160
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
161
161
|
content_editable: Indicates whether the element's content is editable.
|
|
162
162
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -242,7 +242,7 @@ class Div(BaseHTML):
|
|
|
242
242
|
|
|
243
243
|
Args:
|
|
244
244
|
*children: The children of the component.
|
|
245
|
-
access_key:
|
|
245
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
246
246
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
247
247
|
content_editable: Indicates whether the element's content is editable.
|
|
248
248
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -328,7 +328,7 @@ class Dl(BaseHTML):
|
|
|
328
328
|
|
|
329
329
|
Args:
|
|
330
330
|
*children: The children of the component.
|
|
331
|
-
access_key:
|
|
331
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
332
332
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
333
333
|
content_editable: Indicates whether the element's content is editable.
|
|
334
334
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -414,7 +414,7 @@ class Dt(BaseHTML):
|
|
|
414
414
|
|
|
415
415
|
Args:
|
|
416
416
|
*children: The children of the component.
|
|
417
|
-
access_key:
|
|
417
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
418
418
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
419
419
|
content_editable: Indicates whether the element's content is editable.
|
|
420
420
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -500,7 +500,7 @@ class Figcaption(BaseHTML):
|
|
|
500
500
|
|
|
501
501
|
Args:
|
|
502
502
|
*children: The children of the component.
|
|
503
|
-
access_key:
|
|
503
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
504
504
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
505
505
|
content_editable: Indicates whether the element's content is editable.
|
|
506
506
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -588,7 +588,7 @@ class Hr(BaseHTML):
|
|
|
588
588
|
Args:
|
|
589
589
|
*children: The children of the component.
|
|
590
590
|
align: Used to specify the alignment of text content of The Element. this attribute is used in all elements.
|
|
591
|
-
access_key:
|
|
591
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
592
592
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
593
593
|
content_editable: Indicates whether the element's content is editable.
|
|
594
594
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -674,7 +674,7 @@ class Li(BaseHTML):
|
|
|
674
674
|
|
|
675
675
|
Args:
|
|
676
676
|
*children: The children of the component.
|
|
677
|
-
access_key:
|
|
677
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
678
678
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
679
679
|
content_editable: Indicates whether the element's content is editable.
|
|
680
680
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -762,7 +762,7 @@ class Menu(BaseHTML):
|
|
|
762
762
|
Args:
|
|
763
763
|
*children: The children of the component.
|
|
764
764
|
type: Specifies that the menu element is a context menu.
|
|
765
|
-
access_key:
|
|
765
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
766
766
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
767
767
|
content_editable: Indicates whether the element's content is editable.
|
|
768
768
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -854,7 +854,7 @@ class Ol(BaseHTML):
|
|
|
854
854
|
reversed: Reverses the order of the list.
|
|
855
855
|
start: Specifies the start value of the first list item in an ordered list.
|
|
856
856
|
type: Specifies the kind of marker to use in the list (letters or numbers).
|
|
857
|
-
access_key:
|
|
857
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
858
858
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
859
859
|
content_editable: Indicates whether the element's content is editable.
|
|
860
860
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -940,7 +940,7 @@ class P(BaseHTML):
|
|
|
940
940
|
|
|
941
941
|
Args:
|
|
942
942
|
*children: The children of the component.
|
|
943
|
-
access_key:
|
|
943
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
944
944
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
945
945
|
content_editable: Indicates whether the element's content is editable.
|
|
946
946
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -1026,7 +1026,7 @@ class Pre(BaseHTML):
|
|
|
1026
1026
|
|
|
1027
1027
|
Args:
|
|
1028
1028
|
*children: The children of the component.
|
|
1029
|
-
access_key:
|
|
1029
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
1030
1030
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
1031
1031
|
content_editable: Indicates whether the element's content is editable.
|
|
1032
1032
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -1112,7 +1112,7 @@ class Ul(BaseHTML):
|
|
|
1112
1112
|
|
|
1113
1113
|
Args:
|
|
1114
1114
|
*children: The children of the component.
|
|
1115
|
-
access_key:
|
|
1115
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
1116
1116
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
1117
1117
|
content_editable: Indicates whether the element's content is editable.
|
|
1118
1118
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -1202,7 +1202,7 @@ class Ins(BaseHTML):
|
|
|
1202
1202
|
*children: The children of the component.
|
|
1203
1203
|
cite: Specifies the URL of the document that explains the reason why the text was inserted/changed.
|
|
1204
1204
|
date_time: Specifies the date and time of when the text was inserted/changed.
|
|
1205
|
-
access_key:
|
|
1205
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
1206
1206
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
1207
1207
|
content_editable: Indicates whether the element's content is editable.
|
|
1208
1208
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -1292,7 +1292,7 @@ class Del(BaseHTML):
|
|
|
1292
1292
|
*children: The children of the component.
|
|
1293
1293
|
cite: Specifies the URL of the document that explains the reason why the text was deleted.
|
|
1294
1294
|
date_time: Specifies the date and time of when the text was deleted.
|
|
1295
|
-
access_key:
|
|
1295
|
+
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
1296
1296
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
1297
1297
|
content_editable: Indicates whether the element's content is editable.
|
|
1298
1298
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
@@ -283,7 +283,7 @@ class Markdown(Component):
|
|
|
283
283
|
# Format the code to handle inline and block code.
|
|
284
284
|
formatted_code = f"""
|
|
285
285
|
const match = (className || '').match(/language-(?<lang>.*)/);
|
|
286
|
-
const {
|
|
286
|
+
const {_LANGUAGE!s} = match ? match[1] : '';
|
|
287
287
|
{codeblock_custom_code};
|
|
288
288
|
return inline ? (
|
|
289
289
|
{self.format_component("code")}
|
|
@@ -340,7 +340,7 @@ const {str(_LANGUAGE)} = match ? match[1] : '';
|
|
|
340
340
|
# If the children are set as a prop, don't pass them as children.
|
|
341
341
|
children_prop = props.pop("children", None)
|
|
342
342
|
if children_prop is not None:
|
|
343
|
-
special_props.append(Var(_js_expr=f"children={{{
|
|
343
|
+
special_props.append(Var(_js_expr=f"children={{{children_prop!s}}}"))
|
|
344
344
|
children = []
|
|
345
345
|
# Get the component.
|
|
346
346
|
component = self.component_map[tag](*children, **props).set(
|
|
@@ -429,7 +429,7 @@ const {str(_LANGUAGE)} = match ? match[1] : '';
|
|
|
429
429
|
function {self._get_component_map_name()} () {{
|
|
430
430
|
{formatted_hooks}
|
|
431
431
|
return (
|
|
432
|
-
{
|
|
432
|
+
{LiteralVar.create(self.format_component_map())!s}
|
|
433
433
|
)
|
|
434
434
|
}}
|
|
435
435
|
"""
|
reflex/components/next/image.py
CHANGED
|
@@ -47,7 +47,7 @@ class Image(NextComponent):
|
|
|
47
47
|
placeholder: Var[str]
|
|
48
48
|
|
|
49
49
|
# Allows passing CSS styles to the underlying image element.
|
|
50
|
-
# style: Var[Any]
|
|
50
|
+
# style: Var[Any] #noqa: ERA001
|
|
51
51
|
|
|
52
52
|
# The loading behavior of the image. Defaults to lazy. Can hurt performance, recommended to use `priority` instead.
|
|
53
53
|
loading: Var[Literal["lazy", "eager"]]
|
reflex/components/next/image.pyi
CHANGED
|
@@ -70,7 +70,7 @@ class Image(NextComponent):
|
|
|
70
70
|
quality: The quality of the optimized image, an integer between 1 and 100, where 100 is the best quality and therefore largest file size. Defaults to 75.
|
|
71
71
|
priority: When true, the image will be considered high priority and preload. Lazy loading is automatically disabled for images using priority.
|
|
72
72
|
placeholder: A placeholder to use while the image is loading. Possible values are blur, empty, or data:image/.... Defaults to empty.
|
|
73
|
-
loading:
|
|
73
|
+
loading: The loading behavior of the image. Defaults to lazy. Can hurt performance, recommended to use `priority` instead.
|
|
74
74
|
blurDataURL: A Data URL to be used as a placeholder image before the src image successfully loads. Only takes effect when combined with placeholder="blur".
|
|
75
75
|
on_load: Fires when the image has loaded.
|
|
76
76
|
on_error: Fires when the image has an error.
|