@orsetra/shared-ui 1.5.28 → 1.5.30
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.
|
@@ -33,6 +33,9 @@ import {
|
|
|
33
33
|
FileText,
|
|
34
34
|
Code,
|
|
35
35
|
Cloud,
|
|
36
|
+
ArrowRightLeft,
|
|
37
|
+
ArrowLeftRight,
|
|
38
|
+
Puzzle,
|
|
36
39
|
} from "lucide-react"
|
|
37
40
|
|
|
38
41
|
export interface MainMenuItem {
|
|
@@ -126,6 +129,9 @@ const ICON_MAP: Record<string, LucideIcon> = {
|
|
|
126
129
|
// API Manager
|
|
127
130
|
Braces,
|
|
128
131
|
GitMerge,
|
|
132
|
+
ArrowRightLeft,
|
|
133
|
+
ArrowLeftRight,
|
|
134
|
+
Puzzle,
|
|
129
135
|
Database,
|
|
130
136
|
// Access
|
|
131
137
|
Users,
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { ArrowLeft } from "lucide-react"
|
|
2
|
-
import Link from "next/link"
|
|
3
|
-
import type { ReactNode } from "react"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</div>
|
|
28
|
-
|
|
29
|
-
</
|
|
30
|
-
</div>
|
|
31
|
-
|
|
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
|
+
}
|