reflex 0.3.6__py3-none-any.whl → 0.3.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of reflex might be problematic. Click here for more details.
- reflex/.templates/jinja/web/pages/base_page.js.jinja2 +2 -0
- reflex/__init__.py +29 -6
- reflex/__init__.pyi +2 -0
- reflex/app.py +3 -0
- reflex/components/__init__.py +2 -0
- reflex/components/chakra/__init__.py +23 -0
- reflex/components/{media → chakra/media}/image.py +1 -28
- reflex/components/chakra/media/image.pyi +120 -0
- reflex/components/component.py +27 -2
- reflex/components/datadisplay/datatable.py +1 -37
- reflex/components/datadisplay/datatable.pyi +1 -11
- reflex/components/el/elements/forms.py +43 -1
- reflex/components/el/elements/forms.pyi +26 -1
- reflex/components/graphing/plotly.py +0 -22
- reflex/components/graphing/plotly.pyi +0 -12
- reflex/components/media/__init__.py +0 -1
- reflex/components/media/image.pyi +0 -9
- reflex/components/next/__init__.py +8 -0
- reflex/components/next/base.py +8 -0
- reflex/components/next/base.pyi +91 -0
- reflex/components/next/image.py +114 -0
- reflex/components/next/image.pyi +122 -0
- reflex/components/next/video.py +33 -0
- reflex/components/next/video.pyi +92 -0
- reflex/components/radix/primitives/__init__.py +3 -0
- reflex/components/radix/primitives/accordion.py +279 -0
- reflex/components/radix/primitives/accordion.pyi +619 -0
- reflex/components/radix/themes/__init__.py +4 -73
- reflex/components/radix/themes/base.py +7 -7
- reflex/components/radix/themes/base.pyi +21 -21
- reflex/components/radix/themes/components/__init__.py +193 -0
- reflex/components/radix/themes/components/alertdialog.py +72 -0
- reflex/components/radix/themes/components/alertdialog.pyi +733 -0
- reflex/components/radix/themes/components/aspectratio.py +20 -0
- reflex/components/radix/themes/components/aspectratio.pyi +144 -0
- reflex/components/radix/themes/components/avatar.py +38 -0
- reflex/components/radix/themes/components/avatar.pyi +233 -0
- reflex/components/radix/themes/components/badge.py +38 -0
- reflex/components/radix/themes/components/badge.pyi +291 -0
- reflex/components/radix/themes/components/button.py +39 -0
- reflex/components/radix/themes/components/button.pyi +330 -0
- reflex/components/radix/themes/components/callout.py +49 -0
- reflex/components/radix/themes/components/callout.pyi +668 -0
- reflex/components/radix/themes/components/card.py +25 -0
- reflex/components/radix/themes/components/card.pyi +214 -0
- reflex/components/radix/themes/components/checkbox.py +67 -0
- reflex/components/radix/themes/components/checkbox.pyi +249 -0
- reflex/components/radix/themes/components/contextmenu.py +134 -0
- reflex/components/radix/themes/{typography.pyi → components/contextmenu.pyi} +182 -602
- reflex/components/radix/themes/components/dialog.py +75 -0
- reflex/components/radix/themes/components/dialog.pyi +739 -0
- reflex/components/radix/themes/components/dropdownmenu.py +101 -0
- reflex/components/radix/themes/components/dropdownmenu.pyi +1065 -0
- reflex/components/radix/themes/components/hovercard.py +63 -0
- reflex/components/radix/themes/components/hovercard.pyi +487 -0
- reflex/components/radix/themes/components/iconbutton.py +39 -0
- reflex/components/radix/themes/components/iconbutton.pyi +332 -0
- reflex/components/radix/themes/components/icons.py +400 -0
- reflex/components/radix/themes/components/icons.pyi +185 -0
- reflex/components/radix/themes/components/inset.py +44 -0
- reflex/components/radix/themes/components/inset.pyi +230 -0
- reflex/components/radix/themes/components/popover.py +85 -0
- reflex/components/radix/themes/components/popover.pyi +634 -0
- reflex/components/radix/themes/components/radiogroup.py +72 -0
- reflex/components/radix/themes/components/radiogroup.pyi +369 -0
- reflex/components/radix/themes/components/scrollarea.py +31 -0
- reflex/components/radix/themes/components/scrollarea.pyi +165 -0
- reflex/components/radix/themes/components/select.py +137 -0
- reflex/components/radix/themes/{layout.pyi → components/select.pyi} +422 -418
- reflex/components/radix/themes/components/separator.py +30 -0
- reflex/components/radix/themes/components/separator.pyi +218 -0
- reflex/components/radix/themes/components/slider.py +68 -0
- reflex/components/radix/themes/components/slider.pyi +254 -0
- reflex/components/radix/themes/components/switch.py +68 -0
- reflex/components/radix/themes/components/switch.pyi +250 -0
- reflex/components/radix/themes/components/table.py +79 -0
- reflex/components/radix/themes/components/table.pyi +1485 -0
- reflex/components/radix/themes/components/tabs.py +65 -0
- reflex/components/radix/themes/components/tabs.pyi +549 -0
- reflex/components/radix/themes/components/textarea.py +68 -0
- reflex/components/radix/themes/components/textarea.pyi +333 -0
- reflex/components/radix/themes/{components.py → components/textfield.py} +3 -87
- reflex/components/radix/themes/{components.pyi → components/textfield.pyi} +202 -591
- reflex/components/radix/themes/layout/__init__.py +13 -0
- reflex/components/radix/themes/layout/base.py +48 -0
- reflex/components/radix/themes/layout/base.pyi +195 -0
- reflex/components/radix/themes/layout/box.py +12 -0
- reflex/components/radix/themes/layout/box.pyi +252 -0
- reflex/components/radix/themes/layout/container.py +23 -0
- reflex/components/radix/themes/layout/container.pyi +260 -0
- reflex/components/radix/themes/layout/flex.py +45 -0
- reflex/components/radix/themes/layout/flex.pyi +303 -0
- reflex/components/radix/themes/layout/grid.py +53 -0
- reflex/components/radix/themes/layout/grid.pyi +203 -0
- reflex/components/radix/themes/layout/section.py +20 -0
- reflex/components/radix/themes/layout/section.pyi +260 -0
- reflex/components/radix/themes/typography/__init__.py +21 -0
- reflex/components/radix/themes/typography/base.py +12 -0
- reflex/components/radix/themes/typography/blockquote.py +36 -0
- reflex/components/radix/themes/typography/blockquote.pyi +282 -0
- reflex/components/radix/themes/typography/code.py +40 -0
- reflex/components/radix/themes/typography/code.pyi +292 -0
- reflex/components/radix/themes/typography/em.py +18 -0
- reflex/components/radix/themes/typography/em.pyi +199 -0
- reflex/components/radix/themes/typography/heading.py +50 -0
- reflex/components/radix/themes/typography/heading.pyi +298 -0
- reflex/components/radix/themes/typography/kbd.py +25 -0
- reflex/components/radix/themes/typography/kbd.pyi +208 -0
- reflex/components/radix/themes/typography/link.py +49 -0
- reflex/components/radix/themes/typography/link.pyi +238 -0
- reflex/components/radix/themes/typography/quote.py +18 -0
- reflex/components/radix/themes/typography/quote.pyi +200 -0
- reflex/components/radix/themes/typography/strong.py +18 -0
- reflex/components/radix/themes/typography/strong.pyi +199 -0
- reflex/components/radix/themes/typography/text.py +50 -0
- reflex/components/radix/themes/typography/text.pyi +298 -0
- reflex/constants/__init__.py +1 -0
- reflex/constants/base.py +7 -0
- reflex/constants/config.py +1 -1
- reflex/model.py +2 -1
- reflex/reflex.py +5 -0
- reflex/state.py +11 -0
- reflex/style.py +120 -10
- reflex/testing.py +4 -4
- reflex/utils/format.py +9 -5
- reflex/utils/prerequisites.py +49 -6
- reflex/utils/processes.py +8 -1
- reflex/utils/serializers.py +83 -0
- reflex/utils/types.py +22 -1
- reflex/vars.py +24 -1
- {reflex-0.3.6.dist-info → reflex-0.3.7.dist-info}/METADATA +3 -2
- {reflex-0.3.6.dist-info → reflex-0.3.7.dist-info}/RECORD +135 -42
- reflex/components/radix/themes/layout.py +0 -155
- {reflex-0.3.6.dist-info → reflex-0.3.7.dist-info}/LICENSE +0 -0
- {reflex-0.3.6.dist-info → reflex-0.3.7.dist-info}/WHEEL +0 -0
- {reflex-0.3.6.dist-info → reflex-0.3.7.dist-info}/entry_points.txt +0 -0
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
"""Declarative layout and common spacing props."""
|
|
2
|
-
from __future__ import annotations
|
|
3
|
-
|
|
4
|
-
from typing import Literal
|
|
5
|
-
|
|
6
|
-
from reflex.vars import Var
|
|
7
|
-
|
|
8
|
-
from .base import (
|
|
9
|
-
CommonMarginProps,
|
|
10
|
-
LiteralAlign,
|
|
11
|
-
LiteralJustify,
|
|
12
|
-
LiteralSize,
|
|
13
|
-
RadixThemesComponent,
|
|
14
|
-
)
|
|
15
|
-
|
|
16
|
-
LiteralBoolNumber = Literal["0", "1"]
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class LayoutComponent(CommonMarginProps, RadixThemesComponent):
|
|
20
|
-
"""Box, Flex and Grid are foundational elements you'll use to construct
|
|
21
|
-
layouts. Box provides block-level spacing and sizing, while Flex and Grid
|
|
22
|
-
let you create flexible columns, rows and grids.
|
|
23
|
-
"""
|
|
24
|
-
|
|
25
|
-
# Padding: "0" - "9"
|
|
26
|
-
p: Var[LiteralSize]
|
|
27
|
-
|
|
28
|
-
# Padding horizontal: "0" - "9"
|
|
29
|
-
px: Var[LiteralSize]
|
|
30
|
-
|
|
31
|
-
# Padding vertical: "0" - "9"
|
|
32
|
-
py: Var[LiteralSize]
|
|
33
|
-
|
|
34
|
-
# Padding top: "0" - "9"
|
|
35
|
-
pt: Var[LiteralSize]
|
|
36
|
-
|
|
37
|
-
# Padding right: "0" - "9"
|
|
38
|
-
pr: Var[LiteralSize]
|
|
39
|
-
|
|
40
|
-
# Padding bottom: "0" - "9"
|
|
41
|
-
pb: Var[LiteralSize]
|
|
42
|
-
|
|
43
|
-
# Padding left: "0" - "9"
|
|
44
|
-
pl: Var[LiteralSize]
|
|
45
|
-
|
|
46
|
-
# Whether the element will take up the smallest possible space: "0" | "1"
|
|
47
|
-
shrink: Var[LiteralBoolNumber]
|
|
48
|
-
|
|
49
|
-
# Whether the element will take up the largest possible space: "0" | "1"
|
|
50
|
-
grow: Var[LiteralBoolNumber]
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
class Box(LayoutComponent):
|
|
54
|
-
"""A fundamental layout building block, based on <div>."""
|
|
55
|
-
|
|
56
|
-
tag = "Box"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
LiteralFlexDirection = Literal["row", "column", "row-reverse", "column-reverse"]
|
|
60
|
-
LiteralFlexDisplay = Literal["none", "inline-flex", "flex"]
|
|
61
|
-
LiteralFlexWrap = Literal["nowrap", "wrap", "wrap-reverse"]
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
class Flex(LayoutComponent):
|
|
65
|
-
"""Component for creating flex layouts."""
|
|
66
|
-
|
|
67
|
-
tag = "Flex"
|
|
68
|
-
|
|
69
|
-
# Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
70
|
-
as_child: Var[bool]
|
|
71
|
-
|
|
72
|
-
# How to display the element: "none" | "inline-flex" | "flex"
|
|
73
|
-
display: Var[LiteralFlexDisplay]
|
|
74
|
-
|
|
75
|
-
# How child items are layed out: "row" | "column" | "row-reverse" | "column-reverse"
|
|
76
|
-
direction: Var[LiteralFlexDirection]
|
|
77
|
-
|
|
78
|
-
# Alignment of children along the main axis: "start" | "center" | "end" | "baseline" | "stretch"
|
|
79
|
-
align: Var[LiteralAlign]
|
|
80
|
-
|
|
81
|
-
# Alignment of children along the cross axis: "start" | "center" | "end" | "between"
|
|
82
|
-
justify: Var[LiteralJustify]
|
|
83
|
-
|
|
84
|
-
# Whether children should wrap when they reach the end of their container: "nowrap" | "wrap" | "wrap-reverse"
|
|
85
|
-
wrap: Var[LiteralFlexWrap]
|
|
86
|
-
|
|
87
|
-
# Gap between children: "0" - "9"
|
|
88
|
-
gap: Var[LiteralSize]
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
LiteralGridDisplay = Literal["none", "inline-grid", "grid"]
|
|
92
|
-
LiteralGridFlow = Literal["row", "column", "dense", "row-dense", "column-dense"]
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
class Grid(RadixThemesComponent):
|
|
96
|
-
"""Component for creating grid layouts."""
|
|
97
|
-
|
|
98
|
-
tag = "Grid"
|
|
99
|
-
|
|
100
|
-
# Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
101
|
-
as_child: Var[bool]
|
|
102
|
-
|
|
103
|
-
# How to display the element: "none" | "inline-grid" | "grid"
|
|
104
|
-
display: Var[LiteralGridDisplay]
|
|
105
|
-
|
|
106
|
-
# Number of columns
|
|
107
|
-
columns: Var[str]
|
|
108
|
-
|
|
109
|
-
# Number of rows
|
|
110
|
-
rows: Var[str]
|
|
111
|
-
|
|
112
|
-
# How the grid items are layed out: "row" | "column" | "dense" | "row-dense" | "column-dense"
|
|
113
|
-
flow: Var[LiteralGridFlow]
|
|
114
|
-
|
|
115
|
-
# Alignment of children along the main axis: "start" | "center" | "end" | "baseline" | "stretch"
|
|
116
|
-
align: Var[LiteralAlign]
|
|
117
|
-
|
|
118
|
-
# Alignment of children along the cross axis: "start" | "center" | "end" | "between"
|
|
119
|
-
justify: Var[LiteralJustify]
|
|
120
|
-
|
|
121
|
-
# Gap between children: "0" - "9"
|
|
122
|
-
gap: Var[LiteralSize]
|
|
123
|
-
|
|
124
|
-
# Gap between children horizontal: "0" - "9"
|
|
125
|
-
gap_x: Var[LiteralSize]
|
|
126
|
-
|
|
127
|
-
# Gap between children vertical: "0" - "9"
|
|
128
|
-
gap_x: Var[LiteralSize]
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
LiteralContainerSize = Literal["1", "2", "3", "4"]
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
class Container(LayoutComponent):
|
|
135
|
-
"""Constrains the maximum width of page content.
|
|
136
|
-
|
|
137
|
-
See https://www.radix-ui.com/themes/docs/components/container
|
|
138
|
-
"""
|
|
139
|
-
|
|
140
|
-
tag = "Container"
|
|
141
|
-
|
|
142
|
-
# The size of the container: "1" - "4" (default "4")
|
|
143
|
-
size: Var[LiteralContainerSize]
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
LiteralSectionSize = Literal["1", "2", "3"]
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
class Section(LayoutComponent):
|
|
150
|
-
"""Denotes a section of page content."""
|
|
151
|
-
|
|
152
|
-
tag = "Section"
|
|
153
|
-
|
|
154
|
-
# The size of the section: "1" - "3" (default "3")
|
|
155
|
-
size: Var[LiteralSectionSize]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|