Skip to content

Commit e25d27c

Browse files
committed
update tooltip prop
1 parent 21af9f3 commit e25d27c

File tree

9 files changed

+477
-15
lines changed

9 files changed

+477
-15
lines changed

reflex_ui/__init__.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from . import components, utils
77
from .components import base
8+
from .components.base.accordion import accordion
89
from .components.base.avatar import avatar
910
from .components.base.badge import badge
1011
from .components.base.button import button
@@ -35,6 +36,7 @@ from .components.icons.others import spinner
3536
from .utils.twmerge import cn
3637

3738
_REFLEX_UI_MAPPING = {
39+
"components.base.accordion": ["accordion"],
3840
"components.base.avatar": ["avatar"],
3941
"components.base.badge": ["badge"],
4042
"components.base.button": ["button"],
@@ -71,6 +73,7 @@ _SUBMOD_ATTRS = {
7173
}
7274

7375
__all__ = [
76+
"accordion",
7477
"avatar",
7578
"badge",
7679
"base",

reflex_ui/components/base/__init__.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from reflex_ui import _REFLEX_UI_MAPPING
77

8+
from .accordion import accordion
89
from .avatar import avatar
910
from .badge import badge
1011
from .button import button
@@ -37,6 +38,7 @@ _SUBMOD_ATTRS = {
3738
}
3839

3940
__all__ = [
41+
"accordion",
4042
"avatar",
4143
"badge",
4244
"button",

reflex_ui/components/base/accordion.pyi

Lines changed: 451 additions & 0 deletions
Large diffs are not rendered by default.

reflex_ui/components/base/button.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ BUTTON_VARIANTS = {
2626
"destructive": "bg-destructive-9 hover:bg-destructive-10 text-white",
2727
"outline": "border border-secondary-a4 bg-secondary-1 hover:bg-secondary-3 text-secondary-12",
2828
"secondary": "bg-secondary-4 text-secondary-12 hover:bg-secondary-5",
29-
"ghost": "hover:bg-secondary-3 text-secondary-12",
29+
"ghost": "hover:bg-secondary-3 text-secondary-11",
3030
"link": "text-secondary-12 underline-offset-4 hover:underline",
3131
"dark": "bg-secondary-12 text-secondary-1 hover:bg-secondary-12/80",
3232
},

reflex_ui/components/base/dialog.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ class DialogBackdrop(DialogBaseComponent):
229229
def create(
230230
cls,
231231
*children,
232+
force_render: Var[bool] | bool | None = None,
232233
render_: Component | Var[Component] | None = None,
233234
unstyled: Var[bool] | bool | None = None,
234235
style: Sequence[Mapping[str, Any]]

reflex_ui/components/base/select.pyi

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ class SelectRoot(SelectBaseComponent):
101101
default_open: Var[bool] | bool | None = None,
102102
open: Var[bool] | bool | None = None,
103103
modal: Var[bool] | bool | None = None,
104+
multiple: Var[bool] | bool | None = None,
104105
disabled: Var[bool] | bool | None = None,
105106
read_only: Var[bool] | bool | None = None,
106107
required: Var[bool] | bool | None = None,
@@ -824,6 +825,7 @@ class HighLevelSelect(SelectRoot):
824825
default_open: Var[bool] | bool | None = None,
825826
open: Var[bool] | bool | None = None,
826827
modal: Var[bool] | bool | None = None,
828+
multiple: Var[bool] | bool | None = None,
827829
disabled: Var[bool] | bool | None = None,
828830
read_only: Var[bool] | bool | None = None,
829831
required: Var[bool] | bool | None = None,
@@ -875,10 +877,11 @@ class HighLevelSelect(SelectRoot):
875877
open: Whether the select menu is currently open
876878
on_open_change: Event handler called when the select menu is opened or closed
877879
on_open_change_complete: Event handler called after any animations complete when the select menu is opened or closed
878-
modal: Determines if the select enters a modal state when open. - True: user interaction is limited to the select: document page scroll is locked and pointer interactions on outside elements are disabled. - False: user interaction with the rest of the document is allowed.
879-
disabled: Whether the component should ignore user interaction
880-
read_only: Whether the user should be unable to choose a different option from the select menu
881-
required: Whether the user must choose a value before submitting a form
880+
modal: Determines if the select enters a modal state when open. - True: user interaction is limited to the select: document page scroll is locked and pointer interactions on outside elements are disabled. - False: user interaction with the rest of the document is allowed. Defaults to True.
881+
multiple: Whether multiple items can be selected. Defaults to False.
882+
disabled: Whether the component should ignore user interaction. Defaults to False.
883+
read_only: Whether the user should be unable to choose a different option from the select menu. Defaults to False.
884+
required: Whether the user must choose a value before submitting a form. Defaults to False.
882885
unstyled: Whether the component should be unstyled
883886
style: The style of the component.
884887
key: A unique key for the component.
@@ -926,6 +929,7 @@ class Select(ComponentNamespace):
926929
default_open: Var[bool] | bool | None = None,
927930
open: Var[bool] | bool | None = None,
928931
modal: Var[bool] | bool | None = None,
932+
multiple: Var[bool] | bool | None = None,
929933
disabled: Var[bool] | bool | None = None,
930934
read_only: Var[bool] | bool | None = None,
931935
required: Var[bool] | bool | None = None,
@@ -977,10 +981,11 @@ class Select(ComponentNamespace):
977981
open: Whether the select menu is currently open
978982
on_open_change: Event handler called when the select menu is opened or closed
979983
on_open_change_complete: Event handler called after any animations complete when the select menu is opened or closed
980-
modal: Determines if the select enters a modal state when open. - True: user interaction is limited to the select: document page scroll is locked and pointer interactions on outside elements are disabled. - False: user interaction with the rest of the document is allowed.
981-
disabled: Whether the component should ignore user interaction
982-
read_only: Whether the user should be unable to choose a different option from the select menu
983-
required: Whether the user must choose a value before submitting a form
984+
modal: Determines if the select enters a modal state when open. - True: user interaction is limited to the select: document page scroll is locked and pointer interactions on outside elements are disabled. - False: user interaction with the rest of the document is allowed. Defaults to True.
985+
multiple: Whether multiple items can be selected. Defaults to False.
986+
disabled: Whether the component should ignore user interaction. Defaults to False.
987+
read_only: Whether the user should be unable to choose a different option from the select menu. Defaults to False.
988+
required: Whether the user must choose a value before submitting a form. Defaults to False.
984989
unstyled: Whether the component should be unstyled
985990
style: The style of the component.
986991
key: A unique key for the component.

reflex_ui/components/base/tooltip.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,14 @@ class HighLevelTooltip(TooltipRoot):
251251
@classmethod
252252
def create(
253253
cls,
254-
trigger_component: Component,
254+
trigger: Component,
255255
content: str | Component | None = None,
256256
**props,
257257
) -> BaseUIComponent:
258258
"""Create a high level tooltip component.
259259
260260
Args:
261-
trigger_component: The component that triggers the tooltip.
261+
trigger: The component that triggers the tooltip.
262262
content: The content to display in the tooltip.
263263
**props: Additional properties to apply to the tooltip component.
264264
@@ -283,7 +283,7 @@ def create(
283283

284284
return TooltipRoot.create(
285285
TooltipTrigger.create(
286-
render_=trigger_component,
286+
render_=trigger,
287287
),
288288
TooltipPortal.create(
289289
TooltipPositioner.create(

reflex_ui/components/base/tooltip.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ class HighLevelTooltip(TooltipRoot):
432432
"""Create a high level tooltip component.
433433
434434
Args:
435-
trigger_component: The component that triggers the tooltip.
435+
trigger: The component that triggers the tooltip.
436436
content: The content to display in the tooltip.
437437
content: Content to display in the tooltip
438438
open: Whether the tooltip is currently open.
@@ -519,7 +519,7 @@ class Tooltip(ComponentNamespace):
519519
"""Create a high level tooltip component.
520520
521521
Args:
522-
trigger_component: The component that triggers the tooltip.
522+
trigger: The component that triggers the tooltip.
523523
content: The content to display in the tooltip.
524524
content: Content to display in the tooltip
525525
open: Whether the tooltip is currently open.

reflex_ui/components/base_ui.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ from reflex.vars.base import Var
1313
from reflex_ui.components.component import CoreComponent
1414

1515
PACKAGE_NAME = "@base-ui-components/react"
16-
PACKAGE_VERSION = "1.0.0-beta.1"
16+
PACKAGE_VERSION = "1.0.0-beta.2"
1717

1818
class BaseUIComponent(CoreComponent):
1919
@classmethod

0 commit comments

Comments
 (0)