reflex 0.6.6.post2__py3-none-any.whl → 0.6.7__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 (141) hide show
  1. reflex/.templates/jinja/web/pages/stateful_component.js.jinja2 +5 -1
  2. reflex/.templates/web/utils/state.js +36 -28
  3. reflex/__init__.py +1 -1
  4. reflex/__init__.pyi +1 -0
  5. reflex/app.py +41 -16
  6. reflex/assets.py +2 -2
  7. reflex/base.py +8 -7
  8. reflex/compiler/templates.py +1 -0
  9. reflex/compiler/utils.py +2 -3
  10. reflex/components/base/bare.py +2 -2
  11. reflex/components/component.py +54 -29
  12. reflex/components/core/banner.py +2 -2
  13. reflex/components/core/banner.pyi +1 -1
  14. reflex/components/core/client_side_routing.py +2 -2
  15. reflex/components/core/client_side_routing.pyi +1 -1
  16. reflex/components/core/clipboard.py +11 -9
  17. reflex/components/core/clipboard.pyi +1 -1
  18. reflex/components/core/cond.py +3 -3
  19. reflex/components/core/foreach.py +1 -1
  20. reflex/components/core/html.pyi +1 -1
  21. reflex/components/core/upload.py +8 -8
  22. reflex/components/datadisplay/code.py +5 -5
  23. reflex/components/datadisplay/dataeditor.py +8 -28
  24. reflex/components/datadisplay/dataeditor.pyi +1 -1
  25. reflex/components/datadisplay/shiki_code_block.py +7 -7
  26. reflex/components/dynamic.py +2 -2
  27. reflex/components/el/elements/__init__.py +1 -1
  28. reflex/components/el/elements/__init__.pyi +1 -1
  29. reflex/components/el/elements/base.py +2 -2
  30. reflex/components/el/elements/base.pyi +1 -1
  31. reflex/components/el/elements/forms.py +40 -10
  32. reflex/components/el/elements/forms.pyi +17 -15
  33. reflex/components/el/elements/inline.py +1 -1
  34. reflex/components/el/elements/inline.pyi +28 -28
  35. reflex/components/el/elements/media.py +1 -4
  36. reflex/components/el/elements/media.pyi +25 -26
  37. reflex/components/el/elements/metadata.py +6 -6
  38. reflex/components/el/elements/metadata.pyi +4 -4
  39. reflex/components/el/elements/other.py +17 -9
  40. reflex/components/el/elements/other.pyi +7 -7
  41. reflex/components/el/elements/scripts.py +1 -2
  42. reflex/components/el/elements/scripts.pyi +3 -3
  43. reflex/components/el/elements/sectioning.py +16 -16
  44. reflex/components/el/elements/sectioning.pyi +15 -15
  45. reflex/components/el/elements/tables.py +1 -1
  46. reflex/components/el/elements/tables.pyi +10 -10
  47. reflex/components/el/elements/typography.py +1 -1
  48. reflex/components/el/elements/typography.pyi +15 -15
  49. reflex/components/markdown/markdown.py +3 -3
  50. reflex/components/next/image.py +1 -1
  51. reflex/components/next/image.pyi +1 -1
  52. reflex/components/plotly/plotly.py +2 -2
  53. reflex/components/radix/primitives/accordion.py +2 -1
  54. reflex/components/radix/primitives/form.pyi +3 -3
  55. reflex/components/radix/primitives/slider.py +1 -1
  56. reflex/components/radix/themes/base.py +4 -10
  57. reflex/components/radix/themes/color_mode.pyi +2 -2
  58. reflex/components/radix/themes/components/alert_dialog.pyi +1 -1
  59. reflex/components/radix/themes/components/badge.pyi +1 -1
  60. reflex/components/radix/themes/components/button.pyi +1 -1
  61. reflex/components/radix/themes/components/callout.pyi +5 -5
  62. reflex/components/radix/themes/components/card.pyi +1 -1
  63. reflex/components/radix/themes/components/checkbox.pyi +3 -3
  64. reflex/components/radix/themes/components/context_menu.py +11 -0
  65. reflex/components/radix/themes/components/context_menu.pyi +155 -0
  66. reflex/components/radix/themes/components/dialog.pyi +1 -1
  67. reflex/components/radix/themes/components/hover_card.pyi +1 -1
  68. reflex/components/radix/themes/components/icon_button.py +1 -1
  69. reflex/components/radix/themes/components/icon_button.pyi +1 -1
  70. reflex/components/radix/themes/components/inset.pyi +1 -1
  71. reflex/components/radix/themes/components/popover.pyi +1 -1
  72. reflex/components/radix/themes/components/radio_group.py +2 -4
  73. reflex/components/radix/themes/components/radio_group.pyi +1 -1
  74. reflex/components/radix/themes/components/select.pyi +3 -3
  75. reflex/components/radix/themes/components/slider.pyi +1 -1
  76. reflex/components/radix/themes/components/switch.pyi +1 -1
  77. reflex/components/radix/themes/components/table.pyi +7 -7
  78. reflex/components/radix/themes/components/tabs.pyi +2 -2
  79. reflex/components/radix/themes/components/text_area.py +3 -0
  80. reflex/components/radix/themes/components/text_area.pyi +3 -1
  81. reflex/components/radix/themes/components/text_field.py +16 -1
  82. reflex/components/radix/themes/components/text_field.pyi +105 -17
  83. reflex/components/radix/themes/layout/box.pyi +1 -1
  84. reflex/components/radix/themes/layout/center.pyi +1 -1
  85. reflex/components/radix/themes/layout/flex.pyi +1 -1
  86. reflex/components/radix/themes/layout/grid.pyi +1 -1
  87. reflex/components/radix/themes/layout/list.py +0 -4
  88. reflex/components/radix/themes/layout/list.pyi +3 -8
  89. reflex/components/radix/themes/layout/section.pyi +1 -1
  90. reflex/components/radix/themes/layout/spacer.pyi +1 -1
  91. reflex/components/radix/themes/layout/stack.pyi +3 -3
  92. reflex/components/radix/themes/typography/blockquote.pyi +1 -1
  93. reflex/components/radix/themes/typography/code.pyi +1 -1
  94. reflex/components/radix/themes/typography/heading.pyi +1 -1
  95. reflex/components/radix/themes/typography/link.py +5 -1
  96. reflex/components/radix/themes/typography/link.pyi +1 -1
  97. reflex/components/radix/themes/typography/text.pyi +7 -7
  98. reflex/components/recharts/cartesian.py +1 -1
  99. reflex/components/recharts/charts.py +4 -4
  100. reflex/components/recharts/polar.py +1 -1
  101. reflex/components/recharts/polar.pyi +1 -1
  102. reflex/components/sonner/toast.py +4 -7
  103. reflex/components/suneditor/editor.py +6 -6
  104. reflex/components/suneditor/editor.pyi +6 -6
  105. reflex/config.py +25 -10
  106. reflex/constants/compiler.py +6 -0
  107. reflex/constants/config.py +2 -0
  108. reflex/constants/custom_components.py +1 -1
  109. reflex/constants/route.py +1 -1
  110. reflex/custom_components/custom_components.py +21 -21
  111. reflex/event.py +57 -22
  112. reflex/experimental/client_state.py +2 -1
  113. reflex/experimental/layout.py +0 -6
  114. reflex/model.py +125 -9
  115. reflex/reflex.py +12 -8
  116. reflex/state.py +200 -88
  117. reflex/style.py +1 -4
  118. reflex/testing.py +10 -11
  119. reflex/utils/build.py +1 -1
  120. reflex/utils/console.py +75 -6
  121. reflex/utils/exceptions.py +12 -0
  122. reflex/utils/exec.py +10 -10
  123. reflex/utils/export.py +1 -2
  124. reflex/utils/format.py +11 -8
  125. reflex/utils/path_ops.py +2 -2
  126. reflex/utils/prerequisites.py +31 -28
  127. reflex/utils/processes.py +4 -4
  128. reflex/utils/pyi_generator.py +12 -11
  129. reflex/utils/types.py +6 -3
  130. reflex/vars/__init__.py +1 -0
  131. reflex/vars/base.py +75 -38
  132. reflex/vars/datetime.py +222 -0
  133. reflex/vars/function.py +3 -3
  134. reflex/vars/number.py +3 -3
  135. reflex/vars/object.py +5 -5
  136. reflex/vars/sequence.py +7 -7
  137. {reflex-0.6.6.post2.dist-info → reflex-0.6.7.dist-info}/METADATA +2 -2
  138. {reflex-0.6.6.post2.dist-info → reflex-0.6.7.dist-info}/RECORD +141 -140
  139. {reflex-0.6.6.post2.dist-info → reflex-0.6.7.dist-info}/LICENSE +0 -0
  140. {reflex-0.6.6.post2.dist-info → reflex-0.6.7.dist-info}/WHEEL +0 -0
  141. {reflex-0.6.6.post2.dist-info → reflex-0.6.7.dist-info}/entry_points.txt +0 -0
