@umituz/web-dashboard 10.3.0 → 11.0.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.
Files changed (42) hide show
  1. package/package.json +3 -8
  2. package/src/domains/layouts/components/index.ts +0 -20
  3. package/src/domains/notifications/components/NotificationsPage.tsx +1 -1
  4. package/src/domains/settings/components/index.ts +0 -1
  5. package/src/styles/chrome.css +0 -343
  6. package/src/styles/dashboard.contract.test.ts +9 -7
  7. package/src/styles/dashboard.css +0 -1
  8. package/src/domains/charts/charts.css +0 -455
  9. package/src/domains/charts/components/ActivityHeatmap.test.tsx +0 -48
  10. package/src/domains/charts/components/ActivityHeatmap.tsx +0 -5
  11. package/src/domains/charts/components/BarChart.test.tsx +0 -91
  12. package/src/domains/charts/components/BarChart.tsx +0 -6
  13. package/src/domains/charts/components/ChartCard.tsx +0 -1
  14. package/src/domains/charts/components/ChartPrimitives.test.tsx +0 -90
  15. package/src/domains/charts/components/ChartTip.tsx +0 -1
  16. package/src/domains/charts/components/Donut.test.tsx +0 -51
  17. package/src/domains/charts/components/Donut.tsx +0 -5
  18. package/src/domains/charts/components/HBars.tsx +0 -1
  19. package/src/domains/charts/components/Legend.tsx +0 -1
  20. package/src/domains/charts/components/LineChart.test.tsx +0 -81
  21. package/src/domains/charts/components/LineChart.tsx +0 -6
  22. package/src/domains/charts/components/Sparkline.tsx +0 -1
  23. package/src/domains/charts/components/index.ts +0 -9
  24. package/src/domains/charts/index.ts +0 -28
  25. package/src/domains/charts/ssr.test.tsx +0 -35
  26. package/src/domains/charts/types/index.ts +0 -8
  27. package/src/domains/charts/utils.ts +0 -10
  28. package/src/domains/layouts/components/FilterBar.test.tsx +0 -33
  29. package/src/domains/layouts/components/FilterBar.tsx +0 -38
  30. package/src/domains/layouts/components/FilterPanel.test.tsx +0 -97
  31. package/src/domains/layouts/components/FilterPanel.tsx +0 -129
  32. package/src/domains/layouts/components/FilterSelect.test.tsx +0 -28
  33. package/src/domains/layouts/components/FilterSelect.tsx +0 -47
  34. package/src/domains/layouts/components/NextSteps.test.tsx +0 -25
  35. package/src/domains/layouts/components/NextSteps.tsx +0 -36
  36. package/src/domains/layouts/components/PageHeader.test.tsx +0 -63
  37. package/src/domains/layouts/components/PageHeader.tsx +0 -67
  38. package/src/domains/layouts/components/SectionHeader.test.tsx +0 -29
  39. package/src/domains/layouts/components/SectionHeader.tsx +0 -36
  40. package/src/domains/layouts/components/TabNav.test.tsx +0 -33
  41. package/src/domains/layouts/components/TabNav.tsx +0 -31
  42. package/src/domains/settings/components/AuditLogList.tsx +0 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/web-dashboard",
3
- "version": "10.3.0",
3
+ "version": "11.0.0",
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",
@@ -23,11 +23,6 @@
23
23
  "./calendar/services": "./src/domains/calendar/services/index.ts",
24
24
  "./calendar/types": "./src/domains/calendar/types/index.ts",
25
25
  "./calendar/utils": "./src/domains/calendar/utils/index.ts",
26
- "./charts": "./src/domains/charts/index.ts",
27
- "./charts/charts.css": "./src/domains/charts/charts.css",
28
- "./charts/components": "./src/domains/charts/components/index.ts",
29
- "./charts/types": "./src/domains/charts/types/index.ts",
30
- "./charts/utils": "./src/domains/charts/utils.ts",
31
26
  "./chrome.css": "./src/styles/chrome.css",
