@orsetra/shared-ui 1.1.34 → 1.1.35

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
  }
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.35",
4
4
  "description": "Shared UI components for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",