@umituz/web-dashboard 7.4.0 → 7.4.2
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": "7.4.
|
|
3
|
+
"version": "7.4.2",
|
|
4
4
|
"description": "Installable app skeleton for the fleet — layouts, analytics (dependency-free SVG charts), calendar, onboarding flow permissions/module registry; udb-* stylesheet on design-system tokens",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -155,7 +155,10 @@ export const DashboardLayout = ({
|
|
|
155
155
|
|
|
156
156
|
const searchGroup: CommandGroup | null =
|
|
157
157
|
paletteSearch && searchItems.length > 0
|
|
158
|
-
? {
|
|
158
|
+
? {
|
|
159
|
+
heading: palette?.searchResultsHeading ?? labels.searchResults,
|
|
160
|
+
items: searchItems.map((item) => ({ ...item, prefiltered: true })),
|
|
161
|
+
}
|
|
159
162
|
: null;
|
|
160
163
|
const basePaletteGroups = searchGroup ? [searchGroup, ...(palette?.groups ?? [])] : (palette?.groups ?? []);
|
|
161
164
|
|
|
@@ -165,7 +168,7 @@ export const DashboardLayout = ({
|
|
|
165
168
|
...config.sidebarGroups.map((group) => ({
|
|
166
169
|
heading: group.title,
|
|
167
170
|
items: group.items.map((item) => ({
|
|
168
|
-
id: `nav-${item.path}`,
|
|
171
|
+
id: `nav-${item.path.replace(/[^a-zA-Z0-9_-]/g, '_')}`,
|
|
169
172
|
label: item.label,
|
|
170
173
|
icon: <item.icon size={16} aria-hidden="true" />,
|
|
171
174
|
hint: item.path,
|
|
@@ -263,9 +266,11 @@ export const DashboardLayout = ({
|
|
|
263
266
|
</div>
|
|
264
267
|
|
|
265
268
|
) : (
|
|
266
|
-
<
|
|
267
|
-
<
|
|
268
|
-
|
|
269
|
+
<div className="udb-layout__page">
|
|
270
|
+
<Suspense fallback={contentFallback ?? null}>
|
|
271
|
+
<Outlet />
|
|
272
|
+
</Suspense>
|
|
273
|
+
</div>
|
|
269
274
|
)}
|
|
270
275
|
</main>
|
|
271
276
|
|
package/src/styles/chrome.css
CHANGED
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
--udb-sidebar-border: var(--color-border);
|
|
27
27
|
--udb-sidebar-accent: var(--color-muted);
|
|
28
28
|
--udb-sidebar-accent-text: var(--color-foreground);
|
|
29
|
+
--udb-content-max-width: none;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
.udb-root,
|
|
@@ -123,6 +124,11 @@
|
|
|
123
124
|
overflow-y: auto;
|
|
124
125
|
padding: var(--udb-space-4);
|
|
125
126
|
}
|
|
127
|
+
.udb-layout__page {
|
|
128
|
+
width: 100%;
|
|
129
|
+
margin: 0 auto;
|
|
130
|
+
max-width: var(--udb-content-max-width, none);
|
|
131
|
+
}
|
|
126
132
|
@media (min-width: 768px) {
|
|
127
133
|
.udb-layout__sidebar {
|
|
128
134
|
display: flex;
|