32
27
  "./config": "./src/config/index.ts",
33
28
  "./layouts": "./src/domains/layouts/index.ts",
@@ -71,7 +66,7 @@
71
66
  "version:major": "npm version major -m 'chore: release v%s'"
72
67
  },
73
68
  "peerDependencies": {
74
- "@umituz/web-design-system": "^6.0.0",
69
+ "@umituz/web-design-system": "^6.2.0",
75
70
  "framer-motion": "^12.0.0",
76
71
  "react": "^18.0.0 || ^19.0.0",
77
72
  "react-dom": "^18.0.0 || ^19.0.0",
@@ -94,7 +89,7 @@
94
89
  "@types/react-dom": "^19.2.3",
95
90
  "@typescript-eslint/eslint-plugin": "^8.57.2",
96
91
  "@typescript-eslint/parser": "^8.57.2",
97
- "@umituz/web-design-system": "^6.1.0",
92
+ "@umituz/web-design-system": "^6.2.0",
98
93
  "eslint": "^10.0.2",
99
94
  "framer-motion": "^12.23.12",
100
95
  "jsdom": "^29.1.1",
@@ -3,23 +3,3 @@ export { defaultLayoutLabels } from './labels';
3
3
  export { DashboardHeader } from './DashboardHeader';
4
4
  export { DashboardSidebar } from './DashboardSidebar';
5
5
  export { BrandLogo } from './BrandLogo';
6
- export { FilterBar } from './FilterBar';
7
- export type { FilterBarProps, FilterBarSearch } from './FilterBar';
8
- export { FilterSelect } from './FilterSelect';
9
- export type { FilterSelectProps, FilterSelectOption } from './FilterSelect';
10
- export { PageHeader } from './PageHeader';
11
- export type { PageHeaderProps, PageHeaderCrumb } from './PageHeader';
12
- export { SectionHeader } from './SectionHeader';
13
- export type { SectionHeaderProps } from './SectionHeader';
14
- export { TabNav } from './TabNav';
15
- export type { TabNavItem, TabNavProps } from './TabNav';
16
- export { FilterPanel, FilterSection, CheckFilterList, SingleSelectFilterList } from './FilterPanel';
17
- export type {
18
- FilterPanelProps,
19
- FilterSectionProps,
20
- FilterListOption,
21
- CheckFilterListProps,
22
- SingleSelectFilterListProps,
23
- } from './FilterPanel';
24
- export { NextSteps } from './NextSteps';
25
- export type { NextStepsProps, NextStepLink } from './NextSteps';
@@ -3,7 +3,7 @@ import { CheckCheck } from "lucide-react";
3
3
  import { Button } from "@umituz/web-design-system/atoms";
4
4
  import { Segmented } from "@umituz/web-design-system/molecules";
5
5
  import type { SegmentedOption } from "@umituz/web-design-system/molecules";
6
- import { PageHeader } from "../../layouts/components";
6
+ import { PageHeader } from "@umituz/web-design-system/templates";
7
7
  import { useNotifications } from "../NotificationsContext";
8
8
  import { severityOf } from "../time";
9
9
  import type { NotificationListLabels, NotificationTypeMeta } from "../types";
@@ -9,7 +9,6 @@ export {
9
9
  PermissionMatrixScreen,
10
10
  type PermissionMatrixScreenProps,
11
11
  } from './PermissionMatrixScreen';
12
- export { AuditLogList, type AuditLogListProps, type AuditEntry } from './AuditLogList';
13
12
  export {
14
13
  OrganizationProfileForm,
15
14
  type OrganizationProfileFormProps,
@@ -561,28 +561,6 @@
561
561
  .udb-scroll-lock {
562
562
  overflow: hidden;
563
563
  }
564
- .udb-filter-bar {
565
- display: flex;
566
- flex-wrap: wrap;
567
- align-items: flex-end;
568
- gap: var(--udb-space-3);
569
- }
570
- .udb-filter-bar__search {
571
- min-width: 200px;
572
- flex: 0 1 240px;
573
- }
574
- .udb-filter-bar__fields {
575
- display: flex;
576
- flex-wrap: wrap;
577
- align-items: center;
578
- gap: var(--udb-space-2);
579
- flex: 1;
580
- }
581
- .udb-filter-bar__actions {
582
- display: flex;
583
- align-items: center;
584
- gap: var(--udb-space-2);
585
- }
586
564
  @keyframes udb-pop {
587
565
  from {
588
566
  opacity: 0;
@@ -1466,159 +1444,6 @@
1466
1444
  color: var(--color-muted-foreground);
1467
1445
  opacity: 0.5;
1468
1446
  }
1469
- .udb-audit {
1470
- display: flex;
1471
- flex-direction: column;
1472
- margin: 0;
1473
- padding: 0;
1474
- list-style: none;
1475
- border: 1px solid var(--color-border);
1476
- border-radius: var(--radius-lg);
1477
- background: var(--color-card);
1478
- overflow: hidden;
1479
- }
1480
- .udb-audit__item {
1481
- display: flex;
1482
- align-items: baseline;
1483
- gap: var(--udb-space-4);
1484
- padding: var(--udb-space-3) var(--udb-space-4);
1485
- border-bottom: 1px solid var(--color-border);
1486
- font-size: var(--udb-font-size-md);
1487
- }
1488
- .udb-audit__item:last-child {
1489
- border-bottom: none;
1490
- }
1491
- .udb-audit__at {
1492
- flex-shrink: 0;
1493
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1494
- font-size: var(--udb-font-size-sm);
1495
- color: var(--color-muted-foreground);
1496
- }
1497
- .udb-audit__actor {
1498
- flex-shrink: 0;
1499
- font-weight: var(--font-weight-medium);
1500
- color: var(--color-foreground);
1501
- }
1502
- .udb-audit__action {
1503
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1504
- font-size: var(--udb-font-size-sm);
1505
- color: var(--color-primary);
1506
- }
1507
- .udb-audit__target {
1508
- min-width: 0;
1509
- overflow: hidden;
1510
- text-overflow: ellipsis;
1511
- white-space: nowrap;
1512
- color: var(--color-muted-foreground);
1513
- }
1514
- .udb-pageheader__breadcrumbs .udb-pageheader__crumb + .udb-pageheader__crumb::before {
1515
- content: "/";
1516
- margin-right: 0.375rem;
1517
- color: var(--color-muted-foreground);
1518
- opacity: 0.6;
1519
- }
1520
- .udb-pageheader__breadcrumbs a {
1521
- color: inherit;
1522
- text-decoration: none;
1523
- }
1524
- .udb-pageheader__breadcrumbs a:hover {
1525
- text-decoration: underline;
1526
- }
1527
- .udb-pageheader__breadcrumbs {
1528
- display: flex;
1529
- align-items: center;
1530
- gap: 0.375rem;
1531
- font-size: 0.8125rem;
1532
- color: var(--color-muted-foreground);
1533
- }
1534
- .udb-pageheader {
1535
- display: flex;
1536
- flex-wrap: wrap;
1537
- align-items: flex-start;
1538
- justify-content: space-between;
1539
- gap: 0.75rem;
1540
- margin-bottom: 1.25rem;
1541
- }
1542
- .udb-pageheader__main {
1543
- min-width: 0;
1544
- }
1545
- .udb-pageheader__kicker {
1546
- margin: 0 0 0.25rem;
1547
- font-size: 0.6875rem;
1548
- font-weight: 600;
1549
- letter-spacing: 0.08em;
1550
- text-transform: uppercase;
1551
- color: var(--color-muted-foreground);
1552
- }
1553
- .udb-pageheader__title {
1554
- margin: 0;
1555
- font-size: 1.375rem;
1556
- font-weight: 600;
1557
- line-height: 1.2;
1558
- letter-spacing: -0.01em;
1559
- color: var(--color-foreground);
1560
- }
1561
- .udb-pageheader__subtitle {
1562
- margin: 0.25rem 0 0;
1563
- font-size: 0.875rem;
1564
- line-height: 1.45;
1565
- color: var(--color-muted-foreground);
1566
- }
1567
- .udb-pageheader__actions {
1568
- display: flex;
1569
- flex-wrap: wrap;
1570
- align-items: center;
1571
- gap: 0.5rem;
1572
- }
1573
- .udb-pageheader__meta {
1574
- display: flex;
1575
- flex-wrap: wrap;
1576
- align-items: center;
1577
- gap: 0.5rem;
1578
- margin: 0.5rem 0 0;
1579
- font-size: 0.75rem;
1580
- color: var(--color-muted-foreground);
1581
- }
1582
-
1583
- .udb-sectionheader {
1584
- display: flex;
1585
- flex-wrap: wrap;
1586
- align-items: flex-start;
1587
- justify-content: space-between;
1588
- gap: 0.75rem;
1589
- margin-bottom: 0.875rem;
1590
- }
1591
- .udb-sectionheader__main {
1592
- min-width: 0;
1593
- }
1594
- .udb-sectionheader__kicker {
1595
- margin: 0 0 0.25rem;
1596
- font-size: 0.6875rem;
1597
- font-weight: 600;
1598
- letter-spacing: 0.08em;
1599
- text-transform: uppercase;
1600
- color: var(--color-muted-foreground);
1601
- }
1602
- .udb-sectionheader__title {
1603
- margin: 0;
1604
- font-size: 1.0625rem;
1605
- font-weight: 600;
1606
- line-height: 1.25;
1607
- letter-spacing: -0.01em;
1608
- color: var(--color-foreground);
1609
- }
1610
- .udb-sectionheader__subtitle {
1611
- margin: 0.25rem 0 0;
1612
- font-size: 0.8125rem;
1613
- line-height: 1.45;
1614
- color: var(--color-muted-foreground);
1615
- }
1616
- .udb-sectionheader__actions {
1617
- display: flex;
1618
- flex-wrap: wrap;
1619
- align-items: center;
1620
- gap: 0.5rem;
1621
- }
1622
1447
 
1623
1448
  .udb-onb,
1624
1449
  .udb-onb *,
@@ -2446,174 +2271,6 @@
2446
2271
  font-size: var(--udb-font-size-sm);
2447
2272
  }
2448
2273
 
2449
-
2450
- .udb-tabnav {
2451
- display: flex;
2452
- gap: var(--udb-space-1);
2453
- border-bottom: 1px solid var(--color-border);
2454
- overflow-x: auto;
2455
- scrollbar-width: none;
2456
- }
2457
- .udb-tabnav::-webkit-scrollbar {
2458
- display: none;
2459
- }
2460
- .udb-tabnav__tab {
2461
- position: relative;
2462
- padding: var(--udb-space-3) var(--udb-space-4);
2463
- font-size: var(--udb-font-size-md);
2464
- font-weight: var(--font-weight-medium);
2465
- color: var(--color-muted-foreground);
2466
- white-space: nowrap;
2467
- transition: color 0.15s ease-out;
2468
- }
2469
- .udb-tabnav__tab:hover {
2470
- color: var(--color-foreground);
2471
- }
2472
- .udb-tabnav__tab--active {
2473
- color: var(--color-primary);
2474
- }
2475
- .udb-tabnav__tab--active::after {
2476
- content: '';
2477
- position: absolute;
2478
- left: var(--udb-space-3);
2479
- right: var(--udb-space-3);
2480
- bottom: -1px;
2481
- height: 2px;
2482
- border-radius: var(--udb-radius-pill);
2483
- background: var(--color-primary);
2484
- }
2485
-
2486
-
2487
- .udb-filter-panel {
2488
- background: var(--color-card);
2489
- border: 1px solid var(--color-border);
2490
- border-radius: var(--radius-lg);
2491
- padding: var(--udb-space-4);
2492
- }
2493
- .udb-filter-panel__header {
2494
- display: flex;
2495
- align-items: center;
2496
- justify-content: space-between;
2497
- margin-bottom: var(--udb-space-3);
2498
- }
2499
- .udb-filter-panel__title {
2500
- font-size: var(--udb-font-size-sm);
2501
- font-weight: var(--font-weight-bold);
2502
- }
2503
- .udb-filter-panel__clear {
2504
- border: none;
2505
- background: transparent;
2506
- padding: 0;
2507
- font-family: inherit;
2508
- font-size: var(--udb-font-size-xs);
2509
- font-weight: var(--font-weight-medium);
2510
- color: var(--color-primary);
2511
- cursor: pointer;
2512
- }
2513
- .udb-filter-panel__clear:hover:not(:disabled) {
2514
- text-decoration: underline;
2515
- }
2516
- .udb-filter-panel__clear:disabled {
2517
- opacity: 0.45;
2518
- cursor: default;
2519
- }
2520
- .udb-filter-panel__sections {
2521
- display: flex;
2522
- flex-direction: column;
2523
- gap: var(--udb-space-4);
2524
- }
2525
- .udb-filter-section__title {
2526
- margin: 0 0 var(--udb-space-2);
2527
- font-size: var(--udb-font-size-xs);
2528
- font-weight: var(--font-weight-bold);
2529
- text-transform: uppercase;
2530
- letter-spacing: 0.08em;
2531
- color: var(--color-muted-foreground);
2532
- }
2533
- .udb-filter-section__body {
2534
- display: flex;
2535
- flex-direction: column;
2536
- gap: var(--udb-space-2);
2537
- }
2538
-
2539
-
2540
- .udb-check-filter {
2541
- list-style: none;
2542
- padding: 0;
2543
- margin: 0;
2544
- display: flex;
2545
- flex-direction: column;
2546
- gap: 2px;
2547
- }
2548
- .udb-check-filter__item {
2549
- display: flex;
2550
- align-items: center;
2551
- gap: var(--udb-space-2);
2552
- width: 100%;
2553
- padding: 6px var(--udb-space-2);
2554
- margin-left: calc(var(--udb-space-2) * -1);
2555
- border: none;
2556
- border-radius: var(--radius-sm);
2557
- background: transparent;
2558
- font-family: inherit;
2559
- font-size: var(--udb-font-size-md);
2560
- color: var(--color-muted-foreground);
2561
- text-align: left;
2562
- cursor: pointer;
2563
- transition: background 0.15s ease-out, color 0.15s ease-out;
2564
- }
2565
- .udb-check-filter__item:hover {
2566
- background: var(--color-muted);
2567
- color: var(--color-foreground);
2568
- }
2569
- .udb-check-filter__item--checked {
2570
- color: var(--color-foreground);
2571
- font-weight: var(--font-weight-medium);
2572
- }
2573
- .udb-check-filter__box {
2574
- display: inline-flex;
2575
- align-items: center;
2576
- justify-content: center;
2577
- width: 16px;
2578
- height: 16px;
2579
- border: 1.5px solid var(--color-border);
2580
- border-radius: 4px;
2581
- background: var(--color-card);
2582
- color: var(--color-primary-foreground, #fff);
2583
- flex: none;
2584
- transition: background 0.15s ease-out, border-color 0.15s ease-out;
2585
- }
2586
- .udb-check-filter__item--checked .udb-check-filter__box {
2587
- background: var(--color-primary);
2588
- border-color: var(--color-primary);
2589
- }
2590
- .udb-check-filter__box--radio {
2591
- border-radius: 50%;
2592
- }
2593
- .udb-check-filter__radio-dot {
2594
- width: 6px;
2595
- height: 6px;
2596
- border-radius: 50%;
2597
- background: var(--color-primary-foreground, #fff);
2598
- }
2599
- .udb-check-filter__label {
2600
- flex: 1;
2601
- min-width: 0;
2602
- overflow: hidden;
2603
- text-overflow: ellipsis;
2604
- white-space: nowrap;
2605
- }
2606
- .udb-check-filter__count {
2607
- font-size: var(--udb-font-size-xs);
2608
- color: var(--color-muted-foreground);
2609
- font-variant-numeric: tabular-nums;
2610
- }
2611
- .udb-check-filter__more {
2612
- padding: 2px var(--udb-space-2);
2613
- font-size: var(--udb-font-size-xs);
2614
- color: var(--color-muted-foreground);
2615
- }
2616
-
2617
2274
  .udb-notif-list {
2618
2275
  list-style: none;
2619
2276
  margin: 0;
@@ -3,8 +3,7 @@ import { describe, expect, it } from "vitest";
3
3
 
4
4
  const entry = readFileSync(new URL("./dashboard.css", import.meta.url), "utf8");
5
5
  const css = readFileSync(new URL("./chrome.css", import.meta.url), "utf8");
6
- const chartsCss = readFileSync(new URL("../domains/charts/charts.css", import.meta.url), "utf8");
7
- const sheet = css + chartsCss;
6
+ const sheet = css;
8
7
 
9
8
  const defined = new Set([...sheet.matchAll(/(--udb-[a-z0-9-]+)\s*:/g)].map((m) => m[1]));
10
9
  const used = new Set([...sheet.matchAll(/var\((--udb-[a-z0-9-]+)\)/g)].map((m) => m[1]));
@@ -14,23 +13,26 @@ describe("dashboard stylesheet contract", () => {
14
13
  expect([...used].filter((v) => !defined.has(v))).toEqual([]);
15
14
  });
16
15
 
17
- it("defines the eight chart series tokens", () => {
16
+ it("design-system stylesheet defines the eight chart series tokens", () => {
17
+ const dsCss = readFileSync(
18
+ new URL("../../node_modules/@umituz/web-design-system/dist/styles.css", import.meta.url),
19
+ "utf8",
20
+ );
18
21
  for (let i = 1; i <= 8; i += 1) {
19
- expect(chartsCss).toContain(`--udb-chart-${i}:`);
22
+ expect(dsCss).toContain(`--udb-chart-${i}`);
20
23
  }
21
24
  });
22
25
 
23
- it("entry chains the design-system stylesheet, the chrome rules and the chart rules", () => {
26
+ it("entry chains the design-system stylesheet and the chrome rules", () => {
24
27
  expect(entry).toContain('@import "@umituz/web-design-system/styles.css";');
25
28
  expect(entry).toContain('@import "./chrome.css";');
26
- expect(entry).toContain('@import "../domains/charts/charts.css";');
27
29
  });
28
30
 
29
31
  it("chrome carries no stylesheet imports (Tailwind hosts import it beside their own DS build)", () => {
30
32
  expect(css.match(/@import[^;]+;/g) ?? []).toEqual([]);
31
33
  });
32
34
 
33
- it("chart selectors live in charts.css, not chrome.css", () => {
35
+ it("chart selectors live in design-system charts stylesheet, not chrome.css", () => {
34
36
  expect(
35
37
  css.match(/udb-(chartcard|chartlegend|charttip|barchart|donut|linechart|hbars|heatmap)[a-z_-]*/g) ?? [],
36
38
  ).toEqual([]);
@@ -1,3 +1,2 @@
1
1
  @import "@umituz/web-design-system/styles.css";
2
2
  @import "./chrome.css";
3
- @import "../domains/charts/charts.css";