@@ -88,7 +88,7 @@ class A(BaseHTML):
88
88
  rel: Specifies the relationship between the linked document and the current document
89
89
  shape: Specifies the shape of the area
90
90
  target: Specifies where to open the linked document
91
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
91
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
92
92
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
93
93
  content_editable: Indicates whether the element's content is editable.
94
94
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -174,7 +174,7 @@ class Abbr(BaseHTML):
174
174
 
175
175
  Args:
176
176
  *children: The children of the component.
177
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
177
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
178
178
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
179
179
  content_editable: Indicates whether the element's content is editable.
180
180
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -260,7 +260,7 @@ class B(BaseHTML):
260
260
 
261
261
  Args:
262
262
  *children: The children of the component.
263
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
263
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
264
264
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
265
265
  content_editable: Indicates whether the element's content is editable.
266
266
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -346,7 +346,7 @@ class Bdi(BaseHTML):
346
346
 
347
347
  Args:
348
348
  *children: The children of the component.
349
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
349
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
350
350
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
351
351
  content_editable: Indicates whether the element's content is editable.
352
352
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -432,7 +432,7 @@ class Bdo(BaseHTML):
432
432
 
433
433
  Args:
434
434
  *children: The children of the component.
435
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
435
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
436
436
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
437
437
  content_editable: Indicates whether the element's content is editable.
