@orsetra/shared-ui 1.1.34 → 1.1.36

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.
@@ -66,13 +66,13 @@ function OrgProjectDropdown({
66
66
  className="flex items-center gap-2 h-9 px-3 text-sm text-text-primary hover:bg-ui-background transition-colors"
67
67
  >
68
68
  {org.logo ? (
69
- <img src={org.logo} alt={org.nom} className="h-5 w-5 object-cover flex-shrink-0" />
69
+ <img src={org.logo} alt={org.name} className="h-5 w-5 object-cover flex-shrink-0" />
70
70
  ) : (
71
71
  <div className="h-5 w-5 bg-interactive flex items-center justify-center text-white text-[10px] font-bold flex-shrink-0">
72
- {org.nom.charAt(0).toUpperCase()}
72
+ {org.name.charAt(0).toUpperCase()}
73
73
  </div>
74
74
  )}
75
- <span className="font-medium">{org.nom}</span>
75
+ <span className="font-medium">{org.name}</span>
76
76
  <ChevronDown className={cn("h-3 w-3 text-text-secondary transition-transform duration-150", open && "rotate-180")} />
77
77
  </button>
78
78
 
@@ -103,7 +103,15 @@ function OrgProjectDropdown({
103
103
  )}>{project.name}</span>
104
104
  <span className="text-xs text-text-secondary truncate">{project.id}</span>
105
105
  </div>
106
- <ChevronRight className="h-3.5 w-3.5 text-text-secondary flex-shrink-0 ml-2" />
106
+ {isActive ? (
107
+ <div className="h-5 w-5 bg-[#0f62fe] flex items-center justify-center flex-shrink-0 ml-2">
108
+ <svg className="h-3 w-3 text-white" viewBox="0 0 12 12" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
109
+ <polyline points="2,6 5,9 10,3" />
110
+ </svg>
111
+ </div>
112
+ ) : (
113
+ <ChevronRight className="h-3.5 w-3.5 text-text-secondary flex-shrink-0 ml-2" />
114
+ )}
107
115
  </button>
108
116
  )
109
117
  })
@@ -43,7 +43,7 @@ export interface SidebarMenus {
43
43
  }
44
44
 
45
45
  export interface OrgInfo {
46
- nom: string
46
+ name: string
47
47
  id: string
48
48
  logo?: string
49
49
  }
@@ -295,16 +295,16 @@ function Sidebar({ currentMenu, onMainMenuToggle, sidebarMenus = {}, main_base_u
295
295
  {orgLoading ? (
296
296
  <div className="h-14 w-14 bg-ui-background animate-pulse flex-shrink-0" />
297
297
  ) : orgData?.logo ? (
298
- <img src={orgData.logo} alt={orgData.nom} className="h-14 w-14 object-cover flex-shrink-0" />
298
+ <img src={orgData.logo} alt={orgData.name } className="h-14 w-14 object-cover flex-shrink-0" />
299
299
  ) : (
300
300
  <div className="h-14 w-14 bg-interactive flex items-center justify-center text-white text-2xl font-bold flex-shrink-0">
301
- {orgData?.nom?.charAt(0)?.toUpperCase() ?? 'O'}
301
+ {orgData?.name?.charAt(0)?.toUpperCase() ?? 'O'}
302
302
  </div>
303
303
  )}
304
304
  <div className="flex flex-col min-w-0 flex-1">
305
305
  <span className="text-xs text-text-secondary uppercase tracking-wide mb-1">Organisation</span>
306
306
  <span className="text-base font-semibold text-text-primary truncate">
307
- {orgLoading ? '…' : (orgData?.nom ?? 'Organisation')}
307
+ {orgLoading ? '…' : (orgData?.name ?? 'Organisation')}
308
308
  </span>
309
309
  </div>
310
310
  <ChevronRight className="h-4 w-4 text-text-secondary flex-shrink-0 opacity-40" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orsetra/shared-ui",
3
- "version": "1.1.34",
3
+ "version": "1.1.36",
4
4
  "description": "Shared UI components for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",