mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-20 20:07:34 +00:00
- 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
31 lines
842 B
JavaScript
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!'); |