438
438
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -518,7 +518,7 @@ class Br(BaseHTML):
518
518
 
519
519
  Args:
520
520
  *children: The children of the component.
521
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
521
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
522
522
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
523
523
  content_editable: Indicates whether the element's content is editable.
524
524
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -604,7 +604,7 @@ class Cite(BaseHTML):
604
604
 
605
605
  Args:
606
606
  *children: The children of the component.
607
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
607
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
608
608
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
609
609
  content_editable: Indicates whether the element's content is editable.
610
610
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -690,7 +690,7 @@ class Code(BaseHTML):
690
690
 
691
691
  Args:
692
692
  *children: The children of the component.
693
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
693
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
694
694
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
695
695
  content_editable: Indicates whether the element's content is editable.
696
696
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -778,7 +778,7 @@ class Data(BaseHTML):
778
778
  Args:
779
779
  *children: The children of the component.
780
780
  value: Specifies the machine-readable translation of the data element.
781
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
781
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
782
782
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
783
783
  content_editable: Indicates whether the element's content is editable.
784
784
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -864,7 +864,7 @@ class Dfn(BaseHTML):
864
864
 
865
865
  Args:
866
866
  *children: The children of the component.
867
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
867
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
868
868
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
869
869
  content_editable: Indicates whether the element's content is editable.
870
870
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -950,7 +950,7 @@ class Em(BaseHTML):
950
950
 
951
951
  Args:
952
952
  *children: The children of the component.
953
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
953
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
954
954
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
955
955
  content_editable: Indicates whether the element's content is editable.
