@orsetra/shared-ui 1.5.1 → 1.5.2

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.
@@ -19,9 +19,9 @@ export interface DetailPageHeaderTab {
19
19
 
20
20
  export interface DetailPageHeaderProps {
21
21
  /** Back breadcrumb link destination */
22
- backHref: string
22
+ backHref?: string
23
23
  /** Back breadcrumb label */
24
- backLabel: string
24
+ backLabel?: string
25
25
  /** Optional icon rendered in a blue square container */
26
26
  icon?: ReactNode
27
27
  /** Page title – truncated to one line */
@@ -57,13 +57,15 @@ export function DetailPageHeader({
57
57
  <div className="px-4 sm:px-2 pt-1 pb-0">
58
58
 
59
59
  {/* Breadcrumb */}
60
- <Link
61
- href={backHref}
62
- className="inline-flex items-center gap-1.5 text-xs text-ibm-gray-50 hover:text-ibm-blue-60 transition-colors mb-3"
63
- >
64
- <ArrowLeft className="h-3 w-3" />
65
- {backLabel}
66
- </Link>
60
+ {backHref && backLabel && (
61
+ <Link
62
+ href={backHref}
63
+ className="inline-flex items-center gap-1.5 text-xs text-ibm-gray-50 hover:text-ibm-blue-60 transition-colors mb-3"
64
+ >
65
+ <ArrowLeft className="h-3 w-3" />
66
+ {backLabel}
67
+ </Link>
68
+ )}
67
69
 
68
70
  {/* Title row */}
69
71
  <div className="flex items-center justify-between gap-4 pb-4">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orsetra/shared-ui",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Shared UI components for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",