ywana-core8 0.1.84 → 0.1.86

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.
Files changed (72) hide show
  1. package/__previewjs__/Wrapper.tsx +8 -5
  2. package/build-doc.sh +10 -0
  3. package/dist/index.cjs +418 -118
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.css +294 -94
  6. package/dist/index.css.map +1 -1
  7. package/dist/index.modern.js +418 -119
  8. package/dist/index.modern.js.map +1 -1
  9. package/dist/index.umd.js +420 -120
  10. package/dist/index.umd.js.map +1 -1
  11. package/doc/README.md +196 -0
  12. package/doc/package-lock.json +17298 -0
  13. package/doc/package.json +34 -0
  14. package/doc/public/index.html +22 -0
  15. package/doc/scripts/generate-examples.js +129 -0
  16. package/doc/src/App.css +171 -0
  17. package/doc/src/App.js +45 -0
  18. package/doc/src/components/ExamplePage.js +104 -0
  19. package/doc/src/components/WelcomePage.js +84 -0
  20. package/doc/src/examples/button.example.js +47 -0
  21. package/doc/src/examples/input.example.js +91 -0
  22. package/doc/src/examples-config.js +170 -0
  23. package/doc/src/index.css +237 -0
  24. package/doc/src/index.js +13 -0
  25. package/package.json +9 -2
  26. package/preview.config.js +38 -0
  27. package/src/html/accordion.example.js +2 -2
  28. package/src/html/actions-cell.css +108 -0
  29. package/src/html/actions-cell.example.js +587 -0
  30. package/src/html/actions-cell.js +260 -0
  31. package/src/html/checkbox.example.js +2 -2
  32. package/src/html/chip.example.js +2 -2
  33. package/src/html/color.example.js +2 -2
  34. package/src/html/form.example.js +2 -2
  35. package/src/html/header2.example.js +2 -2
  36. package/src/html/index.js +1 -0
  37. package/src/html/menu.css +9 -2
  38. package/src/html/menu.js +14 -2
  39. package/src/html/progress.example.js +2 -2
  40. package/src/html/property.example.js +2 -2
  41. package/src/html/radio.example.js +2 -2
  42. package/src/html/switch.example.js +2 -2
  43. package/src/html/tab.example.js +2 -2
  44. package/src/html/table.css +47 -1
  45. package/src/html/table.example.js +1012 -0
  46. package/src/html/table.js +12 -7
  47. package/src/html/table2-actions-test.js +138 -0
  48. package/src/html/table2.css +40 -3
  49. package/src/html/table2.example.js +330 -0
  50. package/src/html/table2.js +56 -13
  51. package/src/html/tokenfield.example.js +2 -2
  52. package/src/widgets/calendar/Calendar.js +1 -1
  53. /package/{ACCORDION_EVALUATION.md → doc/evalulations/ACCORDION_EVALUATION.md} +0 -0
  54. /package/{CHECKBOX_EVALUATION.md → doc/evalulations/CHECKBOX_EVALUATION.md} +0 -0
  55. /package/{CHIP_EVALUATION.md → doc/evalulations/CHIP_EVALUATION.md} +0 -0
  56. /package/{COLOR_EVALUATION.md → doc/evalulations/COLOR_EVALUATION.md} +0 -0
  57. /package/{COMPONENTS_EVALUATION.md → doc/evalulations/COMPONENTS_EVALUATION.md} +0 -0
  58. /package/{FORM_EVALUATION.md → doc/evalulations/FORM_EVALUATION.md} +0 -0
  59. /package/{HEADER_EVALUATION.md → doc/evalulations/HEADER_EVALUATION.md} +0 -0
  60. /package/{ICON_EVALUATION.md → doc/evalulations/ICON_EVALUATION.md} +0 -0
  61. /package/{LIST_EVALUATION.md → doc/evalulations/LIST_EVALUATION.md} +0 -0
  62. /package/{PROGRESS_EVALUATION.md → doc/evalulations/PROGRESS_EVALUATION.md} +0 -0
  63. /package/{RADIO_EVALUATION.md → doc/evalulations/RADIO_EVALUATION.md} +0 -0
  64. /package/{RADIO_VISUAL_FIX.md → doc/evalulations/RADIO_VISUAL_FIX.md} +0 -0
  65. /package/{SECTION_IMPROVEMENTS.md → doc/evalulations/SECTION_IMPROVEMENTS.md} +0 -0
  66. /package/{SWITCH_EVALUATION.md → doc/evalulations/SWITCH_EVALUATION.md} +0 -0
  67. /package/{SWITCH_VISUAL_FIX.md → doc/evalulations/SWITCH_VISUAL_FIX.md} +0 -0
  68. /package/{TAB_EVALUATION.md → doc/evalulations/TAB_EVALUATION.md} +0 -0
  69. /package/{TEXTFIELD_EVALUATION.md → doc/evalulations/TEXTFIELD_EVALUATION.md} +0 -0
  70. /package/{TOOLTIP_FIX.md → doc/evalulations/TOOLTIP_FIX.md} +0 -0
  71. /package/{TREE_EVALUATION.md → doc/evalulations/TREE_EVALUATION.md} +0 -0
  72. /package/src/incubator/{PDFViewer.js → pdfViewer.js} +0 -0
