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
|
@@ -20,278 +20,24 @@ class TextArea(RadixThemesComponent, elements.Textarea):
|
|
|
20
20
|
def create(
|
|
21
21
|
cls,
|
|
22
22
|
*children,
|
|
23
|
-
|
|
24
|
-
| Literal["1", "2", "3"]
|
|
25
|
-
| Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
|
|
26
|
-
| None = None,
|
|
27
|
-
variant: Literal["classic", "soft", "surface"]
|
|
28
|
-
| Var[Literal["classic", "soft", "surface"]]
|
|
29
|
-
| None = None,
|
|
30
|
-
resize: Breakpoints[str, Literal["both", "horizontal", "none", "vertical"]]
|
|
31
|
-
| Literal["both", "horizontal", "none", "vertical"]
|
|
32
|
-
| Var[
|
|
33
|
-
Breakpoints[str, Literal["both", "horizontal", "none", "vertical"]]
|
|
34
|
-
| Literal["both", "horizontal", "none", "vertical"]
|
|
35
|
-
]
|
|
36
|
-
| None = None,
|
|
37
|
-
color_scheme: Literal[
|
|
38
|
-
"amber",
|
|
39
|
-
"blue",
|
|
40
|
-
"bronze",
|
|
41
|
-
"brown",
|
|
42
|
-
"crimson",
|
|
43
|
-
"cyan",
|
|
44
|
-
"gold",
|
|
45
|
-
"grass",
|
|
46
|
-
"gray",
|
|
47
|
-
"green",
|
|
48
|
-
"indigo",
|
|
49
|
-
"iris",
|
|
50
|
-
"jade",
|
|
51
|
-
"lime",
|
|
52
|
-
"mint",
|
|
53
|
-
"orange",
|
|
54
|
-
"pink",
|
|
55
|
-
"plum",
|
|
56
|
-
"purple",
|
|
57
|
-
"red",
|
|
58
|
-
"ruby",
|
|
59
|
-
"sky",
|
|
60
|
-
"teal",
|
|
61
|
-
"tomato",
|
|
62
|
-
"violet",
|
|
63
|
-
"yellow",
|
|
64
|
-
]
|
|
65
|
-
| Var[
|
|
66
|
-
Literal[
|
|
67
|
-
"amber",
|
|
68
|
-
"blue",
|
|
69
|
-
"bronze",
|
|
70
|
-
"brown",
|
|
71
|
-
"crimson",
|
|
72
|
-
"cyan",
|
|
73
|
-
"gold",
|
|
74
|
-
"grass",
|
|
75
|
-
"gray",
|
|
76
|
-
"green",
|
|
77
|
-
"indigo",
|
|
78
|
-
"iris",
|
|
79
|
-
"jade",
|
|
80
|
-
"lime",
|
|
81
|
-
"mint",
|
|
82
|
-
"orange",
|
|
83
|
-
"pink",
|
|
84
|
-
"plum",
|
|
85
|
-
"purple",
|
|
86
|
-
"red",
|
|
87
|
-
"ruby",
|
|
88
|
-
"sky",
|
|
89
|
-
"teal",
|
|
90
|
-
"tomato",
|
|
91
|
-
"violet",
|
|
92
|
-
"yellow",
|
|
93
|
-
]
|
|
94
|
-
]
|
|
95
|
-
| None = None,
|
|
96
|
-
radius: Literal["full", "large", "medium", "none", "small"]
|
|
97
|
-
| Var[Literal["full", "large", "medium", "none", "small"]]
|
|
98
|
-
| None = None,
|
|
99
|
-
auto_complete: Var[bool] | bool | None = None,
|
|
23
|
+
auto_complete: Var[str] | str | None = None,
|
|
100
24
|
auto_focus: Var[bool] | bool | None = None,
|
|
25
|
+
auto_height: Var[bool] | bool | None = None,
|
|
26
|
+
cols: Var[int | str] | int | str | None = None,
|
|
101
27
|
default_value: Var[str] | str | None = None,
|
|
102
28
|
dirname: Var[str] | str | None = None,
|
|
103
29
|
disabled: Var[bool] | bool | None = None,
|
|
30
|
+
enter_key_submit: Var[bool] | bool | None = None,
|
|
104
31
|
form: Var[str] | str | None = None,
|
|
105
|
-
max_length: Var[int] | int | None = None,
|
|
106
|
-
min_length: Var[int] | int | None = None,
|
|
32
|
+
max_length: Var[int | str] | int | str | None = None,
|
|
33
|
+
min_length: Var[int | str] | int | str | None = None,
|
|
107
34
|
name: Var[str] | str | None = None,
|
|
108
35
|
placeholder: Var[str] | str | None = None,
|
|
109
36
|
read_only: Var[bool] | bool | None = None,
|
|
110
37
|
required: Var[bool] | bool | None = None,
|
|
111
|
-
rows: Var[str] | str | None = None,
|
|
38
|
+
rows: Var[int | str] | int | str | None = None,
|
|
112
39
|
value: Var[str] | str | None = None,
|
|
113
40
|
wrap: Var[str] | str | None = None,
|
|
114
|
-
auto_height: Var[bool] | bool | None = None,
|
|
115
|
-
cols: Var[int | str] | int | str | None = None,
|
|
116
|
-
enter_key_submit: Var[bool] | bool | None = None,
|
|
117
|
-
access_key: Var[str] | str | None = None,
|
|
118
|
-
auto_capitalize: Literal[
|
|
119
|
-
"characters", "none", "off", "on", "sentences", "words"
|
|
120
|
-
]
|
|
121
|
-
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
122
|
-
| None = None,
|
|
123
|
-
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
124
|
-
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
125
|
-
| None = None,
|
|
126
|
-
context_menu: Var[str] | str | None = None,
|
|
127
|
-
dir: Var[str] | str | None = None,
|
|
128
|
-
draggable: Var[bool] | bool | None = None,
|
|
129
|
-
enter_key_hint: Literal[
|
|
130
|
-
"done", "enter", "go", "next", "previous", "search", "send"
|
|
131
|
-
]
|
|
132
|
-
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
133
|
-
| None = None,
|
|
134
|
-
hidden: Var[bool] | bool | None = None,
|
|
135
|
-
input_mode: Literal[
|
|
136
|
-
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
137
|
-
]
|
|
138
|
-
| Var[
|
|
139
|
-
Literal[
|
|
140
|
-
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
141
|
-
]
|
|
142
|
-
]
|
|
143
|
-
| None = None,
|
|
144
|
-
item_prop: Var[str] | str | None = None,
|
|
145
|
-
lang: Var[str] | str | None = None,
|
|
146
|
-
role: Literal[
|
|
147
|
-
"alert",
|
|
148
|
-
"alertdialog",
|
|
149
|
-
"application",
|
|
150
|
-
"article",
|
|
151
|
-
"banner",
|
|
152
|
-
"button",
|
|
153
|
-
"cell",
|
|
154
|
-
"checkbox",
|
|
155
|
-
"columnheader",
|
|
156
|
-
"combobox",
|
|
157
|
-
"complementary",
|
|
158
|
-
"contentinfo",
|
|
159
|
-
"definition",
|
|
160
|
-
"dialog",
|
|
161
|
-
"directory",
|
|
162
|
-
"document",
|
|
163
|
-
"feed",
|
|
164
|
-
"figure",
|
|
165
|
-
"form",
|
|
166
|
-
"grid",
|
|
167
|
-
"gridcell",
|
|
168
|
-
"group",
|
|
169
|
-
"heading",
|
|
170
|
-
"img",
|
|
171
|
-
"link",
|
|
172
|
-
"list",
|
|
173
|
-
"listbox",
|
|
174
|
-
"listitem",
|
|
175
|
-
"log",
|
|
176
|
-
"main",
|
|
177
|
-
"marquee",
|
|
178
|
-
"math",
|
|
179
|
-
"menu",
|
|
180
|
-
"menubar",
|
|
181
|
-
"menuitem",
|
|
182
|
-
"menuitemcheckbox",
|
|
183
|
-
"menuitemradio",
|
|
184
|
-
"navigation",
|
|
185
|
-
"none",
|
|
186
|
-
"note",
|
|
187
|
-
"option",
|
|
188
|
-
"presentation",
|
|
189
|
-
"progressbar",
|
|
190
|
-
"radio",
|
|
191
|
-
"radiogroup",
|
|
192
|
-
"region",
|
|
193
|
-
"row",
|
|
194
|
-
"rowgroup",
|
|
195
|
-
"rowheader",
|
|
196
|
-
"scrollbar",
|
|
197
|
-
"search",
|
|
198
|
-
"searchbox",
|
|
199
|
-
"separator",
|
|
200
|
-
"slider",
|
|
201
|
-
"spinbutton",
|
|
202
|
-
"status",
|
|
203
|
-
"switch",
|
|
204
|
-
"tab",
|
|
205
|
-
"table",
|
|
206
|
-
"tablist",
|
|
207
|
-
"tabpanel",
|
|
208
|
-
"term",
|
|
209
|
-
"textbox",
|
|
210
|
-
"timer",
|
|
211
|
-
"toolbar",
|
|
212
|
-
"tooltip",
|
|
213
|
-
"tree",
|
|
214
|
-
"treegrid",
|
|
215
|
-
"treeitem",
|
|
216
|
-
]
|
|
217
|
-
| Var[
|
|
218
|
-
Literal[
|
|
219
|
-
"alert",
|
|
220
|
-
"alertdialog",
|
|
221
|
-
"application",
|
|
222
|
-
"article",
|
|
223
|
-
"banner",
|
|
224
|
-
"button",
|
|
225
|
-
"cell",
|
|
226
|
-
"checkbox",
|
|
227
|
-
"columnheader",
|
|
228
|
-
"combobox",
|
|
229
|
-
"complementary",
|
|
230
|
-
"contentinfo",
|
|
231
|
-
"definition",
|
|
232
|
-
"dialog",
|
|
233
|
-
"directory",
|
|
234
|
-
"document",
|
|
235
|
-
"feed",
|
|
236
|
-
"figure",
|
|
237
|
-
"form",
|
|
238
|
-
"grid",
|
|
239
|
-
"gridcell",
|
|
240
|
-
"group",
|
|
241
|
-
"heading",
|
|
242
|
-
"img",
|
|
243
|
-
"link",
|
|
244
|
-
"list",
|
|
245
|
-
"listbox",
|
|
246
|
-
"listitem",
|
|
247
|
-
"log",
|
|
248
|
-
"main",
|
|
249
|
-
"marquee",
|
|
250
|
-
"math",
|
|
251
|
-
"menu",
|
|
252
|
-
"menubar",
|
|
253
|
-
"menuitem",
|
|
254
|
-
"menuitemcheckbox",
|
|
255
|
-
"menuitemradio",
|
|
256
|
-
"navigation",
|
|
257
|
-
"none",
|
|
258
|
-
"note",
|
|
259
|
-
"option",
|
|
260
|
-
"presentation",
|
|
261
|
-
"progressbar",
|
|
262
|
-
"radio",
|
|
263
|
-
"radiogroup",
|
|
264
|
-
"region",
|
|
265
|
-
"row",
|
|
266
|
-
"rowgroup",
|
|
267
|
-
"rowheader",
|
|
268
|
-
"scrollbar",
|
|
269
|
-
"search",
|
|
270
|
-
"searchbox",
|
|
271
|
-
"separator",
|
|
272
|
-
"slider",
|
|
273
|
-
"spinbutton",
|
|
274
|
-
"status",
|
|
275
|
-
"switch",
|
|
276
|
-
"tab",
|
|
277
|
-
"table",
|
|
278
|
-
"tablist",
|
|
279
|
-
"tabpanel",
|
|
280
|
-
"term",
|
|
281
|
-
"textbox",
|
|
282
|
-
"timer",
|
|
283
|
-
"toolbar",
|
|
284
|
-
"tooltip",
|
|
285
|
-
"tree",
|
|
286
|
-
"treegrid",
|
|
287
|
-
"treeitem",
|
|
288
|
-
]
|
|
289
|
-
]
|
|
290
|
-
| None = None,
|
|
291
|
-
slot: Var[str] | str | None = None,
|
|
292
|
-
spell_check: Var[bool] | bool | None = None,
|
|
293
|
-
tab_index: Var[int] | int | None = None,
|
|
294
|
-
title: Var[str] | str | None = None,
|
|
295
41
|
style: Sequence[Mapping[str, Any]]
|
|
296
42
|
| Mapping[str, Any]
|
|
297
43
|
| Var[Mapping[str, Any]]
|
|
@@ -333,11 +79,6 @@ class TextArea(RadixThemesComponent, elements.Textarea):
|
|
|
333
79
|
|
|
334
80
|
Args:
|
|
335
81
|
*children: The children of the component.
|
|
336
|
-
size: The size of the text area: "1" | "2" | "3"
|
|
337
|
-
variant: The variant of the text area
|
|
338
|
-
resize: The resize behavior of the text area: "none" | "vertical" | "horizontal" | "both"
|
|
339
|
-
color_scheme: The color of the text area
|
|
340
|
-
radius: The radius of the text area: "none" | "small" | "medium" | "large" | "full"
|
|
341
82
|
auto_complete: Whether the form control should have autocomplete enabled
|
|
342
83
|
auto_focus: Automatically focuses the textarea when the page loads
|
|
343
84
|
default_value: The default value of the textarea when initially rendered
|
|
@@ -361,22 +102,6 @@ class TextArea(RadixThemesComponent, elements.Textarea):
|
|
|
361
102
|
on_blur: Fired when the input loses focus
|
|
362
103
|
on_key_down: Fired when a key is pressed down
|
|
363
104
|
on_key_up: Fired when a key is released
|
|
364
|
-
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
|
365
|
-
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
366
|
-
content_editable: Indicates whether the element's content is editable.
|
|
367
|
-
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
368
|
-
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
369
|
-
draggable: Defines whether the element can be dragged.
|
|
370
|
-
enter_key_hint: Hints what media types the media element is able to play.
|
|
371
|
-
hidden: Defines whether the element is hidden.
|
|
372
|
-
input_mode: Defines the type of the element.
|
|
373
|
-
item_prop: Defines the name of the element for metadata purposes.
|
|
374
|
-
lang: Defines the language used in the element.
|
|
375
|
-
role: Defines the role of the element.
|
|
376
|
-
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
377
|
-
spell_check: Defines whether the element may be checked for spelling errors.
|
|
378
|
-
tab_index: Defines the position of the current element in the tabbing order.
|
|
379
|
-
title: Defines a tooltip for the element.
|
|
380
105
|
style: The style of the component.
|
|
381
106
|
key: A unique key for the component.
|
|
382
107
|
id: The id for the component.
|