@orsetra/shared-ui 1.5.29 → 1.5.31

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.
@@ -144,7 +144,7 @@ function LayoutContent({
144
144
  </div>
145
145
  </header>
146
146
 
147
- <main className="flex-1 min-h-0 overflow-auto">
147
+ <main className="flex-1 bg-ibm-gray-10 min-h-0 overflow-auto">
148
148
  {children}
149
149
  </main>
150
150
  </div>
@@ -1,35 +1,35 @@
1
- import { ArrowLeft } from "lucide-react"
2
- import Link from "next/link"
3
- import type { ReactNode } from "react"
4
-
5
- interface PageHeaderProps {
6
- title: string
7
- description?: string
8
- backLink?: string
9
- actions?: ReactNode
10
- statusNode?: ReactNode
11
- }
12
-
13
- export function PageHeader({ title, description, backLink, actions, statusNode}: PageHeaderProps) {
14
- return (
15
- <div>
16
- <div className="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3">
17
- <div className="flex items-center gap-2.5 min-w-0">
18
- {backLink && (
19
- <Link href={backLink} className="flex-shrink-0">
20
- <ArrowLeft className="h-4 w-4 text-ibm-gray-60" />
21
- </Link>
22
- )}
23
- <div className="min-w-0">
24
- <div className="flex items-center gap-2.5">
25
- <h1 className="text-base font-semibold text-ibm-gray-100 truncate leading-tight">{title}</h1>
26
- {statusNode && <div className="flex-shrink-0">{statusNode}</div>}
27
- </div>
28
- {description && <p className="text-xs text-ibm-gray-60 truncate mt-0.5">{description}</p>}
29
- </div>
30
- </div>
31
- {actions && <div className="flex items-center gap-2 flex-shrink-0">{actions}</div>}
32
- </div>
33
- </div>
34
- )
35
- }
1
+ import { ArrowLeft } from "lucide-react"
2
+ import Link from "next/link"
3
+ import type { ReactNode } from "react"
4
+ import { cn } from "../../lib/utils"
5
+
6
+ interface PageHeaderProps {
7
+ title: string
8
+ description?: string
9
+ backLink?: string
10
+ actions?: ReactNode
11
+ statusNode?: ReactNode
12
+ className?: string
13
+ }
14
+
15
+ export function PageHeader({ title, description, backLink, actions, statusNode, className }: PageHeaderProps) {
16
+ return (
17
+ <div className={cn("flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3", className)}>
18
+ <div className="flex items-center gap-2.5 min-w-0">
19
+ {backLink && (
20
+ <Link href={backLink} className="flex-shrink-0">
21
+ <ArrowLeft className="h-3 w-3 text-ibm-gray-50" />
22
+ </Link>
23
+ )}
24
+ <div className="min-w-0">
25
+ <div className="flex items-center gap-2.5">
26
+ <h1 className="text-lg font-semibold text-ibm-gray-100 leading-tight truncate">{title}</h1>
27
+ {statusNode && <div className="flex-shrink-0">{statusNode}</div>}
28
+ </div>
29
+ {description && <p className="text-xs text-ibm-gray-50 truncate mt-0.5">{description}</p>}
30
+ </div>
31
+ </div>
32
+ {actions && <div className="flex items-center gap-2 flex-shrink-0">{actions}</div>}
33
+ </div>
34
+ )
35
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orsetra/shared-ui",
3
- "version": "1.5.29",
3
+ "version": "1.5.31",
4
4
  "description": "Shared UI components for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",