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
@@ -62,184 +62,6 @@ class Flex(elements.Div, RadixThemesComponent):
62
62
  | Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
63
63
  ]
64
64
  | None = None,
65
- access_key: Var[str] | str | None = None,
66
- auto_capitalize: Literal[
67
- "characters", "none", "off", "on", "sentences", "words"
68
- ]
69
- | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
70
- | None = None,
71
- content_editable: Literal["inherit", "plaintext-only", False, True]
72
- | Var[Literal["inherit", "plaintext-only", False, True]]
73
- | None = None,
74
- context_menu: Var[str] | str | None = None,
75
- dir: Var[str] | str | None = None,
76
- draggable: Var[bool] | bool | None = None,
77
- enter_key_hint: Literal[
78
- "done", "enter", "go", "next", "previous", "search", "send"
79
- ]
80
- | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
81
- | None = None,
82
- hidden: Var[bool] | bool | None = None,
83
- input_mode: Literal[
84
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
85
- ]
86
- | Var[
87
- Literal[
88
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
89
- ]
90
- ]
91
- | None = None,
92
- item_prop: Var[str] | str | None = None,
93
- lang: Var[str] | str | None = None,
94
- role: Literal[
95
- "alert",
96
- "alertdialog",
97
- "application",
98
- "article",
99
- "banner",
100
- "button",
101
- "cell",
102
- "checkbox",
103
- "columnheader",
104
- "combobox",
105
- "complementary",
106
- "contentinfo",
107
- "definition",
108
- "dialog",
109
- "directory",
110
- "document",
111
- "feed",
112
- "figure",
113
- "form",
114
- "grid",
115
- "gridcell",
116
- "group",
117
- "heading",
118
- "img",
119
- "link",
120
- "list",
121
- "listbox",
122
- "listitem",
123
- "log",
124
- "main",
125
- "marquee",
126
- "math",
127
- "menu",
128
- "menubar",
129
- "menuitem",
130
- "menuitemcheckbox",
131
- "menuitemradio",
132
- "navigation",
133
- "none",
134
- "note",
135
- "option",
136
- "presentation",
137
- "progressbar",
138
- "radio",
139
- "radiogroup",
140
- "region",
141
- "row",
142
- "rowgroup",
143
- "rowheader",
144
- "scrollbar",
145
- "search",
146
- "searchbox",
147
- "separator",
148
- "slider",
149
- "spinbutton",
150
- "status",
151
- "switch",
152
- "tab",
153
- "table",
154
- "tablist",
155
- "tabpanel",
156
- "term",
157
- "textbox",
158
- "timer",
159
- "toolbar",
160
- "tooltip",
161
- "tree",
162
- "treegrid",
163
- "treeitem",
164
- ]
165
- | Var[
166
- Literal[
167
- "alert",
168
- "alertdialog",
169
- "application",
170
- "article",
171
- "banner",
172
- "button",
173
- "cell",
174
- "checkbox",
175
- "columnheader",
176
- "combobox",
177
- "complementary",
178
- "contentinfo",
179
- "definition",
180
- "dialog",
181
- "directory",
182
- "document",
183
- "feed",
184
- "figure",
185
- "form",
186
- "grid",
187
- "gridcell",
188
- "group",
189
- "heading",
190
- "img",
191
- "link",
192
- "list",
193
- "listbox",
194
- "listitem",
195
- "log",
196
- "main",
197
- "marquee",
198
- "math",
199
- "menu",
200
- "menubar",
201
- "menuitem",
202
- "menuitemcheckbox",
203
- "menuitemradio",
204
- "navigation",
205
- "none",
206
- "note",
207
- "option",
208
- "presentation",
209
- "progressbar",
210
- "radio",
211
- "radiogroup",
212
- "region",
213
- "row",
214
- "rowgroup",
215
- "rowheader",
216
- "scrollbar",
217
- "search",
218
- "searchbox",
219
- "separator",
220
- "slider",
221
- "spinbutton",
222
- "status",
223
- "switch",
224
- "tab",
225
- "table",
226
- "tablist",
227
- "tabpanel",
228
- "term",
229
- "textbox",
230
- "timer",
231
- "toolbar",
232
- "tooltip",
233
- "tree",
234
- "treegrid",
235
- "treeitem",
236
- ]
237
- ]
238
- | None = None,
239
- slot: Var[str] | str | None = None,
240
- spell_check: Var[bool] | bool | None = None,
241
- tab_index: Var[int] | int | None = None,
242
- title: Var[str] | str | None = None,
243
65
  style: Sequence[Mapping[str, Any]]
