responsive-system 1.4.0 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "responsive-system",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "Sistema de layout responsivo con auto-scaling para Tailwind CSS",
5
5
  "type": "module",
6
6
  "main": "./dist/responsive-system.cjs",
@@ -480,50 +480,11 @@ if (needsUpdate) {
480
480
  console.log('✅ responsive-system: Todas las dependencias ya están en package.json')
481
481
  }
482
482
 
483
- // Si el proyecto está vacío, crear README básico PRIMERO
483
+ // Si el proyecto está vacío, crear estructura base
484
484
  if (isProjectEmpty) {
485
- // Crear README básico INMEDIATAMENTE para que el usuario sepa qué hacer
486
- const readmePath = path.join(projectRoot, 'README.md')
487
- if (!fs.existsSync(readmePath)) {
488
- const basicReadme = `# Tu Aplicación
489
-
490
- ## 🚀 Configuración Inicial
491
-
492
- Acabas de instalar **responsive-system**. Para completar la configuración, ejecuta:
493
-
494
- \`\`\`bash
495
- npx responsive-system-setup
496
- \`\`\`
497
-
498
- Este comando:
499
- - ✅ Instalará React, TypeScript, Tailwind y Vite automáticamente
500
- - ✅ Te permitirá seleccionar el layout que prefieras
501
- - ✅ Creará la estructura base del proyecto
502
- - ✅ Generará componentes genéricos y página de ejemplo
503
-
504
- ## 📦 ¿Qué es responsive-system?
505
-
506
- Sistema completo de layout responsive con auto-scaling para React + Tailwind CSS.
507
-
508
- - Auto-scaling automático (texto, espaciado, sombras)
509
- - Layouts pre-configurados (default, sidebar, dashboard, minimal)
510
- - Hook \`useResponsive\` para configuración manual
511
- - Sin media queries necesarias
512
-
513
- ---
514
-
515
- **Siguiente paso:** Ejecuta \`npx responsive-system-setup\` para comenzar 🚀
516
- `
517
- fs.writeFileSync(readmePath, basicReadme)
518
- console.log(' ✅ README.md básico creado con instrucciones')
519
- }
520
-
521
485
  console.log('')
522
486
  console.log('📦 responsive-system: Proyecto vacío detectado, creando estructura base...')
523
487
  console.log('')
524
- console.log('💡 IMPORTANTE: Si este es tu primer uso, este script configurará todo automáticamente.')
525
- console.log(' Si ya tienes el proyecto configurado, puedes cancelar (Ctrl+C)')
526
- console.log('')
527
488
 
528
489
  // Preguntar qué layout quiere
529
490
  const selectedLayout = await askLayout()
@@ -724,7 +685,7 @@ ReactDOM.createRoot(document.getElementById('root')!).render(
724
685
  import { useResponsive } from '../hooks'
725
686
 
726
687
  function HomePage() {
727
- const { breakpoint, isMobile } = useResponsiveLayout()
688
+ const { breakpoint, isMobile, layout } = useResponsiveLayout()
728
689
  const responsive = useResponsive()
729
690
 
730
691
  return (
@@ -791,7 +752,7 @@ function HomePage() {
791
752
  para configuración manual cuando lo necesites.
792
753
  </p>
793
754
  <p>
794
- <strong className="text-gray-900">Layout actual:</strong> <span className="capitalize">{selectedLayout}</span>
755
+ <strong className="text-gray-900">Layout actual:</strong> <span className="capitalize">{layout.current}</span>
795
756
  </p>
796
757
  </div>
797
758
  </div>