reflex 0.7.0a4__py3-none-any.whl → 0.7.1a1__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/web/components/reflex/radix_themes_color_mode_provider.js +3 -1
  2. reflex/__init__.py +1 -0
  3. reflex/__init__.pyi +1 -0
  4. reflex/app.py +251 -68
  5. reflex/base.py +4 -10
  6. reflex/compiler/compiler.py +46 -12
  7. reflex/compiler/templates.py +1 -2
  8. reflex/compiler/utils.py +23 -14
  9. reflex/components/base/bare.py +109 -16
  10. reflex/components/component.py +179 -124
  11. reflex/components/core/__init__.py +1 -0
  12. reflex/components/core/__init__.pyi +1 -0
  13. reflex/components/core/auto_scroll.py +111 -0
  14. reflex/components/core/auto_scroll.pyi +284 -0
  15. reflex/components/core/banner.py +35 -5
  16. reflex/components/core/banner.pyi +398 -36
  17. reflex/components/core/breakpoints.py +1 -1
  18. reflex/components/core/cond.py +0 -8
  19. reflex/components/core/foreach.py +12 -2
  20. reflex/components/core/html.pyi +200 -19
  21. reflex/components/core/match.py +4 -4
  22. reflex/components/core/sticky.py +4 -30
  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 +19 -1
  91. reflex/components/sonner/toast.pyi +10 -1
  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 +4 -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 +44 -48
  105. reflex/state.py +49 -44
  106. reflex/style.py +6 -4
  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 +32 -1
  114. reflex/utils/prerequisites.py +54 -10
  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.0a4.dist-info → reflex-0.7.1a1.dist-info}/METADATA +4 -5
  124. {reflex-0.7.0a4.dist-info → reflex-0.7.1a1.dist-info}/RECORD +127 -123
  125. {reflex-0.7.0a4.dist-info → reflex-0.7.1a1.dist-info}/LICENSE +0 -0
  126. {reflex-0.7.0a4.dist-info → reflex-0.7.1a1.dist-info}/WHEEL +0 -0
  127. {reflex-0.7.0a4.dist-info → reflex-0.7.1a1.dist-info}/entry_points.txt +0 -0
@@ -35,30 +35,211 @@ class Container(elements.Div, RadixThemesComponent):
35
35
  ],
36
36
  ]
37
37
  ] = None,
38
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
38
+ access_key: Optional[Union[Var[str], str]] = None,
39
39
  auto_capitalize: Optional[
40
- Union[Var[Union[bool, int, str]], bool, int, str]
40
+ Union[
41
+ Literal["characters", "none", "off", "on", "sentences", "words"],
42
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
43
+ ]
41
44
  ] = None,
42
45
  content_editable: Optional[
43
- Union[Var[Union[bool, int, str]], bool, int, str]
44
- ] = None,
45
- context_menu: Optional[
46
- Union[Var[Union[bool, int, str]], bool, int, str]
46
+ Union[
47
+ Literal["inherit", "plaintext-only", False, True],
48
+ Var[Literal["inherit", "plaintext-only", False, True]],
49
+ ]
47
50
  ] = None,
