Files
ui/tests/scripts/test-ui-package.mjs
zeekay feb7970a96 refactor: Remove new-york style, keep only default
- Delete entire registry/new-york directory (source components)
- Delete public/registry/styles/new-york/ (generated registry files)
- Update schema.ts to only allow 'default' style (z.literal instead of z.enum)
- Clean up test reports and old scripts
- Delete brand files for luxfi and zoo (moved to separate repos)
- Maintain single-theme system as documented in styles.ts
2025-11-06 13:54:19 -08:00

31 lines
842 B
JavaScript

#!/usr/bin/env node
// Test the @hanzo/ui package build
import React from 'react';
import { renderToString } from 'react-dom/server';
// Try importing from the built package
import { Button, Card } from './packages/ui/dist/index.mjs';
console.log('āœ… Core imports work!');
console.log('Button:', typeof Button);
console.log('Card:', typeof Card);
// Test rendering a component
try {
const html = renderToString(
React.createElement(Button, { children: 'Test Button' })
);
console.log('āœ… Button renders:', html.substring(0, 50) + '...');
} catch (error) {
console.error('āŒ Render failed:', error.message);
}
// Try lazy components
import('./packages/ui/dist/index.mjs').then(module => {
if (module.LazyComponents) {
console.log('āœ… LazyComponents available');
}
});
console.log('\nšŸ“¦ Package test complete!');