@logickernel/bridge 0.11.10 → 0.12.1
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/next/components.cjs
CHANGED
|
@@ -12,7 +12,6 @@ var TooltipPrimitive = require('@radix-ui/react-tooltip');
|
|
|
12
12
|
var navigation = require('next/navigation');
|
|
13
13
|
var Link = require('next/link');
|
|
14
14
|
var CollapsiblePrimitive = require('@radix-ui/react-collapsible');
|
|
15
|
-
var react = require('next-auth/react');
|
|
16
15
|
var AvatarPrimitive = require('@radix-ui/react-avatar');
|
|
17
16
|
var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
|
|
18
17
|
|
|
@@ -923,9 +922,9 @@ function NavMain({ items }) {
|
|
|
923
922
|
});
|
|
924
923
|
}
|
|
925
924
|
if (useLink2) {
|
|
926
|
-
return /* @__PURE__ */ jsxRuntime.jsx(SidebarMenuSubItem, { children: /* @__PURE__ */ jsxRuntime.jsx(SidebarMenuSubButton, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Link__default.default, { href: linkHref2, onClick: handleClick,
|
|
925
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SidebarMenuSubItem, { children: /* @__PURE__ */ jsxRuntime.jsx(SidebarMenuSubButton, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Link__default.default, { href: linkHref2, onClick: handleClick, children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: subItem.title }) }) }) }, subItem.title);
|
|
927
926
|
}
|
|
928
|
-
return /* @__PURE__ */ jsxRuntime.jsx(SidebarMenuSubItem, { children: /* @__PURE__ */ jsxRuntime.jsx(SidebarMenuSubButton, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: subItem.url,
|
|
927
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SidebarMenuSubItem, { children: /* @__PURE__ */ jsxRuntime.jsx(SidebarMenuSubButton, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: subItem.url, onClick: handleClick, children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: subItem.title }) }) }) }, subItem.title);
|
|
929
928
|
}) }) })
|
|
930
929
|
] })
|
|
931
930
|
},
|
|
@@ -952,7 +951,7 @@ function NavMain({ items }) {
|
|
|
952
951
|
asChild: true,
|
|
953
952
|
tooltip: item.title,
|
|
954
953
|
isActive,
|
|
955
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(Link__default.default, { href: linkHref, onClick: handleClick,
|
|
954
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(Link__default.default, { href: linkHref, onClick: handleClick, children: [
|
|
956
955
|
item.icon && /* @__PURE__ */ jsxRuntime.jsx(item.icon, {}),
|
|
957
956
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: item.title })
|
|
958
957
|
] })
|
|
@@ -965,7 +964,7 @@ function NavMain({ items }) {
|
|
|
965
964
|
asChild: true,
|
|
966
965
|
tooltip: item.title,
|
|
967
966
|
isActive,
|
|
968
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("a", { href: item.url,
|
|
967
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("a", { href: item.url, onClick: handleClick, children: [
|
|
969
968
|
item.icon && /* @__PURE__ */ jsxRuntime.jsx(item.icon, {}),
|
|
970
969
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: item.title })
|
|
971
970
|
] })
|
|
@@ -1136,10 +1135,6 @@ function NavUser({ user }) {
|
|
|
1136
1135
|
const isMobile = sidebar?.isMobile ?? false;
|
|
1137
1136
|
const initials = getInitials(user.name, user.email);
|
|
1138
1137
|
const displayName = user.name || user.email;
|
|
1139
|
-
const handleSignOut = async () => {
|
|
1140
|
-
await react.signOut({ redirect: false });
|
|
1141
|
-
window.location.href = "/core/auth/signin";
|
|
1142
|
-
};
|
|
1143
1138
|
return /* @__PURE__ */ jsxRuntime.jsx(SidebarMenu, { children: /* @__PURE__ */ jsxRuntime.jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
1144
1139
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1145
1140
|
SidebarMenuButton,
|
|
@@ -1183,10 +1178,10 @@ function NavUser({ user }) {
|
|
|
1183
1178
|
"Account"
|
|
1184
1179
|
] }) }),
|
|
1185
1180
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, {}),
|
|
1186
|
-
/* @__PURE__ */ jsxRuntime.
|
|
1181
|
+
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs("a", { href: "/core/auth/logout", children: [
|
|
1187
1182
|
/* @__PURE__ */ jsxRuntime.jsx(LucideIcons.LogOut, {}),
|
|
1188
1183
|
"Log out"
|
|
1189
|
-
] })
|
|
1184
|
+
] }) })
|
|
1190
1185
|
]
|
|
1191
1186
|
}
|
|
1192
1187
|
)
|