reflex 0.5.7a1__py3-none-any.whl → 0.5.8a1__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 (44) hide show
  1. reflex/.templates/web/utils/state.js +1 -1
  2. reflex/app.py +20 -2
  3. reflex/components/core/banner.py +14 -0
  4. reflex/components/core/banner.pyi +3 -3
  5. reflex/components/core/debounce.py +3 -0
  6. reflex/components/el/__init__.py +1 -0
  7. reflex/components/el/__init__.pyi +8 -5
  8. reflex/components/el/elements/__init__.py +3 -1
  9. reflex/components/el/elements/__init__.pyi +8 -6
  10. reflex/components/el/elements/media.py +98 -18
  11. reflex/components/el/elements/media.pyi +523 -18
  12. reflex/components/el/elements/metadata.py +5 -1
  13. reflex/components/radix/primitives/base.py +1 -1
  14. reflex/components/radix/themes/layout/list.py +0 -2
  15. reflex/components/recharts/cartesian.py +46 -20
  16. reflex/components/recharts/cartesian.pyi +26 -14
  17. reflex/components/recharts/charts.py +4 -0
  18. reflex/components/recharts/charts.pyi +3 -0
  19. reflex/components/recharts/general.py +23 -9
  20. reflex/components/recharts/general.pyi +6 -4
  21. reflex/components/recharts/polar.py +35 -11
  22. reflex/components/recharts/polar.pyi +35 -7
  23. reflex/components/sonner/toast.py +28 -2
  24. reflex/components/sonner/toast.pyi +14 -7
  25. reflex/constants/base.py +21 -0
  26. reflex/constants/event.py +2 -0
  27. reflex/experimental/vars/__init__.py +17 -0
  28. reflex/experimental/vars/base.py +282 -15
  29. reflex/experimental/vars/function.py +214 -0
  30. reflex/experimental/vars/number.py +1295 -0
  31. reflex/experimental/vars/sequence.py +1039 -0
  32. reflex/reflex.py +29 -2
  33. reflex/state.py +59 -10
  34. reflex/utils/imports.py +71 -8
  35. reflex/utils/prerequisites.py +115 -35
  36. reflex/utils/pyi_generator.py +2 -0
  37. reflex/utils/redir.py +52 -0
  38. reflex/vars.py +220 -11
  39. reflex/vars.pyi +20 -2
  40. {reflex-0.5.7a1.dist-info → reflex-0.5.8a1.dist-info}/METADATA +2 -2
  41. {reflex-0.5.7a1.dist-info → reflex-0.5.8a1.dist-info}/RECORD +44 -40
  42. {reflex-0.5.7a1.dist-info → reflex-0.5.8a1.dist-info}/LICENSE +0 -0
  43. {reflex-0.5.7a1.dist-info → reflex-0.5.8a1.dist-info}/WHEEL +0 -0
  44. {reflex-0.5.7a1.dist-info → reflex-0.5.8a1.dist-info}/entry_points.txt +0 -0
@@ -5,6 +5,7 @@
5
5
  # ------------------------------------------------------
6
6
  from typing import Any, Callable, Dict, Optional, Union, overload
7
7
 
8
+ from reflex import ComponentNamespace
8
9
  from reflex.constants.colors import Color
9
10
  from reflex.event import EventHandler, EventSpec
10
11
  from reflex.style import Style
