reflex 0.7.8a1__py3-none-any.whl → 0.7.8.post1__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.

@@ -4,14 +4,14 @@
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, overload
7
+ from typing import Any, overload
8
8
 
9
+ from reflex.components.component import Component
9
10
  from reflex.components.core.breakpoints import Breakpoints
10
- from reflex.components.el import elements
11
11
  from reflex.event import EventType
12
12
  from reflex.vars.base import Var
13
13
 
14
- class Title(elements.Title):
14
+ class Title(Component):
15
15
  def render(self) -> dict: ...
16
16
  @overload
17
17
  @classmethod
@@ -62,7 +62,7 @@ class Title(elements.Title):
62
62
  """
63
63
  ...
64
64
 
65
- class Meta(elements.Meta):
65
+ class Meta(Component):
66
66
  @overload
67
67
  @classmethod
68
68
  def create( # type: ignore
@@ -73,184 +73,6 @@ class Meta(elements.Meta):
73
73
  name: str | None = None,
74
74
  property: str | None = None,
75
75
  http_equiv: str | None = None,
76
- access_key: Var[str] | str | None = None,
77
- auto_capitalize: Literal[
78
- "characters", "none", "off", "on", "sentences", "words"
79
- ]
80
- | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
81
- | None = None,
82
- content_editable: Literal["inherit", "plaintext-only", False, True]
83
- | Var[Literal["inherit", "plaintext-only", False, True]]
84
- | None = None,
85
- context_menu: Var[str] | str | None = None,
86
- dir: Var[str] | str | None = None,
87
- draggable: Var[bool] | bool | None = None,
88
- enter_key_hint: Literal[
89
- "done", "enter", "go", "next", "previous", "search", "send"
90
- ]
91
- | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
92
- | None = None,
93
- hidden: Var[bool] | bool | None = None,
94
- input_mode: Literal[
95
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
96
- ]
97
- | Var[
98
- Literal[
99
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
100
- ]
101
- ]
102
- | None = None,
103
- item_prop: Var[str] | str | None = None,
104
- lang: Var[str] | str | None = None,
105
- role: Literal[
106
- "alert",
107
- "alertdialog",
108
- "application",
109
- "article",
110
- "banner",
111
- "button",
112
- "cell",
113
- "checkbox",
114
- "columnheader",
115
- "combobox",
116
- "complementary",
117
- "contentinfo",
118
- "definition",
119
- "dialog",
120
- "directory",
121
- "document",
122
- "feed",
123
- "figure",
124
- "form",
125
- "grid",
126
- "gridcell",
127
- "group",
128
- "heading",
129
- "img",
130
- "link",
131
- "list",
132
- "listbox",
133
- "listitem",
134
- "log",
135
- "main",
136
- "marquee",
137
- "math",
138
- "menu",
139
- "menubar",
140
- "menuitem",
141
- "menuitemcheckbox",
142
- "menuitemradio",
143
- "navigation",
144
- "none",
145
- "note",
146
- "option",
147
- "presentation",
148
- "progressbar",
149
- "radio",
150
- "radiogroup",
151
- "region",
152
- "row",
153
- "rowgroup",
154
- "rowheader",
155
- "scrollbar",
156
- "search",
157
- "searchbox",
158
- "separator",
159
- "slider",
160
- "spinbutton",
161
- "status",
162
- "switch",
163
- "tab",
164
- "table",
165
- "tablist",
166
- "tabpanel",
167
- "term",
168
- "textbox",
169
- "timer",
170
- "toolbar",
171
- "tooltip",
172
- "tree",
173
- "treegrid",
174
- "treeitem",
175
- ]
176
- | Var[
177
- Literal[
178
- "alert",
179
- "alertdialog",
180
- "application",
181
- "article",
182
- "banner",
183
- "button",
184
- "cell",
185
- "checkbox",
186
- "columnheader",
187
- "combobox",
188
- "complementary",
189
- "contentinfo",
190
- "definition",
191
- "dialog",
192
- "directory",
193
- "document",
194
- "feed",
195
- "figure",
196
- "form",
197
- "grid",
198
- "gridcell",
199
- "group",
200
- "heading",
201
- "img",
202
- "link",
203
- "list",
204
- "listbox",
205
- "listitem",
206
- "log",
207
- "main",
208
- "marquee",
209
- "math",
210
- "menu",
211
- "menubar",
212
- "menuitem",
213
- "menuitemcheckbox",
214
- "menuitemradio",
215
- "navigation",
216
- "none",
217
- "note",
218
- "option",
219
- "presentation",
220
- "progressbar",
221
- "radio",
222
- "radiogroup",
223
- "region",
224
- "row",
225
- "rowgroup",
226
- "rowheader",
227
- "scrollbar",
228
- "search",
229
- "searchbox",
230
- "separator",
231
- "slider",
232
- "spinbutton",
233
- "status",
234
- "switch",
235
- "tab",
236
- "table",
237
- "tablist",
238
- "tabpanel",
239
- "term",
240
- "textbox",
241
- "timer",
242
- "toolbar",
243
- "tooltip",
244
- "tree",
245
- "treegrid",
246
- "treeitem",
247
- ]
248
- ]
249
- | None = None,
250
- slot: Var[str] | str | None = None,
251
- spell_check: Var[bool] | bool | None = None,
252
- tab_index: Var[int] | int | None = None,
253
- title: Var[str] | str | None = None,
254
76
  style: Sequence[Mapping[str, Any]]
255
77
  | Mapping[str, Any]
256
78
  | Var[Mapping[str, Any]]
@@ -282,27 +104,11 @@ class Meta(elements.Meta):
282
104
 
283
105
  Args:
284
106
  *children: The children of the component.
285
- char_set: Specifies the character encoding for the HTML document
286
- content: Defines the content of the metadata
287
- name: Specifies a name for the metadata
107
+ char_set: The description of character encoding.
108
+ content: The value of meta.
109
+ name: The name of metadata.
288
110
  property: The type of metadata value.
289
- http_equiv: Provides an HTTP header for the information/value of the content attribute
290
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
291
- auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
292
- content_editable: Indicates whether the element's content is editable.
293
- context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
294
- dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
295
- draggable: Defines whether the element can be dragged.
296
- enter_key_hint: Hints what media types the media element is able to play.
297
- hidden: Defines whether the element is hidden.
298
- input_mode: Defines the type of the element.
299
- item_prop: Defines the name of the element for metadata purposes.
300
- lang: Defines the language used in the element.
301
- role: Defines the role of the element.
302
- slot: Assigns a slot in a shadow DOM shadow tree to an element.
303
- spell_check: Defines whether the element may be checked for spelling errors.
304
- tab_index: Defines the position of the current element in the tabbing order.
305
- title: Defines a tooltip for the element.
111
+ http_equiv: The type of metadata value.
306
112
  style: The style of the component.
307
113
  key: A unique key for the component.
308
114
  id: The id for the component.
@@ -316,194 +122,17 @@ class Meta(elements.Meta):
316
122
  """