package/doc/README.md ADDED
@@ -0,0 +1,196 @@
1
+ # Ywana Core8 - Documentación de Componentes
2
+
3
+ Este directorio contiene la documentación interactiva de todos los componentes de Ywana Core8, implementada como un sitio web estático con React.
4
+
5
+ ## 🌐 Sitio Web
6
+
7
+ El sitio web principal se encuentra en `index.html` y proporciona:
8
+
9
+ - **Menú lateral navegable** con todos los componentes organizados por categorías
10
+ - **Búsqueda en tiempo real** de componentes
11
+ - **Filtrado por categorías** (Input, Data Display, Layout, etc.)
12
+ - **Vista previa interactiva** de cada componente
13
+ - **Diseño responsive** que funciona en desktop y móvil
14
+
15
+ ## 📁 Estructura de Archivos
16
+
17
+ ```
18
+ doc/
19
+ ├── index.html # Página principal del sitio web
20
+ ├── app.js # Aplicación React principal
21
+ ├── styles.css # Estilos del sitio web
22
+ ├── generate-examples.cjs # Script para generar archivos HTML
23
+ ├── lib/ # Componentes y ejemplos
24
+ │ ├── *.js # Componentes React
25
+ │ ├── *.css # Estilos de componentes
26
+ │ ├── *.example.js # Archivos de ejemplos
27
+ │ ├── *.example.html # Páginas HTML generadas
28
+ │ ├── react.development.js
29
+ │ ├── react-dom.development.js
30
+ │ └── ExampleLayout.js # Layout común para ejemplos
31
+ └── README.md # Este archivo
32
+ ```
33
+
34
+ ## 🚀 Uso
35
+
36
+ ### Ver la Documentación
37
+
38
+ 1. Abrir `doc/index.html` en un navegador web
39
+ 2. Navegar por el menú lateral para ver diferentes componentes
40
+ 3. Usar la búsqueda para encontrar componentes específicos
41
+ 4. Filtrar por categoría usando el dropdown
42
+
43
+ ### Agregar Nuevos Componentes
44
+
45
+ 1. **Crear el componente**: `lib/mi-componente.js`
46
+ 2. **Crear los estilos**: `lib/mi-componente.css`
47
+ 3. **Crear el ejemplo**: `lib/mi-componente.example.js`
48
+ 4. **Actualizar la configuración** en `app.js`:
49
+ ```javascript
50
+ {
51
+ id: 'mi-componente',
52
+ title: 'Mi Componente',
53
+ description: 'Descripción del componente',
54
+ category: 'Input', // o la categoría apropiada
55
+ icon: 'icono_material',
56
+ file: 'mi-componente.example.js'
57
+ }
58
+ ```
59
+ 5. **Regenerar archivos HTML**: `node generate-examples.cjs`
60
+
61
+ ## 📊 Componentes Disponibles
62
+
63
+ ### Input (9 componentes)
64
+ - **Button** - Botones y acciones interactivas
65
+ - **Checkbox** - Casillas de verificación
66
+ - **Color** - Selector y visualizador de colores
67
+ - **Form** - Formularios y validación
68
+ - **Radio** - Botones de radio
69
+ - **Switch** - Interruptores de encendido/apagado
70
+ - **TextField** - Campos de texto y entrada
71
+ - **TokenField** - Campo de tokens y etiquetas
72
+
73
+ ### Data Display (8 componentes)
74
+ - **Actions Cell** - Celda de acciones con overflow automático
75
+ - **Chip** - Etiquetas y chips interactivos
76
+ - **Icon** - Iconos de Material Design
77
+ - **List** - Listas y elementos de lista
78
+ - **Property** - Visualizador de propiedades
79
+ - **Table** - Tabla de datos original
80
+ - **Table2** - Tabla de datos mejorada
81
+ - **Tree** - Árbol jerárquico de datos
82
+
83
+ ### Layout (3 componentes)
84
+ - **Accordion** - Componente de acordeón expandible
85
+ - **Header** - Cabeceras y navegación
86
+ - **Section** - Secciones y contenedores
87
+
88
+ ### Navigation (1 componente)
89
+ - **Tab** - Pestañas y navegación por tabs
90
+
91
+ ### Feedback (1 componente)
92
+ - **Progress** - Indicadores de progreso
93
+
94
+ ### Overview (1 componente)
95
+ - **Components** - Vista general de todos los componentes
96
+
97
+ ## 🛠️ Desarrollo
98
+
99
+ ### Tecnologías Utilizadas
100
+
101
+ - **React 18** (modo desarrollo)
102
+ - **Babel Standalone** (transformación JSX en el navegador)
103
+ - **Material Icons** (iconografía)
104
+ - **CSS Variables** (theming)
105
+ - **Vanilla JavaScript** (sin bundlers)
106
+
107
+ ### Características Técnicas
108
+
109
+ - **Sin Build Process**: Todo funciona directamente en el navegador
110
+ - **Hot Reload**: Los cambios se ven inmediatamente al recargar
111
+ - **Modular**: Cada componente es independiente
112
+ - **Responsive**: Diseño adaptativo para todos los dispositivos
113
+ - **Accesible**: Navegación por teclado y screen readers
114
+
115
+ ### Scripts Útiles
116
+
117
+ ```bash
118
+ # Generar todos los archivos HTML de ejemplos
119
+ node generate-examples.cjs
120
+
121
+ # Servir localmente (opcional)
122
+ python -m http.server 8000
123
+ # o
124
+ npx serve .
125
+ ```
126
+
127
+ ## 🎨 Personalización
128
+
129
+ ### Temas y Colores
130
+
131
+ Los colores se definen en CSS Variables en `index.html`:
132
+
133
+ ```css
134
+ :root {
135
+ --primary-color: #1976d2;
136
+ --primary-color-light: #42a5f5;
137
+ --primary-color-lighter: #e3f2fd;
138
+ --text-color: #212121;
139
+ --background-color: #fafafa;
140
+ /* ... más variables */
141
+ }
142
+ ```
143
+
144
+ ### Layout de Ejemplos
145
+
146
+ Todos los ejemplos usan `ExampleLayout.js` que proporciona:
147
+
148
+ - **Navegación lateral** con secciones y subsecciones
149
+ - **Snippets de código** con syntax highlighting
150
+ - **Responsive design** automático
151
+ - **Scroll spy** para navegación activa
152
+
153
+ ## 📱 Responsive Design
154
+
155
+ El sitio web es completamente responsive:
156
+
157
+ - **Desktop**: Sidebar fijo de 320px
158
+ - **Tablet**: Sidebar colapsable
159
+ - **Mobile**: Sidebar overlay con navegación táctil
160
+
161
+ ## 🔍 Búsqueda y Filtrado
162
+
163
+ - **Búsqueda en tiempo real** por nombre y descripción
164
+ - **Filtrado por categorías** con contador de resultados
165
+ - **Navegación por teclado** para accesibilidad
166
+ - **URLs amigables** (futuro: deep linking)
167
+
168
+ ## 📈 Métricas
169
+
170
+ - **22 componentes** documentados
171
+ - **6 categorías** organizadas
172
+ - **100% responsive** design
173
+ - **0 dependencias** de build
174
+ - **< 2MB** tamaño total
175
+
176
+ ## 🚀 Despliegue
177
+
178
+ El sitio está configurado para GitHub Pages:
179
+
180
+ 1. Los archivos están en la carpeta `doc/`
181
+ 2. GitHub Pages sirve automáticamente desde esta carpeta
182
+ 3. Accesible en: `https://[usuario].github.io/[repo]/`
183
+
184
+ ## 🤝 Contribución
185
+
186
+ Para contribuir:
187
+
188
+ 1. Agregar nuevos componentes siguiendo la estructura existente
189
+ 2. Actualizar la configuración en `app.js`
190
+ 3. Regenerar archivos HTML con el script
191
+ 4. Probar localmente antes de hacer commit
192
+ 5. Documentar cambios en este README
193
+
194
+ ---
195
+
196
+ **Ywana Core8** - Sistema de Diseño y Componentes React