@orsetra/shared-ui 1.5.19 → 1.5.20

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.
@@ -43,6 +43,8 @@ export interface DetailPageHeaderProps {
43
43
  activeTab?: string
44
44
  /** Extra classes applied to the root element */
45
45
  className?: string
46
+ /** Whether to show the tab bar */
47
+ enableTabs?: boolean
46
48
  }
47
49
 
48
50
  export function DetailPageHeader({
@@ -56,6 +58,7 @@ export function DetailPageHeader({
56
58
  tabBar,
57
59
  tabBarPosition = "left",
58
60
  activeTab,
61
+ enableTabs = true,
59
62
  className,
60
63
  }: DetailPageHeaderProps) {
61
64
  return (
@@ -101,6 +104,7 @@ export function DetailPageHeader({
101
104
  </div>
102
105
 
103
106
  {/* Tab bar — always rendered to keep header height consistent */}
107
+ {enableTabs && (
104
108
  <nav
105
109
  className={`flex gap-0 overflow-x-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none] px-4 sm:px-6 min-h-10 ${
106
110
  tabBarPosition === "right" ? "justify-end" : "justify-start"
@@ -127,7 +131,7 @@ export function DetailPageHeader({
127
131
  </Link>
128
132
  )
129
133
  })}
130
- </nav>
134
+ </nav>)}
131
135
 
132
136
  </div>
133
137
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orsetra/shared-ui",
3
- "version": "1.5.19",
3
+ "version": "1.5.20",
4
4
  "description": "Shared UI components for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",