reflex 0.7.0a5__py3-none-any.whl → 0.7.1__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 (127) hide show
  1. reflex/.templates/jinja/web/package.json.jinja2 +7 -1
  2. reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +3 -1
  3. reflex/__init__.py +1 -0
  4. reflex/__init__.pyi +1 -0
  5. reflex/app.py +268 -85
  6. reflex/base.py +4 -10
  7. reflex/compiler/compiler.py +46 -12
  8. reflex/compiler/templates.py +1 -2
  9. reflex/compiler/utils.py +23 -14
  10. reflex/components/base/bare.py +109 -16
  11. reflex/components/component.py +179 -124
  12. reflex/components/core/__init__.py +1 -0
  13. reflex/components/core/__init__.pyi +1 -0
  14. reflex/components/core/auto_scroll.py +114 -0
  15. reflex/components/core/auto_scroll.pyi +284 -0
  16. reflex/components/core/banner.py +40 -9
  17. reflex/components/core/banner.pyi +400 -87
  18. reflex/components/core/breakpoints.py +1 -1
  19. reflex/components/core/cond.py +0 -8
  20. reflex/components/core/foreach.py +12 -2
  21. reflex/components/core/html.pyi +200 -19
  22. reflex/components/core/match.py +4 -4
  23. reflex/components/core/sticky.pyi +874 -90
  24. reflex/components/core/upload.py +3 -5
  25. reflex/components/core/upload.pyi +2 -4
  26. reflex/components/datadisplay/code.py +36 -10
  27. reflex/components/datadisplay/code.pyi +1 -1
  28. reflex/components/datadisplay/dataeditor.py +1 -3
  29. reflex/components/datadisplay/dataeditor.pyi +1 -3
  30. reflex/components/el/elements/base.py +95 -17
  31. reflex/components/el/elements/base.pyi +278 -19
  32. reflex/components/el/elements/forms.py +124 -102
  33. reflex/components/el/elements/forms.pyi +2787 -365
  34. reflex/components/el/elements/inline.py +24 -15
  35. reflex/components/el/elements/inline.pyi +5655 -546
  36. reflex/components/el/elements/media.py +79 -95
  37. reflex/components/el/elements/media.pyi +5167 -565
  38. reflex/components/el/elements/metadata.py +19 -17
  39. reflex/components/el/elements/metadata.pyi +841 -89
  40. reflex/components/el/elements/other.py +3 -5
  41. reflex/components/el/elements/other.pyi +1404 -137
  42. reflex/components/el/elements/scripts.py +10 -13
  43. reflex/components/el/elements/scripts.pyi +634 -65
  44. reflex/components/el/elements/sectioning.pyi +3001 -286
  45. reflex/components/el/elements/tables.py +14 -35
  46. reflex/components/el/elements/tables.pyi +2029 -218
  47. reflex/components/el/elements/typography.py +10 -13
  48. reflex/components/el/elements/typography.pyi +3014 -297
  49. reflex/components/lucide/icon.py +22 -6
  50. reflex/components/markdown/markdown.py +30 -10
  51. reflex/components/markdown/markdown.pyi +3 -2
  52. reflex/components/plotly/plotly.py +1 -3
  53. reflex/components/plotly/plotly.pyi +1 -3
  54. reflex/components/radix/primitives/form.pyi +624 -93
  55. reflex/components/radix/themes/color_mode.py +1 -1
  56. reflex/components/radix/themes/color_mode.pyi +213 -31
  57. reflex/components/radix/themes/components/alert_dialog.pyi +199 -18
  58. reflex/components/radix/themes/components/badge.pyi +199 -18
  59. reflex/components/radix/themes/components/button.pyi +213 -31
  60. reflex/components/radix/themes/components/callout.pyi +1000 -95
  61. reflex/components/radix/themes/components/card.pyi +199 -18
  62. reflex/components/radix/themes/components/context_menu.py +79 -1
  63. reflex/components/radix/themes/components/context_menu.pyi +320 -1
  64. reflex/components/radix/themes/components/dialog.pyi +199 -18
  65. reflex/components/radix/themes/components/hover_card.pyi +199 -18
  66. reflex/components/radix/themes/components/icon_button.pyi +213 -31
  67. reflex/components/radix/themes/components/inset.pyi +199 -18
  68. reflex/components/radix/themes/components/popover.pyi +199 -18
  69. reflex/components/radix/themes/components/table.pyi +1437 -154
  70. reflex/components/radix/themes/components/text_area.py +2 -2
  71. reflex/components/radix/themes/components/text_area.pyi +201 -20
  72. reflex/components/radix/themes/components/text_field.py +1 -1
  73. reflex/components/radix/themes/components/text_field.pyi +444 -88
  74. reflex/components/radix/themes/layout/box.pyi +200 -19
  75. reflex/components/radix/themes/layout/center.pyi +199 -18
  76. reflex/components/radix/themes/layout/container.pyi +199 -18
  77. reflex/components/radix/themes/layout/flex.pyi +199 -18
  78. reflex/components/radix/themes/layout/grid.pyi +199 -18
  79. reflex/components/radix/themes/layout/list.pyi +604 -57
  80. reflex/components/radix/themes/layout/section.pyi +199 -18
  81. reflex/components/radix/themes/layout/spacer.pyi +199 -18
  82. reflex/components/radix/themes/layout/stack.pyi +597 -54
  83. reflex/components/radix/themes/typography/blockquote.pyi +200 -19
  84. reflex/components/radix/themes/typography/code.pyi +199 -18
  85. reflex/components/radix/themes/typography/heading.pyi +199 -18
  86. reflex/components/radix/themes/typography/link.pyi +238 -28
  87. reflex/components/radix/themes/typography/text.pyi +1394 -127
  88. reflex/components/react_player/react_player.py +1 -1
  89. reflex/components/react_player/react_player.pyi +1 -3
  90. reflex/components/sonner/toast.py +41 -12
  91. reflex/components/sonner/toast.pyi +20 -6
  92. reflex/components/tags/iter_tag.py +4 -0
  93. reflex/components/tags/tag.py +3 -3
  94. reflex/config.py +187 -28
  95. reflex/constants/__init__.py +2 -0
  96. reflex/constants/base.py +6 -0
  97. reflex/constants/compiler.py +9 -0
  98. reflex/constants/event.py +1 -0
  99. reflex/constants/installer.py +8 -5
  100. reflex/constants/utils.py +1 -3
  101. reflex/event.py +7 -16
  102. reflex/experimental/layout.pyi +597 -54
  103. reflex/py.typed +0 -0
  104. reflex/reflex.py +30 -41
  105. reflex/state.py +49 -44
  106. reflex/style.py +15 -22
  107. reflex/testing.py +2 -0
  108. reflex/utils/build.py +12 -0
  109. reflex/utils/console.py +4 -0
  110. reflex/utils/decorator.py +25 -0
  111. reflex/utils/exec.py +92 -34
  112. reflex/utils/format.py +35 -6
  113. reflex/utils/path_ops.py +16 -1
  114. reflex/utils/prerequisites.py +25 -33
  115. reflex/utils/processes.py +12 -13
  116. reflex/utils/serializers.py +20 -43
  117. reflex/utils/telemetry.py +4 -15
  118. reflex/utils/types.py +36 -66
  119. reflex/vars/base.py +53 -76
  120. reflex/vars/function.py +17 -5
  121. reflex/vars/number.py +1 -1
  122. reflex/vars/sequence.py +80 -4
  123. {reflex-0.7.0a5.dist-info → reflex-0.7.1.dist-info}/METADATA +4 -5
  124. {reflex-0.7.0a5.dist-info → reflex-0.7.1.dist-info}/RECORD +127 -123
  125. {reflex-0.7.0a5.dist-info → reflex-0.7.1.dist-info}/LICENSE +0 -0
  126. {reflex-0.7.0a5.dist-info → reflex-0.7.1.dist-info}/WHEEL +0 -0
  127. {reflex-0.7.0a5.dist-info → reflex-0.7.1.dist-info}/entry_points.txt +0 -0
