From a0bc8a29539cb69f8c73d17a27fe8b1dc5178591 Mon Sep 17 00:00:00 2001 From: Natxo <1172351+natxocc@users.noreply.github.com> Date: Tue, 31 Mar 2026 12:45:58 +0200 Subject: [PATCH] Update index.js --- src/components/index.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/components/index.js b/src/components/index.js index 227677d..1614050 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -1,4 +1,3 @@ -// 1. IMPORTAMOS TODO INTERNAMENTE import * as ButtonModule from './Button.js'; import * as InputModule from './Input.js'; import * as SelectModule from './Select.js'; @@ -30,8 +29,6 @@ import * as AlertModule from './Alert.js'; import * as ToastModule from './Toast.js'; import * as LoadingModule from './Loading.js'; -// 2. EXPORTACIONES INDIVIDUALES (Named Exports) -// Esto permite: import { Button, Table } from './components/index.js' export * from './Button.js'; export * from './Input.js'; export * from './Select.js'; @@ -63,7 +60,6 @@ export * from './Alert.js'; export * from './Toast.js'; export * from './Loading.js'; -// 3. OBJETO COLECTIVO PARA LA INSTALACIÓN GLOBAL const Components = { ...ButtonModule, ...InputModule, ...SelectModule, ...AutocompleteModule, ...CheckboxModule, ...RadioModule, ...RangeModule, ...RatingModule, @@ -75,13 +71,11 @@ const Components = { ...ToastModule, ...LoadingModule }; -// 4. EXPORTACIÓN POR DEFECTO CON MÉTODO .install() export default { ...Components, install: (target = window) => { Object.entries(Components).forEach(([name, component]) => { target[name] = component; }); - console.log("🚀 SigproUI: Componentes instalados en window."); } };