956
956
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1036,7 +1036,7 @@ class I(BaseHTML):
1036
1036
 
1037
1037
  Args:
1038
1038
  *children: The children of the component.
1039
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1039
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1040
1040
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1041
1041
  content_editable: Indicates whether the element's content is editable.
1042
1042
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1122,7 +1122,7 @@ class Kbd(BaseHTML):
1122
1122
 
1123
1123
  Args:
1124
1124
  *children: The children of the component.
1125
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1125
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1126
1126
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1127
1127
  content_editable: Indicates whether the element's content is editable.
1128
1128
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1208,7 +1208,7 @@ class Mark(BaseHTML):
1208
1208
 
1209
1209
  Args:
1210
1210
  *children: The children of the component.
1211
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1211
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1212
1212
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1213
1213
  content_editable: Indicates whether the element's content is editable.
1214
1214
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1296,7 +1296,7 @@ class Q(BaseHTML):
1296
1296
  Args:
1297
1297
  *children: The children of the component.
1298
1298
  cite: Specifies the source URL of the quote.
1299
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1299
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1300
1300
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1301
1301
  content_editable: Indicates whether the element's content is editable.
1302
1302
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1382,7 +1382,7 @@ class Rp(BaseHTML):
1382
1382
 
1383
1383
  Args:
1384
1384
  *children: The children of the component.
1385
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1385
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1386
1386
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1387
1387
  content_editable: Indicates whether the element's content is editable.
1388
1388
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1468,7 +1468,7 @@ class Rt(BaseHTML):
1468
1468
 
1469
1469
  Args:
1470
1470
  *children: The children of the component.
1471
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1471
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1472
1472
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1473
1473
  content_editable: Indicates whether the element's content is editable.
1474
1474
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1554,7 +1554,7 @@ class Ruby(BaseHTML):
1554
1554
 
1555
1555
  Args:
1556
1556
  *children: The children of the component.
1557
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1557
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1558
1558
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1559
1559
  content_editable: Indicates whether the element's content is editable.
1560
1560
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1640,7 +1640,7 @@ class S(BaseHTML):
1640
1640
 
1641
1641
  Args:
1642
1642
  *children: The children of the component.
1643
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1643
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1644
1644
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1645
1645
  content_editable: Indicates whether the element's content is editable.
1646
1646
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1726,7 +1726,7 @@ class Samp(BaseHTML):
1726
1726
 
1727
1727
  Args:
1728
1728
  *children: The children of the component.
1729
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1729
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1730
1730
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1731
1731
  content_editable: Indicates whether the element's content is editable.
1732
1732
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1812,7 +1812,7 @@ class Small(BaseHTML):
1812
1812
 
1813
1813
  Args:
1814
1814
  *children: The children of the component.
1815
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1815
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1816
1816
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1817
1817
  content_editable: Indicates whether the element's content is editable.
1818
1818
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1898,7 +1898,7 @@ class Span(BaseHTML):
1898
1898
 
1899
1899
  Args:
1900
1900
  *children: The children of the component.
1901
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1901
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1902
1902
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1903
1903
  content_editable: Indicates whether the element's content is editable.
1904
1904
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1984,7 +1984,7 @@ class Strong(BaseHTML):
1984
1984
 
1985
1985
  Args:
1986
1986
  *children: The children of the component.
1987
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1987
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1988
1988
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1989
1989
  content_editable: Indicates whether the element's content is editable.
1990
1990
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -2070,7 +2070,7 @@ class Sub(BaseHTML):
2070
2070
 
2071
2071
  Args:
2072
2072
  *children: The children of the component.
2073
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
2073
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
2074
2074
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
2075
2075
  content_editable: Indicates whether the element's content is editable.
2076
2076
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -2156,7 +2156,7 @@ class Sup(BaseHTML):
2156
2156
 
2157
2157
  Args:
2158
2158
  *children: The children of the component.
2159
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
2159
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
2160
2160
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
2161
2161
  content_editable: Indicates whether the element's content is editable.