@@ -108,31 +108,212 @@ class Blockquote(elements.Blockquote, RadixThemesComponent):
108
108
  ]
109
109
  ] = None,
110
110
  high_contrast: Optional[Union[Var[bool], bool]] = None,
111
- cite: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
112
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
111
+ cite: Optional[Union[Var[str], str]] = None,
112
+ access_key: Optional[Union[Var[str], str]] = None,
113
113
  auto_capitalize: Optional[
114
- Union[Var[Union[bool, int, str]], bool, int, str]
114
+ Union[
115
+ Literal["characters", "none", "off", "on", "sentences", "words"],
116
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
117
+ ]
115
118
  ] = None,
116
119
  content_editable: Optional[
117
- Union[Var[Union[bool, int, str]], bool, int, str]
118
- ] = None,
119
- context_menu: Optional[
120
- Union[Var[Union[bool, int, str]], bool, int, str]
120
+ Union[
121
+ Literal["inherit", "plaintext-only", False, True],
122
+ Var[Literal["inherit", "plaintext-only", False, True]],
123
+ ]
121
124
  ] = None,
122
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
123
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
125
+ context_menu: Optional[Union[Var[str], str]] = None,
126
+ dir: Optional[Union[Var[str], str]] = None,
127
+ draggable: Optional[Union[Var[bool], bool]] = None,
124
128
  enter_key_hint: Optional[
125
- Union[Var[Union[bool, int, str]], bool, int, str]
129
+ Union[
130
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
131
+ Var[
132
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
133
+ ],
134
+ ]
135
+ ] = None,
136
+ hidden: Optional[Union[Var[bool], bool]] = None,
137
+ input_mode: Optional[
138
+ Union[
139
+ Literal[
140
+ "decimal",
141
+ "email",
142
+ "none",
143
+ "numeric",
144
+ "search",
145
+ "tel",
146
+ "text",
147
+ "url",
148
+ ],
149
+ Var[
150
+ Literal[
151
+ "decimal",
152
+ "email",
153
+ "none",
154
+ "numeric",
155
+ "search",
156
+ "tel",
157
+ "text",
158
+ "url",
159
+ ]
160
+ ],
161
+ ]
162
+ ] = None,
163
+ item_prop: Optional[Union[Var[str], str]] = None,
164
+ lang: Optional[Union[Var[str], str]] = None,
165
+ role: Optional[
166
+ Union[
167
+ Literal[
168
+ "alert",
169
+ "alertdialog",
170
+ "application",
171
+ "article",
172
+ "banner",
173
+ "button",
174
+ "cell",
175
+ "checkbox",
176
+ "columnheader",
177
+ "combobox",
178
+ "complementary",
179
+ "contentinfo",
180
+ "definition",
181
+ "dialog",
182
+ "directory",
183
+ "document",
184
+ "feed",
185
+ "figure",
186
+ "form",
187
+ "grid",
188
+ "gridcell",
189
+ "group",
190
+ "heading",
191
+ "img",
192
+ "link",
193
+ "list",
194
+ "listbox",
195
+ "listitem",
196
+ "log",
197
+ "main",
198
+ "marquee",
199
+ "math",
200
+ "menu",
201
+ "menubar",
202
+ "menuitem",
203
+ "menuitemcheckbox",
204
+ "menuitemradio",
205
+ "navigation",
206
+ "none",
207
+ "note",
208
+ "option",
209
+ "presentation",
210
+ "progressbar",
211
+ "radio",
212
+ "radiogroup",
213
+ "region",
214
+ "row",
215
+ "rowgroup",
216
+ "rowheader",
217
+ "scrollbar",
218
+ "search",
219
+ "searchbox",
220
+ "separator",
221
+ "slider",
222
+ "spinbutton",
223
+ "status",
224
+ "switch",
225
+ "tab",
226
+ "table",
227
+ "tablist",
228
+ "tabpanel",
229
+ "term",
230
+ "textbox",
231
+ "timer",
232
+ "toolbar",
233
+ "tooltip",
234
+ "tree",
235
+ "treegrid",
236
+ "treeitem",
237
+ ],
238
+ Var[
239
+ Literal[
240
+ "alert",
241
+ "alertdialog",
242
+ "application",
243
+ "article",
244
+ "banner",
245
+ "button",
246
+ "cell",
247
+ "checkbox",
248
+ "columnheader",
249
+ "combobox",
250
+ "complementary",
251
+ "contentinfo",
252
+ "definition",
253
+ "dialog",
254
+ "directory",
255
+ "document",
256
+ "feed",
257
+ "figure",
258
+ "form",
259
+ "grid",
260
+ "gridcell",
261
+ "group",
262
+ "heading",
263
+ "img",
264
+ "link",
265
+ "list",
266
+ "listbox",
267
+ "listitem",
268
+ "log",
269
+ "main",
270
+ "marquee",
271
+ "math",
272
+ "menu",
273
+ "menubar",
274
+ "menuitem",
275
+ "menuitemcheckbox",
276
+ "menuitemradio",
277
+ "navigation",
278
+ "none",
279
+ "note",
280
+ "option",
281
+ "presentation",
282
+ "progressbar",
283
+ "radio",
284
+ "radiogroup",
285
+ "region",
286
+ "row",
287
+ "rowgroup",
288
+ "rowheader",
289
+ "scrollbar",
290
+ "search",
291
+ "searchbox",
292
+ "separator",
293
+ "slider",
294
+ "spinbutton",
295
+ "status",
296
+ "switch",
297
+ "tab",
298
+ "table",
299
+ "tablist",
300
+ "tabpanel",
301
+ "term",
302
+ "textbox",
303
+ "timer",
304
+ "toolbar",
305
+ "tooltip",
306
+ "tree",
307
+ "treegrid",
308
+ "treeitem",
309
+ ]
310
+ ],
311
+ ]
126
312
  ] = None,
