reflex 0.8.2a1__py3-none-any.whl → 0.8.3a2__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 (37) hide show
  1. reflex/.templates/web/utils/state.js +7 -2
  2. reflex/__init__.py +1 -0
  3. reflex/__init__.pyi +2 -0
  4. reflex/app.py +8 -11
  5. reflex/compiler/compiler.py +10 -38
  6. reflex/components/base/error_boundary.py +6 -5
  7. reflex/components/core/__init__.py +1 -0
  8. reflex/components/core/__init__.pyi +3 -0
  9. reflex/components/core/window_events.py +104 -0
  10. reflex/components/core/window_events.pyi +84 -0
  11. reflex/components/el/__init__.pyi +4 -0
  12. reflex/components/el/elements/__init__.py +1 -0
  13. reflex/components/el/elements/__init__.pyi +5 -0
  14. reflex/components/el/elements/forms.py +4 -2
  15. reflex/components/el/elements/typography.py +7 -0
  16. reflex/components/el/elements/typography.pyi +246 -0
  17. reflex/components/lucide/icon.py +303 -292
  18. reflex/components/lucide/icon.pyi +303 -292
  19. reflex/components/recharts/recharts.py +2 -2
  20. reflex/components/sonner/toast.py +1 -1
  21. reflex/config.py +3 -3
  22. reflex/constants/installer.py +2 -1
  23. reflex/environment.py +3 -0
  24. reflex/event.py +69 -8
  25. reflex/model.py +55 -0
  26. reflex/reflex.py +33 -0
  27. reflex/state.py +9 -4
  28. reflex/testing.py +180 -288
  29. reflex/utils/console.py +17 -0
  30. reflex/utils/exec.py +22 -5
  31. reflex/utils/processes.py +28 -38
  32. reflex/utils/types.py +1 -1
  33. {reflex-0.8.2a1.dist-info → reflex-0.8.3a2.dist-info}/METADATA +1 -1
  34. {reflex-0.8.2a1.dist-info → reflex-0.8.3a2.dist-info}/RECORD +37 -35
  35. {reflex-0.8.2a1.dist-info → reflex-0.8.3a2.dist-info}/WHEEL +0 -0
  36. {reflex-0.8.2a1.dist-info → reflex-0.8.3a2.dist-info}/entry_points.txt +0 -0
  37. {reflex-0.8.2a1.dist-info → reflex-0.8.3a2.dist-info}/licenses/LICENSE +0 -0
@@ -1484,6 +1484,251 @@ class Figcaption(BaseHTML):
1484
1484
  The component.
