@orsetra/shared-ui 1.0.61 → 1.0.62

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.
@@ -145,8 +145,8 @@ export function MainSidebar({
145
145
  </button>
146
146
 
147
147
  {isMinimized && hoveredMenu === item.id && sidebarMenus[item.id] && sidebarMenus[item.id].length > 0 && (
148
- <div className="absolute left-full top-0 ml-2 bg-gray-50 rounded-lg shadow-xl z-50 min-w-[200px] py-2">
149
- <div className="px-4 py-2 bg-gray-50">
148
+ <div className="absolute left-full top-0 ml-2 bg-white rounded-lg shadow-xl z-50 min-w-[200px] py-2">
149
+ <div className="px-4 py-2">
150
150
  <h3 className="text-sm font-semibold text-text-primary">{item.label}</h3>
151
151
  </div>
152
152
  <div className="py-1">
@@ -272,7 +272,7 @@ function Sidebar({ currentMenu, onMainMenuToggle, sidebarMenus = {}, main_base_u
272
272
  </nav>
273
273
 
274
274
  {/* Footer - Menu Paramètres */}
275
- <div className="relative border-t border-ui-border px-3 py-3" ref={settingsRef}>
275
+ <div className="relative border-ui-border px-3 py-3" ref={settingsRef}>
276
276
  {/* Dropdown vers le haut */}
277
277
  {settingsOpen && (
278
278
  <div className="absolute bottom-full left-2 right-2 mb-1 bg-white border border-ui-border rounded-none shadow-lg z-50">
@@ -4,32 +4,28 @@ import type { ReactNode } from "react"
4
4
 
5
5
  interface PageHeaderProps {
6
6
  title: string
7
- description?: string
8
7
  backLink?: string
9
8
  actions?: ReactNode
10
9
  statusNode?: ReactNode
11
10
  }
12
11
 
13
- export function PageHeader({ title, description, backLink, actions, statusNode}: PageHeaderProps) {
12
+ export function PageHeader({ title, backLink, actions, statusNode}: PageHeaderProps) {
14
13
  return (
15
- <div className="mb-4 sm:mb-8">
16
- <div className="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4">
14
+ <div className="sticky top-0 z-10 bg-white border-b border-gray-200 -mx-6 px-6 py-3 mb-6">
15
+ <div className="flex items-center justify-between gap-4">
17
16
  <div className="flex items-center space-x-3 min-w-0">
18
17
  {backLink && (
19
18
  <Link href={backLink} className="flex-shrink-0">
20
- <ArrowLeft className="h-5 w-5 sm:h-6 sm:w-6 text-text-secondary" />
19
+ <ArrowLeft className="h-4 w-4 text-text-secondary" />
21
20
  </Link>
22
21
  )}
23
- <div className="min-w-0">
24
- <div className="flex items-center space-x-3">
25
- <h1 className="text-xl sm:text-2xl font-semibold text-text-primary truncate">{title}</h1>
26
- {statusNode && <div className="mt-2 flex-shrink-0">{statusNode}</div>}
27
- </div>
28
- {description && <p className="text-sm sm:text-base text-text-secondary line-clamp-2">{description}</p>}
22
+ <div className="flex items-center space-x-3 min-w-0">
23
+ <h2 className="text-base font-semibold text-text-primary truncate">{title}</h2>
24
+ {statusNode && <div className="flex-shrink-0">{statusNode}</div>}
29
25
  </div>
30
26
  </div>
31
- {actions && <div className="flex items-center space-x-2 sm:space-x-4 flex-shrink-0">{actions}</div>}
27
+ {actions && <div className="flex items-center space-x-2 flex-shrink-0">{actions}</div>}
32
28
  </div>
33
29
  </div>
34
30
  )
35
- }
31
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orsetra/shared-ui",
3
- "version": "1.0.61",
3
+ "version": "1.0.62",
4
4
  "description": "Shared UI components for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",