reflex 0.5.9.dev1__py3-none-any.whl → 0.5.10a1__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 (169) hide show
  1. reflex/.templates/web/utils/client_side_routing.js +6 -1
  2. reflex/__init__.py +21 -2
  3. reflex/__init__.pyi +0 -1
  4. reflex/app.py +1 -1
  5. reflex/components/__init__.py +0 -1
  6. reflex/components/__init__.pyi +0 -1
  7. reflex/components/markdown/markdown.py +1 -1
  8. reflex/components/recharts/cartesian.py +3 -0
  9. reflex/components/recharts/cartesian.pyi +2 -0
  10. reflex/components/sonner/toast.py +27 -1
  11. reflex/components/sonner/toast.pyi +5 -0
  12. reflex/constants/base.py +2 -0
  13. reflex/constants/installer.py +2 -0
  14. reflex/experimental/hooks.py +1 -1
  15. reflex/reflex.py +0 -15
  16. reflex/state.py +22 -22
  17. reflex/testing.py +8 -3
  18. reflex/utils/prerequisites.py +16 -115
  19. reflex/utils/registry.py +48 -0
  20. reflex/utils/types.py +1 -1
  21. reflex/vars.py +4 -2
  22. {reflex-0.5.9.dev1.dist-info → reflex-0.5.10a1.dist-info}/METADATA +2 -1
  23. {reflex-0.5.9.dev1.dist-info → reflex-0.5.10a1.dist-info}/RECORD +26 -168
  24. reflex/components/chakra/__init__.py +0 -204
  25. reflex/components/chakra/base.py +0 -210
  26. reflex/components/chakra/base.pyi +0 -319
  27. reflex/components/chakra/datadisplay/__init__.py +0 -10
  28. reflex/components/chakra/datadisplay/badge.py +0 -16
  29. reflex/components/chakra/datadisplay/badge.pyi +0 -96
  30. reflex/components/chakra/datadisplay/code.py +0 -11
  31. reflex/components/chakra/datadisplay/code.pyi +0 -87
  32. reflex/components/chakra/datadisplay/divider.py +0 -20
  33. reflex/components/chakra/datadisplay/divider.pyi +0 -100
  34. reflex/components/chakra/datadisplay/keyboard_key.py +0 -9
  35. reflex/components/chakra/datadisplay/keyboard_key.pyi +0 -87
  36. reflex/components/chakra/datadisplay/list.py +0 -60
  37. reflex/components/chakra/datadisplay/list.pyi +0 -339
  38. reflex/components/chakra/datadisplay/stat.py +0 -80
  39. reflex/components/chakra/datadisplay/stat.pyi +0 -477
  40. reflex/components/chakra/datadisplay/table.py +0 -305
  41. reflex/components/chakra/datadisplay/table.pyi +0 -737
  42. reflex/components/chakra/datadisplay/tag.py +0 -85
  43. reflex/components/chakra/datadisplay/tag.pyi +0 -433
  44. reflex/components/chakra/disclosure/__init__.py +0 -14
  45. reflex/components/chakra/disclosure/accordion.py +0 -110
  46. reflex/components/chakra/disclosure/accordion.pyi +0 -411
  47. reflex/components/chakra/disclosure/tabs.py +0 -117
  48. reflex/components/chakra/disclosure/tabs.pyi +0 -496
  49. reflex/components/chakra/disclosure/transition.py +0 -73
  50. reflex/components/chakra/disclosure/transition.pyi +0 -509
  51. reflex/components/chakra/disclosure/visuallyhidden.py +0 -9
  52. reflex/components/chakra/disclosure/visuallyhidden.pyi +0 -87
  53. reflex/components/chakra/feedback/__init__.py +0 -7
  54. reflex/components/chakra/feedback/alert.py +0 -68
  55. reflex/components/chakra/feedback/alert.pyi +0 -335
  56. reflex/components/chakra/feedback/circularprogress.py +0 -68
  57. reflex/components/chakra/feedback/circularprogress.pyi +0 -185
  58. reflex/components/chakra/feedback/progress.py +0 -33
  59. reflex/components/chakra/feedback/progress.pyi +0 -101
  60. reflex/components/chakra/feedback/skeleton.py +0 -70
  61. reflex/components/chakra/feedback/skeleton.pyi +0 -271
  62. reflex/components/chakra/feedback/spinner.py +0 -25
  63. reflex/components/chakra/feedback/spinner.pyi +0 -102
  64. reflex/components/chakra/forms/__init__.py +0 -49
  65. reflex/components/chakra/forms/button.py +0 -83
  66. reflex/components/chakra/forms/button.pyi +0 -262
  67. reflex/components/chakra/forms/checkbox.py +0 -77
  68. reflex/components/chakra/forms/checkbox.pyi +0 -247
  69. reflex/components/chakra/forms/colormodeswitch.py +0 -104
  70. reflex/components/chakra/forms/colormodeswitch.pyi +0 -473
  71. reflex/components/chakra/forms/date_picker.py +0 -11
  72. reflex/components/chakra/forms/date_picker.pyi +0 -129
  73. reflex/components/chakra/forms/date_time_picker.py +0 -11
  74. reflex/components/chakra/forms/date_time_picker.pyi +0 -129
  75. reflex/components/chakra/forms/editable.py +0 -67
  76. reflex/components/chakra/forms/editable.pyi +0 -343
  77. reflex/components/chakra/forms/email.py +0 -11
  78. reflex/components/chakra/forms/email.pyi +0 -129
  79. reflex/components/chakra/forms/form.py +0 -103
  80. reflex/components/chakra/forms/form.pyi +0 -484
  81. reflex/components/chakra/forms/iconbutton.py +0 -38
  82. reflex/components/chakra/forms/iconbutton.pyi +0 -108
  83. reflex/components/chakra/forms/input.py +0 -130
  84. reflex/components/chakra/forms/input.pyi +0 -566
  85. reflex/components/chakra/forms/multiselect.py +0 -355
  86. reflex/components/chakra/forms/numberinput.py +0 -128
  87. reflex/components/chakra/forms/numberinput.pyi +0 -442
  88. reflex/components/chakra/forms/password.py +0 -11
  89. reflex/components/chakra/forms/password.pyi +0 -129
  90. reflex/components/chakra/forms/pininput.py +0 -201
  91. reflex/components/chakra/forms/pininput.pyi +0 -215
  92. reflex/components/chakra/forms/radio.py +0 -101
  93. reflex/components/chakra/forms/radio.pyi +0 -197
  94. reflex/components/chakra/forms/rangeslider.py +0 -149
  95. reflex/components/chakra/forms/rangeslider.pyi +0 -354
  96. reflex/components/chakra/forms/select.py +0 -103
  97. reflex/components/chakra/forms/select.pyi +0 -204
  98. reflex/components/chakra/forms/slider.py +0 -130
  99. reflex/components/chakra/forms/slider.pyi +0 -449
  100. reflex/components/chakra/forms/switch.py +0 -49
  101. reflex/components/chakra/forms/switch.pyi +0 -159
  102. reflex/components/chakra/forms/textarea.py +0 -79
  103. reflex/components/chakra/forms/textarea.pyi +0 -123
  104. reflex/components/chakra/forms/time_picker.py +0 -11
  105. reflex/components/chakra/forms/time_picker.pyi +0 -129
  106. reflex/components/chakra/layout/__init__.py +0 -14
  107. reflex/components/chakra/layout/aspect_ratio.py +0 -13
  108. reflex/components/chakra/layout/aspect_ratio.pyi +0 -89
  109. reflex/components/chakra/layout/box.py +0 -31
  110. reflex/components/chakra/layout/box.pyi +0 -93
  111. reflex/components/chakra/layout/card.py +0 -100
  112. reflex/components/chakra/layout/card.pyi +0 -379
  113. reflex/components/chakra/layout/center.py +0 -21
  114. reflex/components/chakra/layout/center.pyi +0 -239
  115. reflex/components/chakra/layout/container.py +0 -13
  116. reflex/components/chakra/layout/container.pyi +0 -89
  117. reflex/components/chakra/layout/flex.py +0 -33
  118. reflex/components/chakra/layout/flex.pyi +0 -101
  119. reflex/components/chakra/layout/grid.py +0 -125
  120. reflex/components/chakra/layout/grid.pyi +0 -293
  121. reflex/components/chakra/layout/spacer.py +0 -9
  122. reflex/components/chakra/layout/spacer.pyi +0 -87
  123. reflex/components/chakra/layout/stack.py +0 -48
  124. reflex/components/chakra/layout/stack.pyi +0 -305
  125. reflex/components/chakra/layout/wrap.py +0 -57
  126. reflex/components/chakra/layout/wrap.pyi +0 -179
  127. reflex/components/chakra/media/__init__.py +0 -7
  128. reflex/components/chakra/media/avatar.py +0 -58
  129. reflex/components/chakra/media/avatar.pyi +0 -267
  130. reflex/components/chakra/media/icon.py +0 -111
  131. reflex/components/chakra/media/icon.pyi +0 -171
  132. reflex/components/chakra/media/image.py +0 -74
  133. reflex/components/chakra/media/image.pyi +0 -118
  134. reflex/components/chakra/navigation/__init__.py +0 -18
  135. reflex/components/chakra/navigation/breadcrumb.py +0 -98
  136. reflex/components/chakra/navigation/breadcrumb.pyi +0 -351
  137. reflex/components/chakra/navigation/link.py +0 -62
  138. reflex/components/chakra/navigation/link.pyi +0 -105
  139. reflex/components/chakra/navigation/linkoverlay.py +0 -22
  140. reflex/components/chakra/navigation/linkoverlay.pyi +0 -167
  141. reflex/components/chakra/navigation/stepper.py +0 -113
  142. reflex/components/chakra/navigation/stepper.pyi +0 -762
  143. reflex/components/chakra/overlay/__init__.py +0 -50
  144. reflex/components/chakra/overlay/alertdialog.py +0 -153
  145. reflex/components/chakra/overlay/alertdialog.pyi +0 -612
  146. reflex/components/chakra/overlay/drawer.py +0 -168
  147. reflex/components/chakra/overlay/drawer.pyi +0 -652
  148. reflex/components/chakra/overlay/menu.py +0 -225
  149. reflex/components/chakra/overlay/menu.pyi +0 -708
  150. reflex/components/chakra/overlay/modal.py +0 -166
  151. reflex/components/chakra/overlay/modal.pyi +0 -600
  152. reflex/components/chakra/overlay/popover.py +0 -183
  153. reflex/components/chakra/overlay/popover.pyi +0 -757
  154. reflex/components/chakra/overlay/tooltip.py +0 -70
  155. reflex/components/chakra/overlay/tooltip.pyi +0 -129
  156. reflex/components/chakra/typography/__init__.py +0 -10
  157. reflex/components/chakra/typography/heading.py +0 -16
  158. reflex/components/chakra/typography/heading.pyi +0 -96
  159. reflex/components/chakra/typography/highlight.py +0 -23
  160. reflex/components/chakra/typography/highlight.pyi +0 -91
  161. reflex/components/chakra/typography/span.py +0 -15
  162. reflex/components/chakra/typography/span.pyi +0 -89
  163. reflex/components/chakra/typography/text.py +0 -18
  164. reflex/components/chakra/typography/text.pyi +0 -91
  165. reflex/components/media/__init__.py +0 -1
  166. reflex/components/media/icon.py +0 -3
  167. {reflex-0.5.9.dev1.dist-info → reflex-0.5.10a1.dist-info}/LICENSE +0 -0
  168. {reflex-0.5.9.dev1.dist-info → reflex-0.5.10a1.dist-info}/WHEEL +0 -0
  169. {reflex-0.5.9.dev1.dist-info → reflex-0.5.10a1.dist-info}/entry_points.txt +0 -0
