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,89 +0,0 @@
1
- """Stub file for reflex/components/chakra/layout/container.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 Container(ChakraComponent):
14
- @overload
15
- @classmethod
16
- def create( # type: ignore
17
- cls,
18
- *children,
19
- center_content: Optional[Union[Var[bool], bool]] = 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
- ) -> "Container":
73
- """Create the component.
74
-
75
- Args:
76
- *children: The children of the component.
77
- center_content: If true, container will center its children regardless of their width.
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,33 +0,0 @@
1
- """A reflexive container component."""
2
-
3
- from typing import List, Union
4
-
5
- from reflex.components.chakra import ChakraComponent
6
- from reflex.vars import Var
7
-
8
-
9
- class Flex(ChakraComponent):
10
- """A reflexive container component."""
11
-
12
- tag = "Flex"
13
-
14
- # How to align items in the flex.
15
- align: Var[str]
16
-
17
- # Shorthand for flexBasis style prop
18
- basis: Var[str]
19
-
20
- # Shorthand for flexDirection style prop
21
- direction: Var[Union[str, List[str]]]
22
-
23
- # Shorthand for flexGrow style prop
24
- grow: Var[str]
25
-
26
- # The way to justify the items.
27
- justify: Var[str]
28
-
29
- # Shorthand for flexWrap style prop
30
- wrap: Var[Union[str, List[str]]]
31
-
32
- # Shorthand for flexShrink style prop
33
- shrink: Var[str]
@@ -1,101 +0,0 @@
1
- """Stub file for reflex/components/chakra/layout/flex.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 Flex(ChakraComponent):
14
- @overload
15
- @classmethod
16
- def create( # type: ignore
17
- cls,
18
- *children,
19
- align: Optional[Union[Var[str], str]] = None,
20
- basis: Optional[Union[Var[str], str]] = None,
21
- direction: Optional[Union[Var[Union[List[str], str]], str, List[str]]] = None,
22
- grow: Optional[Union[Var[str], str]] = None,
23
- justify: Optional[Union[Var[str], str]] = None,
24
- wrap: Optional[Union[Var[Union[List[str], str]], str, List[str]]] = None,
25
- shrink: Optional[Union[Var[str], str]] = 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
- ) -> "Flex":
79
- """Create the component.
80
-
81
- Args:
82
- *children: The children of the component.
83
- align: How to align items in the flex.
84
- basis: Shorthand for flexBasis style prop
85
- direction: Shorthand for flexDirection style prop
86
- grow: Shorthand for flexGrow style prop
87
- justify: The way to justify the items.
88
- wrap: Shorthand for flexWrap style prop
89
- shrink: Shorthand for flexShrink style prop
90
- style: The style of the component.
91
- key: A unique key for the component.
92
- id: The id for the component.
93
- class_name: The class name for the component.
94
- autofocus: Whether the component should take the focus once the page is loaded
95
- custom_attrs: custom attribute
96
- **props: The props of the component.
97
-
98
- Returns:
99
- The component.
100
- """
101
- ...
@@ -1,125 +0,0 @@
1
- """Container to stack elements with spacing."""
2
-
3
- from typing import List
4
-
5
- from reflex.components.chakra import ChakraComponent
6
- from reflex.vars import Var
7
-
8
-
9
- class Grid(ChakraComponent):
10
- """A grid component."""
11
-
12
- tag = "Grid"
13
-
14
- # Shorthand prop for gridAutoColumns to provide automatic column sizing based on content.
15
- # Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns)_
16
- auto_columns: Var[str]
17
-
18
- # Shorthand prop for gridAutoFlow to specify exactly how
19
- # auto-placed items get flowed into the grid.
20
- # Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow)_
21
- auto_flow: Var[str]
22
-
23
- # Shorthand prop for gridAutoRows.
24
- # Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows)_
25
- auto_rows: Var[str]
26
-
27
- # Shorthand prop for gridColumn.
28
- # Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column)_
29
- column: Var[str]
30
-
31
- # Shorthand prop for gridRow.
32
- # Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row)_
33
- row: Var[str]
34
-
35
- # Shorthand prop for gridTemplateColumns.
36
- # Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns)_
37
- template_columns: Var[str]
38
-
39
- # Shorthand prop for gridTemplateRows.
40
- # Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows)_
41
- template_rows: Var[str]
42
-
43
-
44
- class GridItem(ChakraComponent):
45
- """Used as a child of Grid to control the span, and start positions within the grid."""
46
-
47
- tag = "GridItem"
48
-
49
- # Shorthand prop for gridArea
50
- # Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area)_
51
- area: Var[str]
52
-
53
- # Shorthand prop for gridColumnEnd
54
- # Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-end)_
55
- col_end: Var[str]
56
-
57
- # The column number the grid item should start.
58
- col_start: Var[int]
59
-
60
- # The number of columns the grid item should span.
61
- col_span: Var[int]
62
-
63
- # Shorthand prop for gridRowEnd
64
- # Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-end)_
65
- row_end: Var[str]
66
-
67
- # The row number the grid item should start.
68
- row_start: Var[int]
69
-
70
- # The number of rows the grid item should span.
71
- row_span: Var[int]
72
-
73
-
74
- class ResponsiveGrid(ChakraComponent):
75
- """A responsive grid component."""
76
-
77
- tag = "SimpleGrid"
78
-
79
- # Shorthand prop for gridAutoColumns to provide automatic column sizing based on content.
80
- # Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns)_
81
- auto_columns: Var[str]
82
-
83
- # Shorthand prop for gridAutoFlow to specify exactly how
84
- # auto-placed items get flowed into the grid.
85
- # Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow)_
86
- auto_flow: Var[str]
87
-
88
- # Shorthand prop for gridAutoRows.
89
- # Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows)_
90
- auto_rows: Var[str]
91
-
92
- # Shorthand prop for gridColumn.
93
- # Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column)_
94
- column: Var[str]
95
-
96
- # Shorthand prop for gridRow.
97
- # Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row)_
98
- row: Var[str]
99
-
100
- # A list that defines the number of columns for each breakpoint.
101
- columns: Var[List[int]]
102
-
103
- # The width at which child elements will break into columns. Pass a number for pixel values or a string for any other valid CSS length.
104
- min_child_width: Var[str]
105
-
106
- # The gap between the grid items
107
- spacing: Var[str]
108
-
109
- # The column gap between the grid items
110
- spacing_x: Var[str]
111
-
112
- # The row gap between the grid items
113
- spacing_y: Var[str]
114
-
115
- # Shorthand prop for gridTemplateAreas
116
- # Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas)_
117
- template_areas: Var[str]
118
-
119
- # Shorthand prop for gridTemplateColumns.
120
- # Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns)_
121
- template_columns: Var[str]
122
-
123
- # Shorthand prop for gridTemplateRows.
124
- # Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows)_
125
- template_rows: Var[str]
@@ -1,293 +0,0 @@
1
- """Stub file for reflex/components/chakra/layout/grid.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 Grid(ChakraComponent):
14
- @overload
15
- @classmethod
16
- def create( # type: ignore
17
- cls,
18
- *children,
19
- auto_columns: Optional[Union[Var[str], str]] = None,
20
- auto_flow: Optional[Union[Var[str], str]] = None,
21
- auto_rows: Optional[Union[Var[str], str]] = None,
22
- column: Optional[Union[Var[str], str]] = None,
23
- row: Optional[Union[Var[str], str]] = None,
24
- template_columns: Optional[Union[Var[str], str]] = None,
25
- template_rows: Optional[Union[Var[str], str]] = 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
- ) -> "Grid":
79
- """Create the component.
80
-
81
- Args:
82
- *children: The children of the component.
83
- auto_columns: Shorthand prop for gridAutoColumns to provide automatic column sizing based on content. Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns)_
84
- auto_flow: Shorthand prop for gridAutoFlow to specify exactly how auto-placed items get flowed into the grid. Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow)_
85
- auto_rows: Shorthand prop for gridAutoRows. Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows)_
86
- column: Shorthand prop for gridColumn. Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column)_
87
- row: Shorthand prop for gridRow. Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row)_
88
- template_columns: Shorthand prop for gridTemplateColumns. Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns)_
89
- template_rows: Shorthand prop for gridTemplateRows. Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows)_
90
- style: The style of the component.
91
- key: A unique key for the component.
92
- id: The id for the component.
93
- class_name: The class name for the component.
94
- autofocus: Whether the component should take the focus once the page is loaded
95
- custom_attrs: custom attribute
96
- **props: The props of the component.
97
-
98
- Returns:
99
- The component.
100
- """
101
- ...
102
-
103
- class GridItem(ChakraComponent):
104
- @overload
105
- @classmethod
106
- def create( # type: ignore
107
- cls,
108
- *children,
109
- area: Optional[Union[Var[str], str]] = None,
110
- col_end: Optional[Union[Var[str], str]] = None,
111
- col_start: Optional[Union[Var[int], int]] = None,
112
- col_span: Optional[Union[Var[int], int]] = None,
113
- row_end: Optional[Union[Var[str], str]] = None,
114
- row_start: Optional[Union[Var[int], int]] = None,
115
- row_span: Optional[Union[Var[int], int]] = None,
116
- style: Optional[Style] = None,
117
- key: Optional[Any] = None,
118
- id: Optional[Any] = None,
119
- class_name: Optional[Any] = None,
120
- autofocus: Optional[bool] = None,
121
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
122
- on_blur: Optional[
123
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
124
- ] = None,
125
- on_click: Optional[
126
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
127
- ] = None,
128
- on_context_menu: Optional[
129
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
130
- ] = None,
131
- on_double_click: Optional[
132
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
133
- ] = None,
134
- on_focus: Optional[
135
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
136
- ] = None,
137
- on_mount: Optional[
138
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
139
- ] = None,
140
- on_mouse_down: Optional[
141
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
142
- ] = None,
143
- on_mouse_enter: Optional[
144
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
145
- ] = None,
146
- on_mouse_leave: Optional[
147
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
148
- ] = None,
149
- on_mouse_move: Optional[
150
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
151
- ] = None,
152
- on_mouse_out: Optional[
153
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
154
- ] = None,
155
- on_mouse_over: Optional[
156
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
157
- ] = None,
158
- on_mouse_up: Optional[
159
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
160
- ] = None,
161
- on_scroll: Optional[
162
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
163
- ] = None,
164
- on_unmount: Optional[
165
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
166
- ] = None,
167
- **props,
168
- ) -> "GridItem":
169
- """Create the component.
170
-
171
- Args:
172
- *children: The children of the component.
173
- area: Shorthand prop for gridArea Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area)_
174
- col_end: Shorthand prop for gridColumnEnd Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-end)_
175
- col_start: The column number the grid item should start.
176
- col_span: The number of columns the grid item should span.
177
- row_end: Shorthand prop for gridRowEnd Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-end)_
178
- row_start: The row number the grid item should start.
179
- row_span: The number of rows the grid item should span.
180
- style: The style of the component.
181
- key: A unique key for the component.
182
- id: The id for the component.
183
- class_name: The class name for the component.
184
- autofocus: Whether the component should take the focus once the page is loaded
185
- custom_attrs: custom attribute
186
- **props: The props of the component.
187
-
188
- Returns:
189
- The component.
190
- """
191
- ...
192
-
193
- class ResponsiveGrid(ChakraComponent):
194
- @overload
195
- @classmethod
196
- def create( # type: ignore
197
- cls,
198
- *children,
199
- auto_columns: Optional[Union[Var[str], str]] = None,
200
- auto_flow: Optional[Union[Var[str], str]] = None,
201
- auto_rows: Optional[Union[Var[str], str]] = None,
202
- column: Optional[Union[Var[str], str]] = None,
203
- row: Optional[Union[Var[str], str]] = None,
204
- columns: Optional[Union[Var[List[int]], List[int]]] = None,
205
- min_child_width: Optional[Union[Var[str], str]] = None,
206
- spacing: Optional[Union[Var[str], str]] = None,
207
- spacing_x: Optional[Union[Var[str], str]] = None,
208
- spacing_y: Optional[Union[Var[str], str]] = None,
209
- template_areas: Optional[Union[Var[str], str]] = None,
210
- template_columns: Optional[Union[Var[str], str]] = None,
211
- template_rows: Optional[Union[Var[str], str]] = None,
212
- style: Optional[Style] = None,
213
- key: Optional[Any] = None,
214
- id: Optional[Any] = None,
215
- class_name: Optional[Any] = None,
216
- autofocus: Optional[bool] = None,
217
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
218
- on_blur: Optional[
219
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
220
- ] = None,
221
- on_click: Optional[
222
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
223
- ] = None,
224
- on_context_menu: Optional[
225
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
226
- ] = None,
227
- on_double_click: Optional[
228
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
229
- ] = None,
230
- on_focus: Optional[
231
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
232
- ] = None,
233
- on_mount: Optional[
234
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
235
- ] = None,
236
- on_mouse_down: Optional[
237
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
238
- ] = None,
239
- on_mouse_enter: Optional[
240
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
241
- ] = None,
242
- on_mouse_leave: Optional[
243
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
244
- ] = None,
245
- on_mouse_move: Optional[
246
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
247
- ] = None,
248
- on_mouse_out: Optional[
249
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
250
- ] = None,
251
- on_mouse_over: Optional[
252
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
253
- ] = None,
254
- on_mouse_up: Optional[
255
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
256
- ] = None,
257
- on_scroll: Optional[
258
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
259
- ] = None,
260
- on_unmount: Optional[
261
- Union[EventHandler, EventSpec, list, Callable, BaseVar]
262
- ] = None,
263
- **props,
264
- ) -> "ResponsiveGrid":
265
- """Create the component.
266
-
267
- Args:
268
- *children: The children of the component.
269
- auto_columns: Shorthand prop for gridAutoColumns to provide automatic column sizing based on content. Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns)_
270
- auto_flow: Shorthand prop for gridAutoFlow to specify exactly how auto-placed items get flowed into the grid. Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow)_
271
- auto_rows: Shorthand prop for gridAutoRows. Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows)_
272
- column: Shorthand prop for gridColumn. Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column)_
273
- row: Shorthand prop for gridRow. Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row)_
274
- columns: A list that defines the number of columns for each breakpoint.
275
- min_child_width: The width at which child elements will break into columns. Pass a number for pixel values or a string for any other valid CSS length.
276
- spacing: The gap between the grid items
277
- spacing_x: The column gap between the grid items
278
- spacing_y: The row gap between the grid items
279
- template_areas: Shorthand prop for gridTemplateAreas Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas)_
280
- template_columns: Shorthand prop for gridTemplateColumns. Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns)_
281
- template_rows: Shorthand prop for gridTemplateRows. Learn more _[here](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows)_
282
- style: The style of the component.
283
- key: A unique key for the component.
284
- id: The id for the component.
285
- class_name: The class name for the component.
286
- autofocus: Whether the component should take the focus once the page is loaded
287
- custom_attrs: custom attribute
288
- **props: The props of the component.
289
-
290
- Returns:
291
- The component.
292
- """
293
- ...
@@ -1,9 +0,0 @@
1
- """A flexible space component."""
2
-
3
- from reflex.components.chakra import ChakraComponent
4
-
5
-
6
- class Spacer(ChakraComponent):
7
- """A flexible space component."""
8
-
9
- tag = "Spacer"