@orsetra/shared-ui 1.0.45 → 1.0.46
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.
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
Menu,
|
|
27
27
|
Building2,
|
|
28
28
|
User,
|
|
29
|
+
ChevronUp,
|
|
29
30
|
} from "lucide-react"
|
|
30
31
|
import { Logo } from "../../ui/logo"
|
|
31
32
|
import { menuLabels, type SidebarMenus, type SubMenuItem } from "./data"
|
|
@@ -263,7 +264,7 @@ function Sidebar({ currentMenu, onMainMenuToggle, sidebarMenus = {}, main_base_u
|
|
|
263
264
|
<div className="relative border-t border-ui-border px-3 py-3" ref={settingsRef}>
|
|
264
265
|
{/* Dropdown vers le haut */}
|
|
265
266
|
{settingsOpen && (
|
|
266
|
-
<div className="absolute bottom-full left-2 right-2 mb-1 bg-white border border-ui-border rounded-
|
|
267
|
+
<div className="absolute bottom-full left-2 right-2 mb-1 bg-white border border-ui-border rounded-none shadow-lg z-50">
|
|
267
268
|
<div className="py-1">
|
|
268
269
|
<Link
|
|
269
270
|
href={`${main_base_url}/organization`}
|
|
@@ -287,14 +288,17 @@ function Sidebar({ currentMenu, onMainMenuToggle, sidebarMenus = {}, main_base_u
|
|
|
287
288
|
<button
|
|
288
289
|
onClick={() => setSettingsOpen(!settingsOpen)}
|
|
289
290
|
className={cn(
|
|
290
|
-
"flex items-center w-full px-3 py-2 text-sm rounded-
|
|
291
|
+
"flex items-center justify-between w-full px-3 py-2 text-sm rounded-none gap-x-3 transition-colors",
|
|
291
292
|
settingsOpen
|
|
292
293
|
? "bg-interactive/10 text-interactive font-medium"
|
|
293
294
|
: "text-text-secondary hover:bg-ui-background hover:text-text-primary"
|
|
294
295
|
)}
|
|
295
296
|
>
|
|
296
|
-
<
|
|
297
|
-
|
|
297
|
+
<span className="flex items-center gap-x-3">
|
|
298
|
+
<Settings className="h-4 w-4" />
|
|
299
|
+
{state === "expanded" && "Paramètres"}
|
|
300
|
+
</span>
|
|
301
|
+
{state === "expanded" && <ChevronUp className={cn("h-4 w-4 transition-transform", settingsOpen ? "rotate-0" : "rotate-180")} />}
|
|
298
302
|
</button>
|
|
299
303
|
</div>
|
|
300
304
|
</div>
|