release: WRNexusJS 0.2.54

This commit is contained in:
2026-07-19 15:51:27 +05:30
parent 7cee13526e
commit 6dbc75c370
127 changed files with 2211 additions and 88 deletions
+46
View File
@@ -13,6 +13,52 @@ test("bundled UI assets are discoverable and readable", () => {
expect(uiCss()).toContain("--wire-");
});
test("PDF minimum-release and essential build-first components are bundled", () => {
const required = [
"Typography",
"Form",
"FormLabel",
"FormHelpText",
"FormError",
"LoadingButton",
"Combobox",
"MultiSelect",
"TimePicker",
"DateTimePicker",
"RecurringSchedulePicker",
"QuietHoursPicker",
"ConfirmationDialog",
"DataTable",
"FilterBar",
"MegaMenu",
"DesktopNavigation",
"ProductsMegaMenu",
"MobileNavigation",
"MarketingPageShell",
"ProductPageShell",
"LegalPageShell",
"ProductCard",
"MetricGrid",
"FAQ",
"PricingComparisonTable",
"SDKTabs",
"LegalTableOfContents",
"CookiePreferencesDialog",
];
expect(uiComponentNames()).toEqual(expect.arrayContaining(required));
});
test("component-system CSS includes responsive, theme-token, focus, and reduced-motion rules", () => {
const css = uiCss();
expect(css).toContain("@media (max-width: 768px)");
expect(css).toContain("@media (max-width: 480px)");
expect(css).toContain("@media (prefers-reduced-motion: reduce)");
expect(css).toContain(":focus-visible");
expect(css).toContain("var(--wire-color-surface)");
expect(css).toContain("min-height: 44px");
});
test.each(uiComponentNames())("bundled UI component %s compiles", (name) => {
const path = join(uiComponentsDir(), `${name}.wrn`);
expect(() => compileWireFile(readFileSync(path, "utf8"), path)).not.toThrow();