@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
- 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 className="mb-4 sm:mb-8">
16
- <div className="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4">
17
- <div className="flex items-center space-x-3 min-w-0">
18
- {backLink && (
19
- <Link href={backLink} className="flex-shrink-0">
20
- <ArrowLeft className="h-5 w-5 sm:h-6 sm:w-6 text-text-secondary" />
21
- </Link>
22
- )}
23
- <div className="min-w-0">
24
- <div className="flex items-center space-x-3">
25
- <h1 className="text-xl sm:text-2xl font-semibold text-text-primary truncate">{title}</h1>
26
- {statusNode && <div className="mt-2 flex-shrink-0">{statusNode}</div>}
27
- </div>
28
- {description && <p className="text-sm sm:text-base text-text-secondary line-clamp-2">{description}</p>}
29
- </div>
30
- </div>
31
- {actions && <div className="flex items-center space-x-2 sm:space-x-4 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.28",
3
+ "version": "1.5.30",
4
4
  "description": "Shared UI components for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",