2162
2162
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -2244,7 +2244,7 @@ class Time(BaseHTML):
2244
2244
  Args:
2245
2245
  *children: The children of the component.
2246
2246
  date_time: Specifies the date and/or time of the element.
2247
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
2247
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
2248
2248
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
2249
2249
  content_editable: Indicates whether the element's content is editable.
2250
2250
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -2330,7 +2330,7 @@ class U(BaseHTML):
2330
2330
 
2331
2331
  Args:
2332
2332
  *children: The children of the component.
2333
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
2333
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
2334
2334
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
2335
2335
  content_editable: Indicates whether the element's content is editable.
2336
2336
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -2416,7 +2416,7 @@ class Wbr(BaseHTML):
2416
2416
 
2417
2417
  Args:
2418
2418
  *children: The children of the component.
2419
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
2419
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
2420
2420
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
2421
2421
  content_editable: Indicates whether the element's content is editable.
2422
2422
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1,4 +1,4 @@
1
- """Element classes. This is an auto-generated file. Do not edit. See ../generate.py."""
1
+ """Media classes."""
2
2
 
3
3
  from typing import Any, Union
4
4
 
@@ -129,7 +129,6 @@ class Img(BaseHTML):
129
129
 
130
130
  Returns:
131
131
  The component.
132
-
133
132
  """
134
133
  return (
135
134
  super().create(src=children[0], **props)
@@ -274,14 +273,12 @@ class Picture(BaseHTML):
274
273
  """Display the picture element."""
275
274
 
276
275
  tag = "picture"
277
- # No unique attributes, only common ones are inherited
278
276
 
279
277
 
280
278
  class Portal(BaseHTML):
281
279
  """Display the portal element."""
282
280
 
283
281
  tag = "portal"
284
- # No unique attributes, only common ones are inherited
285
282
 
286
283
 
287
284
  class Source(BaseHTML):
@@ -94,7 +94,7 @@ class Area(BaseHTML):
94
94
  rel: Specifies the relationship of the target object to the link object
95
95
  shape: Defines the shape of the area (rectangle, circle, polygon)
96
96
  target: Specifies where to open the linked document
97
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
97
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
98
98
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
99
99
  content_editable: Indicates whether the element's content is editable.
100
100
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -198,7 +198,7 @@ class Audio(BaseHTML):
198
198
  muted: Indicates whether the audio is muted by default
199
199
  preload: Specifies how the audio file should be preloaded
200
200
  src: URL of the audio to play
201
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
201
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
202
202
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
203
203
  content_editable: Indicates whether the element's content is editable.
204
204
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -314,7 +314,7 @@ class Img(BaseHTML):
314
314
  src: URL of the image to display
315
315
  src_set: A set of source sizes and URLs for responsive images
316
316
  use_map: The name of the map to use with the image
317
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
317
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
318
318
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
319
319
  content_editable: Indicates whether the element's content is editable.
320
320
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -340,7 +340,6 @@ class Img(BaseHTML):
340
340
 
341
341
  Returns:
342
342
  The component.
343
-
344
343
  """
345
344
  ...
346
345
 
@@ -403,7 +402,7 @@ class Map(BaseHTML):
403
402
  Args:
404
403
  *children: The children of the component.
405
404
  name: Name of the map, referenced by the 'usemap' attribute in 'img' and 'object' elements
406
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
405
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
407
406
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
408
407
  content_editable: Indicates whether the element's content is editable.
409
408
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -499,7 +498,7 @@ class Track(BaseHTML):
499
498
  label: Title of the text track, used by the browser when listing available text tracks
500
499
  src: URL of the track file
501
500
  src_lang: Language of the track text data
502
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
501
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
503
502
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
504
503
  content_editable: Indicates whether the element's content is editable.
505
504
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -609,7 +608,7 @@ class Video(BaseHTML):
609
608
  poster: URL of an image to show while the video is downloading, or until the user hits the play button
610
609
  preload: Specifies how the video file should be preloaded