@@ -1,70 +0,0 @@
1
- """Tooltip components."""
2
-
3
- from __future__ import annotations
4
-
5
- from reflex.components.chakra import ChakraComponent, LiteralChakraDirection
6
- from reflex.event import EventHandler
7
- from reflex.vars import Var
8
-
9
-
10
- class Tooltip(ChakraComponent):
11
- """A tooltip message to appear."""
12
-
13
- tag = "Tooltip"
14
-
15
- # The padding required to prevent the arrow from reaching the very edge of the popper.
16
- arrow_padding: Var[int]
17
-
18
- # The color of the arrow shadow.
19
- arrow_shadow_color: Var[str]
20
-
21
- # Size of the arrow.
22
- arrow_size: Var[int]
23
-
24
- # Delay (in ms) before hiding the tooltip
25
- delay: Var[int]
26
-
27
- # If true, the tooltip will hide on click
28
- close_on_click: Var[bool]
29
-
30
- # If true, the tooltip will hide on pressing Esc key
31
- close_on_esc: Var[bool]
32
-
33
- # If true, the tooltip will hide while the mouse is down
34
- close_on_mouse_down: Var[bool]
35
-
36
- # If true, the tooltip will be initially shown
37
- default_is_open: Var[bool]
38
-
39
- # Theme direction ltr or rtl. Popper's placement will be set accordingly
40
- direction: Var[LiteralChakraDirection]
41
-
42
- # The distance or margin between the reference and popper. It is used internally to create an offset modifier. NB: If you define offset prop, it'll override the gutter.
43
- gutter: Var[int]
44
-
45
- # If true, the tooltip will show an arrow tip
46
- has_arrow: Var[bool]
47
-
48
- # If true, the tooltip with be disabled.
49
- is_disabled: Var[bool]
50
-
51
- # If true, the tooltip will be open.
52
- is_open: Var[bool]
53
-
54
- # The label of the tooltip
55
- label: Var[str]
56
-
57
- # Delay (in ms) before showing the tooltip
58
- open_delay: Var[int]
59
-
60
- # The placement of the popper relative to its reference.
61
- placement: Var[str]
62
-
63
- # If true, the tooltip will wrap its children in a `<span/>` with `tabIndex=0`
64
- should_wrap_children: Var[bool]
65
-
66
- # Fired when the tooltip is closing.
67
- on_close: EventHandler[lambda: []]
68
-
69
- # Fired when the tooltip is opened.
70
- on_open: EventHandler[lambda: []]
@@ -1,129 +0,0 @@
1
- """Stub file for reflex/components/chakra/overlay/tooltip.py"""
2
-
3
- # ------------------- DO NOT EDIT ----------------------
4
- # This file was generated by `reflex/utils/pyi_generator.py`!
5
- # ------------------------------------------------------
6
- from typing import Any, Callable, Dict, Literal, Optional, Union, overload
7
-
8
- from reflex.components.chakra import ChakraComponent
9
- from reflex.event import EventHandler, EventSpec
10
- from reflex.style import Style
11
- from reflex.vars import BaseVar, Var
12
-
13
- class Tooltip(ChakraComponent):
14
- @overload
15
- @classmethod
16
- def create( # type: ignore
17
- cls,
18
- *children,
19
- arrow_padding: Optional[Union[Var[int], int]] = None,
20
- arrow_shadow_color: Optional[Union[Var[str], str]] = None,
21
- arrow_size: Optional[Union[Var[int], int]] = None,
22
- delay: Optional[Union[Var[int], int]] = None,
23
- close_on_click: Optional[Union[Var[bool], bool]] = None,
24
- close_on_esc: Optional[Union[Var[bool], bool]] = None,
25
- close_on_mouse_down: Optional[Union[Var[bool], bool]] = None,
26
- default_is_open: Optional[Union[Var[bool], bool]] = None,
27
- direction: Optional[
28
- Union[Var[Literal["ltr", "rtl"]], Literal["ltr", "rtl"]]
29
- ] = None,
30
- gutter: Optional[Union[Var[int], int]] = None,
31
- has_arrow: Optional[Union[Var[bool], bool]] = None,
32
- is_disabled: Optional[Union[Var[bool], bool]] = None,
33
- is_open: Optional[Union[Var[bool], bool]] = None,
34
- label: Optional[Union[Var[str], str]] = None,
35
- open_delay: Optional[Union[Var[int], int]] = None,
36
- placement: Optional[Union[Var[str], str]] = None,
37
- should_wrap_children: Optional[Union[Var[bool], bool]] = None,
38
- style: Optional[Style] = None,
39
- key: Optional[Any] = None,
40
- id: Optional[Any] = None,
41
- class_name: Optional[Any] = None,
42
- autofocus: Optional[bool] = None,
43
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
44
- on_blur: Optional[
45
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
46
- ] = None,
47
- on_click: Optional[
48
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
49
- ] = None,
50
- on_close: Optional[
51
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
52
- ] = None,
53
- on_context_menu: Optional[
54
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
55
- ] = None,
56
- on_double_click: Optional[
57
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
58
- ] = None,
59
- on_focus: Optional[
60
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
61
- ] = None,
62
- on_mount: Optional[
63
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
64
- ] = None,
65
- on_mouse_down: Optional[
66
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
67
- ] = None,
68
- on_mouse_enter: Optional[
69
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
70
- ] = None,
71
- on_mouse_leave: Optional[
72
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
73
- ] = None,
74
- on_mouse_move: Optional[
75
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
76
- ] = None,
77
- on_mouse_out: Optional[
78
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
79
- ] = None,
80
- on_mouse_over: Optional[
81
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
82
- ] = None,
83
- on_mouse_up: Optional[
84
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
85
- ] = None,
86
- on_open: Optional[
87
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
88
- ] = None,
89
- on_scroll: Optional[
90
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
91
- ] = None,
92
- on_unmount: Optional[
93
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
94
- ] = None,
95
- **props,
96
- ) -> "Tooltip":
97
- """Create the component.
98
-
99
- Args:
100
- *children: The children of the component.
101
- arrow_padding: The padding required to prevent the arrow from reaching the very edge of the popper.
102
- arrow_shadow_color: The color of the arrow shadow.
103
- arrow_size: Size of the arrow.
104
- delay: Delay (in ms) before hiding the tooltip
105
- close_on_click: If true, the tooltip will hide on click
106
- close_on_esc: If true, the tooltip will hide on pressing Esc key
107
- close_on_mouse_down: If true, the tooltip will hide while the mouse is down
108
- default_is_open: If true, the tooltip will be initially shown
109
- direction: Theme direction ltr or rtl. Popper's placement will be set accordingly
110
- gutter: The distance or margin between the reference and popper. It is used internally to create an offset modifier. NB: If you define offset prop, it'll override the gutter.
111
- has_arrow: If true, the tooltip will show an arrow tip
112
- is_disabled: If true, the tooltip with be disabled.
113
- is_open: If true, the tooltip will be open.
114
- label: The label of the tooltip
115
- open_delay: Delay (in ms) before showing the tooltip
116
- placement: The placement of the popper relative to its reference.
117
- should_wrap_children: If true, the tooltip will wrap its children in a `<span/>` with `tabIndex=0`
118
- style: The style of the component.
119
- key: A unique key for the component.
120
- id: The id for the component.
121
- class_name: The class name for the component.
122
- autofocus: Whether the component should take the focus once the page is loaded
123
- custom_attrs: custom attribute
124
- **props: The props of the component.
125
-
126
- Returns:
127
- The component.
128
- """
129
- ...
@@ -1,10 +0,0 @@
1
- """Typography components."""
2
-
3
- from reflex.components.component import Component
4
-
5
- from .heading import Heading
6
- from .highlight import Highlight
7
- from .span import Span
8
- from .text import Text
9
-
10
- __all__ = [f for f in dir() if f[0].isupper() or f in ("span",)] # type: ignore
@@ -1,16 +0,0 @@
1
- """A heading component."""
2
-
3
- from reflex.components.chakra import ChakraComponent, LiteralHeadingSize
4
- from reflex.vars import Var
5
-
6
-
7
- class Heading(ChakraComponent):
8
- """A page heading."""
9
-
10
- tag = "Heading"
11
-
12
- # Override the tag. The default tag is `<h2>`.
13
- as_: Var[str]
14
-
15
- # "4xl" | "3xl" | "2xl" | "xl" | "lg" | "md" | "sm" | "xs"
16
- size: Var[LiteralHeadingSize]
@@ -1,96 +0,0 @@
1
- """Stub file for reflex/components/chakra/typography/heading.py"""
2
-
3
- # ------------------- DO NOT EDIT ----------------------
4
- # This file was generated by `reflex/utils/pyi_generator.py`!
5
- # ------------------------------------------------------
6
- from typing import Any, Callable, Dict, Literal, Optional, Union, overload
7
-
8
- from reflex.components.chakra import ChakraComponent
9
- from reflex.event import EventHandler, EventSpec
10
- from reflex.style import Style
11
- from reflex.vars import BaseVar, Var
12
-
13
- class Heading(ChakraComponent):
14
- @overload
15
- @classmethod
16
- def create( # type: ignore
17
- cls,
18
- *children,
19
- as_: Optional[Union[Var[str], str]] = None,
20
- size: Optional[
21
- Union[
22
- Var[Literal["lg", "md", "sm", "xs", "xl", "2xl", "3xl", "4xl"]],
23
- Literal["lg", "md", "sm", "xs", "xl", "2xl", "3xl", "4xl"],
24
- ]
25
- ] = None,
26
- style: Optional[Style] = None,
27
- key: Optional[Any] = None,
28
- id: Optional[Any] = None,
29
- class_name: Optional[Any] = None,
30
- autofocus: Optional[bool] = None,
31
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
32
- on_blur: Optional[
33
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
34
- ] = None,
35
- on_click: Optional[
36
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
37
- ] = None,
38
- on_context_menu: Optional[
39
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
40
- ] = None,
41
- on_double_click: Optional[
42
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
43
- ] = None,
44
- on_focus: Optional[
45
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
46
- ] = None,
47
- on_mount: Optional[
48
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
49
- ] = None,
50
- on_mouse_down: Optional[
51
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
52
- ] = None,
53
- on_mouse_enter: Optional[
54
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
55
- ] = None,
56
- on_mouse_leave: Optional[
57
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
58
- ] = None,
59
- on_mouse_move: Optional[
60
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
61
- ] = None,
62
- on_mouse_out: Optional[
63
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
64
- ] = None,
65
- on_mouse_over: Optional[
66
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
67
- ] = None,
68
- on_mouse_up: Optional[
69
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
70
- ] = None,
71
- on_scroll: Optional[
72
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
73
- ] = None,
74
- on_unmount: Optional[
75
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
76
- ] = None,
77
- **props,
78
- ) -> "Heading":
79
- """Create the component.
80
-
81
- Args:
82
- *children: The children of the component.
83
- as_: Override the tag. The default tag is `<h2>`.
84
- size: "4xl" | "3xl" | "2xl" | "xl" | "lg" | "md" | "sm" | "xs"
85
- style: The style of the component.
86
- key: A unique key for the component.
87
- id: The id for the component.
88
- class_name: The class name for the component.
89
- autofocus: Whether the component should take the focus once the page is loaded
90
- custom_attrs: custom attribute
91
- **props: The props of the component.
92
-
93
- Returns:
94
- The component.
95
- """
96
- ...
@@ -1,23 +0,0 @@
1
- """A highlight component."""
2
-
3
- from typing import Dict, List
4
-
5
- from reflex.components.chakra import ChakraComponent
6
- from reflex.components.tags import Tag
7
- from reflex.vars import Var
8
-
9
-
10
- class Highlight(ChakraComponent):
11
- """Highlights a specific part of a string."""
12
-
13
- tag = "Highlight"
14
-
15
- # A query for the text to highlight. Can be a string or a list of strings.
16
- query: Var[List[str]]
17
-
18
- # The style of the content.
19
- # Note: styles and style are different prop.
20
- styles: Var[Dict] = {"px": "2", "py": "1", "rounded": "full", "bg": "teal.100"} # type: ignore
21
-
22
- def _render(self) -> Tag:
23
- return super()._render().add_props(styles=self.style)
@@ -1,91 +0,0 @@
1
- """Stub file for reflex/components/chakra/typography/highlight.py"""
2
-
3
- # ------------------- DO NOT EDIT ----------------------
4
- # This file was generated by `reflex/utils/pyi_generator.py`!
5
- # ------------------------------------------------------
6
- from typing import Any, Callable, Dict, List, Optional, Union, overload
7
-
8
- from reflex.components.chakra import ChakraComponent
9
- from reflex.event import EventHandler, EventSpec
10
- from reflex.style import Style
11
- from reflex.vars import BaseVar, Var
12
-
13
- class Highlight(ChakraComponent):
14
- @overload
15
- @classmethod
16
- def create( # type: ignore
17
- cls,
18
- *children,
19
- query: Optional[Union[Var[List[str]], List[str]]] = None,
20
- styles: Optional[Union[Var[Dict], Dict]] = None,
21
- style: Optional[Style] = None,
22
- key: Optional[Any] = None,
23
- id: Optional[Any] = None,
24
- class_name: Optional[Any] = None,
25
- autofocus: Optional[bool] = None,
26
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
27
- on_blur: Optional[
28
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
29
- ] = None,
30
- on_click: Optional[
31
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
32
- ] = None,
33
- on_context_menu: Optional[
34
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
35
- ] = None,
36
- on_double_click: Optional[
37
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
38
- ] = None,
39
- on_focus: Optional[
40
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
41
- ] = None,
42
- on_mount: Optional[
43
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
44
- ] = None,
45
- on_mouse_down: Optional[
46
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
47
- ] = None,
48
- on_mouse_enter: Optional[
49
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
50
- ] = None,
51
- on_mouse_leave: Optional[
52
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
53
- ] = None,
54
- on_mouse_move: Optional[
55
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
56
- ] = None,
57
- on_mouse_out: Optional[
58
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
59
- ] = None,
60
- on_mouse_over: Optional[
61
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
62
- ] = None,
63
- on_mouse_up: Optional[
64
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
65
- ] = None,
66
- on_scroll: Optional[
67
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
68
- ] = None,
69
- on_unmount: Optional[
70
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
71
- ] = None,
72
- **props,
73
- ) -> "Highlight":
74
- """Create the component.
75
-
76
- Args:
77
- *children: The children of the component.
78
- query: A query for the text to highlight. Can be a string or a list of strings.
79
- styles: The style of the content. Note: styles and style are different prop.
80
- style: The style of the component.
81
- key: A unique key for the component.
82
- id: The id for the component.
83
- class_name: The class name for the component.
84
- autofocus: Whether the component should take the focus once the page is loaded
85
- custom_attrs: custom attribute
86
- **props: The props of the component.
87
-
88
- Returns:
89
- The component.
90
- """
91
- ...
@@ -1,15 +0,0 @@
1
- """A span component."""
2
-
3
- from __future__ import annotations
4
-
5
- from reflex.components.chakra import ChakraComponent
6
- from reflex.vars import Var
7
-
8
-
9
- class Span(ChakraComponent):
10
- """Render an inline span of text."""
11
-
12
- tag = "Text"
13
-
14
- # Override the tag. The default tag is `<span>`.
15
- as_: Var[str] = "span" # type: ignore
@@ -1,89 +0,0 @@
1
- """Stub file for reflex/components/chakra/typography/span.py"""
2
-
3
- # ------------------- DO NOT EDIT ----------------------
4
- # This file was generated by `reflex/utils/pyi_generator.py`!
5
- # ------------------------------------------------------
6
- from typing import Any, Callable, Dict, Optional, Union, overload
7
-
8
- from reflex.components.chakra import ChakraComponent
9
- from reflex.event import EventHandler, EventSpec
10
- from reflex.style import Style
11
- from reflex.vars import BaseVar, Var
12
-
13
- class Span(ChakraComponent):
14
- @overload
15
- @classmethod
16
- def create( # type: ignore
17
- cls,
18
- *children,
19
- as_: Optional[Union[Var[str], str]] = None,
20
- style: Optional[Style] = None,
21
- key: Optional[Any] = None,
22
- id: Optional[Any] = None,
23
- class_name: Optional[Any] = None,
24
- autofocus: Optional[bool] = None,
25
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
26
- on_blur: Optional[
27
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
28
- ] = None,
29
- on_click: Optional[
30
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
31
- ] = None,
32
- on_context_menu: Optional[
33
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
34
- ] = None,
35
- on_double_click: Optional[
36
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
37
- ] = None,
38
- on_focus: Optional[
39
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
40
- ] = None,
41
- on_mount: Optional[
42
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
43
- ] = None,
44
- on_mouse_down: Optional[
45
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
46
- ] = None,
47
- on_mouse_enter: Optional[
48
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
49
- ] = None,
50
- on_mouse_leave: Optional[
51
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
52
- ] = None,
53
- on_mouse_move: Optional[
54
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
55
- ] = None,
56
- on_mouse_out: Optional[
57
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
58
- ] = None,
59
- on_mouse_over: Optional[
60
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
61
- ] = None,
62
- on_mouse_up: Optional[
63
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
64
- ] = None,
65
- on_scroll: Optional[
66
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
67
- ] = None,
68
- on_unmount: Optional[
69
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
70
- ] = None,
71
- **props,
72
- ) -> "Span":
73
- """Create the component.
74
-
75
- Args:
76
- *children: The children of the component.
77
- as_: Override the tag. The default tag is `<span>`.
78
- style: The style of the component.
79
- key: A unique key for the component.
80
- id: The id for the component.
81
- class_name: The class name for the component.
82
- autofocus: Whether the component should take the focus once the page is loaded
83
- custom_attrs: custom attribute
84
- **props: The props of the component.
85
-
86
- Returns:
87
- The component.
88
- """
89
- ...
@@ -1,18 +0,0 @@
1
- """A text component."""
2
-
3
- from __future__ import annotations
4
-
5
- from reflex.components.chakra import ChakraComponent
6
- from reflex.vars import Var
7
-
8
-
9
- class Text(ChakraComponent):
10
- """Render a paragraph of text."""
11
-
12
- tag = "Text"
13
-
14
- # Override the tag. The default tag is `<p>`.
15
- as_: Var[str]
16
-
17
- # Truncate text after a specific number of lines. It will render an ellipsis when the text exceeds the width of the viewport or max_width prop.
18
- no_of_lines: Var[int]
@@ -1,91 +0,0 @@
1
- """Stub file for reflex/components/chakra/typography/text.py"""
2
-
3
- # ------------------- DO NOT EDIT ----------------------
4
- # This file was generated by `reflex/utils/pyi_generator.py`!
5
- # ------------------------------------------------------
6
- from typing import Any, Callable, Dict, Optional, Union, overload
7
-
8
- from reflex.components.chakra import ChakraComponent
9
- from reflex.event import EventHandler, EventSpec
10
- from reflex.style import Style
11
- from reflex.vars import BaseVar, Var
12
-
13
- class Text(ChakraComponent):
14
- @overload
15
- @classmethod
16
- def create( # type: ignore
17
- cls,
18
- *children,
19
- as_: Optional[Union[Var[str], str]] = None,
20
- no_of_lines: Optional[Union[Var[int], int]] = None,
21
- style: Optional[Style] = None,
22
- key: Optional[Any] = None,
23
- id: Optional[Any] = None,
24
- class_name: Optional[Any] = None,
25
- autofocus: Optional[bool] = None,
26
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
27
- on_blur: Optional[
28
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
29
- ] = None,
30
- on_click: Optional[
31
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
32
- ] = None,
33
- on_context_menu: Optional[
34
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
35
- ] = None,
36
- on_double_click: Optional[
37
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
38
- ] = None,
39
- on_focus: Optional[
40
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
41
- ] = None,
42
- on_mount: Optional[
43
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
44
- ] = None,
45
- on_mouse_down: Optional[
46
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
47
- ] = None,
48
- on_mouse_enter: Optional[
49
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
50
- ] = None,
51
- on_mouse_leave: Optional[
52
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
53
- ] = None,
54
- on_mouse_move: Optional[
55
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
56
- ] = None,
57
- on_mouse_out: Optional[
58
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
59
- ] = None,
60
- on_mouse_over: Optional[
61
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
62
- ] = None,
63
- on_mouse_up: Optional[
64
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
65
- ] = None,
66
- on_scroll: Optional[
67
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
68
- ] = None,
69
- on_unmount: Optional[
70
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
71
- ] = None,
72
- **props,
73
- ) -> "Text":
74
- """Create the component.
75
-
76
- Args:
77
- *children: The children of the component.
78
- as_: Override the tag. The default tag is `<p>`.
79
- no_of_lines: Truncate text after a specific number of lines. It will render an ellipsis when the text exceeds the width of the viewport or max_width prop.
80
- style: The style of the component.
81
- key: A unique key for the component.
82
- id: The id for the component.
83
- class_name: The class name for the component.
84
- autofocus: Whether the component should take the focus once the page is loaded
85
- custom_attrs: custom attribute
86
- **props: The props of the component.
87
-
88
- Returns:
89
- The component.
90
- """
91
- ...
@@ -1 +0,0 @@
1
- """Temporary shim for Chakra icon class."""
@@ -1,3 +0,0 @@
1
- """Shim for reflex.components.chakra.media.icon."""
2
-
3
- from reflex.components.chakra.media.icon import *