@orsetra/shared-ui 1.10.12 → 1.10.14

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.
@@ -24,7 +24,7 @@ export function AccessDeniedState({ resourceName, message, className }: AccessDe
24
24
  Access denied
25
25
  </h2>
26
26
  <p className="text-ibm-gray-60 text-sm md:text-base leading-relaxed text-center md:text-left">
27
- {message ?? `You don't have permission to view ${resourceName} in this business unit.`}
27
+ {message ?? `You don't have permission to view ${resourceName}.`}
28
28
  </p>
29
29
  </div>
30
30
  </div>
@@ -9,29 +9,64 @@ interface LogoProps {
9
9
  href?: string
10
10
  }
11
11
 
12
- const FaviconIcon = ({ className }: { className?: string }) => (
12
+ const MonogramIcon = ({ className }: { className?: string }) => (
13
13
  <svg
14
14
  xmlns="http://www.w3.org/2000/svg"
15
15
  viewBox="0 0 32 32"
16
16
  className={cn("inline-block flex-shrink-0", className)}
17
17
  aria-hidden="true"
18
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
- />
19
+ <rect width="32" height="32" rx="7" fill="#0F62FE" />
20
+ <text
21
+ x="16.5"
22
+ y="17"
23
+ fontFamily="Helvetica Neue, Arial, sans-serif"
24
+ fontWeight="700"
25
+ fontSize="13"
26
+ letterSpacing="-0.75"
27
+ fill="#FFFFFF"
28
+ textAnchor="middle"
29
+ dominantBaseline="central"
30
+ >
31
+ CX
32
+ </text>
33
+ </svg>
34
+ )
35
+
36
+ const Wordmark = ({ className }: { className?: string }) => (
37
+ <svg
38
+ xmlns="http://www.w3.org/2000/svg"
39
+ viewBox="0 0 117 32"
40
+ className={cn("inline-block flex-shrink-0", className)}
41
+ style={{ height: "1.15em", width: "auto" }}
42
+ role="img"
43
+ aria-label="Camel X"
44
+ >
45
+ <text
46
+ x="5"
47
+ y="16"
48
+ fontFamily="Helvetica Neue, Arial, sans-serif"
49
+ fontWeight="500"
50
+ fontSize="26"
51
+ letterSpacing="-0.5"
52
+ fill="#161616"
53
+ textAnchor="start"
54
+ dominantBaseline="central"
55
+ >
56
+ CAMEL
57
+ </text>
58
+ <text
59
+ x="94.6"
60
+ y="16"
61
+ fontFamily="Helvetica Neue, Arial, sans-serif"
62
+ fontWeight="800"
63
+ fontSize="26"
64
+ fill="#0F62FE"
65
+ textAnchor="start"
66
+ dominantBaseline="central"
67
+ >
68
+ X
69
+ </text>
35
70
  </svg>
36
71
  )
37
72
 
@@ -39,13 +74,9 @@ export function Logo({ className, iconOnly = false, href = "/" }: LogoProps) {
39
74
  return (
40
75
  <Link
41
76
  href={href}
42
- className={cn("font-medium text-text-primary truncate flex items-center no-underline", className)}
77
+ className={cn("text-text-primary truncate flex items-center no-underline", className)}
43
78
  >
44
- {iconOnly ? (
45
- <FaviconIcon className="w-6 h-6" />
46
- ) : (
47
- <>Camel<FaviconIcon className="w-6 h-6" /></>
48
- )}
79
+ {iconOnly ? <MonogramIcon className="w-6 h-6" /> : <Wordmark />}
49
80
  </Link>
50
81
  )
51
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orsetra/shared-ui",
3
- "version": "1.10.12",
3
+ "version": "1.10.14",
4
4
  "description": "Shared UI components for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",