127
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
128
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
129
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
130
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
131
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
132
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
133
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
134
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
135
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
313
+ slot: Optional[Union[Var[str], str]] = None,
314
+ spell_check: Optional[Union[Var[bool], bool]] = None,
315
+ tab_index: Optional[Union[Var[int], int]] = None,
316
+ title: Optional[Union[Var[str], str]] = None,
136
317
  style: Optional[Style] = None,
137
318
  key: Optional[Any] = None,
138
319
  id: Optional[Any] = None,
@@ -115,30 +115,211 @@ class Code(elements.Code, RadixThemesComponent, MarkdownComponentMap):
115
115
  ]
116
116
  ] = None,
117
117
  high_contrast: Optional[Union[Var[bool], bool]] = None,
118
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
118
+ access_key: Optional[Union[Var[str], str]] = None,
119
119
  auto_capitalize: Optional[
120
- Union[Var[Union[bool, int, str]], bool, int, str]
120
+ Union[
121
+ Literal["characters", "none", "off", "on", "sentences", "words"],
122
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
123
+ ]
121
124
  ] = None,
122
125
  content_editable: Optional[
123
- Union[Var[Union[bool, int, str]], bool, int, str]
124
- ] = None,
125
- context_menu: Optional[
126
- Union[Var[Union[bool, int, str]], bool, int, str]
126
+ Union[
127
+ Literal["inherit", "plaintext-only", False, True],
128
+ Var[Literal["inherit", "plaintext-only", False, True]],
129
+ ]
127
130
  ] = None,
