@orsetra/shared-ui 1.1.40 → 1.1.41

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.
@@ -107,9 +107,9 @@ export function MainSidebar({
107
107
  "flex items-center h-16 border-b border-ui-border bg-white",
108
108
  isMinimized ? "justify-center px-2" : "justify-between px-4"
109
109
  )}>
110
- {!isMinimized && <Logo className="text-2xl font-semibold text-text-primary" />}
110
+ {!isMinimized && <Logo className="text-2xl font-semibold text-text-primary" href={main_base_url} />}
111
111
  {isMinimized ? (
112
- <Logo className="text-xl font-semibold text-text-primary" iconOnly />
112
+ <Logo className="text-xl font-semibold text-text-primary" iconOnly href={main_base_url} />
113
113
  ) : (
114
114
  <Button
115
115
  variant="ghost"
@@ -6,12 +6,46 @@ import { cn } from "../../lib/utils"
6
6
  interface LogoProps {
7
7
  className?: string
8
8
  iconOnly?: boolean
9
+ href?: string
9
10
  }
10
11
 
11
- export function Logo({ className, iconOnly = false }: LogoProps) {
12
+ const FaviconIcon = ({ className }: { className?: string }) => (
13
+ <svg
14
+ xmlns="http://www.w3.org/2000/svg"
15
+ viewBox="0 0 32 32"
16
+ className={cn("inline-block flex-shrink-0", className)}
17
+ aria-hidden="true"
18
+ >
19
+ <polyline
20
+ points="6,6 16,16 6,26"
21
+ fill="none"
22
+ stroke="#0f62fe"
23
+ strokeWidth="3"
24
+ strokeLinecap="square"
25
+ strokeLinejoin="miter"
26
+ />
27
+ <polyline
28
+ points="26,6 16,16 26,26"
29
+ fill="none"
30
+ stroke="#0f62fe"
31
+ strokeWidth="3"
32
+ strokeLinecap="square"
33
+ strokeLinejoin="miter"
34
+ />
35
+ </svg>
36
+ )
37
+
38
+ export function Logo({ className, iconOnly = false, href = "/" }: LogoProps) {
12
39
  return (
13
- <Link href="/" className={cn("text-lg font-medium text-text-primary truncate", className)}>
14
- {iconOnly ? "O" : "Orchestra"}
40
+ <Link
41
+ href={href}
42
+ className={cn("font-medium text-text-primary truncate flex items-center no-underline", className)}
43
+ >
44
+ {iconOnly ? (
45
+ <FaviconIcon className="w-6 h-6" />
46
+ ) : (
47
+ <>Camel<FaviconIcon className="w-6 h-6" /></>
48
+ )}
15
49
  </Link>
16
50
  )
17
- }
51
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orsetra/shared-ui",
3
- "version": "1.1.40",
3
+ "version": "1.1.41",
4
4
  "description": "Shared UI components for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",