reflex 0.8.15a2__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.

Files changed (139) 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/core/window_events.pyi +6 -5
  21. reflex/components/datadisplay/code.pyi +1 -0
  22. reflex/components/datadisplay/dataeditor.py +4 -6
  23. reflex/components/datadisplay/shiki_code_block.py +106 -110
  24. reflex/components/dynamic.py +4 -6
  25. reflex/components/el/elements/__init__.py +5 -7
  26. reflex/components/el/elements/__init__.pyi +5 -7
  27. reflex/components/el/elements/base.py +1 -1
  28. reflex/components/el/elements/base.pyi +1 -195
  29. reflex/components/el/elements/forms.py +7 -9
  30. reflex/components/el/elements/forms.pyi +12 -3112
  31. reflex/components/el/elements/inline.pyi +0 -5481
  32. reflex/components/el/elements/media.pyi +0 -10280
  33. reflex/components/el/elements/metadata.pyi +1 -835
  34. reflex/components/el/elements/other.pyi +1 -1365
  35. reflex/components/el/elements/scripts.pyi +1 -625
  36. reflex/components/el/elements/sectioning.pyi +1 -2911
  37. reflex/components/el/elements/tables.pyi +1 -1973
  38. reflex/components/el/elements/typography.pyi +1 -3125
  39. reflex/components/lucide/icon.py +4 -4
  40. reflex/components/lucide/icon.pyi +0 -4
  41. reflex/components/markdown/markdown.py +15 -19
  42. reflex/components/markdown/markdown.pyi +1 -0
  43. reflex/components/moment/moment.pyi +0 -49
  44. reflex/components/props.py +3 -3
  45. reflex/components/radix/primitives/accordion.py +4 -6
  46. reflex/components/radix/primitives/accordion.pyi +0 -14
  47. reflex/components/radix/primitives/base.pyi +0 -5
  48. reflex/components/radix/primitives/dialog.py +2 -0
  49. reflex/components/radix/primitives/dialog.pyi +1 -233
  50. reflex/components/radix/primitives/drawer.pyi +0 -18
  51. reflex/components/radix/primitives/form.pyi +30 -632
  52. reflex/components/radix/primitives/progress.pyi +0 -10
  53. reflex/components/radix/primitives/slider.pyi +0 -10
  54. reflex/components/radix/themes/color_mode.pyi +1 -284
  55. reflex/components/radix/themes/components/alert_dialog.pyi +0 -207
  56. reflex/components/radix/themes/components/aspect_ratio.pyi +0 -2
  57. reflex/components/radix/themes/components/avatar.pyi +0 -80
  58. reflex/components/radix/themes/components/badge.pyi +1 -270
  59. reflex/components/radix/themes/components/button.pyi +1 -274
  60. reflex/components/radix/themes/components/callout.pyi +0 -1197
  61. reflex/components/radix/themes/components/card.pyi +1 -209
  62. reflex/components/radix/themes/components/checkbox.pyi +0 -261
  63. reflex/components/radix/themes/components/checkbox_cards.pyi +1 -96
  64. reflex/components/radix/themes/components/checkbox_group.pyi +1 -80
  65. reflex/components/radix/themes/components/context_menu.pyi +13 -321
  66. reflex/components/radix/themes/components/data_list.pyi +1 -107
  67. reflex/components/radix/themes/components/dialog.pyi +1 -210
  68. reflex/components/radix/themes/components/dropdown_menu.pyi +0 -209
  69. reflex/components/radix/themes/components/hover_card.pyi +1 -246
  70. reflex/components/radix/themes/components/icon_button.pyi +1 -195
  71. reflex/components/radix/themes/components/inset.pyi +0 -252
  72. reflex/components/radix/themes/components/popover.pyi +1 -234
  73. reflex/components/radix/themes/components/progress.pyi +1 -84
  74. reflex/components/radix/themes/components/radio.pyi +1 -72
  75. reflex/components/radix/themes/components/radio_cards.pyi +1 -123
  76. reflex/components/radix/themes/components/scroll_area.pyi +1 -11
  77. reflex/components/radix/themes/components/select.pyi +1 -376
  78. reflex/components/radix/themes/components/separator.pyi +0 -77
  79. reflex/components/radix/themes/components/skeleton.pyi +0 -30
  80. reflex/components/radix/themes/components/slider.py +3 -5
  81. reflex/components/radix/themes/components/spinner.pyi +0 -5
  82. reflex/components/radix/themes/components/switch.pyi +0 -89
  83. reflex/components/radix/themes/components/table.pyi +0 -1453
  84. reflex/components/radix/themes/components/text_area.pyi +7 -282
  85. reflex/components/radix/themes/components/text_field.pyi +6 -392
  86. reflex/components/radix/themes/components/tooltip.pyi +0 -42
  87. reflex/components/radix/themes/layout/box.pyi +1 -195
  88. reflex/components/radix/themes/layout/center.pyi +0 -194
  89. reflex/components/radix/themes/layout/container.pyi +0 -178
  90. reflex/components/radix/themes/layout/flex.pyi +0 -194
  91. reflex/components/radix/themes/layout/grid.pyi +0 -194
  92. reflex/components/radix/themes/layout/list.pyi +0 -978
  93. reflex/components/radix/themes/layout/section.pyi +0 -194
  94. reflex/components/radix/themes/layout/spacer.pyi +0 -194
  95. reflex/components/radix/themes/layout/stack.pyi +0 -582
  96. reflex/components/radix/themes/typography/blockquote.pyi +0 -196
  97. reflex/components/radix/themes/typography/code.pyi +0 -194
  98. reflex/components/radix/themes/typography/heading.pyi +0 -194
  99. reflex/components/radix/themes/typography/link.pyi +0 -237
  100. reflex/components/radix/themes/typography/text.pyi +0 -1360
  101. reflex/components/react_router/dom.pyi +0 -237
  102. reflex/components/recharts/cartesian.py +12 -18
  103. reflex/components/recharts/general.py +12 -18
  104. reflex/constants/installer.py +5 -5
  105. reflex/custom_components/custom_components.py +6 -5
  106. reflex/environment.py +30 -7
  107. reflex/event.py +14 -12
  108. reflex/experimental/client_state.py +11 -12
  109. reflex/istate/data.py +8 -10
  110. reflex/istate/manager/__init__.py +3 -0
  111. reflex/istate/manager/disk.py +151 -5
  112. reflex/model.py +1 -1
  113. reflex/plugins/_screenshot.py +2 -2
  114. reflex/plugins/shared_tailwind.py +9 -14
  115. reflex/reflex.py +7 -9
  116. reflex/state.py +30 -37
  117. reflex/style.py +6 -6
  118. reflex/testing.py +54 -30
  119. reflex/utils/codespaces.py +1 -1
  120. reflex/utils/compat.py +1 -0
  121. reflex/utils/decorator.py +3 -3
  122. reflex/utils/format.py +18 -22
  123. reflex/utils/prerequisites.py +1 -1
  124. reflex/utils/pyi_generator.py +51 -57
  125. reflex/utils/serializers.py +1 -1
  126. reflex/utils/telemetry.py +1 -1
  127. reflex/utils/templates.py +4 -4
  128. reflex/utils/types.py +3 -3
  129. reflex/vars/base.py +26 -29
  130. reflex/vars/color.py +6 -8
  131. reflex/vars/dep_tracking.py +5 -3
  132. reflex/vars/function.py +3 -3
  133. reflex/vars/object.py +9 -13
  134. reflex/vars/sequence.py +18 -24
  135. {reflex-0.8.15a2.dist-info → reflex-0.8.16.dist-info}/METADATA +1 -1
  136. {reflex-0.8.15a2.dist-info → reflex-0.8.16.dist-info}/RECORD +139 -139
  137. {reflex-0.8.15a2.dist-info → reflex-0.8.16.dist-info}/WHEEL +0 -0
  138. {reflex-0.8.15a2.dist-info → reflex-0.8.16.dist-info}/entry_points.txt +0 -0
  139. {reflex-0.8.15a2.dist-info → reflex-0.8.16.dist-info}/licenses/LICENSE +0 -0
