@moises.ai/design-system 3.10.2 → 3.10.3
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.
package/dist/index.js
CHANGED
|
@@ -5496,6 +5496,7 @@ const py = ({
|
|
|
5496
5496
|
trigger: s && a ? /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(ft, { content: a, side: "right", sideOffset: 5, children: p }) }) : p,
|
|
5497
5497
|
options: t,
|
|
5498
5498
|
side: l ? "top" : "right",
|
|
5499
|
+
align: l ? "end" : "center",
|
|
5499
5500
|
...i,
|
|
5500
5501
|
wrapCloseMenu: h,
|
|
5501
5502
|
onSelectionChange: A
|
package/package.json
CHANGED
|
@@ -26,9 +26,9 @@ export const ProfileMenu = ({
|
|
|
26
26
|
|
|
27
27
|
const wrapCloseMenu = isMobile
|
|
28
28
|
? (baseClose) => () => {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
baseClose()
|
|
30
|
+
close()
|
|
31
|
+
}
|
|
32
32
|
: undefined
|
|
33
33
|
|
|
34
34
|
const trigger = <MenuTrigger user={user} collapsed={collapsed} />
|
|
@@ -48,6 +48,7 @@ export const ProfileMenu = ({
|
|
|
48
48
|
}
|
|
49
49
|
options={menuOptions}
|
|
50
50
|
side={isMobileViewport ? 'top' : 'right'}
|
|
51
|
+
align={isMobileViewport ? 'end' : 'center'}
|
|
51
52
|
{...props}
|
|
52
53
|
wrapCloseMenu={wrapCloseMenu}
|
|
53
54
|
onSelectionChange={handleSelectionChange}
|