128
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
129
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
131
+ context_menu: Optional[Union[Var[str], str]] = None,
132
+ dir: Optional[Union[Var[str], str]] = None,
133
+ draggable: Optional[Union[Var[bool], bool]] = None,
130
134
  enter_key_hint: Optional[
131
- Union[Var[Union[bool, int, str]], bool, int, str]
135
+ Union[
136
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
137
+ Var[
138
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
139
+ ],
140
+ ]
141
+ ] = None,
142
+ hidden: Optional[Union[Var[bool], bool]] = None,
143
+ input_mode: Optional[
144
+ Union[
145
+ Literal[
146
+ "decimal",
147
+ "email",
148
+ "none",
149
+ "numeric",
150
+ "search",
151
+ "tel",
152
+ "text",
153
+ "url",
154
+ ],
155
+ Var[
156
+ Literal[
157
+ "decimal",
158
+ "email",
159
+ "none",
160
+ "numeric",
161
+ "search",
162
+ "tel",
163
+ "text",
164
+ "url",
165
+ ]
166
+ ],
167
+ ]
168
+ ] = None,
169
+ item_prop: Optional[Union[Var[str], str]] = None,
170
+ lang: Optional[Union[Var[str], str]] = None,
171
+ role: Optional[
172
+ Union[
173
+ Literal[
174
+ "alert",
175
+ "alertdialog",
176
+ "application",
177
+ "article",
178
+ "banner",
179
+ "button",
180
+ "cell",
181
+ "checkbox",
182
+ "columnheader",
183
+ "combobox",
184
+ "complementary",
185
+ "contentinfo",
186
+ "definition",
187
+ "dialog",
188
+ "directory",
189
+ "document",
190
+ "feed",
191
+ "figure",
192
+ "form",
193
+ "grid",
194
+ "gridcell",
195
+ "group",
196
+ "heading",
197
+ "img",
198
+ "link",
199
+ "list",
200
+ "listbox",
201
+ "listitem",
202
+ "log",
203
+ "main",
204
+ "marquee",
205
+ "math",
206
+ "menu",
207
+ "menubar",
208
+ "menuitem",
209
+ "menuitemcheckbox",
210
+ "menuitemradio",
211
+ "navigation",
212
+ "none",
213
+ "note",
214
+ "option",
215
+ "presentation",
216
+ "progressbar",
217
+ "radio",
218
+ "radiogroup",
219
+ "region",
220
+ "row",
221
+ "rowgroup",
222
+ "rowheader",
223
+ "scrollbar",
224
+ "search",
225
+ "searchbox",
226
+ "separator",
227
+ "slider",
228
+ "spinbutton",
229
+ "status",
230
+ "switch",
231
+ "tab",
232
+ "table",
233
+ "tablist",
234
+ "tabpanel",
235
+ "term",
236
+ "textbox",
237
+ "timer",
238
+ "toolbar",
239
+ "tooltip",
240
+ "tree",
241
+ "treegrid",
242
+ "treeitem",
243
+ ],
244
+ Var[
245
+ Literal[
246
+ "alert",
247
+ "alertdialog",
248
+ "application",
249
+ "article",
250
+ "banner",
251
+ "button",
252
+ "cell",
253
+ "checkbox",
254
+ "columnheader",
255
+ "combobox",
256
+ "complementary",
257
+ "contentinfo",
258
+ "definition",
259
+ "dialog",
260
+ "directory",
261
+ "document",
262
+ "feed",
263
+ "figure",
264
+ "form",
265
+ "grid",
266
+ "gridcell",
267
+ "group",
268
+ "heading",
269
+ "img",
270
+ "link",
271
+ "list",
272
+ "listbox",
273
+ "listitem",
274
+ "log",
275
+ "main",
276
+ "marquee",
277
+ "math",
278
+ "menu",
279
+ "menubar",
280
+ "menuitem",
281
+ "menuitemcheckbox",
282
+ "menuitemradio",
283
+ "navigation",
284
+ "none",
285
+ "note",
286
+ "option",
287
+ "presentation",
288
+ "progressbar",
289
+ "radio",
290
+ "radiogroup",
291
+ "region",
292
+ "row",
293
+ "rowgroup",
294
+ "rowheader",
295
+ "scrollbar",
296
+ "search",
297
+ "searchbox",
298
+ "separator",
299
+ "slider",
300
+ "spinbutton",
301
+ "status",
302
+ "switch",
303
+ "tab",
304
+ "table",
305
+ "tablist",
306
+ "tabpanel",
307
+ "term",
308
+ "textbox",
309
+ "timer",
310
+ "toolbar",
311
+ "tooltip",
312
+ "tree",
313
+ "treegrid",
314
+ "treeitem",
315
+ ]
316
+ ],
317
+ ]
132
318
  ] = None,
133
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
134
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
135
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
136
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
137
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
138
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
139
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
140
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
141
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
319
+ slot: Optional[Union[Var[str], str]] = None,
320
+ spell_check: Optional[Union[Var[bool], bool]] = None,
321
+ tab_index: Optional[Union[Var[int], int]] = None,
322
+ title: Optional[Union[Var[str], str]] = None,
142
323
  style: Optional[Style] = None,
143
324
  key: Optional[Any] = None,
144
325
  id: Optional[Any] = None,