reflex 0.8.15a2__py3-none-any.whl → 0.8.16a1__py3-none-any.whl

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

Potentially problematic release.


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

Files changed (138) hide show
  1. reflex/app.py +40 -46
  2. reflex/app_mixins/lifespan.py +12 -5
  3. reflex/base.py +1 -0
  4. reflex/compiler/compiler.py +4 -6
  5. reflex/compiler/templates.py +25 -31
  6. reflex/compiler/utils.py +6 -5
  7. reflex/components/base/body.pyi +1 -195
  8. reflex/components/base/link.pyi +1 -407
  9. reflex/components/base/meta.pyi +1 -405
  10. reflex/components/base/script.pyi +1 -237
  11. reflex/components/component.py +41 -46
  12. reflex/components/core/auto_scroll.pyi +1 -195
  13. reflex/components/core/banner.pyi +1 -391
  14. reflex/components/core/breakpoints.py +14 -18
  15. reflex/components/core/html.pyi +1 -197
  16. reflex/components/core/match.py +2 -2
  17. reflex/components/core/sticky.py +11 -15
  18. reflex/components/core/sticky.pyi +0 -788
  19. reflex/components/core/upload.py +1 -3
  20. reflex/components/datadisplay/code.pyi +1 -0
  21. reflex/components/datadisplay/dataeditor.py +4 -6
  22. reflex/components/datadisplay/shiki_code_block.py +106 -110
  23. reflex/components/dynamic.py +4 -6
  24. reflex/components/el/elements/__init__.py +5 -7
  25. reflex/components/el/elements/__init__.pyi +5 -7
  26. reflex/components/el/elements/base.py +1 -1
  27. reflex/components/el/elements/base.pyi +1 -195
  28. reflex/components/el/elements/forms.py +7 -9
  29. reflex/components/el/elements/forms.pyi +12 -3112
  30. reflex/components/el/elements/inline.pyi +0 -5481
  31. reflex/components/el/elements/media.pyi +0 -10280
  32. reflex/components/el/elements/metadata.pyi +1 -835
  33. reflex/components/el/elements/other.pyi +1 -1365
  34. reflex/components/el/elements/scripts.pyi +1 -625
  35. reflex/components/el/elements/sectioning.pyi +1 -2911
  36. reflex/components/el/elements/tables.pyi +1 -1973
  37. reflex/components/el/elements/typography.pyi +1 -3125
  38. reflex/components/lucide/icon.py +4 -4
  39. reflex/components/lucide/icon.pyi +0 -4
  40. reflex/components/markdown/markdown.py +15 -19
  41. reflex/components/markdown/markdown.pyi +1 -0
  42. reflex/components/moment/moment.pyi +0 -49
  43. reflex/components/props.py +3 -3
  44. reflex/components/radix/primitives/accordion.py +4 -6
  45. reflex/components/radix/primitives/accordion.pyi +0 -14
  46. reflex/components/radix/primitives/base.pyi +0 -5
  47. reflex/components/radix/primitives/dialog.py +2 -0
  48. reflex/components/radix/primitives/dialog.pyi +1 -233
  49. reflex/components/radix/primitives/drawer.pyi +0 -18
  50. reflex/components/radix/primitives/form.pyi +30 -632
  51. reflex/components/radix/primitives/progress.pyi +0 -10
  52. reflex/components/radix/primitives/slider.pyi +0 -10
  53. reflex/components/radix/themes/color_mode.pyi +1 -284
  54. reflex/components/radix/themes/components/alert_dialog.pyi +0 -207
  55. reflex/components/radix/themes/components/aspect_ratio.pyi +0 -2
  56. reflex/components/radix/themes/components/avatar.pyi +0 -80
  57. reflex/components/radix/themes/components/badge.pyi +1 -270
  58. reflex/components/radix/themes/components/button.pyi +1 -274
  59. reflex/components/radix/themes/components/callout.pyi +0 -1197
  60. reflex/components/radix/themes/components/card.pyi +1 -209
  61. reflex/components/radix/themes/components/checkbox.pyi +0 -261
  62. reflex/components/radix/themes/components/checkbox_cards.pyi +1 -96
  63. reflex/components/radix/themes/components/checkbox_group.pyi +1 -80
  64. reflex/components/radix/themes/components/context_menu.pyi +13 -321
  65. reflex/components/radix/themes/components/data_list.pyi +1 -107
  66. reflex/components/radix/themes/components/dialog.pyi +1 -210
  67. reflex/components/radix/themes/components/dropdown_menu.pyi +0 -209
  68. reflex/components/radix/themes/components/hover_card.pyi +1 -246
  69. reflex/components/radix/themes/components/icon_button.pyi +1 -195
  70. reflex/components/radix/themes/components/inset.pyi +0 -252
  71. reflex/components/radix/themes/components/popover.pyi +1 -234
  72. reflex/components/radix/themes/components/progress.pyi +1 -84
  73. reflex/components/radix/themes/components/radio.pyi +1 -72
  74. reflex/components/radix/themes/components/radio_cards.pyi +1 -123
  75. reflex/components/radix/themes/components/scroll_area.pyi +1 -11
  76. reflex/components/radix/themes/components/select.pyi +1 -376
  77. reflex/components/radix/themes/components/separator.pyi +0 -77
  78. reflex/components/radix/themes/components/skeleton.pyi +0 -30
  79. reflex/components/radix/themes/components/slider.py +3 -5
  80. reflex/components/radix/themes/components/spinner.pyi +0 -5
  81. reflex/components/radix/themes/components/switch.pyi +0 -89
  82. reflex/components/radix/themes/components/table.pyi +0 -1453
  83. reflex/components/radix/themes/components/text_area.pyi +7 -282
  84. reflex/components/radix/themes/components/text_field.pyi +6 -392
  85. reflex/components/radix/themes/components/tooltip.pyi +0 -42
  86. reflex/components/radix/themes/layout/box.pyi +1 -195
  87. reflex/components/radix/themes/layout/center.pyi +0 -194
  88. reflex/components/radix/themes/layout/container.pyi +0 -178
  89. reflex/components/radix/themes/layout/flex.pyi +0 -194
  90. reflex/components/radix/themes/layout/grid.pyi +0 -194
  91. reflex/components/radix/themes/layout/list.pyi +0 -978
  92. reflex/components/radix/themes/layout/section.pyi +0 -194
  93. reflex/components/radix/themes/layout/spacer.pyi +0 -194
  94. reflex/components/radix/themes/layout/stack.pyi +0 -582
  95. reflex/components/radix/themes/typography/blockquote.pyi +0 -196
  96. reflex/components/radix/themes/typography/code.pyi +0 -194
  97. reflex/components/radix/themes/typography/heading.pyi +0 -194
  98. reflex/components/radix/themes/typography/link.pyi +0 -237
  99. reflex/components/radix/themes/typography/text.pyi +0 -1360
  100. reflex/components/react_router/dom.pyi +0 -237
  101. reflex/components/recharts/cartesian.py +12 -18
  102. reflex/components/recharts/general.py +12 -18
  103. reflex/constants/installer.py +5 -5
  104. reflex/custom_components/custom_components.py +6 -5
  105. reflex/environment.py +30 -7
  106. reflex/event.py +14 -12
  107. reflex/experimental/client_state.py +11 -12
  108. reflex/istate/data.py +8 -10
  109. reflex/istate/manager/__init__.py +3 -0
  110. reflex/istate/manager/disk.py +151 -5
  111. reflex/model.py +1 -1
  112. reflex/plugins/_screenshot.py +2 -2
  113. reflex/plugins/shared_tailwind.py +9 -14
  114. reflex/reflex.py +7 -9
  115. reflex/state.py +30 -37
  116. reflex/style.py +6 -6
  117. reflex/testing.py +54 -30
  118. reflex/utils/codespaces.py +1 -1
  119. reflex/utils/compat.py +1 -0
  120. reflex/utils/decorator.py +3 -3
  121. reflex/utils/format.py +18 -22
  122. reflex/utils/prerequisites.py +1 -1
  123. reflex/utils/pyi_generator.py +51 -57
  124. reflex/utils/serializers.py +1 -1
  125. reflex/utils/telemetry.py +1 -1
  126. reflex/utils/templates.py +4 -4
  127. reflex/utils/types.py +3 -3
  128. reflex/vars/base.py +26 -29
  129. reflex/vars/color.py +6 -8
  130. reflex/vars/dep_tracking.py +5 -3
  131. reflex/vars/function.py +3 -3
  132. reflex/vars/object.py +9 -13
  133. reflex/vars/sequence.py +18 -24
  134. {reflex-0.8.15a2.dist-info → reflex-0.8.16a1.dist-info}/METADATA +1 -1
  135. {reflex-0.8.15a2.dist-info → reflex-0.8.16a1.dist-info}/RECORD +138 -138
  136. {reflex-0.8.15a2.dist-info → reflex-0.8.16a1.dist-info}/WHEEL +0 -0
  137. {reflex-0.8.15a2.dist-info → reflex-0.8.16a1.dist-info}/entry_points.txt +0 -0
  138. {reflex-0.8.15a2.dist-info → reflex-0.8.16a1.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, Literal
7
+ from typing import Any
8
8
 
9
9
  from reflex.components.core.breakpoints import Breakpoints
10
10
  from reflex.components.el.elements.base import BaseHTML
@@ -16,186 +16,6 @@ class RawLink(BaseHTML):
16
16
  def create(
17
17
  cls,
18
18
  *children,
19
- href: Var[str] | str | None = None,
20
- rel: Var[str] | str | None = None,
21
- access_key: Var[str] | str | None = None,
22
- auto_capitalize: Literal[
23
- "characters", "none", "off", "on", "sentences", "words"
24
- ]
25
- | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
26
- | None = None,
27
- content_editable: Literal["inherit", "plaintext-only", False, True]
28
- | Var[Literal["inherit", "plaintext-only", False, True]]
29
- | None = None,
30
- context_menu: Var[str] | str | None = None,
31
- dir: Var[str] | str | None = None,
32
- draggable: Var[bool] | bool | None = None,
33
- enter_key_hint: Literal[
34
- "done", "enter", "go", "next", "previous", "search", "send"
35
- ]
36
- | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
37
- | None = None,
38
- hidden: Var[bool] | bool | None = None,
39
- input_mode: Literal[
40
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
41
- ]
42
- | Var[
43
- Literal[
44
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
45
- ]
46
- ]
47
- | None = None,
48
- item_prop: Var[str] | str | None = None,
49
- lang: Var[str] | str | None = None,
50
- role: Literal[
51
- "alert",
52
- "alertdialog",
53
- "application",
54
- "article",
55
- "banner",
56
- "button",
57
- "cell",
58
- "checkbox",
59
- "columnheader",
60
- "combobox",
61
- "complementary",
62
- "contentinfo",
63
- "definition",
64
- "dialog",
65
- "directory",
66
- "document",
67
- "feed",
68
- "figure",
69
- "form",
70
- "grid",
71
- "gridcell",
72
- "group",
73
- "heading",
74
- "img",
75
- "link",
76
- "list",
77
- "listbox",
78
- "listitem",
79
- "log",
80
- "main",
81
- "marquee",
82
- "math",
83
- "menu",
84
- "menubar",
85
- "menuitem",
86
- "menuitemcheckbox",
87
- "menuitemradio",
88
- "navigation",
89
- "none",
90
- "note",
91
- "option",
92
- "presentation",
93
- "progressbar",
94
- "radio",
95
- "radiogroup",
96
- "region",
97
- "row",
98
- "rowgroup",
99
- "rowheader",
100
- "scrollbar",
101
- "search",
102
- "searchbox",
103
- "separator",
104
- "slider",
105
- "spinbutton",
106
- "status",
107
- "switch",
108
- "tab",
109
- "table",
110
- "tablist",
111
- "tabpanel",
112
- "term",
113
- "textbox",
114
- "timer",
115
- "toolbar",
116
- "tooltip",
117
- "tree",
118
- "treegrid",
119
- "treeitem",
120
- ]
121
- | Var[
122
- Literal[
123
- "alert",
124
- "alertdialog",
125
- "application",
126
- "article",
127
- "banner",
128
- "button",
129
- "cell",
130
- "checkbox",
131
- "columnheader",
132
- "combobox",
133
- "complementary",
134
- "contentinfo",
135
- "definition",
136
- "dialog",
137
- "directory",
138
- "document",
139
- "feed",
140
- "figure",
141
- "form",
142
- "grid",
143
- "gridcell",
144
- "group",
145
- "heading",
146
- "img",
147
- "link",
148
- "list",
149
- "listbox",
150
- "listitem",
151
- "log",
152
- "main",
153
- "marquee",
154
- "math",
155
- "menu",
156
- "menubar",
157
- "menuitem",
158
- "menuitemcheckbox",
159
- "menuitemradio",
160
- "navigation",
161
- "none",
162
- "note",
163
- "option",
164
- "presentation",
165
- "progressbar",
166
- "radio",
167
- "radiogroup",
168
- "region",
169
- "row",
170
- "rowgroup",
171
- "rowheader",
172
- "scrollbar",
173
- "search",
174
- "searchbox",
175
- "separator",
176
- "slider",
177
- "spinbutton",
178
- "status",
179
- "switch",
180
- "tab",
181
- "table",
182
- "tablist",
183
- "tabpanel",
184
- "term",
185
- "textbox",
186
- "timer",
187
- "toolbar",
188
- "tooltip",
189
- "tree",
190
- "treegrid",
191
- "treeitem",
192
- ]
193
- ]
194
- | None = None,
195
- slot: Var[str] | str | None = None,
196
- spell_check: Var[bool] | bool | None = None,
197
- tab_index: Var[int] | int | None = None,
198
- title: Var[str] | str | None = None,
199
19
  style: Sequence[Mapping[str, Any]]
200
20
  | Mapping[str, Any]
201
21
  | Var[Mapping[str, Any]]
@@ -228,24 +48,6 @@ class RawLink(BaseHTML):
228
48
 
229
49
  Args:
230
50
  *children: The children of the component.
231
- href: The href.
232
- rel: The type of link.
233
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
234
- auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
235
- content_editable: Indicates whether the element's content is editable.
236
- context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
237
- dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
238
- draggable: Defines whether the element can be dragged.
239
- enter_key_hint: Hints what media types the media element is able to play.
240
- hidden: Defines whether the element is hidden.
241
- input_mode: Defines the type of the element.
242
- item_prop: Defines the name of the element for metadata purposes.
243
- lang: Defines the language used in the element.
244
- role: Defines the role of the element.
245
- slot: Assigns a slot in a shadow DOM shadow tree to an element.
246
- spell_check: Defines whether the element may be checked for spelling errors.
247
- tab_index: Defines the position of the current element in the tabbing order.
248
- title: Defines a tooltip for the element.
249
51
  style: The style of the component.
250
52
  key: A unique key for the component.
251
53
  id: The id for the component.
@@ -263,191 +65,6 @@ class ScriptTag(BaseHTML):
263
65
  def create(
264
66
  cls,
265
67
  *children,
266
- type_: Var[str] | str | None = None,
267
- source: Var[str] | str | None = None,
268
- integrity: Var[str] | str | None = None,
269
- crossorigin: Var[str] | str | None = None,
270
- referrer_policy: Var[str] | str | None = None,
271
- is_async: Var[bool] | bool | None = None,
272
- defer: Var[bool] | bool | None = None,
273
- access_key: Var[str] | str | None = None,
274
- auto_capitalize: Literal[
275
- "characters", "none", "off", "on", "sentences", "words"
276
- ]
277
- | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
278
- | None = None,
279
- content_editable: Literal["inherit", "plaintext-only", False, True]
280
- | Var[Literal["inherit", "plaintext-only", False, True]]
281
- | None = None,
282
- context_menu: Var[str] | str | None = None,
283
- dir: Var[str] | str | None = None,
284
- draggable: Var[bool] | bool | None = None,
285
- enter_key_hint: Literal[
286
- "done", "enter", "go", "next", "previous", "search", "send"
287
- ]
288
- | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
289
- | None = None,
290
- hidden: Var[bool] | bool | None = None,
291
- input_mode: Literal[
292
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
293
- ]
294
- | Var[
295
- Literal[
296
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
297
- ]
298
- ]
299
- | None = None,
300
- item_prop: Var[str] | str | None = None,
301
- lang: Var[str] | str | None = None,
302
- role: Literal[
303
- "alert",
304
- "alertdialog",
305
- "application",
306
- "article",
307
- "banner",
308
- "button",
309
- "cell",
310
- "checkbox",
311
- "columnheader",
312
- "combobox",
313
- "complementary",
314
- "contentinfo",
315
- "definition",
316
- "dialog",
317
- "directory",
318
- "document",
319
- "feed",
320
- "figure",
321
- "form",
322
- "grid",
323
- "gridcell",
324
- "group",
325
- "heading",
326
- "img",
327
- "link",
328
- "list",
329
- "listbox",
330
- "listitem",
331
- "log",
332
- "main",
333
- "marquee",
334
- "math",
335
- "menu",
336
- "menubar",
337
- "menuitem",
338
- "menuitemcheckbox",
339
- "menuitemradio",
340
- "navigation",
341
- "none",
342
- "note",
343
- "option",
344
- "presentation",
345
- "progressbar",
346
- "radio",
347
- "radiogroup",
348
- "region",
349
- "row",
350
- "rowgroup",
351
- "rowheader",
352
- "scrollbar",
353
- "search",
354
- "searchbox",
355
- "separator",
356
- "slider",
357
- "spinbutton",
358
- "status",
359
- "switch",
360
- "tab",
361
- "table",
362
- "tablist",
363
- "tabpanel",
364
- "term",
365
- "textbox",
366
- "timer",
367
- "toolbar",
368
- "tooltip",
369
- "tree",
370
- "treegrid",
371
- "treeitem",
372
- ]
373
- | Var[
374
- Literal[
375
- "alert",
376
- "alertdialog",
377
- "application",
378
- "article",
379
- "banner",
380
- "button",
381
- "cell",
382
- "checkbox",
383
- "columnheader",
384
- "combobox",
385
- "complementary",
386
- "contentinfo",
387
- "definition",
388
- "dialog",
389
- "directory",
390
- "document",
391
- "feed",
392
- "figure",
393
- "form",
394
- "grid",
395
- "gridcell",
396
- "group",
397
- "heading",
398
- "img",
399
- "link",
400
- "list",
401
- "listbox",
402
- "listitem",
403
- "log",
404
- "main",
405
- "marquee",
406
- "math",
407
- "menu",
408
- "menubar",
409
- "menuitem",
410
- "menuitemcheckbox",
411
- "menuitemradio",
412
- "navigation",
413
- "none",
414
- "note",
415
- "option",
416
- "presentation",
417
- "progressbar",
418
- "radio",
419
- "radiogroup",
420
- "region",
421
- "row",
422
- "rowgroup",
423
- "rowheader",
424
- "scrollbar",
425
- "search",
426
- "searchbox",
427
- "separator",
428
- "slider",
429
- "spinbutton",
430
- "status",
431
- "switch",
432
- "tab",
433
- "table",
434
- "tablist",
435
- "tabpanel",
436
- "term",
437
- "textbox",
438
- "timer",
439
- "toolbar",
440
- "tooltip",
441
- "tree",
442
- "treegrid",
443
- "treeitem",
444
- ]
445
- ]
446
- | None = None,
447
- slot: Var[str] | str | None = None,
448
- spell_check: Var[bool] | bool | None = None,
449
- tab_index: Var[int] | int | None = None,
450
- title: Var[str] | str | None = None,
451
68
  style: Sequence[Mapping[str, Any]]
452
69
  | Mapping[str, Any]
453
70
  | Var[Mapping[str, Any]]
@@ -480,29 +97,6 @@ class ScriptTag(BaseHTML):
480
97
 
481
98
  Args:
482
99
  *children: The children of the component.
483
- type_: The type of script represented.
484
- source: The URI of an external script.
485
- integrity: Metadata to verify the content of the script.
486
- crossorigin: Whether to allow cross-origin requests.
487
- referrer_policy: Indicates which referrer to send when fetching the script.
488
- is_async: Whether to asynchronously load the script.
489
- defer: Whether to defer loading the script.
490
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
491
- auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
492
- content_editable: Indicates whether the element's content is editable.
493
- context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
494
- dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
495
- draggable: Defines whether the element can be dragged.
496
- enter_key_hint: Hints what media types the media element is able to play.
497
- hidden: Defines whether the element is hidden.
498
- input_mode: Defines the type of the element.
499
- item_prop: Defines the name of the element for metadata purposes.
500
- lang: Defines the language used in the element.
501
- role: Defines the role of the element.
502
- slot: Assigns a slot in a shadow DOM shadow tree to an element.
503
- spell_check: Defines whether the element may be checked for spelling errors.
504
- tab_index: Defines the position of the current element in the tabbing order.
505
- title: Defines a tooltip for the element.
506
100
  style: The style of the component.
507
101
  key: A unique key for the component.
508
102
  id: The id for the component.