244
66
  | Mapping[str, Any]
245
67
  | Var[Mapping[str, Any]]
@@ -281,22 +103,6 @@ class Flex(elements.Div, RadixThemesComponent):
281
103
  justify: Alignment of children along the cross axis: "start" | "center" | "end" | "between"
282
104
  wrap: Whether children should wrap when they reach the end of their container: "nowrap" | "wrap" | "wrap-reverse"
283
105
  spacing: Gap between children: "0" - "9"
284
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
285
- auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
286
- content_editable: Indicates whether the element's content is editable.
287
- context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
288
- dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
289
- draggable: Defines whether the element can be dragged.
290
- enter_key_hint: Hints what media types the media element is able to play.
291
- hidden: Defines whether the element is hidden.
292
- input_mode: Defines the type of the element.
293
- item_prop: Defines the name of the element for metadata purposes.
294
- lang: Defines the language used in the element.
295
- role: Defines the role of the element.
296
- slot: Assigns a slot in a shadow DOM shadow tree to an element.
297
- spell_check: Defines whether the element may be checked for spelling errors.
298
- tab_index: Defines the position of the current element in the tabbing order.
299
- title: Defines a tooltip for the element.
300
106
  style: The style of the component.
301
107
  key: A unique key for the component.
302
108
  id: The id for the component.
@@ -82,184 +82,6 @@ class Grid(elements.Div, RadixThemesComponent):
82
82
  | Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
83
83
  ]
84
84
  | None = None,