317
123
  ...
318
124
 
319
- class Description(elements.Meta):
125
+ class Description(Meta):
320
126
  @overload
321
127
  @classmethod
322
128
  def create( # type: ignore
323
129
  cls,
324
130
  *children,
325
131
  name: str | None = None,
326
- char_set: Var[str] | str | None = None,
327
- content: Var[str] | str | None = None,
328
- http_equiv: Var[str] | str | None = None,
329
- access_key: Var[str] | str | None = None,
330
- auto_capitalize: Literal[
331
- "characters", "none", "off", "on", "sentences", "words"
332
- ]
333
- | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
334
- | None = None,
335
- content_editable: Literal["inherit", "plaintext-only", False, True]
336
- | Var[Literal["inherit", "plaintext-only", False, True]]
337
- | None = None,
338
- context_menu: Var[str] | str | None = None,
339
- dir: Var[str] | str | None = None,
340
- draggable: Var[bool] | bool | None = None,
341
- enter_key_hint: Literal[
342
- "done", "enter", "go", "next", "previous", "search", "send"
343
- ]
344
- | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
345
- | None = None,
346
- hidden: Var[bool] | bool | None = None,
347
- input_mode: Literal[
348
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
349
- ]
350
- | Var[
351
- Literal[
352
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
353
- ]
354
- ]
355
- | None = None,
356
- item_prop: Var[str] | str | None = None,
357
- lang: Var[str] | str | None = None,
358
- role: Literal[
359
- "alert",
360
- "alertdialog",
361
- "application",
362
- "article",
363
- "banner",
364
- "button",
365
- "cell",
366
- "checkbox",
367
- "columnheader",
368
- "combobox",
369
- "complementary",
370
- "contentinfo",
371
- "definition",
372
- "dialog",
373
- "directory",
374
- "document",
375
- "feed",
376
- "figure",
377
- "form",
378
- "grid",
379
- "gridcell",
380
- "group",
381
- "heading",
382
- "img",
383
- "link",
384
- "list",
385
- "listbox",
386
- "listitem",
387
- "log",
388
- "main",
389
- "marquee",
390
- "math",
391
- "menu",
392
- "menubar",
393
- "menuitem",
394
- "menuitemcheckbox",
395
- "menuitemradio",
396
- "navigation",
397
- "none",
398
- "note",
399
- "option",
400
- "presentation",
401
- "progressbar",
402
- "radio",
403
- "radiogroup",
404
- "region",
405
- "row",
406
- "rowgroup",
407
- "rowheader",
408
- "scrollbar",
409
- "search",
410
- "searchbox",
411
- "separator",
412
- "slider",
413
- "spinbutton",
414
- "status",
415
- "switch",
416
- "tab",
417
- "table",
418
- "tablist",
419
- "tabpanel",
420
- "term",
421
- "textbox",
422
- "timer",
423
- "toolbar",
424
- "tooltip",
425
- "tree",
426
- "treegrid",
427
- "treeitem",
428
- ]
429
- | Var[
430
- Literal[
431
- "alert",
432
- "alertdialog",
433
- "application",
434
- "article",
435
- "banner",
436
- "button",
437
- "cell",
438
- "checkbox",
439
- "columnheader",
440
- "combobox",
441
- "complementary",
442
- "contentinfo",
443
- "definition",
444
- "dialog",
445
- "directory",
446
- "document",
447
- "feed",
448
- "figure",
449
- "form",
450
- "grid",
451
- "gridcell",
452
- "group",
453
- "heading",
454
- "img",
455
- "link",
456
- "list",
457
- "listbox",
458
- "listitem",
459
- "log",
460
- "main",
461
- "marquee",
462
- "math",
463
- "menu",
464
- "menubar",
465
- "menuitem",
466
- "menuitemcheckbox",
467
- "menuitemradio",
468
- "navigation",
469
- "none",
470
- "note",
471
- "option",
472
- "presentation",
473
- "progressbar",
474
- "radio",
475
- "radiogroup",
476
- "region",
477
- "row",
478
- "rowgroup",
479
- "rowheader",
480
- "scrollbar",
481
- "search",
482
- "searchbox",
483
- "separator",
484
- "slider",
485
- "spinbutton",
486
- "status",
487
- "switch",
488
- "tab",
489
- "table",
490
- "tablist",
491
- "tabpanel",
492
- "term",
493
- "textbox",
494
- "timer",
495
- "toolbar",
496
- "tooltip",
497
- "tree",
498
- "treegrid",
499
- "treeitem",
500
- ]
501
- ]
502
- | None = None,
503
- slot: Var[str] | str | None = None,
504
- spell_check: Var[bool] | bool | None = None,
505
- tab_index: Var[int] | int | None = None,
506
- title: Var[str] | str | None = None,
132
+ char_set: str | None = None,
133
+ content: str | None = None,
134
+ property: str | None = None,
135
+ http_equiv: str | None = None,
507
136
  style: Sequence[Mapping[str, Any]]
508
137
  | Mapping[str, Any]
509
138
  | Var[Mapping[str, Any]]
@@ -535,26 +164,11 @@ class Description(elements.Meta):
535
164
 
536
165
  Args:
537
166
  *children: The children of the component.
538
- name: Specifies a name for the metadata
539
- char_set: Specifies the character encoding for the HTML document
540
- content: Defines the content of the metadata
541
- http_equiv: Provides an HTTP header for the information/value of the content attribute
542
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
543
- auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
544
- content_editable: Indicates whether the element's content is editable.
545
- context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
546
- dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
547
- draggable: Defines whether the element can be dragged.
548
- enter_key_hint: Hints what media types the media element is able to play.
549
- hidden: Defines whether the element is hidden.
550
- input_mode: Defines the type of the element.
551
- item_prop: Defines the name of the element for metadata purposes.
552
- lang: Defines the language used in the element.
553
- role: Defines the role of the element.
554
- slot: Assigns a slot in a shadow DOM shadow tree to an element.
555
- spell_check: Defines whether the element may be checked for spelling errors.
556
- tab_index: Defines the position of the current element in the tabbing order.
557
- title: Defines a tooltip for the element.
167
+ name: The name of metadata.
168
+ char_set: The description of character encoding.
169
+ content: The value of meta.
170
+ property: The type of metadata value.
171
+ http_equiv: The type of metadata value.
558
172
  style: The style of the component.
559
173
  key: A unique key for the component.
560
174
  id: The id for the component.
@@ -568,195 +182,17 @@ class Description(elements.Meta):
568
182
  """
569
183
  ...
570
184
 
571
- class Image(elements.Meta):
185
+ class Image(Meta):
572
186
  @overload
573
187
  @classmethod
574
188
  def create( # type: ignore
575
189
  cls,
576
190
  *children,
577
191
  property: str | None = None,
578
- char_set: Var[str] | str | None = None,
579
- content: Var[str] | str | None = None,
580
- http_equiv: Var[str] | str | None = None,
581
- name: Var[str] | str | None = None,
582
- access_key: Var[str] | str | None = None,
583
- auto_capitalize: Literal[
584
- "characters", "none", "off", "on", "sentences", "words"
585
- ]
586
- | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
587
- | None = None,
588
- content_editable: Literal["inherit", "plaintext-only", False, True]
589
- | Var[Literal["inherit", "plaintext-only", False, True]]
590
- | None = None,
591
- context_menu: Var[str] | str | None = None,
592
- dir: Var[str] | str | None = None,
593
- draggable: Var[bool] | bool | None = None,
594
- enter_key_hint: Literal[
595
- "done", "enter", "go", "next", "previous", "search", "send"
596
- ]
597
- | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
598
- | None = None,
599
- hidden: Var[bool] | bool | None = None,
600
- input_mode: Literal[
601
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
602
- ]
603
- | Var[
604
- Literal[
605
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
606
- ]
607
- ]
608
- | None = None,
609
- item_prop: Var[str] | str | None = None,
610
- lang: Var[str] | str | None = None,
611
- role: Literal[
612
- "alert",
613
- "alertdialog",
614
- "application",
615
- "article",
616
- "banner",
617
- "button",
618
- "cell",
619
- "checkbox",
620
- "columnheader",
621
- "combobox",
622
- "complementary",
623
- "contentinfo",
624
- "definition",
625
- "dialog",
626
- "directory",
627
- "document",
628
- "feed",
629
- "figure",
630
- "form",
631
- "grid",
632
- "gridcell",
633
- "group",
634
- "heading",
635
- "img",
636
- "link",
637
- "list",
638
- "listbox",
639
- "listitem",
640
- "log",
641
- "main",
642
- "marquee",
643
- "math",
644
- "menu",
645
- "menubar",
646
- "menuitem",
647
- "menuitemcheckbox",
648
- "menuitemradio",
649
- "navigation",
650
- "none",
651
- "note",
652
- "option",
653
- "presentation",
654
- "progressbar",
655
- "radio",
656
- "radiogroup",
657
- "region",
658
- "row",
659
- "rowgroup",
660
- "rowheader",
661
- "scrollbar",
662
- "search",
663
- "searchbox",
664
- "separator",
665
- "slider",
666
- "spinbutton",
667
- "status",
668
- "switch",
669
- "tab",
670
- "table",
671
- "tablist",
672
- "tabpanel",
673
- "term",
674
- "textbox",
675
- "timer",
676
- "toolbar",
677
- "tooltip",
678
- "tree",
679
- "treegrid",
680
- "treeitem",
681
- ]
682
- | Var[
683
- Literal[
684
- "alert",
685
- "alertdialog",
686
- "application",
687
- "article",
688
- "banner",
689
- "button",
690
- "cell",
691
- "checkbox",
692
- "columnheader",
693
- "combobox",
694
- "complementary",
695
- "contentinfo",
696
- "definition",
697
- "dialog",
698
- "directory",
699
- "document",
700
- "feed",
701
- "figure",
702
- "form",
703
- "grid",
704
- "gridcell",
705
- "group",
706
- "heading",
707
- "img",
708
- "link",
709
- "list",
710
- "listbox",
711
- "listitem",
712
- "log",
713
- "main",
714
- "marquee",
715
- "math",
716
- "menu",
717
- "menubar",
718
- "menuitem",
719
- "menuitemcheckbox",
720
- "menuitemradio",
721
- "navigation",
722
- "none",
723
- "note",
724
- "option",
725
- "presentation",
726
- "progressbar",
727
- "radio",
728
- "radiogroup",
729
- "region",
730
- "row",
731
- "rowgroup",
732
- "rowheader",
733
- "scrollbar",
734
- "search",
735
- "searchbox",
736
- "separator",
737
- "slider",
738
- "spinbutton",
739
- "status",
740
- "switch",
741
- "tab",
742
- "table",
743
- "tablist",
744
- "tabpanel",
745
- "term",
746
- "textbox",
747
- "timer",
748
- "toolbar",
749
- "tooltip",
750
- "tree",
751
- "treegrid",
752
- "treeitem",
753
- ]
754
- ]
755
- | None = None,
756
- slot: Var[str] | str | None = None,
757
- spell_check: Var[bool] | bool | None = None,
758
- tab_index: Var[int] | int | None = None,
759
- title: Var[str] | str | None = None,
192
+ char_set: str | None = None,
193
+ content: str | None = None,
194
+ name: str | None = None,
195
+ http_equiv: str | None = None,
760
196
  style: Sequence[Mapping[str, Any]]
761
197
  | Mapping[str, Any]
762
198
  | Var[Mapping[str, Any]]
@@ -788,27 +224,11 @@ class Image(elements.Meta):
788
224
 
789
225
  Args:
790
226
  *children: The children of the component.
791
- property: The type of the image.
792
- char_set: Specifies the character encoding for the HTML document
793
- content: Defines the content of the metadata
794
- http_equiv: Provides an HTTP header for the information/value of the content attribute
795
- name: Specifies a name for the metadata
796
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
797
- auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
798
- content_editable: Indicates whether the element's content is editable.
799
- context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
800
- dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
801
- draggable: Defines whether the element can be dragged.
802
- enter_key_hint: Hints what media types the media element is able to play.
803
- hidden: Defines whether the element is hidden.
804
- input_mode: Defines the type of the element.
805
- item_prop: Defines the name of the element for metadata purposes.
806
- lang: Defines the language used in the element.
807
- role: Defines the role of the element.
808
- slot: Assigns a slot in a shadow DOM shadow tree to an element.
809
- spell_check: Defines whether the element may be checked for spelling errors.
810
- tab_index: Defines the position of the current element in the tabbing order.
811
- title: Defines a tooltip for the element.
227
+ property: The type of metadata value.
228
+ char_set: The description of character encoding.
229
+ content: The value of meta.
230
+ name: The name of metadata.
231
+ http_equiv: The type of metadata value.
812
232
  style: The style of the component.
813
233
  key: A unique key for the component.
814
234
  id: The id for the component.