48
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
49
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
51
+ context_menu: Optional[Union[Var[str], str]] = None,
52
+ dir: Optional[Union[Var[str], str]] = None,
53
+ draggable: Optional[Union[Var[bool], bool]] = None,
50
54
  enter_key_hint: Optional[
51
- Union[Var[Union[bool, int, str]], bool, int, str]
55
+ Union[
56
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
57
+ Var[
58
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
59
+ ],
60
+ ]
61
+ ] = None,
62
+ hidden: Optional[Union[Var[bool], bool]] = None,
63
+ input_mode: Optional[
64
+ Union[
65
+ Literal[
66
+ "decimal",
67
+ "email",
68
+ "none",
69
+ "numeric",
70
+ "search",
71
+ "tel",
72
+ "text",
73
+ "url",
74
+ ],
75
+ Var[
76
+ Literal[
77
+ "decimal",
78
+ "email",
79
+ "none",
80
+ "numeric",
81
+ "search",
82
+ "tel",
83
+ "text",
84
+ "url",
85
+ ]
86
+ ],
87
+ ]
88
+ ] = None,
89
+ item_prop: Optional[Union[Var[str], str]] = None,
90
+ lang: Optional[Union[Var[str], str]] = None,
91
+ role: Optional[
92
+ Union[
93
+ Literal[
94
+ "alert",
95
+ "alertdialog",
96
+ "application",
97
+ "article",
98
+ "banner",
99
+ "button",
100
+ "cell",
101
+ "checkbox",
102
+ "columnheader",
103
+ "combobox",
104
+ "complementary",
105
+ "contentinfo",
106
+ "definition",
107
+ "dialog",
108
+ "directory",
109
+ "document",
110
+ "feed",
111
+ "figure",
112
+ "form",
113
+ "grid",
114
+ "gridcell",
115
+ "group",
116
+ "heading",
117
+ "img",
118
+ "link",
119
+ "list",
120
+ "listbox",
121
+ "listitem",
122
+ "log",
123
+ "main",
124
+ "marquee",
125
+ "math",
126
+ "menu",
127
+ "menubar",
128
+ "menuitem",
129
+ "menuitemcheckbox",
130
+ "menuitemradio",
131
+ "navigation",
132
+ "none",
133
+ "note",
134
+ "option",
135
+ "presentation",
136
+ "progressbar",
137
+ "radio",
138
+ "radiogroup",
139
+ "region",
140
+ "row",
141
+ "rowgroup",
142
+ "rowheader",
143
+ "scrollbar",
144
+ "search",
145
+ "searchbox",
146
+ "separator",
147
+ "slider",
148
+ "spinbutton",
149
+ "status",
150
+ "switch",
151
+ "tab",
152
+ "table",
153
+ "tablist",
154
+ "tabpanel",
155
+ "term",
156
+ "textbox",
157
+ "timer",
158
+ "toolbar",
159
+ "tooltip",
160
+ "tree",
161
+ "treegrid",
162
+ "treeitem",
163
+ ],
164
+ Var[
165
+ Literal[
166
+ "alert",
167
+ "alertdialog",
168
+ "application",
169
+ "article",
170
+ "banner",
171
+ "button",
172
+ "cell",
173
+ "checkbox",
174
+ "columnheader",
175
+ "combobox",
176
+ "complementary",
177
+ "contentinfo",
178
+ "definition",
179
+ "dialog",
180
+ "directory",
181
+ "document",
182
+ "feed",
183
+ "figure",
184
+ "form",
185
+ "grid",
186
+ "gridcell",
187
+ "group",
188
+ "heading",
189
+ "img",
190
+ "link",
191
+ "list",
192
+ "listbox",
193
+ "listitem",
194
+ "log",
195
+ "main",
196
+ "marquee",
197
+ "math",
198
+ "menu",
199
+ "menubar",
200
+ "menuitem",
201
+ "menuitemcheckbox",
202
+ "menuitemradio",
203
+ "navigation",
204
+ "none",
205
+ "note",
206
+ "option",
207
+ "presentation",
208
+ "progressbar",
209
+ "radio",
210
+ "radiogroup",
211
+ "region",
212
+ "row",
213
+ "rowgroup",
214
+ "rowheader",
215
+ "scrollbar",
216
+ "search",
217
+ "searchbox",
218
+ "separator",
219
+ "slider",
220
+ "spinbutton",
221
+ "status",
222
+ "switch",
223
+ "tab",
224
+ "table",
225
+ "tablist",
226
+ "tabpanel",
227
+ "term",
228
+ "textbox",
229
+ "timer",
230
+ "toolbar",
231
+ "tooltip",
232
+ "tree",
233
+ "treegrid",
234
+ "treeitem",
235
+ ]
236
+ ],
237
+ ]
52
238
  ] = None,
53
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
54
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
55
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
56
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
57
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
58
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
59
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
60
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
61
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
239
+ slot: Optional[Union[Var[str], str]] = None,
240
+ spell_check: Optional[Union[Var[bool], bool]] = None,
241
+ tab_index: Optional[Union[Var[int], int]] = None,
242
+ title: Optional[Union[Var[str], str]] = None,
62
243
  style: Optional[Style] = None,
63
244
  key: Optional[Any] = None,
64
245
  id: Optional[Any] = None,
@@ -98,30 +98,211 @@ class Flex(elements.Div, RadixThemesComponent):
98
98
  ],
99
99
  ]
100
100
  ] = None,
101
- access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
101
+ access_key: Optional[Union[Var[str], str]] = None,
102
102
  auto_capitalize: Optional[
103
- Union[Var[Union[bool, int, str]], bool, int, str]
103
+ Union[
104
+ Literal["characters", "none", "off", "on", "sentences", "words"],
105
+ Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
106
+ ]
104
107
  ] = None,
105
108
  content_editable: Optional[
106
- Union[Var[Union[bool, int, str]], bool, int, str]
107
- ] = None,
108
- context_menu: Optional[
109
- Union[Var[Union[bool, int, str]], bool, int, str]
109
+ Union[
110
+ Literal["inherit", "plaintext-only", False, True],
111
+ Var[Literal["inherit", "plaintext-only", False, True]],
112
+ ]
110
113
  ] = None,