611
610
  src: URL of the video to play
612
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
611
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
613
612
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
614
613
  content_editable: Indicates whether the element's content is editable.
615
614
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -699,7 +698,7 @@ class Embed(BaseHTML):
699
698
  *children: The children of the component.
700
699
  src: URL of the embedded content
701
700
  type: Media type of the embedded content
702
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
701
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
703
702
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
704
703
  content_editable: Indicates whether the element's content is editable.
705
704
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -805,7 +804,7 @@ class Iframe(BaseHTML):
805
804
  sandbox: Security restrictions for the content in the iframe
806
805
  src: URL of the document to display in the iframe
807
806
  src_doc: HTML content to embed directly within the iframe
808
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
807
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
809
808
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
810
809
  content_editable: Indicates whether the element's content is editable.
811
810
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -901,7 +900,7 @@ class Object(BaseHTML):
901
900
  name: Name of the object, used for scripting or as a target for forms and links
902
901
  type: Media type of the data specified in the data attribute
903
902
  use_map: Name of an image map to use with the object
904
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
903
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
905
904
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
906
905
  content_editable: Indicates whether the element's content is editable.
907
906
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -987,7 +986,7 @@ class Picture(BaseHTML):
987
986
 
988
987
  Args:
989
988
  *children: The children of the component.
990
- access_key: No unique attributes, only common ones are inherited Provides a hint for generating a keyboard shortcut for the current element.
989
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
991
990
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
992
991
  content_editable: Indicates whether the element's content is editable.
993
992
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1073,7 +1072,7 @@ class Portal(BaseHTML):
1073
1072
 
1074
1073
  Args:
1075
1074
  *children: The children of the component.
1076
- access_key: No unique attributes, only common ones are inherited Provides a hint for generating a keyboard shortcut for the current element.
1075
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1077
1076
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1078
1077
  content_editable: Indicates whether the element's content is editable.
1079
1078
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1169,7 +1168,7 @@ class Source(BaseHTML):
1169
1168
  src: URL of the media file or an image for the element to use
1170
1169
  src_set: A set of source sizes and URLs for responsive images
1171
1170
  type: Media type of the source
1172
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1171
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1173
1172
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1174
1173
  content_editable: Indicates whether the element's content is editable.
1175
1174
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1261,7 +1260,7 @@ class Svg(BaseHTML):
1261
1260
  width: The width of the svg.
1262
1261
  height: The height of the svg.
1263
1262
  xmlns: The XML namespace declaration.
1264
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1263
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1265
1264
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1266
1265
  content_editable: Indicates whether the element's content is editable.
1267
1266
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1361,7 +1360,7 @@ class Text(BaseHTML):
1361
1360
  rotate: Rotates orientation of each individual glyph.
1362
1361
  length_adjust: How the text is stretched or compressed to fit the width defined by the text_length attribute.
1363
1362
  text_length: A width that the text should be scaled to fit.
1364
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1363
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1365
1364
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1366
1365
  content_editable: Indicates whether the element's content is editable.
1367
1366
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1457,7 +1456,7 @@ class Line(BaseHTML):
1457
1456
  y1: The y-axis coordinate of the line starting point.
1458
1457
  y2: The y-axis coordinate of the the line ending point.
1459
1458
  path_length: The total path length, in user units.
1460
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1459
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1461
1460
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1462
1461
  content_editable: Indicates whether the element's content is editable.
1463
1462
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1551,7 +1550,7 @@ class Circle(BaseHTML):
1551
1550
  cy: The y-axis coordinate of the center of the circle.
1552
1551
  r: The radius of the circle.
1553
1552
  path_length: The total length for the circle's circumference, in user units.
1554
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1553
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1555
1554
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1556
1555
  content_editable: Indicates whether the element's content is editable.
1557
1556
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1647,7 +1646,7 @@ class Ellipse(BaseHTML):
1647
1646
  rx: The radius of the ellipse on the x axis.
1648
1647
  ry: The radius of the ellipse on the y axis.
