@umituz/web-dashboard 6.2.1 → 6.4.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.
@@ -2,7 +2,8 @@
2
2
  import { readFileSync } from "node:fs";
3
3
  import { describe, expect, it } from "vitest";
4
4
 
5
- const css = readFileSync(new URL("./dashboard.css", import.meta.url), "utf8");
5
+ const entry = readFileSync(new URL("./dashboard.css", import.meta.url), "utf8");
6
+ const css = readFileSync(new URL("./chrome.css", import.meta.url), "utf8");
6
7
 
7
8
  const defined = new Set([...css.matchAll(/(--udb-[a-z0-9-]+)\s*:/g)].map((m) => m[1]));
8
9
  const used = new Set([...css.matchAll(/var\((--udb-[a-z0-9-]+)\)/g)].map((m) => m[1]));
@@ -12,8 +13,13 @@ describe("dashboard stylesheet contract", () => {
12
13
  expect([...used].filter((v) => !defined.has(v))).toEqual([]);
13
14
  });
14
15
 
15
- it("imports the design-system stylesheet", () => {
16
- expect(css).toContain('@import "@umituz/web-design-system/styles.css";');
16
+ it("entry chains the design-system stylesheet and the chrome rules", () => {
17
+ expect(entry).toContain('@import "@umituz/web-design-system/styles.css";');
18
+ expect(entry).toContain('@import "./chrome.css";');
19
+ });
20
+
21
+ it("chrome carries no stylesheet imports (Tailwind hosts import it beside their own DS build)", () => {
22
+ expect(css.match(/@import[^;]+;/g) ?? []).toEqual([]);
17
23
  });
18
24
 
19
25
  it("carries no legacy --u-* tokens", () => {