@authdog/react-elements 0.0.47 → 0.0.48
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/.turbo/turbo-build.log +35 -35
- package/CHANGELOG.md +7 -0
- package/dist/components/ui/theme-toggle.js +1 -1
- package/dist/components/ui/theme-toggle.js.map +1 -1
- package/dist/components/ui/theme-toggle.mjs +1 -1
- package/dist/components/ui/theme-toggle.mjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/core/navbar.tsx +28 -24
- package/src/components/ui/theme-toggle.tsx +1 -0
|
@@ -205,7 +205,7 @@ export function Navbar({
|
|
|
205
205
|
<DropdownMenuTrigger asChild>
|
|
206
206
|
<Button
|
|
207
207
|
variant="ghost"
|
|
208
|
-
className="relative h-8 w-8 rounded-full"
|
|
208
|
+
className="relative h-8 w-8 rounded-full cursor-pointer"
|
|
209
209
|
disabled={isLoading}
|
|
210
210
|
>
|
|
211
211
|
<Avatar className="h-8 w-8">
|
|
@@ -243,29 +243,33 @@ export function Navbar({
|
|
|
243
243
|
</p>
|
|
244
244
|
</div>
|
|
245
245
|
</DropdownMenuLabel>
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
<
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
246
|
+
{dropdownMenuItems.length > 0 && (
|
|
247
|
+
<>
|
|
248
|
+
<DropdownMenuSeparator />
|
|
249
|
+
<DropdownMenuGroup>
|
|
250
|
+
{dropdownMenuItems.map((item, index) => (
|
|
251
|
+
<DropdownMenuItem
|
|
252
|
+
key={index}
|
|
253
|
+
onClick={() => {
|
|
254
|
+
if (!item.disabled) {
|
|
255
|
+
// Backward compatibility: if it's the profile item and onProfileSelected exists
|
|
256
|
+
if (item.uri === "/profile" && onProfileSelected) {
|
|
257
|
+
onProfileSelected();
|
|
258
|
+
}
|
|
259
|
+
onDropdownMenuItemClick(item.uri);
|
|
260
|
+
}
|
|
261
|
+
}}
|
|
262
|
+
disabled={item.disabled}
|
|
263
|
+
className="cursor-pointer"
|
|
264
|
+
>
|
|
265
|
+
{item.icon && <IconWrapper Icon={item.icon} />}
|
|
266
|
+
<span>{item.name}</span>
|
|
267
|
+
</DropdownMenuItem>
|
|
268
|
+
))}
|
|
269
|
+
</DropdownMenuGroup>
|
|
270
|
+
<DropdownMenuSeparator />
|
|
271
|
+
</>
|
|
272
|
+
)}
|
|
269
273
|
<DropdownMenuItem onClick={onLogout} className="cursor-pointer">
|
|
270
274
|
<IconWrapper Icon={LogOut} />
|
|
271
275
|
<span>Log out</span>
|