@@ -1563,6 +1564,9 @@ class Svg(BaseHTML):
1563
1564
  def create( # type: ignore
1564
1565
  cls,
1565
1566
  *children,
1567
+ width: Optional[Union[Var[Union[int, str]], str, int]] = None,
1568
+ height: Optional[Union[Var[Union[int, str]], str, int]] = None,
1569
+ xmlns: Optional[Union[Var[str], str]] = None,
1566
1570
  access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1567
1571
  auto_capitalize: Optional[
1568
1572
  Union[Var[Union[bool, int, str]], str, int, bool]
@@ -1644,6 +1648,383 @@ class Svg(BaseHTML):
1644
1648
 
1645
1649
  Args:
1646
1650
  *children: The children of the component.
1651
+ width: The width of the svg.
1652
+ height: The height of the svg.
1653
+ xmlns: The XML namespace declaration.
1654
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1655
+ auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1656
+ content_editable: Indicates whether the element's content is editable.
1657
+ context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
1658
+ dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
1659
+ draggable: Defines whether the element can be dragged.
1660
+ enter_key_hint: Hints what media types the media element is able to play.
1661
+ hidden: Defines whether the element is hidden.
1662
+ input_mode: Defines the type of the element.
1663
+ item_prop: Defines the name of the element for metadata purposes.
1664
+ lang: Defines the language used in the element.
1665
+ role: Defines the role of the element.
1666
+ slot: Assigns a slot in a shadow DOM shadow tree to an element.
1667
+ spell_check: Defines whether the element may be checked for spelling errors.
1668
+ tab_index: Defines the position of the current element in the tabbing order.
1669
+ title: Defines a tooltip for the element.
1670
+ style: The style of the component.
1671
+ key: A unique key for the component.
1672
+ id: The id for the component.
1673
+ class_name: The class name for the component.
1674
+ autofocus: Whether the component should take the focus once the page is loaded
1675
+ custom_attrs: custom attribute
1676
+ **props: The props of the component.
1677
+
1678
+ Returns:
1679
+ The component.
1680
+ """
1681
+ ...
1682
+
1683
+ class Circle(BaseHTML):
1684
+ @overload
1685
+ @classmethod
1686
+ def create( # type: ignore
1687
+ cls,
1688
+ *children,
1689
+ cx: Optional[Union[Var[Union[int, str]], str, int]] = None,
1690
+ cy: Optional[Union[Var[Union[int, str]], str, int]] = None,
1691
+ r: Optional[Union[Var[Union[int, str]], str, int]] = None,
1692
+ path_length: Optional[Union[Var[int], int]] = None,
1693
+ access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1694
+ auto_capitalize: Optional[
1695
+ Union[Var[Union[bool, int, str]], str, int, bool]
1696
+ ] = None,
1697
+ content_editable: Optional[
1698
+ Union[Var[Union[bool, int, str]], str, int, bool]
1699
+ ] = None,
1700
+ context_menu: Optional[
1701
+ Union[Var[Union[bool, int, str]], str, int, bool]
1702
+ ] = None,
1703
+ dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1704
+ draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1705
+ enter_key_hint: Optional[
1706
+ Union[Var[Union[bool, int, str]], str, int, bool]
1707
+ ] = None,
1708
+ hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1709
+ input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1710
+ item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1711
+ lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1712
+ role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1713
+ slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1714
+ spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1715
+ tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1716
+ title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1717
+ style: Optional[Style] = None,
1718
+ key: Optional[Any] = None,
1719
+ id: Optional[Any] = None,
1720
+ class_name: Optional[Any] = None,
1721
+ autofocus: Optional[bool] = None,
1722
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1723
+ on_blur: Optional[
1724
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1725
+ ] = None,
1726
+ on_click: Optional[
1727
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1728
+ ] = None,
1729
+ on_context_menu: Optional[
1730
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1731
+ ] = None,
1732
+ on_double_click: Optional[
1733
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1734
+ ] = None,
1735
+ on_focus: Optional[
1736
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1737
+ ] = None,
1738
+ on_mount: Optional[
1739
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1740
+ ] = None,
1741
+ on_mouse_down: Optional[
1742
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1743
+ ] = None,
1744
+ on_mouse_enter: Optional[
1745
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1746
+ ] = None,
1747
+ on_mouse_leave: Optional[
1748
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1749
+ ] = None,
1750
+ on_mouse_move: Optional[
1751
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1752
+ ] = None,
1753
+ on_mouse_out: Optional[
1754
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1755
+ ] = None,
1756
+ on_mouse_over: Optional[
1757
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1758
+ ] = None,
1759
+ on_mouse_up: Optional[
1760
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1761
+ ] = None,
1762
+ on_scroll: Optional[
1763
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1764
+ ] = None,
1765
+ on_unmount: Optional[
1766
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1767
+ ] = None,
1768
+ **props,
1769
+ ) -> "Circle":
1770
+ """Create the component.
1771
+
1772
+ Args:
1773
+ *children: The children of the component.
1774
+ cx: The x-axis coordinate of the center of the circle.
1775
+ cy: The y-axis coordinate of the center of the circle.
1776
+ r: The radius of the circle.
1777
+ path_length: The total length for the circle's circumference, in user units.
1778
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1779
+ auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1780
+ content_editable: Indicates whether the element's content is editable.
1781
+ context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
1782
+ dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
1783
+ draggable: Defines whether the element can be dragged.
1784
+ enter_key_hint: Hints what media types the media element is able to play.
1785
+ hidden: Defines whether the element is hidden.
1786
+ input_mode: Defines the type of the element.
1787
+ item_prop: Defines the name of the element for metadata purposes.
1788
+ lang: Defines the language used in the element.
1789
+ role: Defines the role of the element.
1790
+ slot: Assigns a slot in a shadow DOM shadow tree to an element.
1791
+ spell_check: Defines whether the element may be checked for spelling errors.
1792
+ tab_index: Defines the position of the current element in the tabbing order.
1793
+ title: Defines a tooltip for the element.
1794
+ style: The style of the component.
1795
+ key: A unique key for the component.
1796
+ id: The id for the component.
1797
+ class_name: The class name for the component.
1798
+ autofocus: Whether the component should take the focus once the page is loaded
1799
+ custom_attrs: custom attribute
1800
+ **props: The props of the component.
1801
+
1802
+ Returns:
1803
+ The component.
1804
+ """
1805
+ ...
1806
+
1807
+ class Rect(BaseHTML):
1808
+ @overload
1809
+ @classmethod
1810
+ def create( # type: ignore
1811
+ cls,
1812
+ *children,
1813
+ x: Optional[Union[Var[Union[int, str]], str, int]] = None,
1814
+ y: Optional[Union[Var[Union[int, str]], str, int]] = None,
1815
+ width: Optional[Union[Var[Union[int, str]], str, int]] = None,
1816
+ height: Optional[Union[Var[Union[int, str]], str, int]] = None,
1817
+ rx: Optional[Union[Var[Union[int, str]], str, int]] = None,
1818
+ ry: Optional[Union[Var[Union[int, str]], str, int]] = None,
1819
+ path_length: Optional[Union[Var[int], int]] = None,
1820
+ access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1821
+ auto_capitalize: Optional[
1822
+ Union[Var[Union[bool, int, str]], str, int, bool]
1823
+ ] = None,
1824
+ content_editable: Optional[
1825
+ Union[Var[Union[bool, int, str]], str, int, bool]
1826
+ ] = None,
1827
+ context_menu: Optional[
1828
+ Union[Var[Union[bool, int, str]], str, int, bool]
1829
+ ] = None,
1830
+ dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1831
+ draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1832
+ enter_key_hint: Optional[
1833
+ Union[Var[Union[bool, int, str]], str, int, bool]
1834
+ ] = None,
1835
+ hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1836
+ input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1837
+ item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1838
+ lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1839
+ role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1840
+ slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1841
+ spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1842
+ tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1843
+ title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1844
+ style: Optional[Style] = None,
1845
+ key: Optional[Any] = None,
1846
+ id: Optional[Any] = None,
1847
+ class_name: Optional[Any] = None,
1848
+ autofocus: Optional[bool] = None,
1849
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1850
+ on_blur: Optional[
1851
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1852
+ ] = None,
1853
+ on_click: Optional[
1854
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1855
+ ] = None,
1856
+ on_context_menu: Optional[
1857
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1858
+ ] = None,
1859
+ on_double_click: Optional[
1860
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1861
+ ] = None,
1862
+ on_focus: Optional[
1863
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1864
+ ] = None,
1865
+ on_mount: Optional[
1866
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1867
+ ] = None,
1868
+ on_mouse_down: Optional[
1869
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1870
+ ] = None,
1871
+ on_mouse_enter: Optional[
1872
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1873
+ ] = None,
1874
+ on_mouse_leave: Optional[
1875
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1876
+ ] = None,
1877
+ on_mouse_move: Optional[
1878
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1879
+ ] = None,
1880
+ on_mouse_out: Optional[
1881
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1882
+ ] = None,
1883
+ on_mouse_over: Optional[
1884
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1885
+ ] = None,
1886
+ on_mouse_up: Optional[
1887
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1888
+ ] = None,
1889
+ on_scroll: Optional[
1890
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1891
+ ] = None,
1892
+ on_unmount: Optional[
1893
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1894
+ ] = None,
1895
+ **props,
1896
+ ) -> "Rect":
1897
+ """Create the component.
1898
+
1899
+ Args:
1900
+ *children: The children of the component.
1901
+ x: The x coordinate of the rect.
1902
+ y: The y coordinate of the rect.
1903
+ width: The width of the rect
1904
+ height: The height of the rect.
1905
+ rx: The horizontal corner radius of the rect. Defaults to ry if it is specified.
1906
+ ry: The vertical corner radius of the rect. Defaults to rx if it is specified.
1907
+ path_length: The total length of the rectangle's perimeter, in user units.
1908
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1909
+ auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1910
+ content_editable: Indicates whether the element's content is editable.
1911
+ context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
1912
+ dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
1913
+ draggable: Defines whether the element can be dragged.
1914
+ enter_key_hint: Hints what media types the media element is able to play.
1915
+ hidden: Defines whether the element is hidden.
1916
+ input_mode: Defines the type of the element.
1917
+ item_prop: Defines the name of the element for metadata purposes.
1918
+ lang: Defines the language used in the element.
1919
+ role: Defines the role of the element.
1920
+ slot: Assigns a slot in a shadow DOM shadow tree to an element.
1921
+ spell_check: Defines whether the element may be checked for spelling errors.
1922
+ tab_index: Defines the position of the current element in the tabbing order.
1923
+ title: Defines a tooltip for the element.
1924
+ style: The style of the component.
1925
+ key: A unique key for the component.
1926
+ id: The id for the component.
1927
+ class_name: The class name for the component.
1928
+ autofocus: Whether the component should take the focus once the page is loaded
1929
+ custom_attrs: custom attribute
1930
+ **props: The props of the component.
1931
+
1932
+ Returns:
1933
+ The component.
1934
+ """
1935
+ ...
1936
+
1937
+ class Polygon(BaseHTML):
1938
+ @overload
1939
+ @classmethod
1940
+ def create( # type: ignore
1941
+ cls,
1942
+ *children,
1943
+ points: Optional[Union[Var[str], str]] = None,
1944
+ path_length: Optional[Union[Var[int], int]] = None,
1945
+ access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1946
+ auto_capitalize: Optional[
1947
+ Union[Var[Union[bool, int, str]], str, int, bool]
1948
+ ] = None,
1949
+ content_editable: Optional[
1950
+ Union[Var[Union[bool, int, str]], str, int, bool]
1951
+ ] = None,
1952
+ context_menu: Optional[
1953
+ Union[Var[Union[bool, int, str]], str, int, bool]
1954
+ ] = None,
1955
+ dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1956
+ draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1957
+ enter_key_hint: Optional[
1958
+ Union[Var[Union[bool, int, str]], str, int, bool]
1959
+ ] = None,
1960
+ hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1961
+ input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1962
+ item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1963
+ lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1964
+ role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1965
+ slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1966
+ spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1967
+ tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1968
+ title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
1969
+ style: Optional[Style] = None,
1970
+ key: Optional[Any] = None,
1971
+ id: Optional[Any] = None,
1972
+ class_name: Optional[Any] = None,
1973
+ autofocus: Optional[bool] = None,
1974
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1975
+ on_blur: Optional[
1976
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1977
+ ] = None,
1978
+ on_click: Optional[
1979
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1980
+ ] = None,
1981
+ on_context_menu: Optional[
1982
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1983
+ ] = None,
1984
+ on_double_click: Optional[
1985
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1986
+ ] = None,
1987
+ on_focus: Optional[
1988
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1989
+ ] = None,
1990
+ on_mount: Optional[
1991
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1992
+ ] = None,
1993
+ on_mouse_down: Optional[
1994
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1995
+ ] = None,
1996
+ on_mouse_enter: Optional[
1997
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
1998
+ ] = None,
1999
+ on_mouse_leave: Optional[
2000
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2001
+ ] = None,
2002
+ on_mouse_move: Optional[
2003
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2004
+ ] = None,
2005
+ on_mouse_out: Optional[
2006
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2007
+ ] = None,
2008
+ on_mouse_over: Optional[
2009
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2010
+ ] = None,
2011
+ on_mouse_up: Optional[
2012
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2013
+ ] = None,
2014
+ on_scroll: Optional[
2015
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2016
+ ] = None,
2017
+ on_unmount: Optional[
2018
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2019
+ ] = None,
2020
+ **props,
2021
+ ) -> "Polygon":
2022
+ """Create the component.
2023
+
2024
+ Args:
2025
+ *children: The children of the component.
2026
+ points: defines the list of points (pairs of x,y absolute coordinates) required to draw the polygon.
2027
+ path_length: This prop lets specify the total length for the path, in user units.
1647
2028
  access_key: Provides a hint for generating a keyboard shortcut for the current element.
1648
2029
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1649
2030
  content_editable: Indicates whether the element's content is editable.
@@ -1789,7 +2170,7 @@ class Defs(BaseHTML):
1789
2170
  """
1790
2171
  ...
1791
2172
 
1792
- class Lineargradient(BaseHTML):
2173
+ class LinearGradient(BaseHTML):
1793
2174
  @overload
1794
2175
  @classmethod
1795
2176
  def create( # type: ignore
@@ -1878,18 +2259,18 @@ class Lineargradient(BaseHTML):
1878
2259
  Union[EventHandler, EventSpec, list, Callable, BaseVar]
1879
2260
  ] = None,
1880
2261
  **props,
1881
- ) -> "Lineargradient":
2262
+ ) -> "LinearGradient":
1882
2263
  """Create the component.
1883
2264
 
1884
2265
  Args:
1885
2266
  *children: The children of the component.
1886
- gradient_units: Units for the gradient
1887
- gradient_transform: Transform applied to the gradient
1888
- spread_method: Method used to spread the gradient
1889
- x1: X coordinate of the starting point of the gradient
1890
- x2: X coordinate of the ending point of the gradient
1891
- y1: Y coordinate of the starting point of the gradient
1892
- y2: Y coordinate of the ending point of the gradient
2267
+ gradient_units: Units for the gradient.
2268
+ gradient_transform: Transform applied to the gradient.
2269
+ spread_method: Method used to spread the gradient.
2270
+ x1: X coordinate of the starting point of the gradient.
2271
+ x2: X coordinate of the ending point of the gradient.
2272
+ y1: Y coordinate of the starting point of the gradient.
2273
+ y2: Y coordinate of the ending point of the gradient.
1893
2274
  access_key: Provides a hint for generating a keyboard shortcut for the current element.
1894
2275
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1895
2276
  content_editable: Indicates whether the element's content is editable.
@@ -2013,9 +2394,9 @@ class Stop(BaseHTML):
2013
2394
 
2014
2395
  Args:
2015
2396
  *children: The children of the component.
2016
- offset: Offset of the gradient stop
2017
- stop_color: Color of the gradient stop
2018
- stop_opacity: Opacity of the gradient stop
2397
+ offset: Offset of the gradient stop.
2398
+ stop_color: Color of the gradient stop.
2399
+ stop_opacity: Opacity of the gradient stop.
2019
2400
  access_key: Provides a hint for generating a keyboard shortcut for the current element.
2020
2401
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
2021
2402
  content_editable: Indicates whether the element's content is editable.
@@ -2133,7 +2514,135 @@ class Path(BaseHTML):
2133
2514
 
2134
2515
  Args:
2135
2516
  *children: The children of the component.
2136
- d: Defines the shape of the path
2517
+ d: Defines the shape of the path.
2518
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
2519
+ auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
2520
+ content_editable: Indicates whether the element's content is editable.
2521
+ context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
2522
+ dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
2523
+ draggable: Defines whether the element can be dragged.
2524
+ enter_key_hint: Hints what media types the media element is able to play.
2525
+ hidden: Defines whether the element is hidden.
2526
+ input_mode: Defines the type of the element.
2527
+ item_prop: Defines the name of the element for metadata purposes.
2528
+ lang: Defines the language used in the element.
2529
+ role: Defines the role of the element.
2530
+ slot: Assigns a slot in a shadow DOM shadow tree to an element.
2531
+ spell_check: Defines whether the element may be checked for spelling errors.
2532
+ tab_index: Defines the position of the current element in the tabbing order.
2533
+ title: Defines a tooltip for the element.
2534
+ style: The style of the component.
2535
+ key: A unique key for the component.
2536
+ id: The id for the component.
2537
+ class_name: The class name for the component.
2538
+ autofocus: Whether the component should take the focus once the page is loaded
2539
+ custom_attrs: custom attribute
2540
+ **props: The props of the component.
2541
+
2542
+ Returns:
2543
+ The component.
2544
+ """
2545
+ ...
2546
+
2547
+ class SVG(ComponentNamespace):
2548
+ circle = staticmethod(Circle.create)
2549
+ rect = staticmethod(Rect.create)
2550
+ polygon = staticmethod(Polygon.create)
2551
+ path = staticmethod(Path.create)
2552
+ stop = staticmethod(Stop.create)
2553
+ linear_gradient = staticmethod(LinearGradient.create)
2554
+ defs = staticmethod(Defs.create)
2555
+
2556
+ @staticmethod
2557
+ def __call__(
2558
+ *children,
2559
+ width: Optional[Union[Var[Union[int, str]], str, int]] = None,
2560
+ height: Optional[Union[Var[Union[int, str]], str, int]] = None,
2561
+ xmlns: Optional[Union[Var[str], str]] = None,
2562
+ access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
2563
+ auto_capitalize: Optional[
2564
+ Union[Var[Union[bool, int, str]], str, int, bool]
2565
+ ] = None,
2566
+ content_editable: Optional[
2567
+ Union[Var[Union[bool, int, str]], str, int, bool]
2568
+ ] = None,
2569
+ context_menu: Optional[
2570
+ Union[Var[Union[bool, int, str]], str, int, bool]
2571
+ ] = None,
2572
+ dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
2573
+ draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
2574
+ enter_key_hint: Optional[
2575
+ Union[Var[Union[bool, int, str]], str, int, bool]
2576
+ ] = None,
2577
+ hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
2578
+ input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
2579
+ item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
2580
+ lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
2581
+ role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
2582
+ slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
2583
+ spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
2584
+ tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
2585
+ title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
2586
+ style: Optional[Style] = None,
2587
+ key: Optional[Any] = None,
2588
+ id: Optional[Any] = None,
2589
+ class_name: Optional[Any] = None,
2590
+ autofocus: Optional[bool] = None,
2591
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
2592
+ on_blur: Optional[
2593
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2594
+ ] = None,
2595
+ on_click: Optional[
2596
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2597
+ ] = None,
2598
+ on_context_menu: Optional[
2599
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2600
+ ] = None,
2601
+ on_double_click: Optional[
2602
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2603
+ ] = None,
2604
+ on_focus: Optional[
2605
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2606
+ ] = None,
2607
+ on_mount: Optional[
2608
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2609
+ ] = None,
2610
+ on_mouse_down: Optional[
2611
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2612
+ ] = None,
2613
+ on_mouse_enter: Optional[
2614
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2615
+ ] = None,
2616
+ on_mouse_leave: Optional[
2617
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2618
+ ] = None,
2619
+ on_mouse_move: Optional[
2620
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2621
+ ] = None,
2622
+ on_mouse_out: Optional[
2623
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2624
+ ] = None,
2625
+ on_mouse_over: Optional[
2626
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2627
+ ] = None,
2628
+ on_mouse_up: Optional[
2629
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2630
+ ] = None,
2631
+ on_scroll: Optional[
2632
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2633
+ ] = None,
2634
+ on_unmount: Optional[
2635
+ Union[EventHandler, EventSpec, list, Callable, BaseVar]
2636
+ ] = None,
2637
+ **props,
2638
+ ) -> "Svg":
2639
+ """Create the component.
2640
+
2641
+ Args:
2642
+ *children: The children of the component.
2643
+ width: The width of the svg.
2644
+ height: The height of the svg.
2645
+ xmlns: The XML namespace declaration.
2137
2646
  access_key: Provides a hint for generating a keyboard shortcut for the current element.
2138
2647
  auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
2139
2648
  content_editable: Indicates whether the element's content is editable.
@@ -2175,8 +2684,4 @@ object = Object.create
2175
2684
  picture = Picture.create
2176
2685
  portal = Portal.create
2177
2686
  source = Source.create
2178
- svg = Svg.create
2179
- defs = Defs.create
2180
- lineargradient = Lineargradient.create
2181
- stop = Stop.create
2182
- path = Path.create
2687
+ svg = SVG()
@@ -1,6 +1,6 @@
1
1
  """Element classes. This is an auto-generated file. Do not edit. See ../generate.py."""
2
2
 
3
- from typing import Union
3
+ from typing import Set, Union
4
4
 
5
5
  from reflex.components.el.element import Element
6
6
  from reflex.vars import Var as Var
@@ -64,6 +64,10 @@ class StyleEl(Element): # noqa: E742
64
64
 
65
65
  media: Var[Union[str, int, bool]]
66
66
 
67
+ special_props: Set[Var] = {
68
+ Var.create_safe("suppressHydrationWarning", _var_is_string=False)
69
+ }
70
+
67
71
 
68
72
  base = Base.create
69
73
  head = Head.create
@@ -26,7 +26,7 @@ class RadixPrimitiveComponentWithClassName(RadixPrimitiveComponent):
26
26
  ._render()
27
27
  .add_props(
28
28
  **{
29
- "class_name": format.to_title_case(self.tag or ""),
29
+ "class_name": f"{format.to_title_case(self.tag or '')} {self.class_name or ''}",
30
30
  }
31
31
  )
32
32
  )
@@ -70,7 +70,6 @@ class BaseList(Component):
70
70
  children = [Foreach.create(items, ListItem.create)]
71
71
  else:
72
72
  children = [ListItem.create(item) for item in items] # type: ignore
73
- props["list_style_position"] = "outside"
74
73
  props["direction"] = "column"
75
74
  style = props.setdefault("style", {})
76
75
  style["list_style_type"] = list_style_type
@@ -86,7 +85,6 @@ class BaseList(Component):
86
85
  """
87
86
  return {
88
87
  "direction": "column",
89
- "list_style_position": "inside",
90
88
  }
91
89
 
92
90