1485
1485
  """
1486
1486
 
1487
+ class Figure(BaseHTML):
1488
+ @classmethod
1489
+ def create(
1490
+ cls,
1491
+ *children,
1492
+ access_key: Var[str] | str | None = None,
1493
+ auto_capitalize: Literal[
1494
+ "characters", "none", "off", "on", "sentences", "words"
1495
+ ]
1496
+ | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
1497
+ | None = None,
1498
+ content_editable: Literal["inherit", "plaintext-only", False, True]
1499
+ | Var[Literal["inherit", "plaintext-only", False, True]]
1500
+ | None = None,
1501
+ context_menu: Var[str] | str | None = None,
1502
+ dir: Var[str] | str | None = None,
1503
+ draggable: Var[bool] | bool | None = None,
1504
+ enter_key_hint: Literal[
1505
+ "done", "enter", "go", "next", "previous", "search", "send"
1506
+ ]
1507
+ | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
1508
+ | None = None,
1509
+ hidden: Var[bool] | bool | None = None,
1510
+ input_mode: Literal[
1511
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
1512
+ ]
1513
+ | Var[
1514
+ Literal[
1515
+ "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
1516
+ ]
1517
+ ]
1518
+ | None = None,
1519
+ item_prop: Var[str] | str | None = None,
1520
+ lang: Var[str] | str | None = None,
1521
+ role: Literal[
1522
+ "alert",
1523
+ "alertdialog",
1524
+ "application",
1525
+ "article",
1526
+ "banner",
1527
+ "button",
1528
+ "cell",
1529
+ "checkbox",
1530
+ "columnheader",
1531
+ "combobox",
1532
+ "complementary",
1533
+ "contentinfo",
1534
+ "definition",
1535
+ "dialog",
1536
+ "directory",
1537
+ "document",
1538
+ "feed",
1539
+ "figure",
1540
+ "form",
1541
+ "grid",
1542
+ "gridcell",
1543
+ "group",
1544
+ "heading",
1545
+ "img",
1546
+ "link",
1547
+ "list",
1548
+ "listbox",
1549
+ "listitem",
1550
+ "log",
1551
+ "main",
1552
+ "marquee",
1553
+ "math",
1554
+ "menu",
1555
+ "menubar",
1556
+ "menuitem",
1557
+ "menuitemcheckbox",
1558
+ "menuitemradio",
1559
+ "navigation",
1560
+ "none",
1561
+ "note",
1562
+ "option",
1563
+ "presentation",
1564
+ "progressbar",
1565
+ "radio",
1566
+ "radiogroup",
1567
+ "region",
1568
+ "row",
1569
+ "rowgroup",
1570
+ "rowheader",
1571
+ "scrollbar",
1572
+ "search",
1573
+ "searchbox",
1574
+ "separator",
1575
+ "slider",
1576
+ "spinbutton",
1577
+ "status",
1578
+ "switch",
1579
+ "tab",
1580
+ "table",
1581
+ "tablist",
1582
+ "tabpanel",
1583
+ "term",
1584
+ "textbox",
1585
+ "timer",
1586
+ "toolbar",
1587
+ "tooltip",
1588
+ "tree",
1589
+ "treegrid",
1590
+ "treeitem",
1591
+ ]
1592
+ | Var[
1593
+ Literal[
1594
+ "alert",
1595
+ "alertdialog",
1596
+ "application",
1597
+ "article",
1598
+ "banner",
1599
+ "button",
1600
+ "cell",
1601
+ "checkbox",
1602
+ "columnheader",
1603
+ "combobox",
1604
+ "complementary",
1605
+ "contentinfo",
1606
+ "definition",
1607
+ "dialog",
1608
+ "directory",
1609
+ "document",
1610
+ "feed",
1611
+ "figure",
1612
+ "form",
1613
+ "grid",
1614
+ "gridcell",
1615
+ "group",
1616
+ "heading",
1617
+ "img",
1618
+ "link",
1619
+ "list",
1620
+ "listbox",
1621
+ "listitem",
1622
+ "log",
1623
+ "main",
1624
+ "marquee",
1625
+ "math",
1626
+ "menu",
1627
+ "menubar",
1628
+ "menuitem",
1629
+ "menuitemcheckbox",
1630
+ "menuitemradio",
1631
+ "navigation",
1632
+ "none",
1633
+ "note",
1634
+ "option",
1635
+ "presentation",
1636
+ "progressbar",
1637
+ "radio",
1638
+ "radiogroup",
1639
+ "region",
1640
+ "row",
1641
+ "rowgroup",
1642
+ "rowheader",
1643
+ "scrollbar",
1644
+ "search",
1645
+ "searchbox",
1646
+ "separator",
1647
+ "slider",
1648
+ "spinbutton",
1649
+ "status",
1650
+ "switch",
1651
+ "tab",
1652
+ "table",
1653
+ "tablist",
1654
+ "tabpanel",
1655
+ "term",
1656
+ "textbox",
1657
+ "timer",
1658
+ "toolbar",
1659
+ "tooltip",
1660
+ "tree",
1661
+ "treegrid",
1662
+ "treeitem",
1663
+ ]
1664
+ ]
1665
+ | None = None,
1666
+ slot: Var[str] | str | None = None,
1667
+ spell_check: Var[bool] | bool | None = None,
1668
+ tab_index: Var[int] | int | None = None,
1669
+ title: Var[str] | str | None = None,
1670
+ style: Sequence[Mapping[str, Any]]
1671
+ | Mapping[str, Any]
1672
+ | Var[Mapping[str, Any]]
1673
+ | Breakpoints
1674
+ | None = None,
1675
+ key: Any | None = None,
1676
+ id: Any | None = None,
1677
+ ref: Var | None = None,
1678
+ class_name: Any | None = None,
1679
+ autofocus: bool | None = None,
1680
+ custom_attrs: dict[str, Var | Any] | None = None,
1681
+ on_blur: EventType[()] | None = None,
1682
+ on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
1683
+ on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
1684
+ on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
1685
+ on_focus: EventType[()] | None = None,
1686
+ on_mount: EventType[()] | None = None,
1687
+ on_mouse_down: EventType[()] | None = None,
1688
+ on_mouse_enter: EventType[()] | None = None,
1689
+ on_mouse_leave: EventType[()] | None = None,
1690
+ on_mouse_move: EventType[()] | None = None,
1691
+ on_mouse_out: EventType[()] | None = None,
1692
+ on_mouse_over: EventType[()] | None = None,
1693
+ on_mouse_up: EventType[()] | None = None,
1694
+ on_scroll: EventType[()] | None = None,
1695
+ on_scroll_end: EventType[()] | None = None,
1696
+ on_unmount: EventType[()] | None = None,
1697
+ **props,
1698
+ ) -> Figure:
1699
+ """Create the component.
1700
+
1701
+ Args:
1702
+ *children: The children of the component.
1703
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
1704
+ auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
1705
+ content_editable: Indicates whether the element's content is editable.
1706
+ context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
1707
+ dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
1708
+ draggable: Defines whether the element can be dragged.
1709
+ enter_key_hint: Hints what media types the media element is able to play.
1710
+ hidden: Defines whether the element is hidden.
1711
+ input_mode: Defines the type of the element.
1712
+ item_prop: Defines the name of the element for metadata purposes.
1713
+ lang: Defines the language used in the element.
1714
+ role: Defines the role of the element.
1715
+ slot: Assigns a slot in a shadow DOM shadow tree to an element.
1716
+ spell_check: Defines whether the element may be checked for spelling errors.
1717
+ tab_index: Defines the position of the current element in the tabbing order.
1718
+ title: Defines a tooltip for the element.
1719
+ style: The style of the component.
1720
+ key: A unique key for the component.
1721
+ id: The id for the component.
1722
+ ref: The Var to pass as the ref to the component.
1723
+ class_name: The class name for the component.
1724
+ autofocus: Whether the component should take the focus once the page is loaded
1725
+ custom_attrs: custom attribute
1726
+ **props: The props of the component.
1727
+
1728
+ Returns:
1729
+ The component.
1730
+ """
1731
+
1487
1732
  class Hr(BaseHTML):
1488
1733
  @classmethod
1489
1734
  def create(
@@ -3713,6 +3958,7 @@ div = Div.create
3713
3958
  dl = Dl.create
3714
3959
  dt = Dt.create
3715
3960
  figcaption = Figcaption.create
3961
+ figure = Figure.create
3716
3962
  hr = Hr.create
3717
3963
  li = Li.create
3718
3964
  ol = Ol.create