-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-imports.js
More file actions
34 lines (30 loc) · 997 Bytes
/
test-imports.js
File metadata and controls
34 lines (30 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Test all import patterns for LiqUIdify
import {
Button,
Card,
ThemeProvider,
useTheme,
Accordion,
Checkbox,
Select,
Dialog,
Badge,
IconButton,
Icon,
SymbolTile
} from './libs/components/dist/index.mjs';
// Test subpath imports
import { Button as ButtonSubpath } from './libs/components/dist/components/button/index.mjs';
import { Accordion as AccordionSubpath } from './libs/components/dist/components/ark-ui/accordion/index.mjs';
console.log('✅ All imports successful!');
console.log('✅ Button:', typeof Button);
console.log('✅ ThemeProvider:', typeof ThemeProvider);
console.log('✅ useTheme:', typeof useTheme);
console.log('✅ Button (subpath):', typeof ButtonSubpath);
console.log('✅ Accordion (subpath):', typeof AccordionSubpath);
// Test ThemeProvider usage
function TestComponent() {
const theme = useTheme();
return Button({ children: 'Test', variant: 'filled' });
}
console.log('✅ ThemeProvider test component:', typeof TestComponent);