85
- access_key: Var[str] | str | None = None,
86
- auto_capitalize: Literal[
87
- "characters", "none", "off", "on", "sentences", "words"
88
- ]
89
- | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
90
- | None = None,
91
- content_editable: Literal["inherit", "plaintext-only", False, True]
92
- | Var[Literal["inherit", "plaintext-only", False, True]]
93
- | None = None,
94
- context_menu: Var[str] | str | None = None,
95
- dir: Var[str] | str | None = None,
96
- draggable: Var[bool] | bool | None = None,
97
- enter_key_hint: Literal[
98
- "done", "enter", "go", "next", "previous", "search", "send"
99
- ]
100
- | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
101
- | None = None,
102
- hidden: Var[bool] | bool | None = None,
103
- input_mode: Literal[
104
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
105
- ]
106
- | Var[
107
- Literal[
108
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
109
- ]
110
- ]
111
- | None = None,
112
- item_prop: Var[str] | str | None = None,
113
- lang: Var[str] | str | None = None,
114
- role: Literal[
115
- "alert",
116
- "alertdialog",
117
- "application",
118
- "article",
119
- "banner",
120
- "button",
121
- "cell",
122
- "checkbox",
123
- "columnheader",
124
- "combobox",
125
- "complementary",
126
- "contentinfo",
127
- "definition",
128
- "dialog",
129
- "directory",
130
- "document",
131
- "feed",
132
- "figure",
133
- "form",
134
- "grid",
135
- "gridcell",
136
- "group",
137
- "heading",
138
- "img",
139
- "link",
140
- "list",
141
- "listbox",
142
- "listitem",
143
- "log",
144
- "main",
145
- "marquee",
146
- "math",
147
- "menu",
148
- "menubar",
149
- "menuitem",
150
- "menuitemcheckbox",
151
- "menuitemradio",
152
- "navigation",
153
- "none",
154
- "note",
155
- "option",
156
- "presentation",
157
- "progressbar",
158
- "radio",
159
- "radiogroup",
160
- "region",
161
- "row",
162
- "rowgroup",
163
- "rowheader",
164
- "scrollbar",
165
- "search",
166
- "searchbox",
167
- "separator",
168
- "slider",
169
- "spinbutton",
170
- "status",
171
- "switch",
172
- "tab",
173
- "table",
174
- "tablist",
175
- "tabpanel",
176
- "term",
177
- "textbox",
178
- "timer",
179
- "toolbar",
180
- "tooltip",
181
- "tree",
182
- "treegrid",
183
- "treeitem",
184
- ]
185
- | Var[
186
- Literal[
187
- "alert",
188
- "alertdialog",
189
- "application",
190
- "article",
191
- "banner",
192
- "button",
193
- "cell",
194
- "checkbox",
195
- "columnheader",
196
- "combobox",
197
- "complementary",
198
- "contentinfo",
199
- "definition",
200
- "dialog",
201
- "directory",
202
- "document",
203
- "feed",
204
- "figure",
205
- "form",
206
- "grid",
207
- "gridcell",
208
- "group",
209
- "heading",
210
- "img",
211
- "link",
212
- "list",
213
- "listbox",
214
- "listitem",
215
- "log",
216
- "main",
217
- "marquee",
218
- "math",
219
- "menu",
220
- "menubar",
221
- "menuitem",
222
- "menuitemcheckbox",
223
- "menuitemradio",
224
- "navigation",
225
- "none",
226
- "note",
227
- "option",
228
- "presentation",
229
- "progressbar",
230
- "radio",
231
- "radiogroup",
232
- "region",
233
- "row",
234
- "rowgroup",
235
- "rowheader",
236
- "scrollbar",
237
- "search",
238
- "searchbox",
239
- "separator",
240
- "slider",
241
- "spinbutton",
242
- "status",
243
- "switch",
244
- "tab",
245
- "table",
246
- "tablist",
247
- "tabpanel",
248
- "term",
249
- "textbox",
250
- "timer",
251
- "toolbar",
252
- "tooltip",
253
- "tree",
254
- "treegrid",
255
- "treeitem",
256
- ]
257
- ]
258
- | None = None,
259
- slot: Var[str] | str | None = None,
260
- spell_check: Var[bool] | bool | None = None,
261
- tab_index: Var[int] | int | None = None,
262
- title: Var[str] | str | None = None,
263
85
  style: Sequence[Mapping[str, Any]]
264
86
  | Mapping[str, Any]
265
87
  | Var[Mapping[str, Any]]
@@ -304,22 +126,6 @@ class Grid(elements.Div, RadixThemesComponent):
304
126
  spacing: Gap between children: "0" - "9"
305
127
  spacing_x: Gap between children horizontal: "0" - "9"
306
128
  spacing_y: Gap between children vertical: "0" - "9"
307
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
308
- auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
309
- content_editable: Indicates whether the element's content is editable.
310
- context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
311
- dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
312
- draggable: Defines whether the element can be dragged.
313
- enter_key_hint: Hints what media types the media element is able to play.
314
- hidden: Defines whether the element is hidden.
315
- input_mode: Defines the type of the element.
316
- item_prop: Defines the name of the element for metadata purposes.
317
- lang: Defines the language used in the element.
318
- role: Defines the role of the element.
319
- slot: Assigns a slot in a shadow DOM shadow tree to an element.
320
- spell_check: Defines whether the element may be checked for spelling errors.
321
- tab_index: Defines the position of the current element in the tabbing order.
322
- title: Defines a tooltip for the element.
323
129
  style: The style of the component.
324
130
  key: A unique key for the component.
325
131
  id: The id for the component.