@@ -5,7 +5,7 @@
5
5
  # ------------------------------------------------------
6
6
  from collections.abc import Mapping, Sequence
7
7
  from types import SimpleNamespace
8
- from typing import Any, Literal
8
+ from typing import Any
9
9
 
10
10
  from reflex.components.core.breakpoints import Breakpoints
11
11
  from reflex.components.radix.themes.base import RadixThemesComponent
@@ -17,24 +17,6 @@ class DataListRoot(RadixThemesComponent):
17
17
  def create(
18
18
  cls,
19
19
  *children,
20
- orientation: Breakpoints[str, Literal["horizontal", "vertical"]]
21
- | Literal["horizontal", "vertical"]
22
- | Var[
23
- Breakpoints[str, Literal["horizontal", "vertical"]]
24
- | Literal["horizontal", "vertical"]
25
- ]
26
- | None = None,
27
- size: Breakpoints[str, Literal["1", "2", "3"]]
28
- | Literal["1", "2", "3"]
29
- | Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
30
- | None = None,
31
- trim: Breakpoints[str, Literal["both", "end", "normal", "start"]]
32
- | Literal["both", "end", "normal", "start"]
33
- | Var[
34
- Breakpoints[str, Literal["both", "end", "normal", "start"]]
35
- | Literal["both", "end", "normal", "start"]
36
- ]
37
- | None = None,
38
20
  style: Sequence[Mapping[str, Any]]
39
21
  | Mapping[str, Any]
40
22
  | Var[Mapping[str, Any]]
@@ -70,9 +52,6 @@ class DataListRoot(RadixThemesComponent):
70
52
 
71
53
  Args:
72
54
  *children: Child components.
73
- orientation: The orientation of the data list item: "horizontal" | "vertical"
74
- size: The size of the data list item: "1" | "2" | "3"
75
- trim: Trims the leading whitespace from the start or end of the text.
76
55
  style: The style of the component.
77
56
  key: A unique key for the component.
78
57
  id: The id for the component.
@@ -90,15 +69,6 @@ class DataListItem(RadixThemesComponent):
90
69
  def create(
91
70
  cls,
92
71
  *children,
93
- align: Breakpoints[
94
- str, Literal["baseline", "center", "end", "start", "stretch"]
95
- ]
96
- | Literal["baseline", "center", "end", "start", "stretch"]
97
- | Var[
98
- Breakpoints[str, Literal["baseline", "center", "end", "start", "stretch"]]
99
- | Literal["baseline", "center", "end", "start", "stretch"]
100
- ]
101
- | None = None,
102
72
  style: Sequence[Mapping[str, Any]]
103
73
  | Mapping[str, Any]
104
74
  | Var[Mapping[str, Any]]
@@ -134,7 +104,6 @@ class DataListItem(RadixThemesComponent):
134
104
 
135
105
  Args:
136
106
  *children: Child components.
137
- align: The alignment of the data list item within its container.
138
107
  style: The style of the component.
139
108
  key: A unique key for the component.
140
109
  id: The id for the component.
@@ -152,77 +121,6 @@ class DataListLabel(RadixThemesComponent):
152
121
  def create(
153
122
  cls,
154
123
  *children,
155
- width: Breakpoints[str, str]
156
- | Var[Breakpoints[str, str] | str]
157
- | str
158
- | None = None,
159
- min_width: Breakpoints[str, str]
160
- | Var[Breakpoints[str, str] | str]
161
- | str
162
- | None = None,
163
- max_width: Breakpoints[str, str]
164
- | Var[Breakpoints[str, str] | str]
165
- | str
166
- | None = None,
167
- color_scheme: Literal[
168
- "amber",
169
- "blue",
170
- "bronze",
171
- "brown",
172
- "crimson",
173
- "cyan",
174
- "gold",
175
- "grass",
176
- "gray",
177
- "green",
178
- "indigo",
179
- "iris",
180
- "jade",
181
- "lime",
182
- "mint",
183
- "orange",
184
- "pink",
185
- "plum",
186
- "purple",
187
- "red",
188
- "ruby",
189
- "sky",
190
- "teal",
191
- "tomato",
192
- "violet",
193
- "yellow",
194
- ]
195
- | Var[
196
- Literal[
197
- "amber",
198
- "blue",
199
- "bronze",
200
- "brown",
201
- "crimson",
202
- "cyan",
203
- "gold",
204
- "grass",
205
- "gray",
206
- "green",
207
- "indigo",
208
- "iris",
209
- "jade",
210
- "lime",
211
- "mint",
212
- "orange",
213
- "pink",
214
- "plum",
215
- "purple",
216
- "red",
217
- "ruby",
218
- "sky",
219
- "teal",
220
- "tomato",
221
- "violet",
222
- "yellow",
223
- ]
224
- ]
225
- | None = None,
226
124
  style: Sequence[Mapping[str, Any]]
227
125
  | Mapping[str, Any]
228
126
  | Var[Mapping[str, Any]]
@@ -258,10 +156,6 @@ class DataListLabel(RadixThemesComponent):
258
156
 
259
157
  Args:
260
158
  *children: Child components.
261
- width: The width of the component
262
- min_width: The minimum width of the component
263
- max_width: The maximum width of the component
264
- color_scheme: The color scheme for the DataList component.
265
159
  style: The style of the component.
266
160
  key: A unique key for the component.
267
161
  id: The id for the component.
@@ -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.component import ComponentNamespace
10
10
  from reflex.components.core.breakpoints import Breakpoints
@@ -21,8 +21,6 @@ class DialogRoot(RadixThemesComponent):
21
21
  def create(
22
22
  cls,
23
23
  *children,
24
- open: Var[bool] | bool | None = None,
25
- default_open: Var[bool] | bool | None = None,
26
24
  style: Sequence[Mapping[str, Any]]
27
25
  | Mapping[str, Any]
28
26
  | Var[Mapping[str, Any]]
@@ -59,9 +57,7 @@ class DialogRoot(RadixThemesComponent):
59
57
 
60
58
  Args:
61
59
  *children: Child components.
62
- open: The controlled open state of the dialog.
63
60
  on_open_change: Fired when the open state changes.
64
- default_open: The open state of the dialog when it is initially rendered. Use when you do not need to control its open state.
65
61
  style: The style of the component.
66
62
  key: A unique key for the component.
67
63
  id: The id for the component.
@@ -174,190 +170,6 @@ class DialogContent(elements.Div, RadixThemesComponent):
174
170
  def create(
175
171
  cls,
176
172
  *children,
177
- size: Breakpoints[str, Literal["1", "2", "3", "4"]]
178
- | Literal["1", "2", "3", "4"]
179
- | Var[
180
- Breakpoints[str, Literal["1", "2", "3", "4"]] | Literal["1", "2", "3", "4"]
181
- ]
182
- | None = None,
183
- access_key: Var[str] | str | None = None,
184
- auto_capitalize: Literal[
185
- "characters", "none", "off", "on", "sentences", "words"
186
- ]
187
- | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
188
- | None = None,
189
- content_editable: Literal["inherit", "plaintext-only", False, True]
190
- | Var[Literal["inherit", "plaintext-only", False, True]]
191
- | None = None,
192
- context_menu: Var[str] | str | None = None,
193
- dir: Var[str] | str | None = None,
194
- draggable: Var[bool] | bool | None = None,
195
- enter_key_hint: Literal[
196
- "done", "enter", "go", "next", "previous", "search", "send"
197
- ]
198
- | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
199
- | None = None,
200
- hidden: Var[bool] | bool | None = None,
201
- input_mode: Literal[
202
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
203
- ]
204
- | Var[
205
- Literal[
206
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
207
- ]
208
- ]
209
- | None = None,
210
- item_prop: Var[str] | str | None = None,
211
- lang: Var[str] | str | None = None,
212
- role: Literal[
213
- "alert",
214
- "alertdialog",
215
- "application",
216
- "article",
217
- "banner",
218
- "button",
219
- "cell",
220
- "checkbox",
221
- "columnheader",
222
- "combobox",
223
- "complementary",
224
- "contentinfo",
225
- "definition",
226
- "dialog",
227
- "directory",
228
- "document",
229
- "feed",
230
- "figure",
231
- "form",
232
- "grid",
233
- "gridcell",
234
- "group",
235
- "heading",
236
- "img",
237
- "link",
238
- "list",
239
- "listbox",
240
- "listitem",
241
- "log",
242
- "main",
243
- "marquee",
244
- "math",
245
- "menu",
246
- "menubar",
247
- "menuitem",
248
- "menuitemcheckbox",
249
- "menuitemradio",
250
- "navigation",
251
- "none",
252
- "note",
253
- "option",
254
- "presentation",
255
- "progressbar",
256
- "radio",
257
- "radiogroup",
258
- "region",
259
- "row",
260
- "rowgroup",
261
- "rowheader",
262
- "scrollbar",
263
- "search",
264
- "searchbox",
265
- "separator",
266
- "slider",
267
- "spinbutton",
268
- "status",
269
- "switch",
270
- "tab",
271
- "table",
272
- "tablist",
273
- "tabpanel",
274
- "term",
275
- "textbox",
276
- "timer",
277
- "toolbar",
278
- "tooltip",
279
- "tree",
280
- "treegrid",
281
- "treeitem",
282
- ]
283
- | Var[
284
- Literal[
285
- "alert",
286
- "alertdialog",
287
- "application",
288
- "article",
289
- "banner",
290
- "button",
291
- "cell",
292
- "checkbox",
293
- "columnheader",
294
- "combobox",
295
- "complementary",
296
- "contentinfo",
297
- "definition",
298
- "dialog",
299
- "directory",
300
- "document",
301
- "feed",
302
- "figure",
303
- "form",
304
- "grid",
305
- "gridcell",
306
- "group",
307
- "heading",
308
- "img",
309
- "link",
310
- "list",
311
- "listbox",
312
- "listitem",
313
- "log",
314
- "main",
315
- "marquee",
316
- "math",
317
- "menu",
318
- "menubar",
319
- "menuitem",
320
- "menuitemcheckbox",
321
- "menuitemradio",
322
- "navigation",
323
- "none",
324
- "note",
325
- "option",
326
- "presentation",
327
- "progressbar",
328
- "radio",
329
- "radiogroup",
330
- "region",
331
- "row",
332
- "rowgroup",
333
- "rowheader",
334
- "scrollbar",
335
- "search",
336
- "searchbox",
337
- "separator",
338
- "slider",
339
- "spinbutton",
340
- "status",
341
- "switch",
342
- "tab",
343
- "table",
344
- "tablist",
345
- "tabpanel",
346
- "term",
347
- "textbox",
348
- "timer",
349
- "toolbar",
350
- "tooltip",
351
- "tree",
352
- "treegrid",
353
- "treeitem",
354
- ]
355
- ]
356
- | None = None,
357
- slot: Var[str] | str | None = None,
358
- spell_check: Var[bool] | bool | None = None,
359
- tab_index: Var[int] | int | None = None,
360
- title: Var[str] | str | None = None,
361
173
  style: Sequence[Mapping[str, Any]]
362
174
  | Mapping[str, Any]
363
175
  | Var[Mapping[str, Any]]
@@ -398,28 +210,11 @@ class DialogContent(elements.Div, RadixThemesComponent):
398
210
 
399
211
  Args:
400
212
  *children: Child components.
401
- size: DialogContent size "1" - "4"
402
213
  on_open_auto_focus: Fired when the dialog is opened.
403
214
  on_close_auto_focus: Fired when the dialog is closed.
404
215
  on_escape_key_down: Fired when the escape key is pressed.
405
216
  on_pointer_down_outside: Fired when the pointer is down outside the dialog.
406
217
  on_interact_outside: Fired when the pointer interacts outside the dialog.
407
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
408
- auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
409
- content_editable: Indicates whether the element's content is editable.
410
- context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
411
- dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
412
- draggable: Defines whether the element can be dragged.
413
- enter_key_hint: Hints what media types the media element is able to play.
414
- hidden: Defines whether the element is hidden.
415
- input_mode: Defines the type of the element.
416
- item_prop: Defines the name of the element for metadata purposes.
417
- lang: Defines the language used in the element.
418
- role: Defines the role of the element.
419
- slot: Assigns a slot in a shadow DOM shadow tree to an element.
420
- spell_check: Defines whether the element may be checked for spelling errors.
421
- tab_index: Defines the position of the current element in the tabbing order.
422
- title: Defines a tooltip for the element.
423
218
  style: The style of the component.
424
219
  key: A unique key for the component.
425
220
  id: The id for the component.
@@ -538,8 +333,6 @@ class Dialog(ComponentNamespace):
538
333
  @staticmethod
539
334
  def __call__(
540
335
  *children,
541
- open: Var[bool] | bool | None = None,
542
- default_open: Var[bool] | bool | None = None,
543
336
  style: Sequence[Mapping[str, Any]]
544
337
  | Mapping[str, Any]
545
338
  | Var[Mapping[str, Any]]
@@ -576,9 +369,7 @@ class Dialog(ComponentNamespace):
576
369
 
577
370
  Args:
578
371
  *children: Child components.
579
- open: The controlled open state of the dialog.
580
372
  on_open_change: Fired when the open state changes.
581
- default_open: The open state of the dialog when it is initially rendered. Use when you do not need to control its open state.
582
373
  style: The style of the component.
583
374
  key: A unique key for the component.
584
375
  id: The id for the component.