repair docs
This commit is contained in:
17
index.js
17
index.js
@@ -1,10 +1,21 @@
|
||||
// index.js
|
||||
import './src/sigpro.js'; // El Core
|
||||
import './src/sigpro.js';
|
||||
import * as Components from './src/components/index.js';
|
||||
import * as Utils from './src/core/utils.js';
|
||||
import { tt } from './src/core/i18n.js';
|
||||
|
||||
// Exportamos todo para que el Tree Shaking funcione
|
||||
export * from './src/components/index.js';
|
||||
export * from './src/core/utils.js';
|
||||
export { tt };
|
||||
export { tt };
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
Object.entries(Components).forEach(([name, component]) => {
|
||||
window[name] = component;
|
||||
});
|
||||
|
||||
window.Utils = Utils;
|
||||
window.tt = tt;
|
||||
window.SigProUI = { ...Components, Utils, tt };
|
||||
|
||||
console.log("🎨 SigProUI ready");
|
||||
}
|
||||
Reference in New Issue
Block a user