mautourco-components 0.2.98 → 0.2.99

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.
@@ -20,5 +20,5 @@ export var DesktopNav = function (_a) {
20
20
  if (!isDisabled)
21
21
  onLinkClick === null || onLinkClick === void 0 ? void 0 : onLinkClick(it);
22
22
  }, children: it.label })) }, it.label));
23
- }) }), _jsx("div", { className: "header-nav__user-section ".concat(user ? 'header-nav__user-connected-section' : ''), children: user ? (_jsx("div", { className: "header-nav__user-container", children: _jsx(UserCard, { user: user, agencies: agencies || [], selectedAgency: selectedAgency, onSelectAgency: onAgencyChange }) })) : (_jsx(Button, { size: "sm", variant: "secondary", onClick: onLogin, children: "Login" })) })] })] }));
23
+ }) }), _jsx("div", { className: "header-nav__user-section ".concat(user ? 'header-nav__user-connected-section' : ''), children: user ? (_jsxs("div", { className: "header-nav__user-container", children: [_jsx(UserCard, { user: user, agencies: agencies || [], selectedAgency: selectedAgency, onSelectAgency: onAgencyChange }), _jsx(Button, { size: "sm", variant: "secondary", onClick: onLogout, className: "header-nav__logout-button", children: "Logout" })] })) : (_jsx(Button, { size: "sm", variant: "secondary", onClick: onLogin, children: "Login" })) })] })] }));
24
24
  };
@@ -174,6 +174,11 @@
174
174
  display: flex;
175
175
  height: 100%;
176
176
  align-items: center;
177
+ gap: 0.75rem;
178
+ }
179
+
180
+ .header-nav__logout-button {
181
+ flex-shrink: 0;
177
182
  }
178
183
 
179
184
  /* ===== Mobile Nav Classes ===== */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mautourco-components",
3
- "version": "0.2.98",
3
+ "version": "0.2.99",
4
4
  "private": false,
5
5
  "description": "Bibliothèque de composants Mautourco pour le redesign",
6
6
  "main": "dist/index.js",
@@ -121,6 +121,13 @@ export const DesktopNav: React.FC<DesktopNavProps> = ({
121
121
  selectedAgency={selectedAgency}
122
122
  onSelectAgency={onAgencyChange}
123
123
  />
124
+ <Button
125
+ size="sm"
126
+ variant="secondary"
127
+ onClick={onLogout}
128
+ className="header-nav__logout-button">
129
+ Logout
130
+ </Button>
124
131
  </div>
125
132
  ) : (
126
133
  <Button size="sm" variant="secondary" onClick={onLogin}>
@@ -72,7 +72,11 @@
72
72
  }
73
73
 
74
74
  .header-nav__user-container {
75
- @apply flex items-center h-full;
75
+ @apply flex items-center h-full gap-3;
76
+ }
77
+
78
+ .header-nav__logout-button {
79
+ @apply shrink-0;
76
80
  }
77
81
 
78
82
  /* ===== Mobile Nav Classes ===== */