@umituz/web-dashboard 4.6.0 → 4.6.1
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.6.
|
|
3
|
+
"version": "4.6.1",
|
|
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",
|
|
@@ -3,15 +3,20 @@ import type { ReactNode } from "react";
|
|
|
3
3
|
export interface PageHeaderProps {
|
|
4
4
|
title: ReactNode;
|
|
5
5
|
subtitle?: ReactNode;
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
breadcrumbs?: ReactNode;
|
|
6
8
|
actions?: ReactNode;
|
|
7
9
|
className?: string;
|
|
8
10
|
}
|
|
9
11
|
|
|
10
|
-
export const PageHeader = ({ title, subtitle, actions, className }: PageHeaderProps) => (
|
|
12
|
+
export const PageHeader = ({ title, subtitle, description, breadcrumbs, actions, className }: PageHeaderProps) => (
|
|
11
13
|
<div className={`udb-pageheader${className ? ` ${className}` : ""}`}>
|
|
14
|
+
{breadcrumbs !== undefined && <div className="udb-pageheader__breadcrumbs">{breadcrumbs}</div>}
|
|
12
15
|
<div className="udb-pageheader__main">
|
|
13
16
|
<h1 className="udb-pageheader__title">{title}</h1>
|
|
14
|
-
{subtitle !== undefined &&
|
|
17
|
+
{(subtitle ?? description) !== undefined && (
|
|
18
|
+
<p className="udb-pageheader__subtitle">{subtitle ?? description}</p>
|
|
19
|
+
)}
|
|
15
20
|
</div>
|
|
16
21
|
{actions !== undefined && <div className="udb-pageheader__actions">{actions}</div>}
|
|
17
22
|
</div>
|
package/src/styles/dashboard.css
CHANGED
|
@@ -3154,6 +3154,14 @@
|
|
|
3154
3154
|
padding: 0 8px;
|
|
3155
3155
|
}
|
|
3156
3156
|
|
|
3157
|
+
.udb-pageheader__breadcrumbs {
|
|
3158
|
+
display: flex;
|
|
3159
|
+
align-items: center;
|
|
3160
|
+
gap: 0.375rem;
|
|
3161
|
+
font-size: 0.8125rem;
|
|
3162
|
+
color: var(--color-muted-foreground);
|
|
3163
|
+
}
|
|
3164
|
+
|
|
3157
3165
|
.udb-pageheader {
|
|
3158
3166
|
display: flex;
|
|
3159
3167
|
flex-wrap: wrap;
|