@umituz/web-dashboard 4.5.0 → 4.6.0
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/web-dashboard",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"description": "Installable app skeleton for the fleet — layouts, auth, onboarding, analytics (dependency-free SVG charts), calendar, i18n injection, permissions/session/module registry; ships its own udb-* stylesheet and --u-* tokens",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"react-router-dom": "^6.0.0 || ^7.0.0"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@umituz/web-design-system": "^4.0
|
|
75
|
+
"@umituz/web-design-system": "^4.5.0",
|
|
76
76
|
"lucide-react": "^0.577.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
export interface PageHeaderProps {
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
subtitle?: ReactNode;
|
|
6
|
+
actions?: ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const PageHeader = ({ title, subtitle, actions, className }: PageHeaderProps) => (
|
|
11
|
+
<div className={`udb-pageheader${className ? ` ${className}` : ""}`}>
|
|
12
|
+
<div className="udb-pageheader__main">
|
|
13
|
+
<h1 className="udb-pageheader__title">{title}</h1>
|
|
14
|
+
{subtitle !== undefined && <p className="udb-pageheader__subtitle">{subtitle}</p>}
|
|
15
|
+
</div>
|
|
16
|
+
{actions !== undefined && <div className="udb-pageheader__actions">{actions}</div>}
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
@@ -6,3 +6,5 @@ export { DashboardLayout } from './DashboardLayout';
|
|
|
6
6
|
export { DashboardHeader } from './DashboardHeader';
|
|
7
7
|
export { DashboardSidebar } from './DashboardSidebar';
|
|
8
8
|
export { BrandLogo } from './BrandLogo';
|
|
9
|
+
export { PageHeader } from './PageHeader';
|
|
10
|
+
export type { PageHeaderProps } from './PageHeader';
|
package/src/styles/dashboard.css
CHANGED
|
@@ -3153,3 +3153,39 @@
|
|
|
3153
3153
|
margin-top: 4px;
|
|
3154
3154
|
padding: 0 8px;
|
|
3155
3155
|
}
|
|
3156
|
+
|
|
3157
|
+
.udb-pageheader {
|
|
3158
|
+
display: flex;
|
|
3159
|
+
flex-wrap: wrap;
|
|
3160
|
+
align-items: flex-start;
|
|
3161
|
+
justify-content: space-between;
|
|
3162
|
+
gap: 0.75rem;
|
|
3163
|
+
margin-bottom: 1.25rem;
|
|
3164
|
+
}
|
|
3165
|
+
|
|
3166
|
+
.udb-pageheader__main {
|
|
3167
|
+
min-width: 0;
|
|
3168
|
+
}
|
|
3169
|
+
|
|
3170
|
+
.udb-pageheader__title {
|
|
3171
|
+
margin: 0;
|
|
3172
|
+
font-size: 1.375rem;
|
|
3173
|
+
font-weight: 600;
|
|
3174
|
+
line-height: 1.2;
|
|
3175
|
+
letter-spacing: -0.01em;
|
|
3176
|
+
color: var(--color-foreground);
|
|
3177
|
+
}
|
|
3178
|
+
|
|
3179
|
+
.udb-pageheader__subtitle {
|
|
3180
|
+
margin: 0.25rem 0 0;
|
|
3181
|
+
font-size: 0.875rem;
|
|
3182
|
+
line-height: 1.45;
|
|
3183
|
+
color: var(--color-muted-foreground);
|
|
3184
|
+
}
|
|
3185
|
+
|
|
3186
|
+
.udb-pageheader__actions {
|
|
3187
|
+
display: flex;
|
|
3188
|
+
flex-wrap: wrap;
|
|
3189
|
+
align-items: center;
|
|
3190
|
+
gap: 0.5rem;
|
|
3191
|
+
}
|