1649
1648
  path_length: The total length for the ellipse's circumference, in user units.
1650
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1649
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1651
1650
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1652
1651
  content_editable: Indicates whether the element's content is editable.
1653
1652
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1747,7 +1746,7 @@ class Rect(BaseHTML):
1747
1746
  rx: The horizontal corner radius of the rect. Defaults to ry if it is specified.
1748
1747
  ry: The vertical corner radius of the rect. Defaults to rx if it is specified.
1749
1748
  path_length: The total length of the rectangle's perimeter, in user units.
1750
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1749
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1751
1750
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1752
1751
  content_editable: Indicates whether the element's content is editable.
1753
1752
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1837,7 +1836,7 @@ class Polygon(BaseHTML):
1837
1836
  *children: The children of the component.
1838
1837
  points: defines the list of points (pairs of x,y absolute coordinates) required to draw the polygon.
1839
1838
  path_length: This prop lets specify the total length for the path, in user units.
1840
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1839
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1841
1840
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1842
1841
  content_editable: Indicates whether the element's content is editable.
1843
1842
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1923,7 +1922,7 @@ class Defs(BaseHTML):
1923
1922
 
1924
1923
  Args:
1925
1924
  *children: The children of the component.
1926
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
1925
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1927
1926
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1928
1927
  content_editable: Indicates whether the element's content is editable.
1929
1928
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -2023,7 +2022,7 @@ class LinearGradient(BaseHTML):
2023
2022
  x2: X coordinate of the ending point of the gradient.
2024
2023
  y1: Y coordinate of the starting point of the gradient.
2025
2024
  y2: Y coordinate of the ending point of the gradient.
2026
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
2025
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
2027
2026
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
2028
2027
  content_editable: Indicates whether the element's content is editable.
2029
2028
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -2127,7 +2126,7 @@ class RadialGradient(BaseHTML):
2127
2126
  gradient_transform: Transform applied to the gradient.
2128
2127
  r: The radius of the end circle of the radial gradient.
2129
2128
  spread_method: Method used to spread the gradient.
2130
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
2129
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
2131
2130
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
2132
2131
  content_editable: Indicates whether the element's content is editable.
2133
2132
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -2223,7 +2222,7 @@ class Stop(BaseHTML):
2223
2222
  offset: Offset of the gradient stop.
2224
2223
  stop_color: Color of the gradient stop.
2225
2224
  stop_opacity: Opacity of the gradient stop.
2226
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
2225
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
2227
2226
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
2228
2227
  content_editable: Indicates whether the element's content is editable.
2229
2228
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -2311,7 +2310,7 @@ class Path(BaseHTML):
2311
2310
  Args:
2312
2311
  *children: The children of the component.
2313
2312
  d: Defines the shape of the path.
2314
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
2313
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
2315
2314
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
2316
2315
  content_editable: Indicates whether the element's content is editable.
2317
2316
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -2413,7 +2412,7 @@ class SVG(ComponentNamespace):
2413
2412
  width: The width of the svg.
2414
2413
  height: The height of the svg.
2415
2414
  xmlns: The XML namespace declaration.
2416
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
2415
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
2417
2416
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
2418
2417
  content_editable: Indicates whether the element's content is editable.
2419
2418
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1,4 +1,4 @@
1
- """Element classes. This is an auto-generated file. Do not edit. See ../generate.py."""
1
+ """Metadata classes."""
2
2
 
3
3
  from typing import List, Union
4
4
 
@@ -8,7 +8,7 @@ from reflex.vars.base import Var
8
8
  from .base import BaseHTML
9
9
 
10
10
 
11
- class Base(BaseHTML): # noqa: E742
11
+ class Base(BaseHTML):
12
12
  """Display the base element."""
13
13
 
14
14
  tag = "base"
@@ -18,13 +18,13 @@ class Base(BaseHTML): # noqa: E742
18
18
  target: Var[Union[str, int, bool]]
19
19
 
20
20
 