111
- dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
112
- draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
114
+ context_menu: Optional[Union[Var[str], str]] = None,
115
+ dir: Optional[Union[Var[str], str]] = None,
116
+ draggable: Optional[Union[Var[bool], bool]] = None,
113
117
  enter_key_hint: Optional[
114
- Union[Var[Union[bool, int, str]], bool, int, str]
118
+ Union[
119
+ Literal["done", "enter", "go", "next", "previous", "search", "send"],
120
+ Var[
121
+ Literal["done", "enter", "go", "next", "previous", "search", "send"]
122
+ ],
123
+ ]
124
+ ] = None,
125
+ hidden: Optional[Union[Var[bool], bool]] = None,
126
+ input_mode: Optional[
127
+ Union[
128
+ Literal[
129
+ "decimal",
130
+ "email",
131
+ "none",
132
+ "numeric",
133
+ "search",
134
+ "tel",
135
+ "text",
136
+ "url",
137
+ ],
138
+ Var[
139
+ Literal[
140
+ "decimal",
141
+ "email",
142
+ "none",
143
+ "numeric",
144
+ "search",
145
+ "tel",
146
+ "text",
147
+ "url",
148
+ ]
149
+ ],
150
+ ]
151
+ ] = None,
152
+ item_prop: Optional[Union[Var[str], str]] = None,
153
+ lang: Optional[Union[Var[str], str]] = None,
154
+ role: Optional[
155
+ Union[
156
+ Literal[
157
+ "alert",
158
+ "alertdialog",
159
+ "application",
160
+ "article",
161
+ "banner",
162
+ "button",
163
+ "cell",
164
+ "checkbox",
165
+ "columnheader",
166
+ "combobox",
167
+ "complementary",
168
+ "contentinfo",
169
+ "definition",
170
+ "dialog",
171
+ "directory",
172
+ "document",
173
+ "feed",
174
+ "figure",
175
+ "form",
176
+ "grid",
177
+ "gridcell",
178
+ "group",
179
+ "heading",
180
+ "img",
181
+ "link",
182
+ "list",
183
+ "listbox",
184
+ "listitem",
185
+ "log",
186
+ "main",
187
+ "marquee",
188
+ "math",
189
+ "menu",
190
+ "menubar",
191
+ "menuitem",
192
+ "menuitemcheckbox",
193
+ "menuitemradio",
194
+ "navigation",
195
+ "none",
196
+ "note",
197
+ "option",
198
+ "presentation",
199
+ "progressbar",
200
+ "radio",
201
+ "radiogroup",
202
+ "region",
203
+ "row",
204
+ "rowgroup",
205
+ "rowheader",
206
+ "scrollbar",
207
+ "search",
208
+ "searchbox",
209
+ "separator",
210
+ "slider",
211
+ "spinbutton",
212
+ "status",
213
+ "switch",
214
+ "tab",
215
+ "table",
216
+ "tablist",
217
+ "tabpanel",
218
+ "term",
219
+ "textbox",
220
+ "timer",
221
+ "toolbar",
222
+ "tooltip",
223
+ "tree",
224
+ "treegrid",
225
+ "treeitem",
226
+ ],
227
+ Var[
228
+ Literal[
229
+ "alert",
230
+ "alertdialog",
231
+ "application",
232
+ "article",
233
+ "banner",
234
+ "button",
235
+ "cell",
236
+ "checkbox",
237
+ "columnheader",
238
+ "combobox",
239
+ "complementary",
240
+ "contentinfo",
241
+ "definition",
242
+ "dialog",
243
+ "directory",
244
+ "document",
245
+ "feed",
246
+ "figure",
247
+ "form",
248
+ "grid",
249
+ "gridcell",
250
+ "group",
251
+ "heading",
252
+ "img",
253
+ "link",
254
+ "list",
255
+ "listbox",
256
+ "listitem",
257
+ "log",
258
+ "main",
259
+ "marquee",
260
+ "math",
261
+ "menu",
262
+ "menubar",
263
+ "menuitem",
264
+ "menuitemcheckbox",
265
+ "menuitemradio",
266
+ "navigation",
267
+ "none",
268
+ "note",
269
+ "option",
270
+ "presentation",
271
+ "progressbar",
272
+ "radio",
273
+ "radiogroup",
274
+ "region",
275
+ "row",
276
+ "rowgroup",
277
+ "rowheader",
278
+ "scrollbar",
279
+ "search",
280
+ "searchbox",
281
+ "separator",
282
+ "slider",
283
+ "spinbutton",
284
+ "status",
285
+ "switch",
286
+ "tab",
287
+ "table",
288
+ "tablist",
289
+ "tabpanel",
290
+ "term",
291
+ "textbox",
292
+ "timer",
293
+ "toolbar",
294
+ "tooltip",
295
+ "tree",
296
+ "treegrid",
297
+ "treeitem",
298
+ ]
299
+ ],
300
+ ]
115
301
  ] = None,
116
- hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
117
- input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
118
- item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
119
- lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
120
- role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
121
- slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
122
- spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
123
- tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
124
- title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
302
+ slot: Optional[Union[Var[str], str]] = None,
303
+ spell_check: Optional[Union[Var[bool], bool]] = None,
304
+ tab_index: Optional[Union[Var[int], int]] = None,
305
+ title: Optional[Union[Var[str], str]] = None,
125
306
  style: Optional[Style] = None,
126
307
  key: Optional[Any] = None,
127
308
  id: Optional[Any] = None,