Skip to content

Commit 73fb2ab

Browse files
committed
updates
1 parent 7c55aa3 commit 73fb2ab

File tree

9 files changed

+19
-7
lines changed

9 files changed

+19
-7
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ fail_fast: true
22

33
repos:
44
- repo: https://github.com/astral-sh/ruff-pre-commit
5-
rev: v0.14.5
5+
rev: v0.14.8
66
hooks:
77
- id: ruff-check
88
files: ^reflex_ui/

reflex_ui/components/base/context_menu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ClassNames:
3737
TRIGGER = "cursor-context-menu"
3838
PORTAL = "relative"
3939
BACKDROP = "fixed inset-0"
40-
POPUP = "group/popup max-h-[17.25rem] overflow-y-auto origin-(--transform-origin) p-1 border border-secondary-a4 bg-secondary-1 shadow-large transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 outline-none scrollbar-thin scrollbar-thumb-secondary-9 scrollbar-track-transparent min-w-36"
40+
POPUP = "group/popup max-h-[17.25rem] overflow-y-auto origin-(--transform-origin) p-1 border border-secondary-a4 bg-secondary-1 shadow-large transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 outline-none [scrollbar-width:thin] min-w-36"
4141
ITEM = "grid w-full items-center gap-2 text-sm select-none font-medium text-secondary-12 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 scroll-m-1 text-start justify-start"
4242
ITEM_INDICATOR = "text-current"
4343
ITEM_TEXT = "text-start"

reflex_ui/components/base/context_menu.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ClassNames:
3535
TRIGGER = "cursor-context-menu"
3636
PORTAL = "relative"
3737
BACKDROP = "fixed inset-0"
38-
POPUP = "group/popup max-h-[17.25rem] overflow-y-auto origin-(--transform-origin) p-1 border border-secondary-a4 bg-secondary-1 shadow-large transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 outline-none scrollbar-thin scrollbar-thumb-secondary-9 scrollbar-track-transparent min-w-36"
38+
POPUP = "group/popup max-h-[17.25rem] overflow-y-auto origin-(--transform-origin) p-1 border border-secondary-a4 bg-secondary-1 shadow-large transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 outline-none [scrollbar-width:thin] min-w-36"
3939
ITEM = "grid w-full items-center gap-2 text-sm select-none font-medium text-secondary-12 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 scroll-m-1 text-start justify-start"
4040
ITEM_INDICATOR = "text-current"
4141
ITEM_TEXT = "text-start"

reflex_ui/components/base/menu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ClassNames:
3838
TRIGGER = "flex min-w-48 items-center justify-between gap-3 select-none text-sm [&>span]:line-clamp-1 cursor-pointer focus:outline-none focus-visible:ring-1 focus-visible:ring-primary-4 group/trigger"
3939
PORTAL = "relative"
4040
ICON = "flex size-4 text-secondary-10 group-data-[disabled]/trigger:text-current"
41-
POPUP = "group/popup max-h-[17.25rem] overflow-y-auto origin-(--transform-origin) p-1 border border-secondary-a4 bg-secondary-1 shadow-large transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 outline-none scrollbar-thin scrollbar-thumb-secondary-9 scrollbar-track-transparent"
41+
POPUP = "group/popup max-h-[17.25rem] overflow-y-auto origin-(--transform-origin) p-1 border border-secondary-a4 bg-secondary-1 shadow-large transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 outline-none [scrollbar-width:thin]"
4242
ITEM = "grid min-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-medium group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-12 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 scroll-m-1 text-start"
4343
ITEM_INDICATOR = "text-current"
4444
ITEM_TEXT = "text-start"

reflex_ui/components/base/menu.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ClassNames:
3535
TRIGGER = "flex min-w-48 items-center justify-between gap-3 select-none text-sm [&>span]:line-clamp-1 cursor-pointer focus:outline-none focus-visible:ring-1 focus-visible:ring-primary-4 group/trigger"
3636
PORTAL = "relative"
3737
ICON = "flex size-4 text-secondary-10 group-data-[disabled]/trigger:text-current"
38-
POPUP = "group/popup max-h-[17.25rem] overflow-y-auto origin-(--transform-origin) p-1 border border-secondary-a4 bg-secondary-1 shadow-large transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 outline-none scrollbar-thin scrollbar-thumb-secondary-9 scrollbar-track-transparent"
38+
POPUP = "group/popup max-h-[17.25rem] overflow-y-auto origin-(--transform-origin) p-1 border border-secondary-a4 bg-secondary-1 shadow-large transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 outline-none [scrollbar-width:thin]"
3939
ITEM = "grid min-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-medium group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-12 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 scroll-m-1 text-start"
4040
ITEM_INDICATOR = "text-current"
4141
ITEM_TEXT = "text-start"