21
- class Head(BaseHTML): # noqa: E742
21
+ class Head(BaseHTML):
22
22
  """Display the head element."""
23
23
 
24
24
  tag = "head"
25
25
 
26
26
 
27
- class Link(BaseHTML): # noqa: E742
27
+ class Link(BaseHTML):
28
28
  """Display the link element."""
29
29
 
30
30
  tag = "link"
@@ -75,14 +75,14 @@ class Meta(BaseHTML): # Inherits common attributes from BaseHTML
75
75
  name: Var[Union[str, int, bool]]
76
76
 
77
77
 
78
- class Title(Element): # noqa: E742
78
+ class Title(Element):
79
79
  """Display the title element."""
80
80
 
81
81
  tag = "title"
82
82
 
83
83
 
84
84
  # Had to be named with an underscore so it doesnt conflict with reflex.style Style in pyi
85
- class StyleEl(Element): # noqa: E742
85
+ class StyleEl(Element):
86
86
  """Display the style element."""
87
87
 
88
88
  tag = "style"
@@ -71,7 +71,7 @@ class Base(BaseHTML):
71
71
 
72
72
  Args:
73
73
  *children: The children of the component.
74
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
74
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
75
75
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
76
76
  content_editable: Indicates whether the element's content is editable.
77
77
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -157,7 +157,7 @@ class Head(BaseHTML):
157
157
 
158
158
  Args:
159
159
  *children: The children of the component.
160
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
160
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
161
161
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
162
162
  content_editable: Indicates whether the element's content is editable.
163
163
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -265,7 +265,7 @@ class Link(BaseHTML):
265
265
  rel: Specifies the relationship between the current document and the linked one
266
266
  sizes: Specifies the sizes of icons for visual media
267
267
  type: Specifies the MIME type of the linked document
268
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
268
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
269
269
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
270
270
  content_editable: Indicates whether the element's content is editable.
271
271
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -359,7 +359,7 @@ class Meta(BaseHTML):
359
359
  content: Defines the content of the metadata
360
360
  http_equiv: Provides an HTTP header for the information/value of the content attribute
361
361
  name: Specifies a name for the metadata
362
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
362
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
363
363
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
364
364
  content_editable: Indicates whether the element's content is editable.
365
365
  context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
@@ -1,4 +1,4 @@
1
- """Element classes. This is an auto-generated file. Do not edit. See ../generate.py."""
1
+ """Other classes."""
2
2
 
3
3
  from typing import Union
4
4
 
@@ -26,31 +26,39 @@ class Dialog(BaseHTML):
26
26
 
27
27
 
28
28
  class Summary(BaseHTML):
29
- """Display the summary element."""
29
+ """Display the summary element.
30
+
31
+ Used as a summary or caption for a <details> element.
32
+ """
30
33
 
31
34
  tag = "summary"
32
- # No unique attributes, only common ones are inherited; used as a summary or caption for a <details> element
33
35
 
34
36
 
35
37
  class Slot(BaseHTML):
36
- """Display the slot element."""
38
+ """Display the slot element.
39
+
40
+ Used as a placeholder inside a web component.
41
+ """
37
42
 
38
43
  tag = "slot"
39
- # No unique attributes, only common ones are inherited; used as a placeholder inside a web component
40
44
 
41
45
 
42
46
  class Template(BaseHTML):
43
- """Display the template element."""
47
+ """Display the template element.
48
+
49
+ Used for declaring fragments of HTML that can be cloned and inserted in the document.
50
+ """
44
51
 
45
52
  tag = "template"
46
- # No unique attributes, only common ones are inherited; used for declaring fragments of HTML that can be cloned and inserted in the document
47
53
 
48
54
 
49
55
  class Math(BaseHTML):
50
- """Display the math element."""
56
+ """Display the math element.
57
+
58
+ Represents a mathematical expression.
59
+ """
51
60
 
52
61
  tag = "math"
53
- # No unique attributes, only common ones are inherited; used for displaying mathematical expressions
54
62
 
55
63
 
56
64
  class Html(BaseHTML):