reflex_ui/components/base/select.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ClassNames:
2727
TRIGGER = "flex min-w-48 items-center justify-between gap-3 select-none text-sm [&>span]:line-clamp-1 cursor-pointer focus:outline-none focus-visible:ring-1 focus-visible:ring-primary-4 group/trigger"
2828
VALUE = "flex-1 text-left"
2929
ICON = "flex size-4 text-secondary-10 group-data-[disabled]/trigger:text-current"
30-
POPUP = "group/popup max-h-[17.25rem] overflow-y-auto origin-(--transform-origin) p-1 border border-secondary-a4 bg-secondary-1 shadow-large transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 outline-none scrollbar-thin scrollbar-thumb-secondary-9 scrollbar-track-transparent"
30+
POPUP = "group/popup max-h-[17.25rem] overflow-y-auto origin-(--transform-origin) p-1 border border-secondary-a4 bg-secondary-1 shadow-large transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 outline-none [scrollbar-width:thin]"
3131
ITEM = "grid min-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-[450] group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] data-[selected]:text-secondary-12 text-secondary-11 cursor-pointer placeholder:text-secondary-9 data-[selected]:font-medium outline-none data-[highlighted]:bg-secondary-3 scroll-m-1"
3232
ITEM_INDICATOR = "text-current"
3333
ITEM_TEXT = "text-start"

reflex_ui/components/base/select.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ClassNames:
2323
TRIGGER = "flex min-w-48 items-center justify-between gap-3 select-none text-sm [&>span]:line-clamp-1 cursor-pointer focus:outline-none focus-visible:ring-1 focus-visible:ring-primary-4 group/trigger"
2424
VALUE = "flex-1 text-left"
2525
ICON = "flex size-4 text-secondary-10 group-data-[disabled]/trigger:text-current"
26-
POPUP = "group/popup max-h-[17.25rem] overflow-y-auto origin-(--transform-origin) p-1 border border-secondary-a4 bg-secondary-1 shadow-large transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 outline-none scrollbar-thin scrollbar-thumb-secondary-9 scrollbar-track-transparent"
26+
POPUP = "group/popup max-h-[17.25rem] overflow-y-auto origin-(--transform-origin) p-1 border border-secondary-a4 bg-secondary-1 shadow-large transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 outline-none [scrollbar-width:thin]"
2727
ITEM = "grid min-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-[450] group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] data-[selected]:text-secondary-12 text-secondary-11 cursor-pointer placeholder:text-secondary-9 data-[selected]:font-medium outline-none data-[highlighted]:bg-secondary-3 scroll-m-1"
2828
ITEM_INDICATOR = "text-current"
2929
ITEM_TEXT = "text-start"

reflex_ui/components/base/tabs.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ class TabsTab(TabsBaseComponent):
9494
# Whether the Tab is disabled. Defaults to false.
9595
disabled: Var[bool]
9696

97+
# The render prop
98+
render_: Var[Component]
99+
97100
@classmethod
98101
def create(cls, *children, **props) -> BaseUIComponent:
99102
"""Create the tabs tab component."""
@@ -110,6 +113,9 @@ class TabsIndicator(TabsBaseComponent):
110113
# Whether to render itself before React hydrates. This minimizes the time that the indicator isn't visible after server-side rendering. Defaults to False.
111114
render_before_hydration: Var[bool]
112115

116+
# The render prop
117+
render_: Var[Component]
118+
113119
@classmethod
114120
def create(cls, *children, **props) -> BaseUIComponent:
115121
"""Create the tabs indicator component."""
@@ -129,6 +135,9 @@ class TabsPanel(TabsBaseComponent):
129135
# Whether to keep the HTML element in the DOM while the panel is hidden. Defaults to False.
130136
keep_mounted: Var[bool]
131137

138+
# The render prop
139+
render_: Var[Component]
140+
132141
@classmethod
133142
def create(cls, *children, **props) -> BaseUIComponent:
134143
"""Create the tabs panel component."""

reflex_ui/components/base/tabs.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ class TabsTab(TabsBaseComponent):
164164
value: Var[int | str] | int | str | None = None,
165165
native_button: Var[bool] | bool | None = None,
166166
disabled: Var[bool] | bool | None = None,
167+
render_: Component | Var[Component] | None = None,
167168
unstyled: Var[bool] | bool | None = None,
168169
style: Sequence[Mapping[str, Any]]
169170
| Mapping[str, Any]
@@ -201,6 +202,7 @@ class TabsIndicator(TabsBaseComponent):
201202
cls,
202203
*children,
203204
render_before_hydration: Var[bool] | bool | None = None,
205+
render_: Component | Var[Component] | None = None,
204206
unstyled: Var[bool] | bool | None = None,
205207
style: Sequence[Mapping[str, Any]]
206208
| Mapping[str, Any]
@@ -239,6 +241,7 @@ class TabsPanel(TabsBaseComponent):
239241
*children,
240242
value: Var[int | str] | int | str | None = None,
241243
keep_mounted: Var[bool] | bool | None = None,
244+
render_: Component | Var[Component] | None = None,
242245
unstyled: Var[bool] | bool | None = None,
243246
style: Sequence[Mapping[str, Any]]
244247
| Mapping[str, Any]

0 commit comments

Comments
 (0)